@font-face {
    font-family: 'Inter';
    src: url('/Inter.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
body, html { margin: 0; padding: 0; background-color: #dcedc8; color: #333; font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.8; font-weight: 300; }
a { color: #43961c; text-decoration: none; font-weight: 400; }
a:hover { opacity: 0.8; }

/* ======= 手机端 ======= */
.mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 60px; position: sticky; top: 0; z-index: 1000; background-color: #dcedc8; border-bottom: 2px solid #43961c; }
.mobile-logo { height: 40px; margin-top: 4px; }
.menu-btn { background: none; border: none; font-size: 2rem; color: #43961c; padding: 0; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background-color: #dcedc8; padding: 10px 20px; border-bottom: 2px solid #43961c; position: absolute; top: 60px; left: 0; width: 100%; box-sizing: border-box; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.mobile-menu.active { display: flex; }
.mobile-menu a { display: block; font-size: 1.15rem; font-weight: 500; color: #43961c; padding: 10px 0; border-bottom: 1px solid rgba(67, 150, 28, 0.2); text-decoration: none; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .auth-area { display: block; width: 100%; margin-top: 10px; }
.mobile-menu .auth-area button { width: 100%; padding: 12px; font-size: 1.1rem; font-weight: 500; background-color: #43961c; color: white; border-radius: 4px; border: none; }
.sidebar { display: none; }
.content { padding: 30px 20px; box-sizing: border-box; }
.title-large { font-size: 3rem; color: #43961c; margin: 0; font-weight: 500; }
.title-small { font-size: 1.1rem; color: #555; margin-bottom: 40px; }
p { margin-bottom: 24px; font-size: 1.05rem; color: #222; }
.footer { margin-top: 60px; border-top: 1px solid #aed581; padding-top: 20px; font-size: 0.85rem; color: #666; text-align: center; }
.lang-wrapper { position: relative; }
.lang-trigger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; cursor: pointer; }
.lang-svg-icon { width: 24px; height: 24px; }
.lang-dropdown { display: none; position: absolute; background-color: #dcedc8; border: 2px solid #43961c; border-radius: 4px; padding: 12px; z-index: 2000; flex-direction: column; gap: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.lang-dropdown.show { display: flex; }
.mobile-header .lang-dropdown { top: 100%; right: 0; margin-top: 10px; }

/* ======= 电脑端 (完美 Flex 横排) ======= */
@media (min-width: 769px) {
    .mobile-header, .mobile-menu { display: none; }

    .sidebar { 
        display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important;
        width: 100%; height: 60px; border-bottom: 2px solid #43961c; 
        padding: 0 40px; box-sizing: border-box; background-color: #dcedc8; 
        position: fixed; top: 0; left: 0; z-index: 1000; overflow: visible !important;
    }

    /* 左侧导航组 */
    .nav-left { display: flex !important; align-items: center !important; height: 100% !important; gap: 40px !important; }
    .brand-logo { width: 45px !important; margin: 0 !important; }
    .nav-link { padding: 0 !important; margin: 0 !important; background: transparent !important; font-size: 1.1rem; font-weight: 400; display: flex; align-items: center; height: 100%; }
    .nav-link:hover { background-color: rgba(67, 150, 28, 0.15) !important; color: #327513 !important; }

    /* 右侧按钮组 */
    .nav-right { display: flex !important; align-items: center !important; gap: 20px !important; }
    .auth-area button { padding: 6px 16px !important; background-color: #43961c !important; color: white !important; border: none !important; border-radius: 4px !important; font-weight: 400 !important; cursor: pointer; font-size: 1rem !important; }
    .auth-area button:hover { background-color: #327513 !important; }

    /* 下拉菜单逻辑 */
    .dropdown { position: relative; height: 100%; display: flex; align-items: center; }
    .dropdown-content { display: none; position: absolute; top: 100%; left: 0; background-color: #dcedc8; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 2000; border: 2px solid #43961c; border-top: none; }
    .dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; border-bottom: 1px solid rgba(67,150,28,0.2); }
    .dropdown-content a:hover { background-color: #c5e1a5; color: #43961c; }
    .dropdown:hover .dropdown-content { display: block; }

    /* 主内容区 */
    .content { margin: 100px auto 0 !important; padding: 0 40px !important; max-width: 900px; box-sizing: border-box; }
    .hero-section .title-large { font-size: 4.5rem; margin: 0 0 15px 0; }
    .hero-section .title-small { font-size: 1.3rem; margin-bottom: 40px; }
    .text-section p { font-size: 1.15rem; line-height: 2; margin-bottom: 30px; }
    .text-section a.main-link { display: inline-block !important; background-color: transparent !important; color: #43961c !important; padding: 0 !important; border-radius: 0 !important; text-decoration: underline !important; font-size: 1.15rem !important; font-weight: 400 !important; }
    .footer { margin-top: 60px; padding-top: 30px; text-align: center; }
}

/* ===== 终极修复导航栏错位和下拉菜单对齐 ===== */
@media (min-width: 769px) {
    /* 强制左侧导航容器垂直居中，并撑满高度 */
    .nav-left {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    /* 强制下拉菜单容器撑满高度，保证文字对齐 */
    .dropdown {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 强制所有导航文字（项目、关于）垂直居中 */
    .nav-link {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* 强制右侧容器垂直居中 */
    .nav-right {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* 让语言切换图标和登录按钮也垂直居中 */
    .sidebar-lang-wrapper, .auth-area {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
}

/* ===== 电脑端专属：Logo 左下角微调 ===== */
@media (min-width: 769px) {
    .brand-logo {
        margin-left: -15px !important; /* 往左移 */
        margin-top: 15px !important;   /* 往下移 */
    }
}

/* ===== 修复 Logo 位置和语言下拉框 ===== */
@media (min-width: 769px) {
    /* Logo 往上提一点点，往左移 */
    .brand-logo {
        margin-top: 6px !important; 
        margin-left: -15px !important;
    }
}

/* 强制手机端语言下拉框绝对定位在图标下方 */
.mobile-header .lang-wrapper {
    position: relative !important;
}
.mobile-header .lang-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 10px !important;
}

/* 强制电脑端语言下拉框绝对定位在图标上方 */
@media (min-width: 769px) {
    .sidebar-lang-wrapper {
        position: relative !important;
    }
    .sidebar-lang-wrapper .lang-dropdown {
        position: absolute !important;
        top: auto !important;
        bottom: 100% !important;
        left: 0 !important;
        margin-bottom: 10px !important;
    }
}

/* 手机端顶部导航栏变矮，横线上移 */
@media (max-width: 768px) {
    .mobile-header {
        height: 55px !important; /* 原来是 60px，改小 5px */
    }
}
