/* ============================================================
   神迹觉醒 前台样式  暗金仙侠主题
   ============================================================ */

:root {
    --bg: #100d09;
    --bg-soft: #17120c;
    --panel: #1d1812;
    --panel-2: #221b13;
    --line: #3a2f1e;
    --line-soft: #2a2216;
    --gold: #d8b36a;
    --gold-deep: #a87f3c;
    --gold-bright: #e8cc8c;
    --red: #9e3b33;
    --text: #e8ddc7;
    --text-dim: #a99a7e;
    --text-faint: #7d7059;
    --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* 全局暖光氛围层 */
.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 480px at 78% -8%, rgba(168, 127, 60, .14), transparent 60%),
        radial-gradient(700px 420px at 8% 12%, rgba(158, 59, 51, .08), transparent 60%);
    z-index: 0;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .5em;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section { padding: 64px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}
.section-head h2 { font-size: 26px; margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 22px;
    background: linear-gradient(var(--gold-bright), var(--gold-deep));
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center h2 { padding-left: 0; }
.section-head.center h2::before { display: none; }
.section-sub { color: var(--text-dim); margin: 10px 0 0; }
.more { font-size: 14px; color: var(--text-dim); }
.more:hover { color: var(--gold); }

/* ---------- 按钮 ---------- */
.btn-gold, .btn-ghost {
    display: inline-block;
    padding: 10px 26px;
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 3px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-gold {
    color: #1c150a;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    border: 1px solid var(--gold-bright);
    box-shadow: 0 6px 20px rgba(168, 127, 60, .28);
}
.btn-gold:hover { color: #1c150a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(168, 127, 60, .4); }
.btn-ghost {
    color: var(--gold);
    background: rgba(216, 179, 106, .06);
    border: 1px solid var(--gold-deep);
}
.btn-ghost:hover { background: rgba(216, 179, 106, .14); color: var(--gold-bright); }
.lg { padding: 14px 40px; font-size: 17px; }
.block { display: block; width: 100%; text-align: center; }

/* ================= 顶部导航 ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 12, 8, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: 24px; font-weight: 900;
    color: var(--gold);
    border: 1px solid var(--gold-deep);
    border-radius: 4px;
    background: radial-gradient(circle at 30% 25%, #2c2314, #17120b);
}
.brand-text strong { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; color: var(--gold-bright); display: block; }
.brand-text small { font-size: 11px; color: var(--text-faint); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 14px;
    color: var(--text-dim);
    font-size: 15px;
    font-family: var(--serif);
    letter-spacing: 1px;
    border-radius: 3px;
}
.main-nav a:hover { color: var(--gold-bright); background: rgba(216, 179, 106, .08); }
.main-nav .nav-download {
    margin-left: 10px;
    color: #1c150a;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    font-weight: 700;
}
.main-nav .nav-download:hover { color: #1c150a; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: .25s; }

/* ================= 首屏轮播 ================= */
.hero { position: relative; }
.hero-slides { position: relative; height: min(78vh, 640px); min-height: 460px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 8, 5, .92) 0%, rgba(10, 8, 5, .5) 45%, rgba(10, 8, 5, .25) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-content h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: 6px;
    color: var(--gold-bright);
    text-shadow: 0 4px 30px rgba(0, 0, 0, .8);
    margin-bottom: 16px;
}
.hero-content p { font-size: clamp(15px, 1.6vw, 20px); color: var(--text); max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
    width: 34px; height: 4px; border: 0; padding: 0;
    background: rgba(232, 221, 199, .3); cursor: pointer; border-radius: 2px;
}
.hero-dots button.active { background: var(--gold); }

/* ================= 公告 + 礼包 ================= */
.notice-section { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: stretch; }
.notice-board, .quick-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 26px 28px;
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px dashed var(--line-soft); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; color: var(--text); }
.notice-list a:hover .notice-title { color: var(--gold-bright); }
.notice-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { color: var(--text-faint); font-size: 13px; flex-shrink: 0; }

.quick-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.quick-card h3 { color: var(--gold-bright); font-size: 21px; }
.quick-card p { color: var(--text-dim); font-size: 13px; }
.quick-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.quick-card li { padding: 6px 0 6px 22px; position: relative; color: var(--text); font-size: 14px; }
.quick-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.qq-line { text-align: center; color: var(--text-faint); font-size: 13px; margin: 14px 0 0; }

/* ================= 特色卡片 ================= */
.feature-section { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 24px;
    transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.feature-card svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; color: var(--gold-bright); }
.feature-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ================= 职业 ================= */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.class-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
}
.class-card img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s; }
.class-card:hover img { transform: scale(1.05); }
.class-info { padding: 22px 24px 26px; position: relative; }
.class-info h3 { font-size: 22px; color: var(--gold-bright); }
.class-info p { color: var(--text-dim); font-size: 14px; min-height: 48px; }
.class-info p.class-role { min-height: 0; margin: 4px 0 8px; color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.class-info a { font-size: 14px; border-bottom: 1px solid var(--gold-deep); padding-bottom: 2px; }

/* ================= 资讯卡片 ================= */
.news-section { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s, border-color .25s; }
.news-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.news-cover img { width: 100%; height: 200px; object-fit: cover; }
.news-body { padding: 20px 22px 24px; }
.tag { display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid var(--gold-deep); padding: 2px 10px; border-radius: 2px; margin-bottom: 10px; }
.news-body h3 { font-size: 18px; line-height: 1.5; }
.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--gold-bright); }
.news-body p { color: var(--text-dim); font-size: 13px; min-height: 44px; }
.news-body time { color: var(--text-faint); font-size: 12px; }

