/* ========== 基础重置与变量 ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #1a2b3c;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 全局容器与工具类 ========== */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 2rem 0;
}

.has-text-centered {
    text-align: center;
}

.is-size-2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.3;
}
.is-size-4 {
    font-size: 1.25rem;
}
.is-size-5 {
    font-size: 1.1rem;
}

.mt-3 {
    margin-top: 0.75rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mb-5 {
    margin-bottom: 1.5rem;
}
.pt-0 {
    padding-top: 0 !important;
}

/* ========== 品牌色系 ========== */
:root {
    --brand: #0d6e63;
    --brand-light: #e0f2f1;
    --brand-dark: #004d40;
    --gray-light: #e9ecef;
    --border: #dee2e6;
    --text-muted: #6c757d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
}

/* ========== Hero 主视觉区 ========== */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-bottom: 1px solid var(--border);
}

.hero-body {
    padding: 2.5rem 1rem;
}

.hero .subtitle strong {
    color: var(--brand);
    font-weight: 700;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 1.2em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}
.tag.is-success {
    background-color: var(--brand);
    color: #fff;
}
.tag.is-medium {
    font-size: 0.95rem;
}

/* ========== 卖点卡片 ========== */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.column {
    padding: 0.75rem;
    width: 100%;
    display: flex;                /* 列变为 flex 容器，保证子元素可上下居中 */
}

/* 桌面端三列 */
@media (min-width: 769px) {
    .column.is-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
    width: 100%;                 /* 确保占满列宽 */
}

.box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.box .icon {
    display: block;
    margin: 0 auto 1rem;
    color: var(--brand);
}

.box .icon i {
    font-size: 2.2rem;
}

.box h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.2rem;
    color: #1a2b3c;
}

.box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========== 工具列表卡片（listsonclass 生成） ========== */
.tool-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    min-height: 60px;            /* 可按需调小 */
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #1a2b3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
    color: var(--brand);
}

/* “查看更多”按钮 */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    background: var(--brand);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-more:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    color: #fff;
}

/* ========== FAQ 问答区块 ========== */
.content .box {
    text-align: left;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.content .box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.content .box p {
    margin-top: 0.3rem;
}

/* ========== 广告位优化 ========== */
.adsense {
    background-color: #edf2f7;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0.5rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.adsense::before {
    content: "Anuncio";
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 0.65rem;
    color: #a0aec0;
    letter-spacing: 0.5px;
    background: rgba(237, 242, 247, 0.9);
    padding: 1px 4px;
    border-radius: 2px;
    z-index: 1;
}

hr.my-0 {
    margin-top: 0;
    margin-bottom: 0;
    border: 0;
    border-top: 1px solid var(--border);
}

/* ========== 响应式微调 ========== */
@media (max-width: 768px) {
    .hero-body {
        padding: 1.8rem 0.8rem;
    }
    
    .tag.is-medium {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .box {
        padding: 1.3rem 0.8rem;
    }
    
    .columns {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .column {
        padding: 0.5rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .adsense {
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero-body {
        padding: 1.5rem 0.5rem;
    }
    
    .adsense {
        min-height: 60px;
    }
}

/* ========== 导航栏样式（桌面+移动端） ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo 文本样式 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

/* 导航链接列表 */
.nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 0.3rem 0;
}

.nav-list a:hover {
    color: var(--brand);
}

/* 语言下拉 */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
    display: flex;
}

.lang-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.lang-menu a:hover {
    background: var(--brand-light);
    color: var(--brand);
}

/* 汉堡按钮 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #334155;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== 移动端导航修复 ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-main {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
        width: 100%;
    }

    .nav-main.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--gray-light);
        font-size: 1rem;
        text-decoration: none;
    }

    .nav-list a:hover,
    .nav-list a:active {
        text-decoration: none;
    }

    .lang-dropdown {
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--gray-light);
    }

    .lang-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        display: none;
    }

    /* 移动端语言下拉由 JS 控制，取消 hover 显示 */
    .lang-dropdown:hover .lang-menu,
    .lang-dropdown:focus-within .lang-menu {
        display: none;
    }
}

/* ========== 页脚样式 ========== */
/* 友情链接区 */
.footer-links {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.8rem 0;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.links-grid a {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.links-grid a:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

/* 版权区 */
.footer-bottom {
    background: #1a2b3c;
    color: #cbd5e1;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom span {
    font-weight: 600;
    color: #fff;
}