/* xkh08 - 午夜蓝 | 星空官方网站复刻 */
:root {
    --xkh-primary: #191970;
    --xkh-primary-light: #282898;
    --xkh-secondary: #daa520;
    --xkh-secondary-hover: #e6bc3a;
    --xkh-accent: #f0c840;
    --xkh-bg: #ffffff;
    --xkh-section: #f3f3f9;
    --xkh-dark: #0f0f48;
    --xkh-text-primary: #191970;
    --xkh-text-secondary: #4a4a6a;
    --xkh-text-muted: #7a7a9a;
    --xkh-text-light: #e8e8f0;
    --xkh-border: #e2e4f0;
    --xkh-radius: 12px;
    --xkh-radius-sm: 8px;
    --xkh-radius-lg: 20px;
    --xkh-shadow-sm: 0 2px 8px rgba(18,20,48,0.06);
    --xkh-shadow-md: 0 8px 30px rgba(18,20,48,0.08);
    --xkh-shadow-lg: 0 20px 60px rgba(18,20,48,0.10);
    --xkh-shadow-gold: 0 4px 20px rgba(218,165,32,0.25);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',sans-serif; color: var(--xkh-text-primary); background: var(--xkh-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--xkh-primary); text-decoration: none; transition: .3s; }
a:hover { color: var(--xkh-secondary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; padding: 0 1.25rem; margin: 0 auto; }

/* Header */
.xkh-header { position: sticky; top: 0; z-index: 1050; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--xkh-border); box-shadow: 0 1px 12px rgba(18,20,48,.04); }
.xkh-navbar-top { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; }
.xkh-brand { font-size: 1.5rem; font-weight: 800; color: var(--xkh-primary); display: flex; align-items: center; gap: .5rem; }
.xkh-brand:hover { color: var(--xkh-primary); }
.xkh-brand-icon { width: 36px; height: 36px; background: var(--xkh-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--xkh-secondary); font-size: 1.1rem; }
.xkh-top-actions { display: flex; align-items: center; gap: 1rem; }
.xkh-search-toggle { background: none; border: none; color: var(--xkh-text-secondary); font-size: 1.2rem; padding: .4rem .6rem; border-radius: var(--xkh-radius-sm); cursor: pointer; }
.xkh-search-toggle:hover { color: var(--xkh-primary); background: var(--xkh-section); }
.xkh-btn-sub { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1.2rem; background: var(--xkh-secondary); color: var(--xkh-primary); font-weight: 600; border-radius: var(--xkh-radius-sm); font-size: .9rem; border: none; cursor: pointer; }
.xkh-btn-sub:hover { background: var(--xkh-secondary-hover); color: var(--xkh-primary); }
.xkh-channel { display: flex; align-items: center; gap: .25rem; padding: .3rem 0 0; }
.xkh-tab { display: inline-flex; align-items: center; padding: .5rem 1.2rem; font-size: .95rem; font-weight: 500; color: var(--xkh-text-secondary); border-radius: 100px; transition: .3s; }
.xkh-tab:hover { color: var(--xkh-primary); background: rgba(18,20,48,.05); }
.xkh-tab.active { color: #fff; background: var(--xkh-primary); font-weight: 600; box-shadow: var(--xkh-shadow-sm); }
.xkh-tab i { margin-right: .4rem; font-size: .85rem; }
.xkh-hamburger { display: none; border: none; background: none; font-size: 1.4rem; color: var(--xkh-primary); cursor: pointer; }

/* Hero */
.xkh-hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: var(--xkh-dark); overflow: hidden; }
.xkh-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(11,13,26,.92) 0%,rgba(11,13,26,.70) 50%,rgba(11,13,26,.88) 100%); z-index: 1; }
.xkh-hero-content { position: relative; z-index: 2; padding: 4rem 0; }
.xkh-hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(218,165,32,.15); backdrop-filter: blur(10px); border: 1px solid rgba(218,165,32,.25); padding: .4rem 1.2rem; border-radius: 100px; color: var(--xkh-accent); font-size: .9rem; font-weight: 500; margin-bottom: 1.5rem; }
.xkh-hero h1 { font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.xkh-hero h1 .hl { color: var(--xkh-accent); }
.xkh-hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.7); max-width: 580px; line-height: 1.8; margin-bottom: 2rem; }
.xkh-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.xkh-btn-primary { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 2.4rem; background: var(--xkh-secondary); color: var(--xkh-primary); font-weight: 700; border-radius: var(--xkh-radius); font-size: 1.1rem; box-shadow: var(--xkh-shadow-gold); border: none; cursor: pointer; }
.xkh-btn-primary:hover { background: var(--xkh-secondary-hover); transform: translateY(-2px); color: var(--xkh-primary); }
.xkh-btn-outline { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 2.4rem; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); border-radius: var(--xkh-radius); font-weight: 600; font-size: 1.1rem; cursor: pointer; }
.xkh-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; transform: translateY(-2px); }
.xkh-hero-stat { display: flex; align-items: center; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.xkh-hero-stat-number { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.xkh-hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: .2rem; }

/* Section Common */
.xkh-section { padding: 6rem 0; }
.xkh-section-sm { padding: 4rem 0; }
.xkh-section-alt { background: var(--xkh-section); }
.xkh-label { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--xkh-secondary); margin-bottom: .75rem; position: relative; padding-left: 2rem; }
.xkh-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 1.25rem; height: 2px; background: var(--xkh-secondary); transform: translateY(-50%); }
.xkh-title { font-size: 2.2rem; font-weight: 700; color: var(--xkh-text-primary); margin-bottom: 1rem; }
.xkh-subtitle { font-size: 1.1rem; color: var(--xkh-text-secondary); max-width: 600px; }
.xkh-text { font-size: 1.0625rem; color: var(--xkh-text-secondary); line-height: 1.8; }

