/* ============================================
   CAAC.AI 中国民航人工智能创新中心
   全站共享样式表
   配色：政务蓝（#015293）+ 哑光金（#C0B283）
   ============================================ */

/* ---- 设计令牌 ---- */
:root {
    /* 红色系 - 主色调 */
    --red-primary: #015293;
    --red-dark: #01447A;
    --red-deep: #013359;
    --red-light: #3A7CB8;
    --red-bg: #E8F0F8;

    /* 黄色系 - 辅色调 */
    --yellow-primary: #C0B283;
    --yellow-dark: #A89759;
    --yellow-light: #DDD5B5;
    --yellow-bg: #F7F4EC;

    /* 中性色 */
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-light: #888;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-gray-2: #f0f1f3;
    --bg-dark: #1a1a1a;
    --bg-dark-2: #2a2a2a;
    --border-color: #e0e0e0;

    /* 渐变 */
    --gradient-main: #015293;
    --gradient-hero: #015293;
    --gradient-yellow: #C0B283;
    --gradient-red: #015293;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(1,82,147,0.12);
    --shadow-lg: 0 8px 40px rgba(1,82,147,0.18);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.08);

    /* 尺寸 */
    --header-height: 70px;
    --max-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* ---- 基础重置 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- 通用布局 ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---- 滚动渐入动画 ---- */
/* 渐入动画（默认可见，JS 加载后才启用隐藏→显示效果） */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* JS 启用后才隐藏 */
html.js-ready .fade-in {
    opacity: 0;
    transform: translateY(20px);
}
html.js-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   顶部导航栏（全站共享）
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    border-bottom: 3px solid var(--yellow-primary);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

/* LOGO 图标块：蓝底金字 */
.logo-mark {
    background: #015293;
    color: var(--yellow-primary);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    transition: all 0.3s;
}

.logo:hover .logo-mark {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* LOGO 右侧文字 */
.logo-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-info-cn {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}


.logo-info-domain {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    letter-spacing: 4px;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-left: auto;
}

.nav a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active { color: var(--red-primary); }
.nav a.active { font-weight: 700; }

/* 下划线指示器 */
.nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--red-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

/* CTA 按钮 */
.nav-cta {
    background: var(--red-primary) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--red-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.nav-cta::after { display: none; }

/* 汉堡按钮（默认隐藏，移动端显示） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px 8px;
}

.section {
    padding: 54px 0;
}

.section-gray { background: #fff; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-yellow-bg { background: #fff; }

.section-tag {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red-primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-tag.yellow {
    background: var(--yellow-bg);
    color: var(--yellow-dark);
}

.section-tag.dark {
    background: rgba(192,178,131,0.15);
    color: var(--yellow-primary);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.section-title .accent {
    color: var(--yellow-dark);
}

.section-title.white { color: #fff; }
.section-title.white .accent {
    color: var(--yellow-primary);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 30px;
}

.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* ============================================
   按钮
   ============================================ */
.btn {
    padding: 11px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--yellow-primary);
    color: #013359;
    box-shadow: 0 4px 20px rgba(192,178,131,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(192,178,131,0.55);
}

.btn-red {
    background: #015293;
    color: #fff;
    box-shadow: 0 4px 20px rgba(1,82,147,0.3);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(1,82,147,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
}

.btn-outline:hover {
    background: var(--red-primary);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ============================================
   页面横幅（子页面顶部）
   ============================================ */
.page-banner {
    background: #015293;
    padding: 40px 0 34px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a { color: var(--red-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   卡片网格
   ============================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 通用卡片 */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-border-top { border-top: 4px solid var(--red-primary); }
.card-border-top.yellow { border-top-color: var(--yellow-dark); }

/* 图标圆 */
.icon-circle {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    margin-bottom: 12px;
}

.icon-circle.red { background: #015293; color: #fff; }
.icon-circle.yellow { background: var(--yellow-dark); color: #fff; }
.icon-circle.light-red { background: var(--red-bg); color: var(--red-primary); }
.icon-circle.light-yellow { background: var(--yellow-bg); color: var(--yellow-dark); }

/* ============================================
   数据统计块
   ============================================ */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child { border-bottom: none; }

.stat-label { font-size: 14px; color: var(--text-secondary); }

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--red-primary);
}

.stat-value span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

/* 大数字展示 */
.big-stat {
    text-align: center;
}

.big-stat-num {
    font-size: 36px;
    font-weight: 900;
    color: #015293;
    line-height: 1;
}

.big-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ============================================
   时间线
   ============================================ */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #015293;
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
    margin-bottom: 8px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--red-primary);
}

.timeline-date {
    display: inline-block;
    background: var(--red-bg);
    color: var(--red-primary);
    padding: 3px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   底部 Footer（全站共享）
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 2;
    color: #999;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #999;
}

.footer-col ul li a {
    color: #999;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--yellow-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    /* 移动端导航 */
    .header { padding: 0 20px; }
    .logo { position: absolute; left: 20px; }
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    .nav.open { display: flex; }
    .nav li { width: 100%; }
    .nav a {
        display: block;
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav a::after { display: none; }
    .nav-cta {
        margin: 12px 24px;
        text-align: center;
        border-bottom: none !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}