/* 颜氏家训 App — 商店静态页共用样式 */
:root {
  --paper: #f6f1e7;
  --paper-elevated: #fffdf8;
  --ink: #1c1914;
  --ink-secondary: #5c564c;
  --seal: #9c2b1f;
  --seal-soft: rgba(156, 43, 31, 0.12);
  --stroke: rgba(28, 25, 20, 0.12);
  --max: 42rem;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC",
    "PingFang SC", "Hiragino Mincho ProN", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(156, 43, 31, 0.06), transparent 55%),
    linear-gradient(180deg, #faf6ee 0%, var(--paper) 40%, #f0e9dc 100%);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--seal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7a2118;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 231, 0.88);
  border-bottom: 1px solid var(--stroke);
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1.5px solid var(--seal);
  border-radius: 0.35rem;
  color: var(--seal);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sub {
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
}

.nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--seal);
}

/* Main */
main {
  padding: 2.25rem 0 3.5rem;
}

.hero {
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--seal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.rule {
  width: 2.25rem;
  height: 2px;
  margin: 1.1rem 0 0;
  background: var(--seal);
  opacity: 0.55;
  border: 0;
}

.card {
  background: var(--paper-elevated);
  border: 1px solid var(--stroke);
  border-radius: 0.85rem;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.card + .card {
  margin-top: 1rem;
}

.features {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  background: var(--paper-elevated);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
}

.features .dot {
  margin-top: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--seal);
  opacity: 0.85;
}

.features strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
}

.features span {
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--seal);
  color: #fffdf8;
}

.btn-primary:hover {
  background: #7a2118;
  color: #fffdf8;
}

.btn-ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--seal);
  color: var(--seal);
  background: var(--seal-soft);
}

.meta-line {
  margin-top: 1.5rem;
  color: var(--ink-secondary);
  font-size: 0.85rem;
}

h2 {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 650;
}

h3 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink-secondary);
}

.prose p {
  margin: 0 0 0.9rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.faq details {
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--paper-elevated);
  border: 1px solid var(--stroke);
  border-radius: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

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

.faq summary::before {
  content: "＋";
  margin-right: 0.45rem;
  color: var(--seal);
  font-weight: 500;
}

.faq details[open] summary::before {
  content: "－";
}

.faq details p {
  margin: 0.65rem 0 0;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--seal-soft);
  border-radius: 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.updated {
  margin-top: 2rem;
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1.75rem 0 2.25rem;
  background: rgba(240, 233, 220, 0.55);
}

.site-footer .inner {
  display: grid;
  gap: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--seal);
}

.site-footer .beian-police {
  white-space: nowrap;
}

.site-footer .beian-police-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
}

@media (max-width: 520px) {
  .site-header .inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }
}
