/* ============================================================
   sh.renhui.work 资料商店 — 黑金主题
   与网页工作台同一套视觉语言：近黑底 #0f1216 + 暖白文字 + 金 #c9a45c 唯一强调色。
   金只用在品牌、价格、主按钮、悬停态；正文一律暖白与灰，避免金色泛滥。
   ============================================================ */
:root {
  color-scheme: dark;

  /* 金：唯一强调色 */
  --gold: #c9a45c;
  --gold-bright: #e6cf9a;
  --gold-deep: #a5813f;
  --gold-soft: rgba(201, 164, 92, .13);
  --gold-line: rgba(201, 164, 92, .45);
  /* 拉丝金渐变（高光→主色→暗部），金属感来源 */
  --gold-grad: linear-gradient(135deg, #f0d9a8 0%, #c9a45c 48%, #a5813f 100%);
  --gold-grad-bright: linear-gradient(135deg, #f7e6bb 0%, #e6cf9a 50%, #c9a45c 100%);

  /* 中性底（暖黑，不用纯黑） */
  --bg: #0f1216;
  --bg-soft: #181d24;
  --card: #161b22;
  --card-2: #1d242e;
  --card-top: #1a2029;
  --ink: #e9e4d8;          /* 主文字（暖白） */
  --sub: #a9a294;          /* 次级正文 */
  --faint: #8a8374;        /* 元信息 / 占位（比工作台原值提一档，深底上小字仍可读） */
  --line: #272e38;
  --line-strong: #39424f;
  --danger: #d07a6a;

  /* 噪点颗粒：叠在深底上做纸张质感 */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --radius: 14px;
  --max: 1080px;
  --serif: "Songti SC", "STZhongsong", "Source Han Serif SC", "Noto Serif CJK SC",
           "SimSun", Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .5);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #3a2f1d transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a2f1d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(201, 164, 92, .30); color: #fff; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 顶部 2px 金线：品牌收口 */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(201, 164, 92, .1) 0%, #f0d9a8 18%,
    #c9a45c 50%, #f0d9a8 82%, rgba(201, 164, 92, .1) 100%);
  box-shadow: 0 1px 8px rgba(201, 164, 92, .35);
}
/* 极淡颗粒层：胶片/纸张质感，不挡交互 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: var(--noise);
  background-size: 140px 140px;
  opacity: .035;
}

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 22, .86);
  backdrop-filter: saturate(140%) blur(10px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 1.6px; color: var(--ink);
  font-family: var(--serif); font-size: 18px;
}
.brand:hover { color: var(--ink); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--gold-grad);
  box-shadow: 0 0 8px rgba(201, 164, 92, .55), inset 0 1px 1px rgba(255, 255, 255, .35);
}
.brand small {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400; color: var(--faint); font-size: 11px; letter-spacing: 1.4px;
}
.nav { display: flex; gap: 24px; font-size: 14.5px; }
.nav a { color: var(--sub); }
.nav a:hover { color: var(--gold); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 82px 0 48px; overflow: hidden; }
/* 顶部金色柔光：给纯黑底一点纵深 */
.hero::before {
  content: "";
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201, 164, 92, .10) 0%,
    rgba(201, 164, 92, .04) 42%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero .eyebrow {
  font-size: 12px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 20px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.hero .eyebrow::after {
  content: ""; height: 1px; width: 48px; flex: none;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}
.hero h1 {
  font-size: 42px; line-height: 1.32; margin: 0 0 22px;
  letter-spacing: .01em; font-weight: 700; max-width: 800px;
  color: var(--ink);
}
.hero p.lead { font-size: 16.5px; color: var(--sub); max-width: 660px; margin: 0; }
.hero .meta {
  margin-top: 28px; font-size: 13px; color: var(--faint);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.hero .meta span { position: relative; }
.hero .meta span + span::before {
  content: ""; position: absolute; left: -15px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong);
}

/* ---------- 商品卡 ---------- */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  padding: 14px 0 24px;
}
.card {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-sm);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out),
    box-shadow .2s var(--ease-out);
}
.card:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
    0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(201, 164, 92, .10);
}
.card .badge {
  align-self: flex-start;
  font-size: 11px; letter-spacing: 1.6px; font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(201, 164, 92, .30);
  border-radius: 999px;
  padding: 3px 11px; margin-bottom: 16px;
}
.card h3 {
  font-size: 21px; margin: 0 0 8px; letter-spacing: .01em;
  color: var(--ink);
}
.card .sub {
  font-size: 12px; color: var(--faint); margin: 0 0 14px;
  letter-spacing: 1.2px;
}
.card .tagline { font-size: 14.5px; color: var(--sub); margin: 0 0 20px; flex: 1; }
.card .facts { font-size: 12.5px; color: var(--faint); margin-bottom: 20px; }
.card .facts b { color: var(--ink); font-weight: 600; }
.card .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.price {
  font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2;
  font-family: var(--serif);
  color: var(--gold-bright);
}
.price i {
  font-style: normal; font-size: 15px; font-weight: 500; margin-right: 4px;
  color: var(--gold-deep);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; flex-shrink: 0;
  border: 1px solid var(--gold-deep);
  background: var(--gold-grad);
  color: #14181d;
  border-radius: 9px; padding: 11px 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), 0 2px 10px rgba(201, 164, 92, .22);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease,
    transform .16s ease;
}
.btn:hover {
  background: var(--gold-grad-bright);
  border-color: var(--gold);
  color: #14181d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 18px rgba(201, 164, 92, .34);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: var(--gold-grad); }

.btn.ghost {
  background: var(--card); color: var(--sub);
  border-color: var(--line-strong);
  box-shadow: none; font-weight: 500;
}
.btn.ghost:hover {
  background: var(--gold-soft); color: var(--gold);
  border-color: var(--gold-line);
}
.btn.lg { padding: 14px 30px; font-size: 16px; width: 100%; }

/* ---------- 段落块 ---------- */
.section { padding: 54px 0; border-top: 1px solid var(--line); }
.section h2 {
  font-size: 24px; margin: 0 0 10px; letter-spacing: .01em;
  display: flex; align-items: center; gap: 12px;
}
/* 标题前一小段金线，替代色块，克制 */
.section h2::before {
  content: ""; width: 3px; height: 19px; flex: none; border-radius: 2px;
  background: var(--gold-grad);
}
.section .note { color: var(--sub); font-size: 14.5px; margin: 0 0 28px; max-width: 680px; }

.cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color .18s ease;
}
.tile:hover { border-color: var(--line-strong); }
.tile h4 {
  margin: 0 0 12px; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.tile h4::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--gold-grad);
  box-shadow: 0 0 6px rgba(201, 164, 92, .5);
}
.tile ul { margin: 0; padding-left: 18px; color: var(--sub); font-size: 14px; }
.tile li { margin-bottom: 8px; }
.tile li:last-child { margin-bottom: 0; }
.tile li::marker { color: var(--gold-deep); }
.tile b { color: var(--ink); font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail { padding: 46px 0 76px; }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 28px; letter-spacing: .5px; }
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--gold); }
.detail-head { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
.detail-head h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: .01em; line-height: 1.35; }
.detail-head .sub {
  font-size: 12px; color: var(--faint); margin: 0 0 24px; letter-spacing: 1.4px;
}
.detail-head .intro { font-size: 15.5px; color: var(--sub); margin: 0 0 20px; }
.detail-head .badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.6px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(201, 164, 92, .30);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 16px;
}
.pay-state { font-size: 13px; color: var(--faint); margin: 0; }

