/* ============================================================
   The 2027 Chinese Almanac — 独立站样式
   基调：宣纸底色 / 墨色文字 / 一点赭红 / 大量留白
   ============================================================ */

:root {
  --paper:      #F7F4EC;
  --paper-warm: #FBF9F3;
  --cream:      #F1EBDF;
  --ink:        #23211D;
  --ink-soft:   #5A554C;
  --ink-faint:  #8C8578;
  --line:       #DED5C4;
  --line-soft:  #EBE4D6;
  --red:        #A9553B;
  --red-deep:   #8E4530;
  --green:      #6F8A76;
  --shadow:     0 2px 24px rgba(35, 33, 29, .07);
  --shadow-lg:  0 12px 60px rgba(35, 33, 29, .13);

  --serif: "Cormorant Garamond", "Songti SC", Georgia, serif;
  --sans:  "Inter", -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(247, 244, 236, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-cn {
  font-family: var(--serif);
  font-size: 21px; letter-spacing: .16em; color: var(--ink);
}
.brand-en {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
  transition: color .2s;
  padding: 10px 0; display: inline-block;
}
.nav-links a:hover { color: var(--red); }

/* ---------------- Hero ---------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(44px, 6vw, 76px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.eyebrow {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 400; line-height: 1.03;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75;
  color: var(--ink-soft); max-width: 44ch; margin-bottom: 18px;
  text-wrap: pretty;
}
.lede em { color: var(--ink); font-style: italic; }
.lede-note {
  font-size: 14px; line-height: 1.7; color: var(--ink-faint);
  max-width: 44ch; padding-left: 18px; text-wrap: pretty;
  border-left: 2px solid var(--line);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.price-hint { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .03em; }

.hero-images { position: relative; aspect-ratio: 1 / 0.92; }
.hero-img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-img-back {
  width: 66%; left: 0; top: 2%;
  transform: rotate(-2.5deg);
  border-radius: 2px;
}
.hero-img-front {
  width: 60%; right: 0; bottom: 0;
  transform: rotate(2deg);
  border-radius: 2px;
  box-shadow: 0 16px 70px rgba(35,33,29,.2);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .22s ease;
  font-family: var(--sans); font-weight: 400;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 13px; }

/* ---------------- 条带 ---------------- */
.strip {
  background: var(--ink); color: var(--paper);
  padding: 15px 0;
}
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 34px;
}
.strip-inner span {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .72;
}

/* ---------------- 区块 ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 110px) var(--gutter); }
.section-cream { background: var(--cream); max-width: none; }
.section-cream > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(34px, 5vw, 56px); max-width: 720px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.14; letter-spacing: -.005em;
  text-wrap: balance;
}

/* ---------------- 图集 ---------------- */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  margin-bottom: clamp(48px, 7vw, 84px);
}
.gal-item { display: flex; flex-direction: column; gap: 16px; }
.gal-wide { grid-column: span 2; }
.gal-item img {
  width: 100%; border: 1px solid var(--line-soft); border-radius: 2px;
  box-shadow: var(--shadow);
}
.gal-item figcaption {
  font-size: 14px; line-height: 1.72; color: var(--ink-soft);
  max-width: 62ch;
}
.gal-item figcaption strong { color: var(--ink); font-weight: 500; }
.gal-item figcaption em { color: var(--red); font-style: normal; }

/* ---------------- 细节网格 ---------------- */
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding-top: clamp(34px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.detail h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 19px; margin-bottom: 10px;
}
.detail p { font-size: 13.5px; line-height: 1.72; color: var(--ink-soft); }

