:root {
    /* 品牌色 */
    --primary-color: #C30A0B;
    --primary-hover: #a30809;

    /* iOS 风格背景体系 */
    --bg-body: #F5F5F7;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* 文本颜色 */
    --text-main: #1D1D1F;
    --text-secondary: #86868B;

    /* 布局变量 */
    --container-width: 1400px;
    --header-height: 80px; /* 默认高度 */
    --radius-lg: 24px;
}

/* --- 基础重置 --- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    /* 注意：因为Header现在是fixed且透明的，body不需要padding-top，
       由各页面的首个section负责margin-top或padding-top */
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 核心特效 --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Header (PC端逻辑) --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
    color: #fff; /* 默认白色文字 */
}

/* 滚动后的 Header (变白、变矮) */
header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 60px;
    color: var(--text-main); /* 滚动后文字变黑 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: inherit; z-index: 1002; }
.logo-icon { color: var(--primary-color); font-size: 24px; }

/* PC 菜单 */
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: inherit;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.2);
}
/* 滚动后 hover 样式 */
header.scrolled .nav-menu a:hover, header.scrolled .nav-menu a.active {
    background: var(--primary-color);
    color: #fff;
}

.nav-menu .search,
.nav-menu .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-menu .search:hover,
.nav-menu .btn-login:hover {
    background: none !important;
}

.nav-menu .btn-login:hover svg path {
    fill: var(--primary-color);
}

    /* --- 移动端切换按钮 (PC端必须强制隐藏) --- */
.mobile-toggle {
    display: none; /* 关键修复：PC端隐藏 */
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    z-index: 1002; /* 保证在菜单遮罩层之上 */
}

/* --- 移动端适配 (Max Width 768px) --- */
@media (max-width: 768px) {
    /* 显示切换按钮 */
    .mobile-toggle { display: block; }

    /* 移动端菜单样式 - 这是一个全屏玻璃遮罩 */
    .nav-menu {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.95); /* 不透明度高一点，防止背景干扰 */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        opacity: 0;
    }

    /* 菜单打开状态 */
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        padding: 120px 0;
        overflow: auto;
    }

    /* 移动端菜单链接样式 */
    .nav-menu a {
        font-size: 1rem;
        color: var(--text-main); /* 移动端菜单永远是黑字 */
        font-weight: 600;
    }

    /* 修正移动端Logo颜色，防止在白色菜单背景下看不见白Logo */
    header.mobile-open { color: var(--text-main); }
}

/* --- Footer --- */
footer {
    background: #fff;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 16px; font-weight: 600; }
.footer-col a { display: block; margin-bottom: 12px; color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--primary-color); }
.copyright { text-align: center; color: var(--text-secondary); font-size: 12px; border-top: 1px solid #eee; padding-top: 20px; }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; }
}

/* --- 通用 UI 组件 --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(195, 10, 11, 0.25); }
.btn-outline { background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.5px; }
.section-title p { color: var(--text-secondary); font-size: 16px; }




/* --- Auth Modal (登录弹窗 & 独立页面通用样式) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.show { display: flex; opacity: 1; }

.auth-modal {
    background: #fff; width: 420px; border-radius: 24px; padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    max-width: 86%;
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.show .auth-modal { transform: scale(1); }

.auth-header { text-align: center; margin-bottom: 25px; }
.auth-title { font-size: 22px; font-weight: 700; color: #1d1d1f; }

/* iOS 风格分段控制器 (Tab Switcher) */
.auth-tabs {
    display: flex; background: #F5F5F7; padding: 4px; border-radius: 12px; margin-bottom: 25px;
}
.auth-tab-item {
    flex: 1; text-align: center; padding: 8px 0; font-size: 14px; font-weight: 500;
    color: #666; cursor: pointer; border-radius: 8px; transition: all 0.3s;
}
.auth-tab-item.active {
    background: #fff; color: var(--primary-color); font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 登录面板容器 */
.auth-panel { display: none; animation: fadeIn 0.3s ease; }
.auth-panel.active { display: block; }

/* 输入框组 */
.input-group { position: relative; margin-bottom: 20px; }
.auth-input {
    width: 100%; padding: 14px 20px;
    background: #f9f9f9; border: 1px solid transparent; border-radius: 12px;
    font-size: 15px; outline: none; transition: 0.3s;
}
.auth-input:focus { background: #fff; border-color: var(--primary-color); }

/* 验证码按钮 */
.code-btn {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 13px; padding: 6px 12px;
    background: transparent; border: 1px solid rgba(195,10,11,0.2);
    color: var(--primary-color); border-radius: 6px; cursor: pointer;
    transition: 0.2s;
}
.code-btn:hover { background: var(--primary-color); color: #fff; }
.code-btn.disabled { color: #999; border-color: #ddd; background: transparent; cursor: not-allowed; }

/* 登录按钮 */
.auth-btn {
    width: 100%; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 600;
    border: none; background: var(--primary-color); color: #fff; cursor: pointer;
    box-shadow: 0 5px 15px rgba(195,10,11,0.3); transition: 0.2s;
}
.auth-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* 微信扫码样式 */
.wx-login-box { text-align: center; padding: 10px 0; }
.wx-qrcode {
    width: 180px; height: 180px; margin: 0 auto 15px;
    background-image: url("https://api.qrserver.com/v1/create-qr-code/?size=180x180&data=WeChatLoginDemo"); /* 演示用二维码 */
    background-size: cover; border-radius: 12px; border: 1px solid #eee; padding: 10px;
}
.wx-tip { font-size: 13px; color: #888; display: flex; align-items: center; justify-content: center; gap: 6px; }
.wx-icon { width: 16px; height: 16px; background: #07c160; border-radius: 50%; }

/* 底部链接 */
.auth-links { margin-top: 20px; text-align: center; font-size: 13px; color: #999; display: flex; justify-content: space-between; }
.auth-links a { color: #666; text-decoration: none; }
.auth-links a:hover { color: var(--primary-color); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
