/* ===== 薪火教育 - 特色详情页共享样式 ===== */
:root {
    --primary: #1a2a5e;
    --primary-dark: #0f1a3d;
    --primary-light: #2d4594;
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-glow: rgba(249, 115, 22, 0.3);
    --flame: linear-gradient(135deg, #f97316, #ef4444, #fbbf24);
    --bg: #fafbfc;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-flame: 0 0 30px rgba(249,115,22,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 40px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.98);
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.nav-logo {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--flame);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white;
    box-shadow: var(--shadow-flame);
    position: relative;
}
.nav-brand-text {
    font-size: 22px; font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.nav-brand-sub {
    font-size: 11px; color: var(--text-muted);
    letter-spacing: 3px; text-transform: uppercase;
}
.nav-links {
    display: flex; align-items: center; gap: 8px;
    list-style: none;
}
.nav-links a {
    padding: 8px 18px;
    text-decoration: none; color: var(--text);
    font-size: 15px; font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    background: rgba(249,115,22,0.06);
}
.nav-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--bg-soft);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px; font-weight: 500;
    transition: all 0.2s ease;
}
.nav-back:hover {
    background: rgba(249,115,22,0.1);
    color: var(--accent);
}

/* ===== Hero区域 ===== */
.feature-hero {
    min-height: 420px;
    padding: 140px 40px 80px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.feature-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(249,115,22,0.04) 0%, transparent 100%);
    z-index: 0;
}
.feature-hero-content {
    position: relative; z-index: 1;
    max-width: 800px;
}
.feature-hero-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(249,115,22,0.1);
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.feature-hero-icon {
    font-size: 72px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}
.feature-hero h1 {
    font-size: 42px; font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}
.feature-hero p {
    font-size: 18px; color: var(--text-light);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
}

/* ===== 内容区域 ===== */
.feature-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 40px;
}
.feature-section.alt {
    background: var(--bg-soft);
    max-width: 100%;
}
.feature-section.alt > .feature-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.feature-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.feature-section-header h2 {
    font-size: 32px; font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-section-header p {
    font-size: 16px; color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--flame);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.info-card:hover::before { transform: scaleX(1); }
.info-card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.info-card h3 {
    font-size: 20px; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}
.info-card p {
    font-size: 15px; color: var(--text-light);
    line-height: 1.8;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute; left: 12px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--primary-light));
}
.timeline-item {
    position: relative;
    padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -34px; top: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--accent);
    z-index: 1;
}
.timeline-item h3 {
    font-size: 20px; font-weight: 700;
    color: var(--text); margin-bottom: 8px;
}
.timeline-item .timeline-date {
    font-size: 13px; color: var(--accent);
    font-weight: 600; margin-bottom: 8px;
}
.timeline-item p {
    font-size: 15px; color: var(--text-light);
    line-height: 1.8;
}

/* ===== 阶梯式布局 ===== */
.staircase {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}
.stair-step {
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}
.stair-step:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
    z-index: 2;
}
.stair-step-header {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 20px;
}
.stair-step-num {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--flame);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-flame);
}
.stair-step-title {
    font-size: 22px; font-weight: 700;
    color: var(--text);
}
.stair-step-age {
    font-size: 14px; color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}
.stair-step-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.stair-step-col h4 {
    font-size: 14px; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.stair-step-col ul {
    list-style: none;
}
.stair-step-col li {
    font-size: 14px; color: var(--text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.stair-step-col li::before {
    content: '✦';
    position: absolute; left: 0;
    color: var(--accent);
    font-size: 12px;
}
.stair-arrow {
    text-align: center;
    font-size: 28px;
    color: var(--accent);
    margin: -8px 0;
    z-index: 1;
}

/* ===== 数据展示 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0;
}
.stat-block {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.stat-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.stat-block-num {
    font-size: 42px; font-weight: 800;
    background: var(--flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.stat-block-label {
    font-size: 14px; color: var(--text-light);
}

/* ===== 表格 ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}
.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px; font-weight: 600;
}
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px; color: var(--text);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(249,115,22,0.03); }

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.tag-orange { background: rgba(249,115,22,0.1); color: var(--accent); }
.tag-blue { background: rgba(45,69,148,0.1); color: var(--primary-light); }
.tag-green { background: rgba(34,197,94,0.1); color: #16a34a; }
.tag-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.tag-pink { background: rgba(236,72,153,0.1); color: #db2777; }

/* ===== CTA区域 ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 40px;
    text-align: center;
    color: white;
}
.cta-section h2 {
    font-size: 32px; font-weight: 700;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 16px; opacity: 0.85;
    margin-bottom: 32px;
}
.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--flame);
    color: white;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-flame);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249,115,22,0.4);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 40px 24px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
    font-size: 14px; line-height: 1.8;
    margin-top: 16px;
}
.footer-col h4 {
    color: white; font-size: 16px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stair-step-body { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .feature-hero { padding: 120px 20px 60px; }
    .feature-hero h1 { font-size: 30px; }
    .feature-hero p { font-size: 16px; }
    .feature-section { padding: 60px 20px; }
    .feature-section-header h2 { font-size: 26px; }
    .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .stair-step { padding: 24px 20px; }
    .stair-step-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .comparison-table { font-size: 13px; }
    .comparison-table th, .comparison-table td { padding: 12px 14px; }
}