/* About */
.xkh-check { display: flex; align-items: center; gap: .5rem; }
.xkh-check i { color: var(--xkh-secondary); }

/* Category Cards */
.xkh-cat-card { position: relative; border-radius: var(--xkh-radius); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; background: var(--xkh-dark); box-shadow: var(--xkh-shadow-md); transition: .3s; }
.xkh-cat-card:hover { transform: translateY(-6px); box-shadow: var(--xkh-shadow-lg); }
.xkh-cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; transition: .3s; }
.xkh-cat-card:hover .xkh-cat-bg { opacity: .65; transform: scale(1.05); }
.xkh-cat-overlay { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(11,13,26,.85) 0%,rgba(11,13,26,.2) 70%,transparent 100%); z-index: 1; }
.xkh-cat-body { position: relative; z-index: 2; padding: 2rem 1.8rem; color: #fff; width: 100%; }
.xkh-cat-icon { width: 48px; height: 48px; background: rgba(218,165,32,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--xkh-accent); margin-bottom: 1rem; }
.xkh-cat-body h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.xkh-cat-body p { font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.xkh-cat-link { color: var(--xkh-accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.xkh-cat-link:hover { color: var(--xkh-secondary-hover); }

/* News */
.xkh-news-item { background: #fff; border: 1px solid var(--xkh-border); border-radius: var(--xkh-radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--xkh-shadow-sm); transition: .3s; }
.xkh-news-item:hover { box-shadow: var(--xkh-shadow-md); transform: translateY(-2px); }
.xkh-news-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.xkh-news-item h3 a { color: var(--xkh-text-primary); } .xkh-news-item h3 a:hover { color: var(--xkh-secondary); }
.xkh-news-item p { font-size: .9rem; color: var(--xkh-text-secondary); margin-bottom: .5rem; }
.xkh-news-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--xkh-text-muted); }
.xkh-sidebar { background: var(--xkh-section); border-radius: var(--xkh-radius); padding: 1.5rem; }
.xkh-sidebar h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.xkh-sidebar h4 i { color: var(--xkh-secondary); margin-right: .5rem; }
.xkh-hot-item { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--xkh-border); font-size: .95rem; }
.xkh-hot-item:last-child { border-bottom: none; }
.xkh-hot-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 4px; background: var(--xkh-section); color: var(--xkh-text-primary); font-size: .8rem; font-weight: 700; flex-shrink: 0; }

/* Stats */
.xkh-stats { background: var(--xkh-dark); position: relative; overflow: hidden; }
.xkh-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.xkh-stat { text-align: center; padding: 1.5rem; background: rgba(255,255,255,.04); border-radius: var(--xkh-radius); border: 1px solid rgba(255,255,255,.06); }
.xkh-stat-icon { font-size: 1.6rem; color: rgba(218,165,32,.3); margin-bottom: .6rem; }
.xkh-stat-num { font-size: 2.8rem; font-weight: 800; color: var(--xkh-accent); line-height: 1.2; }
.xkh-stat-label { font-size: .95rem; color: rgba(255,255,255,.6); margin-top: .3rem; }

/* Features */
.xkh-feat { text-align: center; padding: 2rem 1.5rem; border-radius: var(--xkh-radius); background: #fff; box-shadow: var(--xkh-shadow-sm); border: 1px solid var(--xkh-border); transition: .3s; height: 100%; }
.xkh-feat:hover { box-shadow: var(--xkh-shadow-md); transform: translateY(-4px); border-color: var(--xkh-secondary); }
.xkh-feat-icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; background: var(--xkh-section); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--xkh-secondary); transition: .3s; }
.xkh-feat:hover .xkh-feat-icon { background: var(--xkh-secondary); color: #fff; }
.xkh-feat h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.xkh-feat p { font-size: .95rem; color: var(--xkh-text-secondary); line-height: 1.7; margin-bottom: 0; }

/* FAQ */
.xkh-faq-item { background: #fff; border-radius: var(--xkh-radius); margin-bottom: .75rem; box-shadow: var(--xkh-shadow-sm); overflow: hidden; }
.xkh-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; color: var(--xkh-text-primary); background: #fff; border: none; width: 100%; text-align: left; }
.xkh-faq-q::after { content: '+'; font-size: 1.4rem; color: var(--xkh-secondary); transition: transform .3s; }
.xkh-faq-item.active .xkh-faq-q::after { transform: rotate(45deg); }
.xkh-faq-a { padding: 0 1.5rem 1.2rem; color: var(--xkh-text-secondary); font-size: .95rem; line-height: 1.8; display: none; }
.xkh-faq-item.active .xkh-faq-a { display: block; }

/* CTA */
.xkh-cta { background: var(--xkh-dark); text-align: center; padding: 6rem 0; }
.xkh-cta h2 { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.xkh-cta p { font-size: 1.1rem; color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 2rem; }
.xkh-cta-form { display: flex; max-width: 480px; margin: 0 auto; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.xkh-cta-form input { flex: 1; min-width: 200px; padding: .85rem 1.2rem; border-radius: var(--xkh-radius-sm); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; }
.xkh-cta-form input::placeholder { color: rgba(255,255,255,.4); }
.xkh-cta-form input:focus { outline: none; background: rgba(255,255,255,.12); border-color: var(--xkh-secondary); }
.xkh-cta-small { font-size: .85rem; color: rgba(255,255,255,.3); margin-top: 1rem; }

/* Footer */
.xkh-footer { background: var(--xkh-dark); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.xkh-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2.5rem; }
.xkh-footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.xkh-footer-brand-icon { width: 32px; height: 32px; background: var(--xkh-secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--xkh-dark); font-size: .9rem; }
.xkh-footer-desc { color: rgba(255,255,255,.45); font-size: .9rem; max-width: 320px; line-height: 1.7; }
.xkh-footer h5 { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem; }
.xkh-footer ul { list-style: none; padding: 0; margin: 0; } .xkh-footer ul li { margin-bottom: .5rem; }
.xkh-footer ul li a { color: rgba(255,255,255,.55); font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.xkh-footer ul li a:hover { color: var(--xkh-accent); }
.xkh-footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.xkh-footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: .3s; }
.xkh-footer-social a:hover { background: var(--xkh-secondary); color: var(--xkh-dark); }
.xkh-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.35); }

/* Breadcrumb */
.xkh-bc { background: var(--xkh-section); padding: 12px 0; font-size: .85rem; color: var(--xkh-text-muted); border-bottom: 1px solid var(--xkh-border); }
.xkh-bc a { color: var(--xkh-text-muted); } .xkh-bc a:hover { color: var(--xkh-secondary); }
.xkh-bc .sep { margin: 0 8px; opacity: .5; } .xkh-bc .cur { color: var(--xkh-secondary); }

/* Article */
.xkh-article { padding: 50px 0; }
.xkh-article-body { background: #fff; border: 1px solid var(--xkh-border); border-radius: var(--xkh-radius); padding: 36px 40px; max-width: 900px; margin: 0 auto; box-shadow: var(--xkh-shadow-sm); }
.xkh-article-body h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.xkh-article-meta { display: flex; gap: 14px; font-size: .85rem; color: var(--xkh-text-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--xkh-border); flex-wrap: wrap; }
.xkh-article-meta .tag { background: rgba(218,165,32,.1); color: var(--xkh-secondary); padding: 2px 10px; border-radius: 4px; font-weight: 600; }
.xkh-article-content { line-height: 1.9; } .xkh-article-content p { margin-bottom: 14px; }
.xkh-article-content h2 { font-size: 1.4rem; color: var(--xkh-secondary); margin: 28px 0 12px; }

/* Search */
.xkh-search-box { max-width: 700px; margin: 0 auto 32px; display: flex; gap: 8px; }
.xkh-search-box input { flex: 1; padding: 14px 18px; background: #fff; color: var(--xkh-text-primary); border: 1px solid var(--xkh-border); border-radius: var(--xkh-radius-sm); font-size: 1rem; }
.xkh-search-box input:focus { outline: none; border-color: var(--xkh-secondary); }

/* Tag Cloud */
.xkh-tagcloud { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; margin: 32px auto 0; justify-content: center; }
.xkh-tagcloud a { padding: 8px 18px; background: #fff; color: var(--xkh-secondary); border: 1px solid var(--xkh-border); border-radius: 999px; font-size: .88rem; font-weight: 600; }
.xkh-tagcloud a:hover { background: var(--xkh-secondary); color: var(--xkh-primary); }

/* Pagination */
.xkh-pagination { text-align: center; margin: 30px 0; }
.xkh-pagination a,.xkh-pagination span { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #fff; color: var(--xkh-text-primary); border: 1px solid var(--xkh-border); border-radius: 6px; font-size: .9rem; }
.xkh-pagination a:hover { background: var(--xkh-secondary); color: var(--xkh-primary); border-color: var(--xkh-secondary); }

/* Responsive */
@media (max-width: 991px) {
    .xkh-hamburger { display: block; }
    .xkh-channel { display: none; }
    .xkh-footer-grid { grid-template-columns: 1fr 1fr; }
    .xkh-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 767px) {
    .xkh-hero h1 { font-size: 2rem; }
    .xkh-section { padding: 4rem 0; }
    .xkh-footer-grid { grid-template-columns: 1fr; }
    .xkh-stats-grid { grid-template-columns: 1fr 1fr; }
    .xkh-article-body { padding: 24px 20px; }
}
