/* ============================================================
   YXCMS 现代简约企业风 · style2.css
   设计 token：白底 + 主色 #2563eb + 中性灰，细边框卡片，8px 间距
   ============================================================ */
:root {
    --pri: #2563eb;
    --pri-d: #1d4ed8;
    --pri-soft: #eff4ff;
    --ink: #0f172a;
    --tx: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg2: #f7f8fa;
    --r: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font: 15px/1.75 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: var(--tx);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
ul, li { list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 26px; border-radius: 10px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .22s;
}
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.btn-ghost { border-color: var(--line); color: var(--tx); background: #fff; }
.btn-ghost:hover { border-color: var(--pri); color: var(--pri); }
.btn-white { background: #fff; color: var(--pri); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn-sm { padding: 7px 16px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.ipt {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14.5px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
    font-family: inherit;
}
.ipt:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.ipt { resize: vertical; }

/* ---------- 头部 ---------- */
.hd {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
}
/* 毛玻璃放在伪元素上，避免 backdrop-filter 为 fixed 子元素（抽屉）创建包含块 */
.hd::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: -1; }
.hd-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.logo-dot { width: 11px; height: 11px; border-radius: 4px; background: var(--pri); transform: rotate(45deg); flex: none; }
.nv { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nv > a, .nv-item > a { display: block; padding: 8px 13px; font-size: 14.5px; color: var(--tx); border-radius: 8px; white-space: nowrap; }
.nv > a:hover, .nv-item > a:hover, .nv > a.on, .nv-item > a.on { color: var(--pri); background: var(--pri-soft); }
.nv-item { position: relative; }
.nv-item .sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 150px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 6px; display: none; z-index: 30;
}
.nv-item.has-sub:hover .sub { display: block; }
.nv-item .sub a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--tx); }
.nv-item .sub a:hover { color: var(--pri); background: var(--pri-soft); }
.hd-act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.link-login { font-size: 14.5px; color: var(--tx); white-space: nowrap; }
.link-login:hover { color: var(--pri); }
.hd-user { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tx); white-space: nowrap; }
.hd-user:hover { color: var(--pri); }
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--pri), #7c3aed); color: #fff; font-size: 13px;
}
.avatar.xl { width: 68px; height: 68px; font-size: 24px; margin: 0 auto 12px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: all .25s; }
.mask { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 98; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #f4f7fd 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 72px 24px 56px; }
.hero-slide h1 { font-size: 42px; line-height: 1.28; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.hero-slide p { margin: 18px 0 30px; font-size: 16.5px; color: var(--muted); max-width: 480px; }
.hero-act { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-act.center { justify-content: center; }
.hero-visual { position: relative; }
.hero-imgs {
    position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/10;
    box-shadow: 0 24px 60px rgba(37, 99, 235, .18); background: #dde7f7;
}
.hero-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero-imgs img.on { opacity: 1; }
.hero-blob {
    position: absolute; right: -60px; bottom: -70px; width: 260px; height: 260px;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .22), rgba(124, 58, 237, .1));
    border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%; z-index: -1;
}
.hero-dots { display: flex; gap: 8px; margin-top: 22px; }
.hero-dots i { width: 22px; height: 4px; border-radius: 2px; background: #d6deeb; cursor: pointer; transition: background .25s; }
.hero-dots i.on { background: var(--pri); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 24px 56px; }
.hero-stats > div {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 20px 24px; text-align: center; transition: box-shadow .25s, transform .25s;
}
.hero-stats > div:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--pri); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- 版块 ---------- */
.sec { padding: 80px 0; }
.sec.alt { background: var(--bg2); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head.l { text-align: left; margin-bottom: 24px; }
.sec-head em { display: block; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--pri); margin-bottom: 8px; }
.sec-head h2 { font-size: 32px; font-weight: 800; color: var(--ink); }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.sec-more { text-align: center; margin-top: 44px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-bd { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-bd h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.card-bd p { margin: 8px 0 14px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--pri); }
.card-more i { transition: transform .25s; }
.card:hover .card-more i { transform: translateX(4px); }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--faint); }

