/* ==========================================================================
   品源富豪圈 · 内容页样式（/guide/ 与 /404.html 用）
   —— 与 base.css 是两套东西：base.css 是「一张手机卡片」的应用壳，
      这里是**正常文档流**的长文阅读版式，桌面端可读宽度 720px。
      故意不共用 html{font-size:min(100vw,430px)/7.5} ——
      那套 rem 换算会把长文拉到手机上只有 430px 宽、字号随视口漂移。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #FFF8F4;
  color: #2B2118;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ---- 顶部：品牌条 + 面包屑 ---- */
.topbar {
  border-bottom: 1px solid #F0E4DA;
  background: rgba(255, 248, 244, .96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}

.topbar .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #2B2118;
  text-decoration: none;
  letter-spacing: .01em;
}

.brand .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FF6B35;
  flex: none;
}

.topbar .spacer { flex: 1; }

.topbar .cta {
  color: #FF6B35;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.topbar .cta:hover { text-decoration: underline; }

.crumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 13px;
  color: #8A7A6B;
}

.crumb a { color: #8A7A6B; text-decoration: none; }
.crumb a:hover { color: #FF6B35; }
.crumb .sep { margin: 0 6px; opacity: .5; }

/* ---- 正文 ---- */
article { padding-top: 20px; }

h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  font-weight: 800;
}

.lede {
  font-size: 16px;
  color: #6B5D50;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F0E4DA;
}

h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 38px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #FF6B35;
  font-weight: 800;
  scroll-margin-top: 72px;
}

h3 {
  font-size: 17px;
  margin: 26px 0 8px;
  font-weight: 700;
}

p { margin: 0 0 16px; }

a { color: #FF6B35; text-decoration: none; border-bottom: 1px solid rgba(255, 107, 53, .35); }
a:hover { border-bottom-color: #FF6B35; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }

strong { font-weight: 700; }

code {
  background: #F7EFE8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- 表格：分位锚点 / 段位表 ---- */
.tablebox { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 420px;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #F0E4DA;
  vertical-align: top;
}

th {
  background: #FDF3EC;
  font-weight: 700;
  white-space: nowrap;
  color: #5A4A3C;
  font-size: 14px;
}

tbody tr:last-child td { border-bottom: 0; }

td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 提示块 ---- */
.note {
  background: #FFF;
  border: 1px solid #F0E4DA;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 15px;
  color: #5A4A3C;
}

.note b { color: #2B2118; }

.note.warn { background: #FFF6F0; border-color: #FFD9C4; }

/* ---- 卡片式内链 ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.cards li { margin: 0; }

.cards a {
  display: block;
  background: #FFF;
  border: 1px solid #F0E4DA;
  border-radius: 14px;
  padding: 16px 18px;
  color: inherit;
  border-bottom: 1px solid #F0E4DA;
  transition: border-color .15s ease, transform .15s ease;
}

.cards a:hover { border-color: #FF6B35; transform: translateY(-1px); }

.cards .t { display: block; font-weight: 700; margin-bottom: 4px; color: #2B2118; }
.cards .d { display: block; font-size: 14px; color: #7A695B; line-height: 1.7; }

/* ---- 主按钮 ---- */
.btn {
  display: inline-block;
  background: #FF6B35;
  color: #FFF;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 107, 53, .28);
}

.btn:hover { background: #F05F2B; }

.btnrow { margin: 30px 0 8px; }

/* ---- FAQ ---- */
details {
  background: #FFF;
  border: 1px solid #F0E4DA;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 12px;
}

details[open] { border-color: #FFD9C4; }

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  color: #FF6B35;
  font-weight: 400;
}

details[open] summary::after { content: "−"; }

details p { margin: 12px 0 0; color: #5A4A3C; font-size: 15px; }

/* ---- 页脚 ---- */
footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #F0E4DA;
  font-size: 13px;
  color: #8A7A6B;
  line-height: 1.9;
}

footer nav { margin-bottom: 10px; }
footer a { color: #8A7A6B; border-bottom: 0; }
footer a:hover { color: #FF6B35; }
footer .sep { margin: 0 8px; opacity: .5; }

/* ---- 404 ---- */
.center404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center404 h1 { font-size: 44px; margin-bottom: 8px; }
.center404 p { color: #6B5D50; max-width: 380px; }

@media (max-width: 520px) {
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .wrap { padding: 0 16px 56px; }
  .topbar .cta { font-size: 13px; }
}

/* 出品方一行：比正文页脚再淡一档，它只需要被看到，不需要被读 */
footer .by { margin-top: 4px; font-size: 12px; color: #A99A8C; }
footer .by a { border-bottom: 1px solid #E6D9CE; }
