@charset "UTF-8";

:root {
  --wine: #7a1f2b;
  --walnut: #2c1c14;
  --cream: #f4ead8;
  --paper: #fff8ee;
  --foil: #c4a574;
  --ink: #1c140f;
  --mute: #6d5c4e;
  --nav-shadow: 2px 2px 0 rgba(44, 28, 20, 0.3);
  --header-h: 76px;
  --content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-h);
  color: var(--ink);
  background: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.7;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.frame { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }

.topbar {
  position: fixed; z-index: 1000; top: 0; right: 0; left: 0; height: var(--header-h);
  background: var(--walnut); border-bottom: 1px solid rgba(196, 165, 116, 0.28);
}
.topbar-frame { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 48px; height: 48px; object-fit: contain; background: #fff; box-shadow: var(--nav-shadow); }
.brand span { display: grid; line-height: 1.2; }
.brand strong { color: #fff; font-size: 18px; }
.brand small { color: var(--foil); font-size: 11px; letter-spacing: 0.12em; }
.main-menu ul { display: flex; gap: 24px; }
.main-menu a { position: relative; display: block; padding: 26px 0 22px; color: #efe3d2; font-size: 14px; font-weight: 700; }
.main-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--foil); transform: scaleX(0); }
.main-menu a:hover, .main-menu a.current { color: var(--foil); }
.main-menu a:hover::after, .main-menu a.current::after { transform: scaleX(1); }
.header-get, .mobile-get, .get-btn, .opening-action a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; background: var(--wine); color: #fff;
  font-weight: 800; box-shadow: var(--nav-shadow);
}
.header-get:hover, .opening-action a:hover, .get-btn:hover { background: #611823; }
.mobile-controls { display: none; align-items: center; gap: 8px; }
.nav-switch { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(196,165,116,.3); }
.nav-switch i { display: block; width: 18px; height: 2px; background: #fff; }

.opening {
  min-height: 680px;
  background:
    radial-gradient(circle at 80% 10%, rgba(196, 165, 116, 0.18), transparent 26%),
    var(--cream);
}
.opening-frame { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; min-height: 680px; padding: 56px 0; }
.overline { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }
.opening h1 { margin-top: 10px; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; }
.opening-kicker { margin-top: 12px; color: var(--wine); font-size: 22px; font-weight: 800; }
.opening-lead { max-width: 34em; margin-top: 14px; color: var(--mute); }
.shelf-switch { display: inline-flex; margin-top: 20px; padding: 4px; background: #fff; border: 1px solid rgba(28,20,15,.12); }
.shelf-switch button { min-height: 36px; padding: 0 12px; font-weight: 800; }
.shelf-switch button.is-on { background: var(--walnut); color: var(--foil); }
.shelf-note { margin: 10px 0 0; color: var(--wine); font-size: 13px; font-weight: 700; }
.opening-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
.opening-action a { min-width: 190px; padding: 14px 24px; }
.opening-action span { color: #8a7a6a; font-size: 12px; }

.wood-shelf { position: relative; min-height: 520px; padding: 28px 20px 0; background: linear-gradient(180deg, #4a3224, #2c1c14); box-shadow: 0 28px 50px rgba(44,28,20,.28); }
.spines-row { display: flex; gap: 8px; justify-content: flex-end; padding: 0 18px 12px; }
.spines-row i { width: 16px; height: 88px; background: var(--wine); box-shadow: inset -3px 0 0 rgba(0,0,0,.2); }
.spines-row i:nth-child(2) { height: 76px; background: #c4a574; }
.spines-row i:nth-child(3) { height: 96px; background: #3a5a4a; }
.spines-row i:nth-child(4) { height: 70px; background: #8b4513; }
.spines-row i:nth-child(5) { height: 84px; background: #1f3a5c; }
.phone { width: 220px; margin: 0 auto; padding: 14px 12px 16px; background: #120c09; border: 1px solid rgba(196,165,116,.3); position: relative; z-index: 2; animation: floaty 5s ease-in-out infinite; }
.phone b { display: block; width: 70px; height: 8px; margin: 0 auto 10px; border-radius: 99px; background: #3a2c22; }
.phone img { width: 100%; height: auto; max-height: 390px; object-fit: contain; background: #000; }
.shelf-plank { height: 18px; margin-top: -6px; background: repeating-linear-gradient(90deg, #6a4a32, #6a4a32 12px, #553a28 12px, #553a28 14px); box-shadow: 0 10px 0 #1a100c; }
.float-note { position: absolute; z-index: 3; padding: 10px 12px; background: var(--paper); border: 1px solid var(--walnut); font-size: 12px; font-weight: 800; box-shadow: 4px 5px 0 rgba(44,28,20,.16); }
.n1 { left: 8px; top: 120px; }
.n2 { right: 8px; bottom: 70px; }
@keyframes floaty { 50% { translate: 0 -8px; } }

.block-head { margin-bottom: 28px; }
.block-head p { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.block-head.light p { color: var(--foil); }
.block-head h2 { margin-top: 8px; font-size: clamp(28px, 4vw, 40px); }

.spines { padding: 80px 0; background: var(--paper); }
.spine-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.spine-row article {
  padding: 28px 16px; min-height: 260px;
  writing-mode: horizontal-tb;
  background: var(--walnut); color: #f4ead8;
  border-left: 8px solid var(--wine);
  box-shadow: 0 18px 32px rgba(44,28,20,.16);
}
.spine-row article:nth-child(2) { background: var(--wine); border-left-color: var(--foil); transform: translateY(18px); }
.spine-row article:nth-child(3) { background: #3a5a4a; border-left-color: #c4a574; }
.spine-row article:nth-child(4) { background: #1f3a5c; transform: translateY(10px); }
.spine-row span { display: block; margin-bottom: 12px; color: var(--foil); font-weight: 900; }
.spine-row p { margin-top: 10px; color: #d7c4ae; }

.shelves { padding: 80px 0; background: linear-gradient(180deg, #3b271c, #2c1c14); color: #f4ead8; }
.shelves .block-head h2 { color: #fff; }
.stack { padding: 12px 18px 8px; background: #24160f; border: 1px solid rgba(196,165,116,.2); }
.plank { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 12px 8px; justify-items: center; }
.plank.lower figure:first-child { transform: translateY(8px); }
.glass { padding: 12px; background: #120c09; border: 1px solid rgba(196,165,116,.25); }
.glass img { width: 100%; max-width: 220px; height: auto; max-height: 360px; margin: 0 auto; object-fit: contain; }
.wood-bar { height: 16px; background: repeating-linear-gradient(90deg, #6a4a32, #6a4a32 14px, #553a28 14px, #553a28 16px); box-shadow: 0 8px 0 #1a100c; }
.stack figcaption { margin-top: 10px; font-weight: 800; color: var(--foil); text-align: center; }
.plank figure:hover .glass { transform: translateY(-4px); transition: transform .25s ease; }

.faq { padding: 80px 0; background: var(--cream); }
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.catalog article {
  padding: 22px 20px 18px; background: var(--paper);
  box-shadow: 8px 10px 0 rgba(122, 31, 43, 0.1);
  border: 1px solid rgba(28,20,15,.1);
  transform: rotate(-0.6deg);
}
.catalog article:nth-child(even) { transform: rotate(0.7deg); background: #fff; }
.catalog span { display: inline-block; margin-bottom: 8px; color: var(--wine); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; }
.catalog p { margin-top: 8px; color: var(--mute); }

.reviews { padding: 80px 0 40px; background: var(--paper); }
.plates { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.plates article {
  padding: 20px 16px 16px; background: #fffdf6;
  border: 8px double var(--wine);
  box-shadow: 0 12px 28px rgba(44,28,20,.08);
}
.plates article:nth-child(2), .plates article:nth-child(5) { transform: translateY(16px); }
.plates time { display: block; margin-bottom: 8px; color: var(--wine); font-size: 12px; font-weight: 800; }
.plates p { margin: 0 0 12px; }
.plates span { font-size: 13px; font-weight: 800; color: var(--mute); }

.download { padding: 16px 0 80px; background: var(--cream); }
.open-book {
  display: grid; grid-template-columns: 220px 16px 1fr; min-height: 240px;
  background: var(--paper); box-shadow: 0 24px 0 rgba(44,28,20,.1), 0 18px 40px rgba(44,28,20,.12);
}
.page { padding: 32px 28px; }
.left-page {
  background:
    linear-gradient(90deg, #e8d7bc, #fff8ee 18%);
  color: var(--walnut);
  display: grid; align-content: center; gap: 8px;
}
.left-page span { font-size: 12px; font-weight: 900; letter-spacing: 0.16em; color: var(--wine); }
.gutter { background: linear-gradient(90deg, rgba(44,28,20,.18), rgba(44,28,20,.04) 40%, rgba(44,28,20,.18)); }
.right-page { display: grid; align-content: center; }
.right-page h2 { margin-bottom: 8px; }
.right-page p { margin: 0 0 16px; color: var(--mute); max-width: 42ch; }
.open-book .get-btn { justify-self: start; min-width: 180px; min-height: 48px; }

.site-footer { padding: 34px 0 18px; background: #160e0a; color: #e7d8c4; }
.footer-shell { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-shell nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 800; }
.footer-shell nav a:hover { color: var(--foil); }
.copy { width: min(calc(100% - 40px), var(--content)); margin: 14px auto 0; color: #8a7a6a; font-size: 12px; }

.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 46px; height: 46px;
  display: grid; place-items: center; visibility: hidden; opacity: 0;
  background: var(--wine); box-shadow: var(--nav-shadow);
}
.back-top::before { content: ""; width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: translateY(3px) rotate(45deg); }
.back-top.is-visible { visibility: visible; opacity: 1; }

@media (max-width: 980px) {
  .header-get { display: none; }
  .mobile-controls { display: flex; }
  .main-menu { position: fixed; top: var(--header-h); right: 0; left: 0; display: none; background: #2c1c14; }
  .main-menu.is-open { display: block; }
  .main-menu ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-menu a { padding: 12px 0; }
  .opening-frame { display: flex; flex-direction: column; gap: 28px; min-height: 0; padding: 40px 0; }
  .opening-copy { text-align: center; }
  .opening-lead, .shelf-switch, .opening-action { margin-inline: auto; align-items: center; justify-content: center; }
  .spine-row, .plank, .catalog, .plates, .open-book, .footer-shell { grid-template-columns: 1fr; }
  .spine-row article, .plates article, .catalog article { transform: none; }
  .gutter { display: none; }
  .opening-action a, .get-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
}
