/* style.css - 2025 最终版 */

/* --- 1. 全局设置 --- */
:root {
    --primary: #003366; /* 商务蓝 */
    --accent: #C8102E;  /* 行动红 */
    --gold: #D4AF37;    /* 信任金 */
    --text: #333333;    /* 正文灰 */
    --bg: #F4F7F9;      /* 背景色 */
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    /* 强制系统字体，中国访问秒开 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text); line-height: 1.6; background-color: var(--bg);
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent); }
ul { list-style: none; padding: 0; margin: 0; }
main { flex: 1; }

/* --- 2. 布局组件 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section { padding: 80px 0; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 30px; border-radius: 6px; font-weight: bold; cursor: pointer; text-align: center; white-space: nowrap; }
.btn-red { background: var(--accent); color: white; border: none; }
.btn-red:hover { background: #a00c24; color: white; }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: white; background: rgba(255,255,255,0.1); }
.btn-outline:hover { background: rgba(255,255,255,0.2); color: white; }
.btn-blue { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-blue:hover { background: var(--primary); color: white; }
.btn-block { display: block; width: 100%; }

/* --- 3. 顶部与导航 --- */
.top-disclaimer {
    background-color: #fff3cd; color: #856404; font-size: 12px;
    text-align: center; padding: 8px 20px; border-bottom: 1px solid #ffeeba;
}

header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: #666; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: bold; }

/* --- 4. 核心网格布局 (修复版) --- */
/* 首页 3列 */
.grid-3 { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; 
}
/* 快速通道 2列 */
.grid-2 { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: stretch; max-width: 900px; margin: 0 auto; 
}

/* 卡片 */
.card { 
    background: white; border: 1px solid #e5e7eb; border-radius: 12px; 
    padding: 40px 30px; transition: 0.3s; position: relative; 
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.card.popular { border: 2px solid var(--gold); transform: scale(1.05); z-index: 10; } 

.tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; white-space: nowrap; }
.price { font-size: 42px; font-weight: 800; color: var(--primary); margin: 20px 0; }
.price.accent { color: var(--accent); }
.features li { margin-bottom: 12px; font-size: 14px; color: #555; display: flex; align-items: center; gap: 8px; }

/* --- 5. 页面元素 --- */
.page-header { background: var(--primary); color: white; padding: 60px 0; text-align: center; }
.page-header h1 { margin: 0; font-size: 36px; }
.page-header p { opacity: 0.9; margin-top: 10px; font-size: 18px; }

/* FAQ */
details { background: white; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-bottom: 15px; cursor: pointer; }
summary { font-weight: bold; color: #333; outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; color: var(--primary); font-size: 20px; font-weight: bold; }
details[open] summary::after { content: '-'; }
details p { margin-top: 15px; color: #666; font-size: 15px; line-height: 1.6; }

/* --- 6. 页脚 (修复版) --- */
footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 60px 0 40px; text-align: center; font-size: 14px; margin-top: auto; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin: 25px 0; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }

/* --- 7. Cookie 弹窗 --- */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    background: white; padding: 20px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 999;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 600px; margin: 0 auto; border: 1px solid #eee;
}
.cookie-btn { background: var(--primary); color: white; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer; }

/* --- 8. 手机适配 --- */
@media (max-width: 900px) {
    .nav-links { display: none; } /* 手机隐藏菜单 */
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
    .card.popular { transform: none; margin: 20px 0; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
    .footer-links { gap: 15px; font-size: 12px; }
}