.buybox {
  position: sticky; top: 88px;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 50%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--shadow-soft);
}
.buybox .p {
  font-family: var(--serif);
  font-size: 34px; font-weight: 700; letter-spacing: -.8px; line-height: 1.15;
  margin-bottom: 6px;
  color: var(--gold-bright);
}
.buybox .p i {
  font-style: normal; font-size: 18px; font-weight: 500; margin-right: 4px;
  color: var(--gold-deep);
}
.buybox .hint { font-size: 12.5px; color: var(--faint); margin: 0 0 20px; }
.buybox ul {
  margin: 18px 0 0; padding: 18px 0 0 17px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--sub);
}
.buybox li { margin-bottom: 7px; }
.buybox li::marker { color: var(--gold-deep); }
.buy-note {
  margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.7; color: var(--faint);
}
.buy-note a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.buy-note a:hover { color: var(--gold); }
.msg { font-size: 13px; margin-top: 12px; color: var(--danger); min-height: 20px; }

/* ---------- 表格 ---------- */
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
table.plain th, table.plain td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plain th { font-weight: 600; color: var(--ink); width: 30%; }
table.plain td { color: var(--sub); }
table.plain td.spec {
  text-align: right; white-space: nowrap; color: var(--faint);
  font-size: 12.5px; width: 96px;
  font-family: "Cascadia Mono", Consolas, monospace;
}
table.plain tbody tr { transition: background .15s ease; }
table.plain tbody tr:hover { background: var(--bg-soft); }
table.plain tr:last-child th, table.plain tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; font-size: 15.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  color: var(--ink); transition: color .15s ease;
}
.faq summary:hover { color: var(--gold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--gold-deep); font-weight: 400;
  font-size: 20px; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "−"; color: var(--gold); }
