:root {
    --kmx-primary: #ea580c;
    --kmx-accent: #d97706;
    --kmx-bg: #fffbf5;
    --kmx-text: #1c1917;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--kmx-bg);
    color: var(--kmx-text);
    line-height: 1.75;
    overflow-x: hidden;
}
::selection { background: rgba(234, 88, 12, .15); }

/* 几何色块背景 */
.deco-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; opacity: .08; }
.deco-square { position: absolute; transform: rotate(15deg); opacity: .06; }
.deco-triangle { position: absolute; width: 0; height: 0; opacity: .05; }
.dc-1 { width: 280px; height: 280px; background: var(--kmx-primary); top: 10%; left: 5%; }
.dc-2 { width: 160px; height: 160px; background: var(--kmx-accent); bottom: 20%; right: 8%; }
.dc-3 { width: 100px; height: 100px; background: var(--kmx-primary); top: 50%; left: 85%; }
.dc-4 { width: 220px; height: 220px; background: var(--kmx-accent); top: 70%; left: 15%; transform: rotate(30deg); }
.dc-5 { width: 120px; height: 120px; background: var(--kmx-primary); top: 15%; right: 20%; }
.dc-6 { border-left: 80px solid transparent; border-right: 80px solid transparent; border-bottom: 140px solid var(--kmx-accent); top: 80%; left: 70%; }
.dc-7 { width: 60px; height: 60px; background: var(--kmx-primary); top: 45%; left: 10%; transform: rotate(45deg); }
.dc-8 { width: 90px; height: 90px; background: var(--kmx-accent); bottom: 5%; left: 30%; border-radius: 50%; }

/* 滚动进度条 */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: rgba(234,88,12,0.1); }
.scroll-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--kmx-primary), var(--kmx-accent)); transition: width .1s ease; }

/* 导航 */
.navbar-kmx {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    padding: 12px 0;
}
.navbar-kmx .navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--kmx-primary) !important;
    letter-spacing: -0.5px;
}
.navbar-kmx .nav-link {
    font-weight: 600;
    color: var(--kmx-text) !important;
    margin: 0 8px;
    font-size: 0.95rem;
    position: relative;
    transition: all .2s;
}
.navbar-kmx .nav-link:hover { color: var(--kmx-primary) !important; }
.navbar-kmx .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--kmx-primary);
    transform: scaleX(0);
    transition: transform .2s;
    border-radius: 2px;
}
.navbar-kmx .nav-link:hover::after { transform: scaleX(1); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* Hero */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}
.tag-cloud span {
    background: white;
    padding: 8px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(234,88,12,0.12);
    animation: tagFloat 3s ease-in-out infinite;
    display: inline-block;
}
.tag-cloud span:nth-child(2) { animation-delay: .3s; }
.tag-cloud span:nth-child(3) { animation-delay: .6s; }
.tag-cloud span:nth-child(4) { animation-delay: .9s; }
.tag-cloud span:nth-child(5) { animation-delay: 1.2s; }
.tag-cloud span:nth-child(6) { animation-delay: 1.5s; }
.tag-cloud span:nth-child(7) { animation-delay: 1.8s; }
.tag-cloud span:nth-child(8) { animation-delay: 2.1s; }
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--kmx-text);
    letter-spacing: -1px;
    line-height: 1.2;
}
.hero-title .highlight {
    color: var(--kmx-primary);
    position: relative;
    display: inline-block;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 10px;
    background: rgba(234,88,12,0.15);
    z-index: -1;
    border-radius: 4px;
}
.hero-sub {
    font-size: 1.1rem;
    color: #78716c;
    margin-top: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-magazine {
    max-width: 900px;
    margin: 40px auto 0;
    background: linear-gradient(145deg, #fff, #fffdf9);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234,88,12,0.06);
}
.hero-magazine::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--kmx-primary), var(--kmx-accent), var(--kmx-primary));
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease infinite;
}
@keyframes shimmerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-magazine h2 {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--kmx-primary);
}
.hero-magazine p {
    color: #78716c;
    font-size: 0.95rem;
}

