:root {
  --ink: #16202e;
  --ink-2: #25323f;
  --muted: #6b7886;
  --line: #e4e9ef;
  --bg: #f5f7fa;
  --card: #ffffff;
  --brand: #c8a24b;
  --brand-d: #a9852f;
  --brand-soft: #f7efdd;
  --ok: #3f8f7d;
  --warn: #c9772f;
  --bad: #c0504d;
  --shadow: 0 8px 28px rgba(22, 32, 46, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
svg.i { width: 17px; height: 17px; flex: 0 0 auto; vertical-align: -3px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .4em; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: .18s; font-weight: 600;
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.btn--solid { background: var(--brand); color: #2a2310; border-color: var(--brand); }
.btn--solid:hover { background: var(--brand-d); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-d); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 页头 */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(22,32,46,.04); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; min-width: 0; }
.brand-txt { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.brand-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.brand-sub::before { content: ''; flex: 0 0 13px; width: 13px; height: 1px; background: currentColor; opacity: .5; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 18px; padding: 6px 10px; cursor: pointer; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; }
.nav-link:hover { color: var(--brand-d); }
.head-account { display: flex; align-items: center; gap: 10px; }
.only-mobile { display: none; }

/* 页脚 */
.site-foot { background: var(--ink); color: #cfd8e3; margin-top: 48px; }
.foot-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: 40px 0 26px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.foot-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot-link { display: block; color: #aebccb; font-size: 13px; padding: 4px 0; }
.foot-link:hover { color: var(--brand); }
.site-foot .muted { color: #9fb0c0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #9fb0c0; }
.icp-link { color: #cdb277; }
.icp-link:hover { text-decoration: underline; }

/* 通用区块 */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-d); border: 1px solid #ecdfbf; }
.tag--ink { background: #eef1f5; color: var(--ink-2); border-color: var(--line); }
.tag--ok { background: #e7f2ee; color: var(--ok); border-color: #cfe6df; }
.tag--warn { background: #fbeede; color: var(--warn); border-color: #f0d8bf; }
.tag--bad { background: #f7e3e2; color: var(--bad); border-color: #efc9c7; }

/* 卡片列表 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.lcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,32,46,.13); }
.lcard__cover { position: relative; aspect-ratio: 2 / 1; background: #eef1f5; overflow: hidden; }
.lcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.lcard__cat { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(22,32,46,.78); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.lcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lcard__title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.lcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; margin-top: auto; }
.lcard__pub { color: var(--ink-2); }

/* Hero */
.hero { background: linear-gradient(135deg, #16202e 0%, #243347 100%); color: #fff; padding: 54px 0 48px; }
.hero h1 { font-size: 34px; margin-bottom: 14px; }
.hero p { color: #b9c6d6; max-width: 640px; font-size: 16px; }
.hero .hero-sub { margin-top: 6px; color: #c8a24b; font-weight: 600; letter-spacing: 1px; }
.hero-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn--solid { background: var(--brand); color: #2a2310; }
.hero-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* 类目 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand-d); }
.chip.active { background: var(--brand); color: #2a2310; border-color: var(--brand); }
.chip .i { color: var(--brand-d); }
.chip.active .i { color: #2a2310; }

/* 搜索栏 */
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar input { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.searchbar input:focus { outline: none; border-color: var(--brand); }

/* 详情页 */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.detail-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.detail-main h1 { font-size: 26px; }
.detail-cover { aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; margin: 16px 0 20px; background: #eef1f5; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-content p { margin: 0 0 14px; color: var(--ink-2); }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.contact-phone { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--ink); margin: 8px 0; }
.contact-phone .i { color: var(--brand-d); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.meta-row:last-child { border-bottom: none; }
.meta-row .k { color: var(--muted); }

/* 表单 */
.form { max-width: 680px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form input[type=text], .form input[type=password], .form input[type=tel], .form input[type=email], .form select, .form textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); margin: 8px 0; }
.check input { margin-top: 3px; }
.check a { color: var(--brand-d); }
.hint { font-size: 13px; color: var(--muted); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 6px; }

/* 状态条 */
.status-bar { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.status-bar--pending { background: #fbeede; color: var(--warn); border: 1px solid #f0d8bf; }
.status-bar--rejected { background: #f7e3e2; color: var(--bad); border: 1px solid #efc9c7; }
.status-bar--approved { background: #e7f2ee; color: var(--ok); border: 1px solid #cfe6df; }

/* 会员/充值 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.plan--featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(200,162,75,.18); }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 800; color: var(--ink); }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: 13.5px; flex: 1; }
.plan .kind { font-size: 12px; color: var(--brand-d); }

/* 后台 */
.adm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.adm-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
.adm > *, .adm-grid > * { min-width: 0; }
.adm-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); align-self: start; }
.adm-side .tab { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; cursor: pointer; margin-bottom: 4px; }
.adm-side .tab:hover { background: var(--bg); }
.adm-side .tab.active { background: var(--brand); color: #2a2310; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 26px; font-weight: 800; color: var(--ink); }
.stat .l { color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 880px; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--bg); color: var(--ink-2); font-weight: 700; position: sticky; top: 0; }
table.data th:first-child { min-width: 168px; }
table.data tr:hover td { background: #fafbfc; }
.row-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.row-actions .btn { padding: 5px 11px; font-size: 12.5px; }

/* 证件 */
.docs { display: flex; flex-direction: column; gap: 12px; }
.doc { width: 100%; max-width: 300px; aspect-ratio: 1.58; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f4f7fa; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.doc img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.docs--sm { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
.docs--sm .doc { width: 78px; height: 50px; aspect-ratio: auto; border-radius: 8px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(22,32,46,.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: #fff; border-radius: 14px; padding: 24px; width: min(560px, 94vw); max-height: 90vh; overflow: auto; }
.modal h3 { margin-top: 0; }
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 20px; }

/* 关于页 */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.prose p { color: var(--ink-2); }
.prose .lead { font-size: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.info-grid .it { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.info-grid .it .k { color: var(--muted); font-size: 13px; }
.info-grid .it .v { font-weight: 700; margin-top: 4px; }

/* 响应式 */
@media (max-width: 960px) {
  .brand-name { font-size: 15px; }
  .brand { gap: 8px; }
  .logo-mark { width: 36px; height: 36px; }
  .brand-sub { font-size: 10.5px; letter-spacing: 1px; gap: 5px; }
  .brand-sub::before { flex-basis: 10px; width: 10px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 4vw 18px; gap: 10px; box-shadow: 0 12px 24px rgba(22,32,46,.1); }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .head-account { display: none; }
  .only-mobile { display: inline-flex; }
  .foot-inner { grid-template-columns: 1fr; gap: 22px; }
  .detail { grid-template-columns: 1fr; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .form .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 26px; }
  .section-head h2 { font-size: 20px; }
}
