/* ============================================================
   开天沉默官网 · 前台样式
   暗金复古 · 深色质感 · 无花哨渐变
   ============================================================ */

:root {
    --bg: #0e0b08;
    --bg-deep: #080604;
    --panel: #1b140d;
    --panel-2: #241a10;
    --line: #3b2d1c;
    --line-soft: #2c2115;
    --gold: #c9a25c;
    --gold-light: #e6d2a0;
    --gold-deep: #8a6a37;
    --red: #9c3328;
    --red-light: #c75140;
    --text: #d6cbb9;
    --text-dim: #9a8c76;
    --text-faint: #6f6353;
    --black: #070503;
    --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    --font-title: "STKaiti", "KaiTi", "STSong", "SimSun", serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 92, .08), transparent 60%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--font-title); color: var(--gold-light); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.narrow { width: min(960px, 92%); }
.center { text-align: center; }

/* ---------------- 站点头部 ---------------- */
.site-header {
    background: linear-gradient(180deg, #14100a 0%, #0d0906 100%);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.brand { display: flex; flex-direction: column; gap: 2px; flex: none; }
.brand-text {
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(180deg, var(--gold-light) 20%, var(--gold) 55%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-slogan { font-size: 11px; color: var(--text-faint); letter-spacing: 2px; }
.brand img { max-height: 52px; width: auto; }

.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line);
    width: 42px; height: 38px; padding: 9px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 4px 0; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block;
    padding: 10px 26px;
    font-size: 15px;
    letter-spacing: 2px;
    border: 1px solid var(--gold-deep);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
}
.btn-gold {
    background: linear-gradient(180deg, #d8bd82, #b8914c);
    color: #1a1208;
    border-color: #7d5e2e;
    font-weight: 600;
}
.btn-gold:hover { background: linear-gradient(180deg, #e6d2a0, #c9a25c); color: #1a1208; }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: rgba(201, 162, 92, .12); color: var(--gold-light); }
.btn-lg { padding: 13px 38px; font-size: 17px; }

/* 下载页：三个下载模式卡片 */
.download-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 8px 0 14px;
}
.dl-card {
    text-align: center;
    padding: 26px 18px 24px;
    border: 1px solid rgba(201, 162, 92, .28);
    background: linear-gradient(180deg, rgba(201, 162, 92, .07), rgba(201, 162, 92, .02));
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dl-card h3 {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.dl-card-desc { font-size: 13px; color: #9a8c72; margin-bottom: 18px; min-height: 18px; }
.dl-card .btn { min-width: 150px; }
.dl-card .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.dl-tip { text-align: center; font-size: 13px; color: #9a8c72; margin: 0 0 28px; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb-wrap { background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.breadcrumb { font-size: 13px; padding: 11px 0; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-faint); }
.breadcrumb .current { color: var(--gold); }

/* ---------------- 首页轮播 ---------------- */
.hero { position: relative; height: clamp(420px, 56vw, 620px); overflow: hidden; background: var(--black); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 5, 3, .85) 0%, rgba(7, 5, 3, .35) 45%, rgba(7, 5, 3, .55) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-text { position: absolute; opacity: 0; transform: translateY(18px); transition: all .8s ease; pointer-events: none; }
.hero-text.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-text h1 {
    font-size: clamp(30px, 4.6vw, 52px);
    margin: 0 0 14px;
    letter-spacing: 5px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .8);
}
.hero-text p {
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--text);
    margin-bottom: 28px;
    letter-spacing: 2px;
}
.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot {
    width: 34px; height: 4px; border: none; padding: 0;
    background: rgba(230, 210, 160, .3); cursor: pointer;
}
.hero-dot.is-active { background: var(--gold); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: 5px; }
.section-head p { color: var(--text-dim); margin: 12px 0 0; font-size: 14px; }
.head-line {
    display: inline-block;
    width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
    position: relative;
}
.head-line::before, .head-line::after {
    content: ""; position: absolute; top: -3px;
    width: 8px; height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}
.head-line::before { left: 0; }
.head-line::after { right: 0; }

/* ---------------- 特色卡片 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    padding: 30px 24px 26px;
    position: relative;
}
.feature-card::before, .feature-card::after {
    content: ""; position: absolute; width: 14px; height: 14px;
    border-color: var(--gold-deep); border-style: solid;
}
.feature-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.feature-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.feature-no {
    font-family: var(--font-title);
    font-size: 26px; color: var(--gold-deep);
    display: block; margin-bottom: 10px;
}
.feature-card h3 { font-size: 20px; margin: 0 0 12px; letter-spacing: 2px; }
.feature-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---------------- 开服预览 ---------------- */
.server-preview { background: var(--bg-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.server-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px 24px;
}
.server-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.server-card h3 { font-size: 20px; margin: 0; letter-spacing: 2px; }
.server-status { font-size: 13px; padding: 3px 12px; border: 1px solid currentColor; white-space: nowrap; }
.st-wait { color: var(--gold); }
.st-open { color: #6fae6f; }
.st-merged { color: var(--text-faint); }
.server-time { font-size: 16px; color: var(--gold-light); margin-bottom: 6px; }
.server-meta { font-size: 13px; color: var(--text-dim); margin: 0; }
.center-link { text-align: center; margin-top: 30px; }

/* ---------------- 图文板块 ---------------- */
.image-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.it-image { border: 1px solid var(--line); padding: 8px; background: var(--panel); }
.it-image img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.it-text h2 { font-size: 28px; margin: 0 0 14px; letter-spacing: 4px; }
.it-sub { color: var(--red-light); font-size: 15px; letter-spacing: 1px; }
.it-text p { color: var(--text-dim); }
.image-text-section:nth-of-type(even) .it-image { order: 2; }

/* ---------------- 首页双栏列表 ---------------- */
.home-lists { background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.lists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-box { background: var(--panel); border: 1px solid var(--line); padding: 26px 28px; }
.list-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.list-head h2 { font-size: 21px; margin: 0; letter-spacing: 3px; }
.news-list li { border-bottom: 1px dashed var(--line-soft); }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; color: var(--text); }
.news-list a:hover .news-title { color: var(--gold-light); }
.news-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list time { color: var(--text-faint); font-size: 13px; flex: none; }

/* ---------------- 下载条 ---------------- */
.download-strip {
    background:
        linear-gradient(90deg, rgba(156, 51, 40, .25), transparent),
        var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.download-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px 0; }
.strip-text h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: 4px; }
.strip-text p { color: var(--text-dim); margin: 0; }
.strip-btns { display: flex; gap: 14px; flex: none; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--bg-deep); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-col h3 { font-size: 17px; margin: 0 0 16px; letter-spacing: 3px; }
.footer-col li, .footer-col p { color: var(--text-dim); font-size: 14px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--gold); }
.footer-about { font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.footer-note { line-height: 1.8; }
.friend-links {
    border-top: 1px solid var(--line-soft);
    padding: 18px 0; font-size: 13px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.fl-title { color: var(--text-faint); }
.friend-links a { color: var(--text-dim); }
.friend-links a:hover { color: var(--gold); }
.footer-legal {
    border-top: 1px solid var(--line-soft);
    padding: 24px 0 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
}
.footer-legal p { margin: 0 0 8px; }
.footer-legal a { color: var(--text-faint); }
.footer-legal a:hover { color: var(--gold); }
.health-tip { color: var(--text-dim); letter-spacing: 1px; }

/* ---------------- 悬浮工具 ---------------- */
.float-tools {
    position: fixed; right: 18px; bottom: 90px; z-index: 90;
    display: flex; flex-direction: column; gap: 8px;
}
.float-item {
    width: 58px; height: 58px;
    background: rgba(27, 20, 13, .92);
    border: 1px solid var(--line);
    color: var(--gold);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 12px; cursor: pointer;
}
.float-item:hover { background: var(--panel-2); color: var(--gold-light); }

/* ---------------- 内页通用 ---------------- */
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: 5px; }
.page-head p { color: var(--text-dim); margin: 0; font-size: 14px; }

.article-head { text-align: center; margin-bottom: 30px; }
.article-head h1 { font-size: 29px; margin: 0 0 16px; letter-spacing: 3px; }
.article-sub { color: var(--red-light); font-size: 15px; }
.article-meta { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }
.article-meta a { color: var(--text-faint); }
.article-cover { margin: 0 0 34px; border: 1px solid var(--line); padding: 6px; background: var(--panel); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.article-content { font-size: 16px; }
.article-content h3 { font-size: 21px; margin: 30px 0 14px; padding-left: 14px; border-left: 3px solid var(--gold-deep); }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: var(--panel-2); color: var(--gold-light); font-weight: 600; }
.article-content blockquote {
    margin: 18px 0; padding: 12px 18px;
    border-left: 3px solid var(--red);
    background: rgba(156, 51, 40, .08);
    color: var(--text-dim);
}
.article-foot { text-align: right; color: var(--text-faint); font-size: 13px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

/* 上下篇 */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pn-item { border: 1px solid var(--line); background: var(--panel); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.pn-item:hover { border-color: var(--gold-deep); }
.pn-label { font-size: 12px; color: var(--text-faint); }
.pn-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-empty { background: none; border: none; }

/* 相关内容 */
.related-section { background: var(--bg-deep); border-top: 1px solid var(--line-soft); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { background: var(--panel); border: 1px solid var(--line); }
.related-card img { aspect-ratio: 16/10; object-fit: cover; }
.related-title { display: block; padding: 10px 12px; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-card:hover .related-title { color: var(--gold-light); }

/* 栏目列表 */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-item { display: flex; gap: 22px; background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.post-thumb { flex: none; width: 220px; }
.post-thumb img { width: 220px; height: 140px; object-fit: cover; border: 1px solid var(--line); }
.post-body h2 { font-size: 20px; margin: 0 0 8px; }
.post-body h2 a { color: var(--gold-light); }
.post-summary { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-faint); }
.empty-tip { color: var(--text-dim); text-align: center; padding: 60px 0; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager .current {
    min-width: 38px; padding: 7px 12px; text-align: center;
    border: 1px solid var(--line); color: var(--text);
    background: var(--panel);
}
.pager a:hover { border-color: var(--gold-deep); color: var(--gold-light); }
.pager .current { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.pager-dot { color: var(--text-faint); padding: 7px 2px; }

/* 开服表 */
.server-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.server-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.server-table th, .server-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.server-table th { background: var(--panel-2); color: var(--gold-light); font-family: var(--font-title); letter-spacing: 2px; }
.server-table tbody tr:hover { background: rgba(201, 162, 92, .05); }
.server-note { margin-top: 22px; color: var(--text-dim); font-size: 14px; border-left: 3px solid var(--red); padding-left: 14px; }

/* 搜索 */
.search-form { display: flex; gap: 10px; margin-bottom: 36px; }
.search-form input {
    flex: 1; background: var(--panel);
    border: 1px solid var(--line); color: var(--text);
    padding: 11px 16px; font-size: 15px; font-family: var(--font-body);
}
.search-form input:focus { outline: none; border-color: var(--gold-deep); }
.search-count { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.search-results li { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.search-results a { font-size: 18px; color: var(--gold-light); }
.search-results p { color: var(--text-dim); font-size: 14px; margin: 8px 0; }
.sr-cname { font-size: 13px; color: var(--text-faint); }

/* 404 */
.error-section { min-height: 52vh; display: flex; align-items: center; }
.error-code {
    font-family: var(--font-title); font-size: 96px; margin: 0;
    color: transparent;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text;
    letter-spacing: 8px;
}
.error-text { color: var(--text-dim); margin: 18px 0 30px; }
.error-btns { display: flex; gap: 14px; justify-content: center; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .server-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .image-text { grid-template-columns: 1fr; gap: 28px; }
    .image-text-section:nth-of-type(even) .it-image { order: 0; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .download-modes { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #120d08; border-bottom: 1px solid var(--line);
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); white-space: normal; }
    .main-nav a::after { display: none; }
}

@media (max-width: 760px) {
    .lists-grid { grid-template-columns: 1fr; }
    .download-strip-inner { flex-direction: column; text-align: center; }
    .post-item { flex-direction: column; }
    .post-thumb, .post-thumb img { width: 100%; }
    .post-thumb img { height: 190px; }
    .prev-next { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 46px 0; }
    .float-tools { right: 10px; bottom: 70px; }
    .float-item { width: 50px; height: 50px; }
}

@media (max-width: 460px) {
    .feature-grid { grid-template-columns: 1fr; }
    .brand-slogan { display: none; }
    .strip-btns { flex-direction: column; width: 100%; }
    .strip-btns .btn { width: 100%; }
    .error-btns { flex-direction: column; }
}