/* 通用区块 */
.section-padding { padding: 80px 0; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234,88,12,0.08);
    color: var(--kmx-primary);
    padding: 6px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.section-desc {
    color: #78716c;
    max-width: 650px;
    margin-bottom: 40px;
}

/* 数据统计 */
.stats-section {
    background: white;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    padding: 50px 40px;
    margin: 40px 0;
}
.stat-card {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-family: 'Courier New', monospace;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--kmx-primary);
    display: block;
}
.stat-label {
    color: #78716c;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
    max-width: 700px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--kmx-primary), var(--kmx-accent), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--kmx-bg);
    border: 3px solid var(--kmx-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(234,88,12,0.1);
}
.timeline-item h4 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.timeline-item p {
    color: #78716c;
    font-size: 0.95rem;
}

/* 标签页 */
.nav-pills .nav-link {
    border-radius: 100px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--kmx-text);
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    margin: 0 4px;
    transition: all .3s;
}
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--kmx-primary), var(--kmx-accent));
    color: white;
    box-shadow: 0 8px 20px rgba(234,88,12,0.2);
}
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all .3s;
    border: 1px solid rgba(0,0,0,0.02);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.feature-card i {
    font-size: 1.8rem;
    color: var(--kmx-primary);
    margin-bottom: 16px;
}
.feature-card h5 { font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: #78716c; font-size: 0.9rem; margin-bottom: 0; }

/* FAQ */
.accordion-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-button {
    background: white;
    font-weight: 700;
    padding: 20px 24px;
    font-size: 1rem;
}
.accordion-button:not(.collapsed) {
    background: rgba(234,88,12,0.03);
    color: var(--kmx-primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-body { color: #57534e; padding: 0 24px 24px; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--kmx-primary), var(--kmx-accent));
    border-radius: 32px;
    padding: 60px 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.cta-section h2 { font-weight: 900; font-size: 2rem; position: relative; z-index: 1; }
.cta-section p { opacity: 0.9; position: relative; z-index: 1; }
.btn-cta {
    background: white;
    color: var(--kmx-primary) !important;
    border: none;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all .3s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left .6s ease;
}
.btn-cta:hover::after { left: 100%; }

/* 页脚 */
.footer-kmx {
    background: white;
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.footer-links a {
    color: #78716c;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 12px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--kmx-primary); }
.footer-copyright { color: #a8a29e; font-size: 0.85rem; margin-top: 20px; }

/* 友链区 */
.friend-links {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}
.friend-links h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--kmx-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.friend-links p {
    margin: 0;
    color: #78716c;
    font-size: 0.9rem;
}

/* 滚动渐显 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }
.reveal-delay-4 { transition-delay: .6s; }

/* 响应式 */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.7rem; }
    .cta-section { padding: 40px 25px; }
    .stats-section { padding: 30px 20px; }
    .hero-magazine { padding: 20px; }
}

/* --- 子页面追加 --- */
/* 本页专属微调 — 复用站点变量，仅补充关于页布局细节 */
        .about-hero {
            position: relative;
            padding: 4rem 0 2rem;
        }
.about-hero .hero-title {
            font-weight: 800;
            letter-spacing: -0.02em;
        }
.about-hero .hero-sub {
            font-size: 1.1rem;
            max-width: 640px;
            color: rgba(28,25,23,0.75);
        }
.stat-pill {
            background: var(--kmx-bg);
            border: 1px solid rgba(234,88,12,0.25);
            border-radius: 40px;
            padding: 0.25rem 1.2rem;
            font-weight: 600;
            color: var(--kmx-primary);
            display: inline-block;
            font-size: 0.9rem;
        }
.about-section {
            background: rgba(255,251,245,0.6);
            border-radius: 28px;
            padding: 2rem 1.8rem;
            box-shadow: 0 4px 20px rgba(0,0,0,0.02);
            border: 1px solid rgba(234,88,12,0.08);
            margin-bottom: 2rem;
        }
.about-section h2, .about-section h3 {
            color: var(--kmx-text);
            font-weight: 700;
            letter-spacing: -0.01em;
        }
.about-section h2 i, .about-section h3 i {
            color: var(--kmx-primary);
            margin-right: 0.5rem;
        }
.about-section p, .about-section li {
            color: rgba(28,25,23,0.85);
            line-height: 1.7;
        }
.about-section ul {
            padding-left: 1.2rem;
        }
.about-section li {
            margin-bottom: 0.4rem;
        }
.timeline-marker {
            color: var(--kmx-accent);
            font-weight: 700;
            margin-right: 0.5rem;
        }
.brand-big {
            color: var(--kmx-primary);
            font-weight: 800;
        }
.navbar-kmx .nav-link.active {
            color: var(--kmx-primary) !important;
            font-weight: 600;
        }

/* --- 子页面追加 --- */
/* 确保Bootstrap组件不破坏暗色/暖色风格（如有使用则覆盖） */
        .card, .card-body, .card-header, .card-footer {
            background: var(--kmx-bg);
            color: var(--kmx-text);
            border: 1px solid rgba(234, 88, 12, 0.2);
        }
.form-control, .form-select {
            background: #fff;
            color: var(--kmx-text);
            border: 1px solid rgba(234, 88, 12, 0.3);
        }
.form-control::placeholder {
            color: rgba(28, 25, 23, 0.5);
        }
.accordion-item, .accordion-button {
            background: var(--kmx-bg);
            color: var(--kmx-text);
            border-color: rgba(234, 88, 12, 0.15);
        }
/* 指南页特有微调 */
        .guide-steps .step-number {
            font-weight: 800;
            color: var(--kmx-primary);
        }
.guide-table td, .guide-table th {
            border-color: rgba(234, 88, 12, 0.2);
        }
.guide-tip-card {
            background: rgba(234, 88, 12, 0.04);
            border-left: 4px solid var(--kmx-primary);
            padding: 1.2rem 1.5rem;
            border-radius: 0 12px 12px 0;
        }
.guide-toc a {
            color: var(--kmx-text);
            text-decoration: none;
            border-bottom: 1px dashed rgba(234, 88, 12, 0.3);
        }
.guide-toc a:hover {
            color: var(--kmx-primary);
            border-bottom-color: var(--kmx-primary);
        }

/* --- 子页面追加 --- */
.ranking-hero { padding: 6rem 0 3rem; background: linear-gradient(135deg, rgba(234,88,12,.06) 0%, rgba(217,119,6,.04) 100%); }
.rank-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; border-bottom: 2px solid rgba(234,88,12,.15); padding-bottom: 1rem; }
.rank-tab { padding: .5rem 1.25rem; border-radius: 50px; background: var(--kmx-bg); border: 1px solid rgba(234,88,12,.25); color: var(--kmx-text); font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .3s; }
.rank-tab:hover, .rank-tab.active { background: var(--kmx-primary); color: #fff; border-color: var(--kmx-primary); }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; padding: 1rem .5rem; border-bottom: 1px solid rgba(234,88,12,.1); transition: background .3s; }
.rank-list li:hover { background: rgba(234,88,12,.05); }
.rank-num { font-size: 1.5rem; font-weight: 800; width: 3.5rem; text-align: center; font-style: italic; }
.rank-num.r1 { color: var(--kmx-primary); font-size: 2rem; }
.rank-num.r2 { color: var(--kmx-accent); font-size: 1.8rem; }
.rank-num.r3 { color: #9a3412; font-size: 1.6rem; }
.rank-num.other { color: rgba(28,25,23,.35); }
.rank-info { flex: 1; padding: 0 1rem; }
.rank-title { font-weight: 700; font-size: 1.05rem; color: var(--kmx-text); margin-bottom: .15rem; }
.rank-meta { font-size: .85rem; color: rgba(28,25,23,.6); }
.rank-badge { font-size: .75rem; padding: .25rem .6rem; border-radius: 4px; font-weight: 600; }
.badge-hot { background: rgba(234,88,12,.15); color: var(--kmx-primary); }
.badge-new { background: rgba(22,163,74,.12); color: #16a34a; }
.badge-trend { background: rgba(217,119,6,.15); color: var(--kmx-accent); }
.rank-score { font-weight: 700; font-size: 1.1rem; color: var(--kmx-primary); min-width: 3.5rem; text-align: right; }
.rank-change { font-size: .8rem; color: rgba(28,25,23,.5); margin-top: .2rem; }
.rank-up { color: #16a34a; }
.rank-down { color: #dc2626; }
.rank-equal { color: rgba(28,25,23,.4); }
.rank-card { background: rgba(234,88,12,.03); border: 1px solid rgba(234,88,12,.1); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.rank-card-title { font-size: 1.2rem; font-weight: 700; color: var(--kmx-primary); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.rank-card-desc { font-size: .9rem; color: rgba(28,25,23,.7); margin-bottom: 0; }
.ranking-hero { padding: 4rem 0 2rem; }
.rank-num { width: 2.5rem; font-size: 1.2rem; }
.rank-num.r1 { font-size: 1.6rem; }
.rank-num.r2 { font-size: 1.4rem; }
.rank-num.r3 { font-size: 1.3rem; }
.rank-score { font-size: 1rem; min-width: 3rem; }

/* --- 子页面追加 --- */
.disclaimer-content { max-width: 900px; margin: 0 auto; }
.disclaimer-section { margin-bottom: 3rem; }
.disclaimer-section h2 { color: var(--kmx-primary); font-weight: 800; margin-bottom: 1.2rem; }
.disclaimer-section h3 { color: var(--kmx-text); font-weight: 700; margin-bottom: 1rem; }
.disclaimer-section p, .disclaimer-section li { line-height: 1.8; color: var(--kmx-text); opacity: .9; }
.disclaimer-section ul { padding-left: 1.5rem; }
.disclaimer-section li { margin-bottom: .5rem; }
.disclaimer-card { background: rgba(234,88,12,.04); border-left: 4px solid var(--kmx-primary); padding: 1.5rem 2rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.disclaimer-card p { margin-bottom: 0; }
.disclaimer-meta { font-size: .9rem; color: var(--kmx-text); opacity: .6; margin-bottom: 2rem; }

/* --- 子页面追加 --- */
.privacy-card {
            background: rgba(255, 251, 245, 0.7);
            border: 1px solid rgba(234, 88, 12, 0.15);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 1.5rem;
            backdrop-filter: blur(4px);
        }
.privacy-card h2 {
            color: var(--kmx-primary);
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
.privacy-card p {
            color: var(--kmx-text);
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 0.8rem;
        }
.privacy-card ul {
            color: var(--kmx-text);
            padding-left: 1.2rem;
            margin-bottom: 0.8rem;
        }
.privacy-card ul li {
            margin-bottom: 0.4rem;
            line-height: 1.6;
            font-size: 0.95rem;
        }
.privacy-card strong {
            color: var(--kmx-primary);
        }
.last-updated {
            display: inline-block;
            background: var(--kmx-primary);
            color: #fff;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
        }
.table-of-contents {
            background: rgba(234, 88, 12, 0.05);
            border-left: 3px solid var(--kmx-primary);
            padding: 1.2rem 1.5rem;
            border-radius: 0 8px 8px 0;
            margin-bottom: 2rem;
        }
.table-of-contents h3 {
            color: var(--kmx-primary);
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
        }
.table-of-contents a {
            color: var(--kmx-text);
            text-decoration: none;
            display: block;
            padding: 0.25rem 0;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
.table-of-contents a:hover {
            color: var(--kmx-primary);
        }
.cookie-badge {
            display: inline-block;
            background: var(--kmx-accent);
            color: #fff;
            padding: 0.2rem 0.8rem;
            border-radius: 12px;
            font-size: 0.8rem;
            margin-right: 0.5rem;
        }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.table { color:#1c1917 !important; border-color:rgba(0,0,0,.12) !important; --bs-table-bg:transparent !important; --bs-table-color:#1c1917 !important; }
.accordion-header { background:transparent !important; }
