/* ============================================================
   复古合击官网前台样式 —— 深色金红传奇风 · 移动优先
   ============================================================ */
:root {
    --bg: #140b07;
    --bg-2: #1d1008;
    --card: #251509;
    --card-2: #2e1a0c;
    --line: #5a3a20;
    --line-soft: #3d2716;
    --gold: #d9a441;
    --gold-light: #f2cd7e;
    --red: #c93a2e;
    --red-deep: #7c1f18;
    --text: #e9ddc7;
    --muted: #ab906f;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}
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, h4 { line-height: 1.35; font-weight: 800; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------------- 顶部公告 ---------------- */
.top-notice {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, var(--red-deep), #4a160f);
    border-bottom: 1px solid #8a2c20;
    padding: 8px 18px; font-size: 13px; color: #f3d9c8;
}
.notice-icon { color: var(--gold-light); flex: 0 0 auto; display: flex; }
.notice-text { overflow: hidden; }

/* ---------------- 头部导航 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(20, 11, 7, .92);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; }
.brand-text {
    font-size: 24px; font-weight: 900; letter-spacing: 3px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #a8742a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-img { height: 40px; width: auto; }
.main-nav { display: none; gap: 4px; }
.main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 2px solid var(--line);
    padding: 10px 18px 18px; gap: 2px;
}
.nav-link {
    padding: 10px 14px; border-radius: 4px; color: var(--text);
    font-size: 15px; font-weight: 700; white-space: nowrap;
}
.nav-link:hover { background: var(--card-2); color: var(--gold-light); }
.nav-link.active { color: var(--gold-light); background: linear-gradient(180deg, rgba(201,58,46,.25), rgba(201,58,46,.08)); }
.nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 30px; border-radius: 4px; font-size: 16px; font-weight: 800;
    cursor: pointer; border: 1px solid transparent; min-height: 48px;
    transition: transform .15s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #2a1305;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 70%, #b9822f);
    box-shadow: 0 6px 18px rgba(217, 164, 65, .3);
}
.btn-primary:hover { color: #2a1305; filter: brightness(1.08); }
.btn-ghost {
    color: var(--gold-light); background: rgba(0, 0, 0, .35);
    border: 1px solid var(--gold);
}
.btn-ghost:hover { color: var(--gold-light); background: rgba(217, 164, 65, .15); }

/* ---------------- 区块标题 ---------------- */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-title {
    display: inline-block; position: relative;
    font-size: 26px; color: var(--gold-light); letter-spacing: 2px;
    padding: 0 26px;
}
.section-title::before, .section-title::after {
    content: ""; position: absolute; top: 50%; width: 40px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::before { right: 100%; }
.section-title::after { left: 100%; background: linear-gradient(90deg, var(--gold), transparent); }
.section-desc { color: var(--muted); font-size: 14px; margin-top: 10px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; min-height: 520px;
    display: flex; align-items: center;
    background: url("../img/hero-bg.jpg") center/cover no-repeat, #1a0d07;
}
.hero-carousel { position: absolute; inset: 0; z-index: 1; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(90deg, rgba(14,7,4,.92) 0%, rgba(14,7,4,.65) 45%, rgba(14,7,4,.35) 100%);
}
.hero-inner { position: relative; z-index: 3; padding: 70px 0; max-width: 680px; }
.hero-tag {
    display: inline-block; padding: 5px 14px; border: 1px solid var(--gold);
    color: var(--gold-light); font-size: 13px; border-radius: 3px; margin-bottom: 18px;
    letter-spacing: 2px;
}
.hero-title { font-size: 34px; color: #fff; margin-bottom: 16px; text-shadow: 0 3px 14px rgba(0,0,0,.7); }
.hero-title em { font-style: normal; color: var(--gold-light); }
.hero-sub { font-size: 16px; color: #d8c8ad; margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- 轮播 ---------------- */
.carousel-slide {
    position: absolute; inset: 0; display: none;
    background-size: cover; background-position: center;
}
.carousel-slide.active { display: block; }
.carousel-dots { position: absolute; z-index: 4; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.4); padding: 0;
}
.carousel-dots button.active { background: var(--gold-light); }

/* ---------------- 特色 ---------------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature-card {
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line-soft); border-radius: 6px;
    padding: 26px 22px; text-align: center;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-icon {
    width: 58px; height: 58px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line);
    background: radial-gradient(circle, rgba(217,164,65,.18), transparent 70%);
    color: var(--gold-light);
}
.feature-card h3 { font-size: 18px; color: var(--gold-light); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------------- 截图画廊 ---------------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-item {
    position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-soft);
    aspect-ratio: 16/10;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
    font-size: 13px; font-weight: 700; color: #f0e2c8;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
}

/* ---------------- 新闻 / 开服双栏 ---------------- */
.home-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.panel {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: 6px; overflow: hidden;
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
    background: var(--card-2);
}
.panel-head h3 { font-size: 17px; color: var(--gold-light); }
.panel-head .more { font-size: 13px; color: var(--muted); }
.panel-body { padding: 8px 18px 14px; }
.news-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 0;
    border-bottom: 1px dashed var(--line-soft); min-width: 0;
}
.news-item:last-child { border-bottom: none; }
.news-item .tag {
    flex: 0 0 auto; font-size: 12px; padding: 2px 8px; border-radius: 3px;
    color: #e8c9a8; background: var(--red-deep);
}
.news-item .tag.top { background: var(--red); color: #fff; }
.news-item a.news-title {
    flex: 1 1 auto; min-width: 0; color: var(--text); font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-item a.news-title:hover { color: var(--gold-light); }
.news-item .date { flex: 0 0 auto; font-size: 13px; color: var(--muted); }

/* ---------------- 列表页 ---------------- */
.breadcrumb-wrap { background: var(--bg-2); border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--gold-light); }

.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-card {
    display: flex; gap: 18px; padding: 18px;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: 6px;
}
.article-card .cover {
    flex: 0 0 130px; width: 130px; aspect-ratio: 4/3; border-radius: 4px;
    overflow: hidden; background: var(--bg-2);
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card .info { min-width: 0; flex: 1; }
.article-card h3 { font-size: 17px; margin-bottom: 8px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--gold-light); }
.article-card .summary { font-size: 13.5px; color: var(--muted); margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.article-meta .top-flag { color: #f0877a; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border-radius: 4px; border: 1px solid var(--line);
    color: var(--text); font-size: 14px;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-light); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .disabled { opacity: .45; }

/* ---------------- 文章详情 ---------------- */
.article-detail {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: 6px; padding: 34px 30px;
}
.article-detail h1 { font-size: 26px; color: #fff; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
    padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.article-content { font-size: 15.5px; color: #ddd0ba; }
.article-content h3 { font-size: 19px; color: var(--gold-light); margin: 26px 0 12px; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content img { border-radius: 6px; margin: 16px 0; }
.article-content blockquote {
    border-left: 3px solid var(--gold); background: var(--card-2);
    padding: 12px 16px; color: var(--muted); margin-bottom: 14px; border-radius: 0 4px 4px 0;
}
.article-content a { text-decoration: underline; }
.related-box { margin-top: 40px; }
.related-box h3 { font-size: 18px; color: var(--gold-light); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.related-card { display: flex; gap: 10px; background: var(--card-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 10px; min-width: 0; }
.related-card img { width: 80px; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.related-card span { font-size: 13.5px; color: var(--text); align-self: center; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prev-next { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; font-size: 13.5px; flex-wrap: wrap; }
.prev-next a { color: var(--muted); max-width: 48%; }
.prev-next a:hover { color: var(--gold-light); }

/* ---------------- 单页 ---------------- */
.page-detail { background: var(--card); border: 1px solid var(--line-soft); border-radius: 6px; padding: 34px 30px; }
.page-detail h1 { font-size: 25px; color: #fff; margin-bottom: 22px; }

/* ---------------- 搜索 ---------------- */
.search-bar { display: flex; gap: 10px; margin-bottom: 28px; }
.search-bar input {
    flex: 1; min-height: 46px; padding: 0 14px; border-radius: 4px;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 15px;
}
.search-bar input:focus { outline: none; border-color: var(--gold); }
.search-bar button { min-height: 46px; padding: 0 26px; border: none; border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #2a1305; font-weight: 800; cursor: pointer; }
.empty-tip { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

/* ---------------- 下载区 ---------------- */
.download-section {
    background: linear-gradient(180deg, #2a1208, #180b06);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.download-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.download-card {
    display: flex; align-items: center; gap: 16px; padding: 22px;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: 6px;
}
.download-icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-2); border: 1px solid var(--line); color: var(--gold-light);
}
.download-card .dl-info { flex: 1; min-width: 0; }
.download-card .dl-info h3 { font-size: 17px; color: var(--gold-light); }
.download-card .dl-info p { font-size: 13px; color: var(--muted); }
.download-card a.dl-btn {
    flex: 0 0 auto; padding: 10px 22px; border-radius: 4px; min-height: 44px;
    display: inline-flex; align-items: center; font-weight: 800; color: #2a1305;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.download-card a.dl-btn:hover { color: #2a1305; filter: brightness(1.08); }
.dl-qrcode { width: 86px; height: 86px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }

/* ---------------- 友链 ---------------- */
.friend-links { padding: 34px 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.fl-title { font-size: 15px; color: var(--gold-light); margin-bottom: 12px; }
.fl-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fl-list a { font-size: 13.5px; color: var(--muted); }
.fl-list a:hover { color: var(--gold-light); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #100805; padding: 44px 0 30px; border-top: 2px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 30px; }
.footer-col h3 { font-size: 15px; color: var(--gold-light); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-legal { text-align: center; font-size: 12.5px; color: #7d6a52; border-top: 1px solid var(--line-soft); padding-top: 24px; }
.footer-legal p { margin-bottom: 8px; }
.footer-legal a { color: #7d6a52; }
.health-tip { max-width: 760px; margin: 10px auto 0; line-height: 1.8; }

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 600px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .download-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .main-nav { display: flex; }
    .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
    .home-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 44px; }
    .gallery-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .download-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 560px) {
    .section { padding: 42px 0; }
    .article-card { flex-direction: column; gap: 14px; }
    .article-card .cover { width: 100%; flex-basis: auto; aspect-ratio: 16/9; }
    .article-detail, .page-detail { padding: 24px 18px; }
    .download-card { flex-wrap: wrap; }
    .hero { min-height: 460px; }
    .hero-title { font-size: 28px; }
    .gallery-grid { gap: 8px; }
}
