:root {
  --brand: #A9503F;
  --brand-strong: #8d4033;
  --gold: #D9A15B;
  --ink: #241F1D;
  --text: #332E2B;
  --muted: #746B65;
  --paper: #F8F5F1;
  --soft: #EFE8E1;
  --accent: #E07A3F;
  --line: #ded4ca;
  --white: #fffdfb;
  --shadow: 0 18px 50px rgba(36, 31, 29, .09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 241, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(169, 80, 63, .12);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.brand { display: inline-flex; gap: 12px; align-items: center; min-width: 190px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 20px; color: var(--ink); letter-spacing: .04em; }
.brand small { color: var(--muted); margin-top: 5px; font-size: 12px; }
.primary-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.primary-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #504741;
  font-size: 14px;
  transition: .18s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { background: var(--soft); color: var(--brand-strong); }
.search-trigger,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
}
.menu-toggle { display: none; }

.search-modal[hidden] { display: none !important; }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(36, 31, 29, .62);
  display: grid;
  place-items: start center;
  padding: 11vh 20px 20px;
}
.search-modal__panel {
  width: min(680px, 100%);
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.search-modal__panel h2 { margin: 0 48px 6px 0; color: var(--ink); font-size: clamp(26px, 4vw, 38px); }
.search-modal__panel p { margin: 0 0 22px; color: var(--muted); }
.search-modal__close { position: absolute; top: 18px; right: 18px; border: 0; background: var(--soft); border-radius: 999px; padding: 8px 12px; }
.site-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.search-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-line input { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: white; color: var(--ink); }
.search-line button { border: 0; border-radius: 14px; padding: 13px 18px; background: var(--brand); color: white; font-weight: 700; }

.site-main { min-height: 60vh; }
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #f8f1ec; }
.section--tight { padding: 48px 0; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(220px, 420px); gap: 30px; align-items: end; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--ink); }
.section-heading p { margin: 0; color: var(--muted); }
.section--dark .section-heading h2,
.section--dark h2,
.section--dark h3 { color: white; }
.section--dark .section-heading p,
.section--dark p { color: #d8ccc3; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section--dark .eyebrow { color: #efbd7d; }
.kicker { color: var(--brand); font-weight: 800; letter-spacing: .08em; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: #5c504b; max-width: 780px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #625852; background: rgba(255,255,255,.45); font-size: 13px; }

.hero-editorial { padding: 38px 0 58px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.hero-cover {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.hero-cover img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; opacity: .78; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,31,29,.03) 26%, rgba(36,31,29,.86) 100%); }
.hero-cover__copy { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 32px; color: white; }
.hero-cover__copy .eyebrow { color: #f1c38c; }
.hero-cover__copy h1 { margin: 0 0 15px; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; max-width: 820px; letter-spacing: -.03em; }
.hero-cover__copy p { margin: 0; max-width: 720px; font-size: 18px; color: #f3eae4; }
.hero-rail { display: grid; gap: 18px; grid-template-rows: auto auto 1fr; }
.entry-panel,
.hero-search,
.mini-feature {
  border-radius: 26px;
  background: var(--soft);
  padding: 24px;
  border: 1px solid rgba(169,80,63,.09);
}
.entry-panel h2,
.hero-search h2,
.mini-feature h2 { margin: 0 0 10px; color: var(--ink); line-height: 1.2; }
.entry-list { display: grid; gap: 10px; margin-top: 18px; }
.entry-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.entry-link strong { color: var(--ink); }
.entry-link span { color: var(--muted); font-size: 13px; }
.entry-link::after { content: "→"; color: var(--brand); }
.hero-search form { margin-top: 14px; }
.hero-search input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: white; }
.hero-search button { margin-top: 10px; width: 100%; border: 0; border-radius: 14px; padding: 11px; background: var(--brand); color: white; font-weight: 800; }
.mini-feature { background: var(--brand); color: #fff7f3; align-self: stretch; }
.mini-feature h2 { color: white; }
.mini-feature p { color: #f6ded7; }
.mini-feature a { display: inline-flex; margin-top: 12px; color: white; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.45); }

.headline-flow { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.headline-main { padding-right: 24px; border-right: 1px solid var(--line); }
.headline-main h2 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.08; color: var(--ink); }
.headline-main p { font-size: 18px; color: var(--muted); }
.headline-stack { display: grid; gap: 0; }
.headline-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.headline-item:first-child { padding-top: 0; }
.headline-item h3 { margin: 4px 0 7px; font-size: 22px; line-height: 1.3; }
.headline-item p { margin: 0; color: var(--muted); }
.text-link { color: var(--brand-strong); font-weight: 800; display: inline-flex; gap: 5px; align-items: center; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }

.horizontal-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 16px; overflow-x: auto; padding: 3px 2px 18px; scroll-snap-type: x mandatory; }
.horizontal-strip > * { scroll-snap-align: start; }
.content-card { background: var(--white); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.content-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.content-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .content-card__media img { transform: scale(1.025); }
.content-card__body { padding: 20px; }
.content-card__body h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; color: var(--ink); }
.content-card__body p { margin: 0 0 14px; color: var(--muted); }

.device-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.device-feature { min-height: 320px; border-radius: 28px; overflow: hidden; position: relative; background: var(--ink); }
.device-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.device-feature__copy { position: relative; z-index: 2; padding: 30px; color: white; max-width: 540px; }
.device-feature__copy h3 { margin: 0 0 10px; font-size: 34px; line-height: 1.1; }
.device-feature__copy p { color: #eadfd8; }
.device-feature__copy a { color: #ffd29d; font-weight: 800; }

.mosaic { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.mosaic-large .content-card__media { aspect-ratio: 5 / 3; }
.mosaic-side { display: grid; gap: 18px; }
.mosaic-side .content-card { display: grid; grid-template-columns: 160px 1fr; }
.mosaic-side .content-card__media { aspect-ratio: auto; min-height: 100%; }

.topic-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.topic-feature { border-radius: 28px; overflow: hidden; min-height: 390px; position: relative; }
.topic-feature img { width: 100%; height: 390px; object-fit: cover; }
.topic-feature__copy { position: absolute; inset: auto 0 0; padding: 30px; background: linear-gradient(180deg, transparent, rgba(36,31,29,.92)); color: white; }
.topic-feature__copy h3 { margin: 0 0 8px; font-size: 34px; }
.topic-feature__copy p { margin: 0 0 12px; color: #efe5de; }
.topic-list { display: grid; }
.topic-teaser { padding: 20px 0; border-bottom: 1px solid var(--line); }
.topic-teaser:first-child { padding-top: 0; }
.topic-teaser h3 { margin: 0 0 7px; font-size: 23px; color: var(--ink); }
.topic-teaser p { margin: 0 0 10px; color: var(--muted); }

.index-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.compact-list { list-style: none; margin: 0; padding: 0; }
.compact-list li { border-bottom: 1px solid var(--line); padding: 15px 0; }
.compact-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: baseline; }
.compact-list strong { color: var(--ink); }
.compact-list span { color: var(--muted); font-size: 13px; }

.page-hero { padding: 58px 0 42px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 34px; align-items: end; }
.page-hero h1 { margin: 0 0 16px; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; color: var(--ink); letter-spacing: -.035em; }
.page-hero p { margin: 0; font-size: 18px; color: var(--muted); }
.page-hero__image { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { margin-top: 26px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; color: var(--muted); font-size: 13px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #ac9f96; }
.breadcrumb a:hover { color: var(--brand); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 28px; }
.filter-bar a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: var(--white); color: #5c514b; }
.filter-bar a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: white; }

.list-flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.list-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; padding: 20px; background: var(--white); }
.list-row img { width: 120px; height: 86px; border-radius: 12px; object-fit: cover; }
.list-row h2, .list-row h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; color: var(--ink); }
.list-row p { margin: 0; color: var(--muted); }
.list-row .row-action { color: var(--brand); font-weight: 800; white-space: nowrap; }

.prose { font-size: 17px; }
.prose h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -.03em; margin: 12px 0 18px; color: var(--ink); }
.prose h2 { margin: 46px 0 14px; font-size: 30px; line-height: 1.24; color: var(--ink); }
.prose h3 { margin: 28px 0 10px; font-size: 22px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: 8px; }
.prose .lead { margin-bottom: 24px; }
.article-hero-image { margin: 30px 0; border-radius: 28px; overflow: hidden; }
.article-hero-image img { width: 100%; max-height: 470px; object-fit: cover; }
.article-aside { margin: 36px 0; padding: 24px; background: var(--soft); border-radius: 20px; border-left: 4px solid var(--gold); }
.article-aside h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); background: var(--white); border-radius: 16px; overflow: hidden; }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px 20px; font-weight: 800; }
.faq-question::after { content: "+"; color: var(--brand); font-size: 22px; }
.faq-item[data-open="true"] .faq-question::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer[hidden] { display: none !important; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: white; font-weight: 800; border: 1px solid var(--brand); }
.button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.button--ghost { background: transparent; color: var(--brand-strong); border-color: #c8b8ae; }
.button--light { background: #fff7f1; border-color: #fff7f1; color: var(--ink); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-box { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.info-box h2, .info-box h3 { margin-top: 0; color: var(--ink); }
.info-box p:last-child { margin-bottom: 0; }
.step-list { counter-reset: steps; display: grid; gap: 14px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step::before { content: counter(steps); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: white; font-weight: 900; }
.step h3 { margin: 3px 0 6px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

.topic-page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 38px 0 50px; }
.topic-page-hero img { border-radius: 30px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.topic-page-hero h1 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; color: var(--ink); }
.topic-links { display: grid; gap: 12px; }
.topic-link-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.topic-link-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.topic-link-card p { margin: 0; color: var(--muted); }
.topic-link-card span { color: var(--brand); font-weight: 800; }

.search-results { display: grid; gap: 14px; margin-top: 24px; }
.search-result { padding: 20px; border: 1px solid var(--line); background: var(--white); border-radius: 18px; }
.search-result h2 { margin: 0 0 8px; font-size: 23px; color: var(--ink); }
.search-result p { margin: 0 0 10px; color: var(--muted); }
.empty-state { padding: 30px; border-radius: 22px; background: var(--soft); }
.empty-state h2 { margin-top: 0; color: var(--ink); }

.notice { padding: 18px 20px; border-radius: 16px; background: #f3e6dc; border: 1px solid #e6cdbb; }
.notice strong { color: var(--ink); }
.contact-card { padding: 28px; border-radius: 24px; background: var(--ink); color: #f3eae4; }
.contact-card h2 { color: white; margin-top: 0; }
.contact-card a { color: #ffd09d; font-weight: 800; }
.error-page { padding: 110px 0; }
.error-page h1 { margin: 0 0 14px; font-size: clamp(40px, 6vw, 70px); color: var(--ink); }
.error-page p { max-width: 680px; color: var(--muted); font-size: 18px; }

.site-footer { background: #2a2421; color: #d8ccc3; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.brand--footer strong { color: white; }
.brand--footer small { color: #c7b8ae; }
.footer-brand p { max-width: 450px; }
.footer-group h2 { margin: 0 0 13px; font-size: 16px; color: white; }
.footer-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-group a:hover { color: #ffd09d; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #443a35; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #efbd7d; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand); color: white; box-shadow: var(--shadow); z-index: 30; }
.back-to-top[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto auto auto; justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { padding: 11px 13px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rail { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mini-feature { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-group:last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .section { padding: 58px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .headline-flow { grid-template-columns: 1fr; }
  .headline-main { padding-right: 0; padding-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .horizontal-strip { grid-auto-columns: minmax(280px, 70%); }
  .device-band, .mosaic, .topic-band, .page-hero__grid, .topic-page-hero { grid-template-columns: 1fr; }
  .mosaic-side .content-card { grid-template-columns: 180px 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-group:last-child { grid-column: auto; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; gap: 9px; }
  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .brand strong { font-size: 18px; }
  .search-trigger, .menu-toggle { padding: 8px 11px; font-size: 13px; }
  .hero-editorial { padding-top: 20px; }
  .hero-cover, .hero-cover img { min-height: 470px; }
  .hero-cover__copy { left: 22px; right: 22px; bottom: 22px; }
  .hero-cover__copy p { font-size: 16px; }
  .hero-rail { grid-template-columns: 1fr; }
  .mini-feature { grid-column: auto; }
  .horizontal-strip { grid-auto-columns: 86%; }
  .device-feature { min-height: 280px; }
  .mosaic-side .content-card { grid-template-columns: 1fr; }
  .mosaic-side .content-card__media { aspect-ratio: 16 / 9; }
  .index-columns, .info-grid, .related-grid { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 88px 1fr; gap: 14px; }
  .list-row img { width: 88px; height: 74px; }
  .list-row .row-action { grid-column: 2; }
  .page-hero { padding-top: 38px; }
  .topic-page-hero { padding-top: 26px; }
  .search-line { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-group:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .container, .narrow { width: min(calc(100% - 22px), var(--container)); }
  .hero-cover, .hero-cover img { min-height: 440px; }
  .entry-panel, .hero-search, .mini-feature, .search-modal__panel { padding: 20px; }
  .content-card__body { padding: 17px; }
  .list-row { grid-template-columns: 1fr; }
  .list-row img { width: 100%; height: 160px; }
  .list-row .row-action { grid-column: 1; }
  .step { grid-template-columns: 42px 1fr; }
}