/* ---------- 简介/特性 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-txt p { color: var(--muted); margin-bottom: 26px; }
.about-feats { display: grid; gap: 16px; }
.feat { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: box-shadow .25s, transform .25s; }
.feat:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.feat i { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--pri-soft); color: var(--pri); font-size: 19px; }
.feat h3 { font-size: 16px; color: var(--ink); }
.feat p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.news-date { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--pri-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3; }
.news-date b { font-size: 22px; font-weight: 800; color: var(--pri); }
.news-date i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.news-bd h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-bd p { margin-top: 6px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--pri), #4f46e5); padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { color: #fff; font-size: 26px; font-weight: 800; }
.cta-in p { color: rgba(255, 255, 255, .85); margin-top: 6px; }

/* ---------- 页头横幅（内页） ---------- */
.ph { background: linear-gradient(135deg, #f4f7fd, #fdfdff); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.ph .crumb { font-size: 13px; color: var(--faint); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ph .crumb a:hover { color: var(--pri); }
.ph .crumb em { font-style: normal; color: #cbd5e1; }
.ph h1 { font-size: 32px; font-weight: 800; color: var(--ink); }
.ph p { margin-top: 8px; color: var(--muted); }

/* ---------- 分类 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--tx); transition: all .2s; }
.chip:hover { border-color: var(--pri); color: var(--pri); }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 600; }

/* ---------- 行式列表 ---------- */
.rows { display: grid; gap: 12px; }
.row {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
    transition: box-shadow .22s, border-color .22s, transform .22s;
}
.row:hover { border-color: var(--pri); box-shadow: var(--shadow); transform: translateX(4px); }
.row-date { flex: none; font-size: 12.5px; color: var(--faint); min-width: 86px; }
.row-bd { flex: 1; min-width: 0; }
.row-bd h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.row-bd p { font-size: 13.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row > .fa-angle-right { color: #cbd5e1; transition: transform .2s, color .2s; }
.row:hover > .fa-angle-right { color: var(--pri); transform: translateX(3px); }
.s-list mark { background: #fff3bf; color: inherit; border-radius: 2px; padding: 0 1px; }
.s-meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 搜索条 ---------- */
.search-bar { display: flex; gap: 12px; max-width: 560px; margin: 48px auto 0; }
.search-bar input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* ---------- 文章 ---------- */
.art { max-width: 860px; margin: 0 auto; }
.art.narrow { max-width: 780px; }
.art-title { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.art-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.art-meta i { margin-right: 4px; color: var(--faint); }
.art-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 26px; }
.art-pics { margin: 20px 0; }
.art-pics img { border-radius: 10px; }
.art-body { color: var(--tx); font-size: 15.5px; line-height: 2; }
.art-body img { border-radius: 10px; max-width: 100% !important; height: auto; }
.art-body h2, .art-body h3 { color: var(--ink); margin: 22px 0 10px; }
.art-body li { list-style: disc outside none; margin-left: 22px; }
.art-body blockquote { border-left: 4px solid var(--pri); background: var(--pri-soft); border-radius: 0 10px 10px 0; padding: 12px 18px; color: var(--muted); margin: 14px 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.art-body td, .art-body th { border: 1px solid var(--line); padding: 8px 12px; }
.art-body pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tag { display: inline-block; padding: 4px 13px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tag:hover { border-color: var(--pri); color: var(--pri); }
.tag.pri { background: var(--pri-soft); border-color: transparent; color: var(--pri); font-weight: 600; }
.art-do { display: flex; gap: 12px; justify-content: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.dobuf {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 24px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--tx); font-size: 14px; cursor: pointer; transition: all .2s;
    font-family: inherit;
}
.dobuf:hover { border-color: var(--pri); color: var(--pri); }
.dobuf:disabled { opacity: .5; cursor: not-allowed; }
.art-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn-card {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s;
}
.pn-card:hover { border-color: var(--pri); box-shadow: var(--shadow); }
.pn-card i { color: var(--pri); font-size: 20px; }
.pn-card span { font-size: 14px; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pn-card small { display: block; font-size: 12px; color: var(--faint); }
.pn-card.r { text-align: right; justify-content: flex-end; }

/* ---------- 评论/留言 ---------- */
.cmt-wrap, .cmt-title { max-width: 860px; margin-left: auto; margin-right: auto; }
.cmt-title { font-size: 19px; font-weight: 800; color: var(--ink); margin: 44px 0 18px; }
.cmt-title b { color: var(--pri); }
.cmt { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.cmt-bd { flex: 1; min-width: 0; }
.cmt-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmt-hd b { font-size: 14px; color: var(--ink); }
.cmt-hd time { font-size: 12px; color: var(--faint); }
.cmt-bd p { margin-top: 5px; font-size: 14.5px; color: var(--tx); }
.cmt-art { font-size: 13px !important; color: var(--faint) !important; }
.cmt-form { display: grid; gap: 12px; max-width: 640px; margin-top: 22px; }
.cmt-form .btn { justify-self: start; }

/* ---------- 留言页 ---------- */
.msg-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.msg-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.msg-item p { margin-top: 6px; font-size: 14.5px; color: var(--tx); }
.msg-reply { background: var(--pri-soft); border-left: 3px solid var(--pri); border-radius: 0 10px 10px 0; padding: 9px 14px; font-size: 13.5px; color: var(--tx); margin-top: 9px; }
.msg-reply:empty { display: none; }
.msg-reply:not(:empty)::before { content: "管理员回复："; font-weight: 700; color: var(--pri); }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 44px 0 0; }
.pager a, .pager span { padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--tx); }
.pager a:hover { border-color: var(--pri); color: var(--pri); }
.pager a.active { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 600; }
.pager span { color: var(--faint); border-style: dashed; }

/* ---------- 空态/404 ---------- */
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty i { font-size: 44px; color: #cbd5e1; margin-bottom: 14px; }
.empty .tip { font-size: 13px; color: var(--faint); }
.empty .tip a { color: var(--pri); }
.empty.big { padding: 40px 0; }
.e404 { font-size: 88px; font-weight: 800; color: var(--pri); opacity: .22; line-height: 1.2; }
.empty.big h1 { font-size: 26px; color: var(--ink); }
.empty.big p { margin: 8px 0 24px; }
.empty.big .hero-act { display: flex; justify-content: center; }

/* ---------- 会员中心 ---------- */
.um-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.um-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; text-align: center; }
.um-card h3 { font-size: 17px; color: var(--ink); }
.um-id { font-size: 13px; color: var(--faint); margin: 2px 0 14px; }
.um-points { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 20px; }
.um-points b { font-size: 28px; font-weight: 800; color: var(--pri); }
.um-points span { font-size: 12.5px; color: var(--muted); }
.um-tip { margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--bg2); border-radius: 10px; padding: 12px 16px; }

/* ---------- 登录/注册 ---------- */
.auth { min-height: calc(100vh - 340px); display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #f4f7fd, #fff 55%, #eff4ff); padding: 48px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 40px 36px; }
.auth-card .logo { font-size: 18px; margin-bottom: 26px; }
.auth-card h1 { font-size: 24px; font-weight: 800; color: var(--ink); }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 26px; }
.f-item { margin-bottom: 16px; }
.f-item label { display: block; font-size: 13.5px; color: var(--tx); margin-bottom: 6px; font-weight: 600; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--pri); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.ft { border-top: 1px solid var(--line); background: var(--bg2); padding: 56px 0 0; margin-top: 40px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.ft-brand p { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 300px; }
.ft-col h4 { font-size: 14.5px; color: var(--ink); margin-bottom: 14px; font-weight: 700; }
.ft-col li { margin: 7px 0; font-size: 13.5px; color: var(--muted); }
.ft-col a:hover { color: var(--pri); }
.ft-bar {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid var(--line); padding: 18px 24px; font-size: 12.5px; color: var(--faint);
}
.totop {
    position: fixed; right: 22px; bottom: 30px; z-index: 90;
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); color: var(--pri);
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .25s; cursor: pointer;
}
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { background: var(--pri); border-color: var(--pri); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .um-grid { grid-template-columns: 1fr; }
    .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nv {
        position: fixed; top: 0; right: -300px; bottom: 0; z-index: 99;
        width: 300px; background: #fff; flex-direction: column; align-items: stretch;
        padding: 84px 18px 24px; gap: 2px; transition: right .3s; overflow-y: auto;
        box-shadow: -10px 0 40px rgba(15, 23, 42, .12);
    }
    .nv.open { right: 0; }
    .nv > a, .nv-item > a { padding: 12px 14px; font-size: 15px; }
    .nv-item .sub { position: static; display: none; box-shadow: none; border: none; padding: 0 0 0 18px; }
    .nv-item.open .sub { display: block; }
    .burger { display: block; }
    .mask.show { display: block; }
    .g3, .news-grid { grid-template-columns: 1fr; }
    .hero-slide h1 { font-size: 30px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .msg-grid { grid-template-columns: 1fr; gap: 32px; }
    .art-pn { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .g4 { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .ft-grid { grid-template-columns: 1fr; }
    .sec { padding: 56px 0; }
    .hd-in { gap: 14px; }
    .link-login { display: none; }
    .search-bar { margin-top: 32px; }
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 自动表单（{yx:form}） ---------- */
.cms-form .form-item { margin-bottom: 16px; }
.cms-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--tx); margin-bottom: 6px; }
.cms-form label em { color: #e11d48; font-style: normal; margin-left: 2px; }
.cms-form input[type="text"], .cms-form input[type="email"], .cms-form input[type="tel"],
.cms-form select, .cms-form textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14.5px; color: var(--ink); background: #fff; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.cms-form input:focus, .cms-form select:focus, .cms-form textarea:focus {
    outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.cms-form textarea { resize: vertical; min-height: 120px; }
.cms-form button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 30px; border: none; border-radius: 10px;
    background: var(--pri); color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all .22s; font-family: inherit;
}
.cms-form button:hover { background: var(--pri-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }

/* ===================== 会员系统 ===================== */
.lv-card{text-align:center}
.lv-badge{display:inline-block;margin:.5rem 0 .9rem;padding:.3rem 1rem;border-radius:999px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:.85rem;font-weight:600;letter-spacing:.05em}
.prog-wrap{margin-bottom:.9rem}
.prog{height:8px;border-radius:999px;background:var(--bg2);overflow:hidden}
.prog i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#7c3aed);transition:width .6s}
.prog-txt{margin-top:.45rem;font-size:.78rem;color:var(--muted)}
.lv-expire{margin:.35rem 0 0;font-size:.78rem;color:var(--muted)}
.um-nav{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.8rem}
.um-nav a{display:block;padding:.6rem .9rem;border:1px solid var(--line);border-radius:10px;color:var(--tx);font-size:.9rem;text-decoration:none;background:#fff;transition:.2s}
.um-nav a:hover,.um-nav a.on{border-color:var(--pri);color:var(--pri);background:#eff6ff}
.narrow{max-width:860px}
.tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;font-size:.9rem}
.tbl th{padding:.75rem 1rem;text-align:left;background:var(--bg2);color:var(--ink);font-weight:600;white-space:nowrap}
.tbl td{padding:.7rem 1rem;border-top:1px solid var(--line);color:var(--tx);vertical-align:middle}
.tbl td.mono{font-family:ui-monospace,monospace;font-size:.82rem}
.tbl td.up{color:#16a34a;font-weight:600}
.tbl td.down{color:#dc2626;font-weight:600}
.tbl td.act{white-space:nowrap}
.st{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.78rem}
.st0{background:#fef3c7;color:#b45309}
.st1{background:#dcfce7;color:#15803d}
.st2{background:#f1f5f9;color:#64748b}
.btn-sm{padding:.35rem .8rem;font-size:.82rem;border-radius:8px}
.set-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.set-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.6rem}
.set-card h3{margin:0 0 1.1rem;font-size:1.05rem;display:flex;align-items:center;gap:.5rem}
.set-card h3 i{color:var(--pri)}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;margin-bottom:2rem}
.plan-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.8rem;overflow:hidden;transition:.25s}
.plan-card:hover{box-shadow:var(--shadow);transform:translateY(-3px)}
.plan-card.best{border-color:var(--pri);box-shadow:0 8px 30px rgba(37,99,235,.12)}
.plan-ribbon{position:absolute;top:14px;right:-32px;transform:rotate(45deg);background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:.72rem;padding:.2rem 2.2rem}
.plan-desc{color:var(--muted);font-size:.88rem;margin:.2rem 0 1rem}
.plan-price{display:flex;align-items:baseline;gap:.15rem;margin-bottom:.6rem}
.plan-price em{color:var(--pri);font-style:normal;font-size:1.1rem}
.plan-price b{font-size:2.4rem;line-height:1;color:var(--ink)}
.plan-price span{color:var(--muted);font-size:.85rem}
.plan-origin{font-size:.8rem;color:#dc2626;margin:0 0 .8rem}
.plan-benefits h3{margin:0 0 1rem;font-size:1.05rem}
.pay-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:2.2rem;text-align:center;max-width:520px;margin:0 auto}
.pay-no{font-size:.82rem;color:var(--muted);font-family:ui-monospace,monospace}
.pay-title{margin:.8rem 0 1rem;font-size:1.3rem}
.pay-amount{display:flex;align-items:baseline;justify-content:center;gap:.2rem;margin-bottom:.6rem}
.pay-amount em{color:var(--pri);font-style:normal;font-size:1.4rem}
.pay-amount b{font-size:3rem;color:var(--ink);line-height:1}
.pay-off{color:#dc2626;font-size:.85rem;margin:.2rem 0 1rem}
.pay-tip{font-size:.82rem;color:var(--muted);background:var(--bg2);border-radius:10px;padding:.7rem 1rem;margin:0 0 1.2rem}
.pay-card form{margin-top:.6rem}
.pay-ok{color:#15803d;font-size:1.05rem;font-weight:600;padding:1rem 0}
.pay-cancel{color:var(--muted);padding:1rem 0}
@media (max-width:860px){.set-grid,.plan-grid{grid-template-columns:1fr}.tbl{font-size:.82rem}.tbl th,.tbl td{padding:.55rem .6rem}}