.faq p { margin: 12px 0 0; color: var(--sub); font-size: 14px; max-width: 780px; }

/* 声明性正文：不带缩进、段距略大，读起来像正式说明而非营销文案 */
.prose { max-width: 760px; }
.prose p {
  margin: 0 0 17px; color: #c3bcac; font-size: 14.5px; line-height: 1.9;
  text-align: justify; letter-spacing: .2px;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- 下载页 ---------- */
.dl-wrap { max-width: 720px; margin: 0 auto; padding: 66px 24px 84px; }
.dl-wrap h1 { font-size: 28px; margin: 0 0 10px; letter-spacing: .01em; }
.dl-wrap .lede { color: var(--sub); margin: 0 0 30px; font-size: 14.5px; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px; margin-bottom: 11px;
  transition: border-color .18s ease;
}
.file-row:hover { border-color: var(--gold-line); }
.file-row .nm { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-all; }
.file-row .mt {
  font-size: 12.5px; color: var(--faint); margin-top: 5px;
  font-family: "Cascadia Mono", Consolas, monospace;
}
.file-row .btn { padding: 8px 18px; font-size: 14px; }
.state { text-align: center; padding: 44px 0; color: var(--sub); }
.state .big {
  font-size: 44px; line-height: 1; margin-bottom: 18px;
  color: var(--gold-deep); opacity: .5;
}
.dl-note { font-size: 13.5px; color: var(--faint); margin-top: 14px; }
.sold-out { font-size: 13px; color: var(--danger); white-space: nowrap; }
.tipbox {
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px; margin-top: 26px;
  font-size: 13.5px; color: var(--sub); line-height: 1.85;
}
.tipbox b { color: var(--gold-bright); font-weight: 600; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  font-size: 12.5px; color: var(--faint);
  background: #0c0f13;
  letter-spacing: .4px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--sub); }
footer a:hover { color: var(--gold); }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  body { font-size: 15.5px; }
  .detail-head { grid-template-columns: 1fr; gap: 30px; }
  .buybox { position: static; top: auto; }
  .hero { padding: 56px 0 34px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .nav { display: none; }
  .section { padding: 42px 0; }
  .section h2 { font-size: 21px; }
  .wrap { padding: 0 18px; }
  .detail-head h1 { font-size: 26px; }
  .card { padding: 22px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
