/* ============================================
   财金协同促消费数字人民币服务平台 - 主样式
   江苏省国金数联科技有限公司
   ============================================ */

:root {
    /* 主色调 - 金融科技蓝 */
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --primary-50: #E3F2FD;
    --primary-100: #BBDEFB;

    /* 数币特色色 */
    --accent: #FF6B35;
    --accent-light: #FFE0CC;

    /* 辅助色 */
    --success: #43A047;
    --warning: #FB8C00;
    --danger: #E53935;
    --purple: #8E24AA;
    --cyan: #00ACC1;

    /* 中性色 */
    --bg: #F5F7FA;
    --bg-card: #FFFFFF;
    --border: #E0E6ED;
    --text-primary: #1A2332;
    --text-secondary: #546E7A;
    --text-muted: #90A4AE;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-success: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 16px rgba(21,101,192,0.2);

    /* 圆角 */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html, body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; vertical-align: middle; }

/* ============ 布局 ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col { padding: 0 12px; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (max-width: 768px) {
    .col-3, .col-4, .col-6, .col-8 { flex: 0 0 100%; max-width: 100%; }
}

/* ============ 顶部导航 ============ */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
}
.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-primary);
}
.nav-menu {
    display: flex;
    gap: 4px;
    margin-left: 48px;
    flex: 1;
}
.nav-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
    background: var(--primary-50);
    color: var(--primary);
}
.nav-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-tag {
    padding: 4px 10px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}
.nav-btn {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-primary); }

/* ============ Hero区 ============ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero h1 .accent { color: #FFD180; }
.hero .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 720px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: white;
    color: var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-accent {
    background: var(--gradient-accent);
    color: white;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,53,0.3); }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.stat {
    border-left: 3px solid #FFD180;
    padding-left: 16px;
}
.stat-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #FFD180, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 13px; opacity: 0.85; }

/* ============ 区块标题 ============ */
.section { padding: 80px 0; }
.section-alt { background: white; }
.section-title-wrap { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ 卡片 ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid transparent;
    height: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--shadow-primary);
}
.card-icon.accent { background: var(--gradient-accent); box-shadow: 0 4px 16px rgba(255,107,53,0.3); }
.card-icon.success { background: var(--gradient-success); box-shadow: 0 4px 16px rgba(67,160,71,0.3); }
.card-icon.purple { background: linear-gradient(135deg, #8E24AA, #6A1B9A); box-shadow: 0 4px 16px rgba(142,36,170,0.3); }
.card-icon.cyan { background: linear-gradient(135deg, #00ACC1, #00838F); box-shadow: 0 4px 16px rgba(0,172,193,0.3); }
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.card-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 16px;
}
.card-list {
    list-style: none;
    padding: 0;
}
.card-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: var(--text-secondary);
    font-size: 13px;
}
.card-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ============ 标签 ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary-50);
    color: var(--primary);
}
.badge-success { background: #E8F5E9; color: var(--success); }
.badge-warning { background: #FFF3E0; color: var(--warning); }
.badge-danger { background: #FFEBEE; color: var(--danger); }
.badge-purple { background: #F3E5F5; color: var(--purple); }
.badge-accent { background: var(--accent-light); color: var(--accent); }

/* ============ 架构图 ============ */
.arch-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}
.arch-layer {
    background: var(--primary-50);
    border: 1.5px solid var(--primary-100);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.arch-layer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.arch-layer-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.arch-arrow {
    text-align: center;
    color: var(--primary);
    font-size: 20px;
    margin: -4px 0;
    font-weight: 700;
}

/* ============ 表格 ============ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th {
    background: var(--primary-50);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 2px solid var(--primary-100);
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--bg); }

/* ============ 数据展示 ============ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.kpi-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-card.green { border-left-color: var(--success); }
.kpi-card.orange { border-left-color: var(--accent); }
.kpi-card.purple { border-left-color: var(--purple); }
.kpi-card.cyan { border-left-color: var(--cyan); }
.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: -apple-system, "SF Pro Display", sans-serif;
}
.kpi-unit { font-size: 14px; color: var(--text-secondary); margin-left: 4px; font-weight: 500; }
.kpi-trend {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}
.kpi-trend.down { color: var(--danger); }

/* ============ 场景卡片 ============ */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.scenario-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.scenario-card.featured {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-color: var(--accent);
}
.scenario-card.featured::after {
    content: '★ 独家';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}
.scenario-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}
.scenario-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.scenario-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.scenario-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============ 时间线 ============ */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-100);
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
}
.timeline-item.featured::before { background: var(--accent); border-color: var(--accent); }
.timeline-year {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.timeline-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

/* ============ 端门户导航 ============ */
.portal-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.portal-tab {
    padding: 16px 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-width: 160px;
}
.portal-tab.active, .portal-tab:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}
.portal-tab.g.active { border-color: var(--primary); }
.portal-tab.b.active { border-color: var(--accent); }
.portal-tab.c.active { border-color: var(--success); }
.portal-tab-icon {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 800;
}
.portal-tab-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.portal-tab-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============ 流程图 ============ */
.flow-steps {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.flow-step {
    flex: 1;
    min-width: 140px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    position: relative;
}
.flow-step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
}
.flow-step-title { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.flow-step-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.flow-arrow {
    align-self: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

/* ============ Footer ============ */
.footer {
    background: #0D1B2A;
    color: #B0BEC5;
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li {
    padding: 6px 0;
    font-size: 13px;
}
.footer-col a { color: #B0BEC5; }
.footer-col a:hover { color: white; }
.footer-brand {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-bottom {
    border-top: 1px solid #1E3A52;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #78909C;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 24px; }
    .nav-menu { display: none; }
}

/* ============ 通用工具 ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============ 数字人民币特色装饰 ============ */
.dcny-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.dcny-badge::before {
    content: '¥';
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    font-weight: 800;
}

/* ============ 模拟手机/界面框 ============ */
.mockup-frame {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    border: 1px solid var(--border);
}

/* ============ 标签页 ============ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* ============ 进度条 ============ */
.progress {
    background: var(--border);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.6s;
}
.progress-bar.success { background: var(--gradient-success); }
.progress-bar.accent { background: var(--gradient-accent); }

/* ============ 公告 ============ */
.notice {
    background: linear-gradient(90deg, var(--primary-50), transparent);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 16px 0;
}
.notice-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 10px;
    font-weight: 700;
}

/* ============ 数字滚动效果 ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .nav-menu { margin-left: 24px; }
    .nav-menu a { padding: 8px 10px; font-size: 13px; }
    .col-3, .col-4 { flex: 0 0 50%; max-width: 50%; }
}