/* ---------------- 价格卡 ---------------- */
.price-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-bottom: 28px;
}
.price-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column;
}
.price-card-featured {
  border-color: var(--ink);
  box-shadow: 0 10px 44px rgba(35,33,29,.09);
  position: relative;
}
.price-card-featured::before {
  content: "Personalised";
  position: absolute; top: -11px; left: 30px;
  background: var(--red); color: #fff;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 2px;
}
.price-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.price-card h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; }
.price { font-family: var(--serif); font-size: 38px; color: var(--red); line-height: 1; }
.price-sub {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 12px 0 22px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);
}
.feature-list { list-style: none; margin-bottom: 26px; flex: 1; }
.feature-list li {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 8px 0 8px 20px; position: relative;
  border-bottom: 1px dotted var(--line-soft);
}
.feature-list li::before {
  content: "·"; position: absolute; left: 5px;
  color: var(--red); font-weight: 600;
}
.price-note { font-size: 12.5px; color: var(--ink-faint); text-align: center; }

/* ---------------- 购买区 ---------------- */
.buy-box {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 66px); align-items: center;
}
.buy-text h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.16; margin-bottom: 18px;
  text-wrap: balance;
}
.buy-text > p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 28px; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.buy-notes { list-style: none; }
.buy-notes li {
  font-size: 12.5px; color: var(--ink-faint);
  padding: 6px 0 6px 18px; position: relative;
}
.buy-notes li::before { content: "—"; position: absolute; left: 0; color: var(--line); }
.buy-image img {
  width: 100%; border-radius: 2px;
  box-shadow: 0 16px 60px rgba(35,33,29,.16);
  transform: rotate(1.2deg);
}

/* ---------------- 即将推出 ---------------- */
.coming-inner { max-width: 780px; text-align: center; }
.coming-lede {
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5; color: var(--ink); margin-bottom: 18px;
  text-wrap: balance;
}
.coming-body {
  font-size: 14.5px; line-height: 1.78; color: var(--ink-soft);
  max-width: 54ch; margin: 0 auto 32px; text-wrap: pretty;
}
.signup { max-width: 480px; margin: 0 auto; }
.signup label {
  display: block; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px;
}
.signup-row { display: flex; gap: 10px; }
.signup input {
  flex: 1; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--paper-warm); font-family: var(--sans); font-size: 14px;
  color: var(--ink);
}
.signup input:focus { outline: none; border-color: var(--ink); }
.signup-msg { font-size: 12.5px; margin-top: 12px; min-height: 18px; color: var(--green); }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(44px, 6vw, 72px) 0 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand-cn { color: var(--paper); font-size: 24px; }
.footer-brand p {
  font-size: 13px; color: rgba(247,244,236,.62); margin-top: 14px; max-width: 40ch;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247,244,236,.45); margin-bottom: 14px; font-weight: 400;
}
.footer-cols a {
  display: block; font-size: 13px; color: rgba(247,244,236,.78);
  padding: 7px 0; transition: color .2s;
}
.footer-cols a:hover { color: var(--paper); }
.footer-legal {
  border-top: 1px solid rgba(247,244,236,.14);
  max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 30px;
}
.footer-legal p {
  font-size: 11.5px; line-height: 1.7; color: rgba(247,244,236,.45);
}

/* ---------------- 结算弹层 ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(35,33,29,.55); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--paper-warm);
  border-radius: 3px; padding: clamp(26px, 4vw, 40px);
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: rise .28s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--ink-faint); cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-panel h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.order-form { display: flex; flex-direction: column; }
.order-form label {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 14px 0 6px;
}
.order-form input, .order-form select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; font-family: var(--sans); font-size: 14px; color: var(--ink);
}
.order-form input:focus, .order-form select:focus { outline: none; border-color: var(--ink); }
.order-form button { margin-top: 18px; }
.modal-note { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-images { max-width: 520px; }
  .buy-box { grid-template-columns: 1fr; }
  .buy-image { max-width: 380px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gal-wide { grid-column: span 1; }
  .signup-row { flex-direction: column; }

  /* 首屏：图片不再叠放，改为单列全宽，避免超出屏幕 */
  .hero-images {
    aspect-ratio: auto;
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 8px;
  }
  .hero-img { position: static; width: 100%; transform: none; }
  .hero-img img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }

  /* 正文宽度放开到 100%，配合 text-wrap 保证不溢出 */
  .lede, .lede-note { max-width: 100%; }

  /* 标题字号收紧 */
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .section-head h2 { font-size: clamp(25px, 7.2vw, 34px); }
  .buy-text h2 { font-size: clamp(24px, 6.8vw, 32px); }

  /* 按钮纵向排列，保证可点区域 */
  .hero-cta, .buy-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .buy-actions .btn { width: 100%; }

  /* 价格卡内边距收窄 */
  .price-card { padding: 24px 20px; }
  .price-card-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price { font-size: 34px; }

  /* 页脚：两列改一列，链接纵向排列保证可点 */
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-cols a { padding: 9px 0; }
  .footer-legal p { font-size: 11px; }
}

