/* ============================================================
   热血江湖手游官网 · 前台样式
   明亮 Q 版国风，朱红 + 金色，圆润卡片，移动端自适应
   ============================================================ */

:root {
    --red: #c8392f;
    --red-dark: #a5261e;
    --red-deep: #7e1d17;
    --gold: #e8b04b;
    --gold-light: #f4d28a;
    --ink: #3a332c;
    --ink-soft: #6f6559;
    --cream: #fbf5ea;
    --cream-deep: #f3ead8;
    --teal: #3e7c8f;
    --white: #ffffff;
    --line: #ece3d2;
    --shadow: 0 10px 30px rgba(120, 70, 30, .10);
    --shadow-hover: 0 16px 38px rgba(160, 60, 40, .18);
    --radius: 14px;
    --radius-lg: 20px;
    --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* fixed 定位的侧边导航平移到视口外时，由 documentElement 统一裁切，不产生横向滚动 */
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    html { overflow-x: hidden; }
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.35; font-weight: 700; }

.container { width: min(1200px, 92%); margin: 0 auto; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, #e05243, var(--red));
    color: #fff; box-shadow: 0 8px 20px rgba(200, 57, 47, .35);
}
.btn-primary:hover { background: linear-gradient(180deg, #e85d4e, var(--red-dark)); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 38px; font-size: 17px; }

/* ---------- 顶部公告条 ---------- */
.top-notice {
    background: linear-gradient(90deg, var(--red-deep), var(--red));
    color: #ffe9c7; font-size: 13px;
}
.notice-inner { display: flex; align-items: center; gap: 8px; height: 34px; overflow: hidden; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- 头部导航 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 251, 242, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(120, 70, 30, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 42px; width: auto; }
.brand-text { font-size: 22px; font-weight: 800; color: var(--red); letter-spacing: 1px; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block; padding: 9px 15px; border-radius: 999px;
    font-weight: 600; font-size: 15px; color: var(--ink); position: relative;
}
.main-nav a:hover { color: var(--red); background: #fbeae0; }
.main-nav a::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 3px;
    background: var(--gold); border-radius: 3px; transform: translateX(-50%); transition: width .2s;
}
.main-nav a:hover::after { width: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero 轮播 ---------- */
.hero { position: relative; }
.hero-slider { position: relative; overflow: hidden; background: var(--cream-deep); }
.hero-slides { position: relative; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-slide.active { position: relative; opacity: 1; pointer-events: auto; }
.hero-slide > img { width: 100%; height: clamp(380px, 52vw, 640px); object-fit: cover; }
.hero-content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 16px;
    /* 不使用任何背景遮罩，图片完整显示，文字靠自身阴影保证可读 */
}
.hero-title {
    color: #fff; font-size: clamp(30px, 5vw, 54px); font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55), 0 6px 22px rgba(0, 0, 0, .35); letter-spacing: 2px;
}
.hero-subtitle { color: #f6ecdd; font-size: clamp(14px, 2vw, 19px); max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.3); }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .5); transition: all .2s;
}
.hero-dot.active { width: 28px; border-radius: 999px; background: var(--gold); }

/* ---------- 快捷入口 ---------- */
.hero-quick { position: relative; margin-top: -34px; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
    background: var(--white); border-radius: var(--radius); padding: 20px 18px;
    display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow);
    border: 1px solid var(--line); transition: transform .18s, box-shadow .18s;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.quick-ico { font-size: 28px; }
.quick-name { font-size: 17px; font-weight: 700; }
.quick-desc { font-size: 13px; color: var(--ink-soft); }

/* ---------- 通用板块 ---------- */
.section { padding: 64px 0; }
.section-head { position: relative; text-align: center; margin-bottom: 38px; }
.section-head .more-link { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.section-title {
    font-size: clamp(24px, 3.4vw, 34px); color: var(--red-deep);
    display: inline-flex; align-items: center; gap: 12px;
}
.section-title::before, .section-title::after {
    content: ""; width: 30px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-subtitle { color: var(--ink-soft); margin-top: 10px; }
.more-link { color: var(--red); font-weight: 600; font-size: 14px; }
.more-link:hover { text-decoration: underline; }

/* ---------- 资讯 Tab ---------- */
.news-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.news-tab {
    padding: 9px 26px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-soft);
}
.news-tab.active, .news-tab:hover { background: var(--red); color: #fff; border-color: var(--red); }

.news-panel { display: none; }
.news-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: 860px; margin: 0 auto; }
.news-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 16px;
    min-width: 0; border-radius: 10px; transition: background .15s;
}
.news-item:hover { background: #fff; }
.news-item a { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item a:hover { color: var(--red); }
.news-item time { color: var(--ink-soft); font-size: 13px; flex: none; }
.news-tag {
    flex: none; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 6px;
    background: #f3e6d2; color: #8a6a3a;
}
.tag-gg { background: #fde4df; color: var(--red); }
.tag-xw { background: #e1eef3; color: var(--teal); }
.tag-hd { background: #fbf0d4; color: #b07d1e; }
.tag-gl { background: #e5f0e2; color: #4a7c3e; }
.news-empty { color: var(--ink-soft); padding: 20px; text-align: center; }
.panel-more { display: block; text-align: center; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 14px; }

/* ---------- 特色 ---------- */
.feature-section { background: linear-gradient(180deg, var(--cream), var(--cream-deep)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
    text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-ico {
    width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center;
    font-size: 30px; border-radius: 18px; background: linear-gradient(180deg, #fdf0dc, #f7e0bd);
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--red-deep); }
.feature-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- 职业 ---------- */
.jobs-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.job-card {
    background: #fff; border-radius: var(--radius); padding: 24px 14px; text-align: center;
    border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.job-avatar {
    width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #fbe7c8, #f0d3a2); display: grid; place-items: center;
    border: 3px solid #fff; box-shadow: 0 6px 16px rgba(150, 100, 40, .2);
}
.job-avatar img { width: 100%; height: 100%; object-fit: cover; }
.job-emoji { font-size: 40px; }
.job-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--red-deep); }
.job-card p { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 截图 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
    border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow);
    cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
    color: #fff; font-size: 14px; font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

/* ---------- CTA ---------- */
.cta-band {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 220, 150, .25), transparent 40%),
        linear-gradient(100deg, var(--red-deep), var(--red));
    color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 46px 0; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: #f3e0c8; margin-top: 4px; }

/* ---------- 子页头 ---------- */
.sub-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(232, 176, 75, .35), transparent 50%),
        linear-gradient(120deg, var(--red-deep), var(--red));
    color: #fff; padding: 52px 0; text-align: center;
}
.sub-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.sub-hero p { color: #f3e0c8; margin-top: 8px; }

/* ---------- 列表 + 侧边栏布局 ---------- */
.layout-with-side { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

.article-list { display: grid; gap: 18px; }
.article-card {
    display: flex; gap: 18px; background: #fff; border-radius: var(--radius);
    padding: 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.article-cover { flex: none; width: 170px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--cream-deep); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--red); font-weight: 800; font-size: 26px; }
.article-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.article-info h2 { font-size: 18px; }
.article-info h2 a:hover { color: var(--red); }
.top-flag { background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.article-summary { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); margin-top: auto; }

.search-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 26px; }
.search-form input {
    flex: 1; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff;
}
.search-form input:focus { outline: none; border-color: var(--red); }

.content-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.side-box { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-box h3 { font-size: 17px; color: var(--red-deep); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--cream-deep); }
.side-list { display: grid; gap: 9px; }
.side-list a { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--red); }
.side-download { text-align: center; }
.side-download p { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.side-download .btn { width: 100%; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pg-btn, .pg-num {
    min-width: 40px; padding: 8px 14px; border-radius: 10px; background: #fff;
    border: 1px solid var(--line); font-weight: 600; text-align: center; font-size: 14px;
}
.pg-num.current, .pg-btn:hover, .pg-num:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pg-btn.disabled { color: #b9b0a3; cursor: not-allowed; background: #f7f2e8; }
.pg-btn.disabled:hover { background: #f7f2e8; color: #b9b0a3; }

.empty-box { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-box p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- 文章详情 ---------- */
.article-detail { background: #fff; border-radius: var(--radius); padding: 34px 38px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--red); }
.article-title { font-size: clamp(22px, 3vw, 30px); color: var(--red-deep); margin-bottom: 16px; }
.article-toolbar { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-soft); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-lead {
    margin: 22px 0; padding: 16px 20px; background: var(--cream);
    border-left: 4px solid var(--gold); border-radius: 8px; color: var(--ink-soft); font-size: 14.5px;
}
.article-content { font-size: 15.5px; }
.article-content p { margin: 16px 0; }
.article-content h2, .article-content h3 { color: var(--red-deep); margin: 28px 0 12px; }
.article-content h2 { font-size: 22px; } .article-content h3 { font-size: 19px; }
.article-content ul, .article-content ol { margin: 14px 0 14px 22px; }
.article-content li { margin: 6px 0; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content img { border-radius: 10px; margin: 18px auto; box-shadow: var(--shadow); }
.article-content a { color: var(--red); text-decoration: underline; }
.article-content blockquote { margin: 18px 0; padding: 12px 20px; background: var(--cream); border-radius: 8px; color: var(--ink-soft); }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px; text-align: left; font-size: 14px; }
.article-content th { background: var(--cream); }

.article-near { display: grid; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.near-link { font-size: 14px; font-weight: 600; }
.near-link:hover { color: var(--red); }
.near-link.muted { color: #b9b0a3; font-weight: 400; }

/* ---------- 单页 ---------- */
.single-page { background: #fff; border-radius: var(--radius); padding: 34px 38px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- 职业详情 ---------- */
.job-detail-list { display: grid; gap: 28px; }
.job-detail {
    display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: center;
    background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.job-detail-img { border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 30%, #fbe7c8, #e8cfa0); aspect-ratio: 1; display: grid; place-items: center; }
.job-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.job-emoji-lg { font-size: 110px; }
.job-detail-info h2 { font-size: 26px; color: var(--red-deep); display: flex; align-items: center; gap: 12px; }
.job-gender { font-size: 14px; font-weight: 400; color: var(--ink-soft); background: var(--cream); padding: 3px 12px; border-radius: 999px; }
.job-detail-info p { margin: 14px 0; color: var(--ink-soft); }
.job-points { display: grid; gap: 8px; }
.job-points li { list-style: none; padding-left: 26px; position: relative; font-weight: 600; }
.job-points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ---------- 截图全页 ---------- */
.gallery-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-full-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 4/3; position: relative; }
.gallery-full-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-full-item:hover img { transform: scale(1.05); }
.gallery-full-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* 灯箱 */
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 5, .88);
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 90vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 20px; right: 28px; font-size: 34px; color: #fff; background: none; border: none; cursor: pointer; }

/* ---------- 下载页 ---------- */
.download-panel { display: grid; grid-template-columns: 300px 1fr; gap: 36px; background: #fff; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.download-qr { text-align: center; }
.download-qr img { margin: 0 auto 14px; border-radius: 12px; border: 1px solid var(--line); }
.download-qr p { font-size: 13px; color: var(--ink-soft); }
.download-entries { display: grid; gap: 16px; align-content: start; }
.download-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line);
    transition: background .15s, transform .15s;
}
.download-row:hover { background: #fbe9d6; transform: translateX(4px); }
.dl-platform { font-weight: 700; font-size: 17px; }
.dl-btn { background: var(--red); color: #fff; padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.download-notes h3 { color: var(--red-deep); margin-bottom: 10px; }
.download-notes li { list-style: disc; margin-left: 20px; color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 50px 20px; }
.nf-code { font-size: 110px; font-weight: 800; color: var(--red); line-height: 1; }
.not-found h1 { font-size: 26px; margin: 10px 0; }
.not-found p { color: var(--ink-soft); margin-bottom: 24px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 浮动下载 ---------- */
.float-download { position: fixed; right: 18px; bottom: 26px; z-index: 90; }
.float-btn {
    display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #e05243, var(--red));
    color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 24px rgba(200, 57, 47, .4);
    font-weight: 700;
}
.float-btn:hover { transform: translateY(-3px); }
.float-icon { font-size: 18px; }

/* ---------- 底部 ---------- */
.site-footer { background: #2c1d16; color: #cbb9a6; padding-top: 56px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid #4a382e; }
.footer-logo { font-size: 24px; font-weight: 800; color: #f0d9b5; margin-bottom: 10px; }
.footer-slogan { color: var(--gold); font-size: 14px; margin-bottom: 16px; }
.footer-contact p { font-size: 13.5px; margin: 6px 0; }
.footer-contact a:hover { color: var(--gold); }
.footer-col h3 { color: #f0d9b5; font-size: 16px; margin-bottom: 14px; }
.footer-links li { margin: 8px 0; font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.qrcode-box { display: grid; gap: 8px; justify-items: start; }
.qrcode-box img { border-radius: 8px; background: #fff; padding: 4px; }
.qrcode-box span { font-size: 12.5px; }

.friend-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 22px 0; font-size: 13px; align-items: center; }
.friend-links span { color: #8f7d6b; }
.friend-links a:hover { color: var(--gold); }
.footer-copyright { padding-bottom: 30px; font-size: 13px; color: #8f7d6b; }
.footer-copyright p { margin: 6px 0; }
.footer-copyright a:hover { color: var(--gold); }
.police-record { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; }
.footer-tip { max-width: 900px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .jobs-row { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid, .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .layout-with-side { grid-template-columns: 1fr; }
    .content-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 46px 0; }
    /* 关闭态完全不渲染（display:none），不会在屏外撑出横向滚动区域 */
    .main-nav {
        display: none;
        position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
        background: #fffdf8; padding: calc(var(--header-h) + 20px) 22px 30px;
        transform: translateX(100%); transition: transform .3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,.15); z-index: 99;
    }
    .main-nav.show { display: block; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 6px; }
    .main-nav a { padding: 13px 16px; font-size: 16px; }
    .nav-toggle { display: flex; z-index: 100; }

    .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-quick { margin-top: -26px; }
    .feature-grid { grid-template-columns: 1fr; }
    .jobs-row { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid, .gallery-full-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .content-side { grid-template-columns: 1fr; }

    .article-card { flex-direction: column; }
    .article-cover { width: 100%; height: 180px; }
    .job-detail { grid-template-columns: 1fr; }
    .job-detail-img { max-width: 260px; margin: 0 auto; width: 100%; }
    .download-panel { grid-template-columns: 1fr; padding: 26px; }
    .article-detail, .single-page { padding: 26px 20px; }
    .float-text { display: none; }
    .float-btn { padding: 14px; }

    /* 窄屏标题区：更多链接移到标题下方，避免与居中标题重叠 */
    .section-head .more-link { position: static; transform: none; display: block; margin-top: 8px; }
    /* 顶部减负，给标题和按钮留出空间 */
    .header-inner { gap: 10px; }
    .brand-text { font-size: 19px; letter-spacing: 0; }
    .header-actions { gap: 8px; }
    .header-actions .btn-sm { padding: 7px 14px; font-size: 13px; }
}

@media (max-width: 420px) {
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .quick-card { padding: 16px 12px; }
    .jobs-row { grid-template-columns: 1fr 1fr; }
    .btn-lg { padding: 13px 28px; }
    .brand-text { font-size: 17px; }
    .header-actions .btn-sm { padding: 6px 12px; }
    .news-item { gap: 8px; padding: 11px 10px; }
    .news-tab { padding: 8px 18px; }
}