/* ================= CTA ================= */
.cta-band {
    background:
        linear-gradient(90deg, rgba(20, 15, 9, .95), rgba(20, 15, 9, .7)),
        radial-gradient(circle at 80% 50%, rgba(168, 127, 60, .3), transparent 55%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 52px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: 27px; color: var(--gold-bright); margin-bottom: 8px; }
.cta-inner p { color: var(--text-dim); margin: 0; }

/* ================= 面包屑 ================= */
.breadcrumb-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); }
.breadcrumb { display: flex; align-items: center; padding: 14px 0; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 9px; color: var(--text-faint); }
.breadcrumb .current { color: var(--gold); }

/* ================= 列表页 ================= */
.list-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 30px; }
.list-header h1 { font-size: 28px; color: var(--gold-bright); }
.list-header p { color: var(--text-faint); font-size: 13px; margin: 0; }
.article-list { display: flex; flex-direction: column; gap: 26px; }
.article-item { display: grid; grid-template-columns: 280px 1fr; gap: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .25s; }
.article-item:hover { border-color: var(--gold-deep); }
.item-cover img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.item-body { padding: 22px 26px 22px 0; min-width: 0; }
.item-body h2 { font-size: 21px; }
.item-body h2 a { color: var(--text); }
.item-body h2 a:hover { color: var(--gold-bright); }
.item-body p { color: var(--text-dim); font-size: 14px; }
.item-meta { display: flex; gap: 18px; color: var(--text-faint); font-size: 13px; }
.top-flag { display: inline-block; background: var(--red); color: #f3e3d8; font-size: 12px; padding: 1px 9px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.empty-tip { padding: 60px 0; text-align: center; color: var(--text-faint); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 42px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); color: var(--text-dim); border-radius: 3px; }
.pager a:hover { border-color: var(--gold-deep); color: var(--gold); }
.pager a.current { background: var(--gold-deep); color: #1c150a; border-color: var(--gold-deep); font-weight: 700; }
.pager a.disabled { opacity: .4; pointer-events: none; }

/* ================= 文章详情 ================= */
.article-header { text-align: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-header h1 { font-size: 30px; color: var(--gold-bright); }
.article-meta { display: flex; justify-content: center; gap: 24px; color: var(--text-faint); font-size: 13px; flex-wrap: wrap; }
.article-cover { margin: 0 0 34px; }
.article-cover img { border-radius: 6px; border: 1px solid var(--line); width: 100%; max-height: 520px; object-fit: cover; }
.article-content { font-size: 16px; color: var(--text); }
.article-content h2, .article-content h3 { color: var(--gold-bright); margin-top: 1.6em; }
.article-content p { margin: 1em 0; }
.article-content strong { color: var(--gold-bright); }
.article-share { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.article-share p { color: var(--text-faint); font-size: 14px; margin: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line-soft); }
.related-list a { color: var(--text); }
.related-list a:hover { color: var(--gold-bright); }
.related-list time { color: var(--text-faint); font-size: 13px; flex-shrink: 0; }

/* ================= 单页 ================= */
.static-header { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 34px; }
.static-header h1 { font-size: 28px; color: var(--gold-bright); }
.static-content { font-size: 16px; max-width: 880px; }
.static-content h2, .static-content h3 { color: var(--gold-bright); margin-top: 1.6em; }
.static-content p { margin: 1em 0; color: var(--text); }
.static-content strong { color: var(--gold-bright); }

.empty-page { text-align: center; padding: 110px 0; }
.empty-page h1 { font-size: 72px; color: var(--gold-deep); }

/* ================= 页脚 ================= */
.site-footer { background: #0c0a07; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 34px; padding: 56px 0 44px; }
.footer-brand { display: flex; gap: 14px; }
.footer-brand strong { font-family: var(--serif); font-size: 19px; color: var(--gold-bright); letter-spacing: 2px; }
.footer-brand p { color: var(--text-faint); font-size: 13px; margin: 4px 0 0; }
.footer-col h4 { font-size: 15px; color: var(--gold); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--text-dim); font-size: 13px; margin: 8px 0; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-cta .btn-gold { margin: 6px 0 12px; color: #1c150a; }
.footer-cta .btn-gold:hover { color: #1c150a; }
.online-time { font-size: 12px; color: var(--text-faint); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.health-tip { color: var(--text-faint); font-size: 12px; margin: 0 0 8px; }
.footer-bottom p { color: var(--text-faint); font-size: 12px; margin: 4px 0; }
.footer-bottom a { color: var(--text-faint); margin-left: 14px; }
.footer-bottom a:hover { color: var(--gold); }

/* ================= 响应式 ================= */
@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .notice-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-item { grid-template-columns: 1fr; }
    .item-cover img { min-height: 200px; height: 220px; }
    .item-body { padding: 0 22px 24px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(13, 10, 7, .98);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 480px; }
    .main-nav a { padding: 14px 20px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
    .main-nav .nav-download { margin: 0; text-align: center; }
    .class-grid, .news-grid { grid-template-columns: 1fr; }
    .section { padding: 46px 0; }
    .hero-slides { min-height: 400px; height: 70vh; }
    .hero-actions .btn-gold, .hero-actions .btn-ghost { flex: 1; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-inner { flex-direction: column; text-align: center; }
}