/* ============================================================
   心经字帖产品区
   ============================================================ */
.copybook-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 66px); align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.copybook-lede {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.45; color: var(--ink); margin-bottom: 18px;
  text-wrap: balance;
}
.copybook-text > p:not(.copybook-lede) {
  font-size: 15px; line-height: 1.78; color: var(--ink-soft);
  max-width: 46ch; margin-bottom: 26px;
}
.copybook-list { list-style: none; margin-bottom: 32px; }
.copybook-list li {
  font-size: 13.5px; line-height: 1.68; color: var(--ink-soft);
  padding: 9px 0 9px 22px; position: relative;
  border-bottom: 1px dotted var(--line-soft);
}
.copybook-list li::before {
  content: "·"; position: absolute; left: 6px;
  color: var(--red); font-weight: 600;
}
.copybook-list strong { color: var(--ink); font-weight: 500; }
.copybook-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.copybook-note { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.copybook-img img {
  width: 100%; border: 1px solid var(--line-soft); border-radius: 2px;
  box-shadow: var(--shadow-lg);
}
.copybook-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
}
.copybook-gallery figcaption { margin-top: 14px; }
.copybook-gallery em { color: var(--red); font-style: italic; }

/* ---------------- Journal 订阅 ---------------- */
.journal-price {
  display: flex; align-items: baseline; justify-content: center;
  gap: 8px; margin-bottom: 26px;
}
.journal-amount {
  font-family: var(--serif); font-size: 44px; color: var(--red); line-height: 1;
}
.journal-per {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.journal-fine {
  font-size: 11.5px; color: var(--ink-faint); margin-top: 16px;
}
#journal-signup { max-width: 480px; }

@media (max-width: 900px) {
  .copybook-hero { grid-template-columns: 1fr; }
  .copybook-img { max-width: 420px; }
  .copybook-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   结账确认勾选框（欧盟数字内容即时交付豁免）
   ============================================================ */
.order-form label.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 11.6px; line-height: 1.62; letter-spacing: 0;
  text-transform: none; color: var(--ink-faint);
  margin: 16px 0 18px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line-soft);
  border-radius: 2px; background: rgba(255,255,255,.35);
}
.consent > span { text-transform: none; letter-spacing: 0; }
.consent:hover { border-color: var(--line); }
.consent input {
  flex: none; width: 15px; height: 15px; margin: 2px 0 0;
  accent-color: var(--red); cursor: pointer;
}
.consent a { color: var(--red-deep); text-decoration: underline; }
.footer-legal a { color: rgba(247,244,236,.85); text-decoration: underline; }
.footer-legal strong { color: var(--paper); font-weight: 500; }

/* 正文内联链接：加大点击热区（不改变视觉） */
.doc p a, .doc li a, .doc-back, .footer-legal a {
  display: inline-block;
  padding: 3px 0;
}
.doc-back { padding: 6px 0; }

/* ============================================================
   品牌主张带（两段视频指向的同一个动作：把立场提到首屏）
   ============================================================ */
.statement {
  max-width: 900px; margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(50px, 7vw, 78px);
  text-align: center;
}
.statement-line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(27px, 4vw, 46px);
  line-height: 1.24; letter-spacing: -.004em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 20px;
}
.statement-line::first-line { color: var(--ink); }
.statement-sub {
  font-size: 14.5px; line-height: 1.8; color: var(--ink-soft);
  max-width: 58ch; margin: 0 auto;
  text-wrap: balance;
}
