/* ============================================================
   Beijing Unscripted — 独立站样式
   品牌方向：复古旅行手册（米白纸感 + 朱砂红 + 金 + 墨）
   字体：Jost（展示，几何无衬线）/ Work Sans（正文）
   ============================================================ */

:root {
  --paper: #F6F0E4;
  --paper-deep: #EDE3CF;
  --paper-card: #FCF9F2;
  --ink: #23201A;
  --ink-soft: #6E6555;
  --ink-faint: #9A9180;
  --red: #B23A28;
  --red-deep: #93291C;
  --gold: #B9882F;
  --line: rgba(35, 32, 26, 0.16);
  --shadow: 0 10px 24px rgba(35, 32, 26, 0.10);
  --radius: 12px;
  --font-display: "Jost", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 通用排版 ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 6px 14px;
  border-radius: 999px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F2C94C;
  flex: none;
}

/* 票根式虚线分隔 */
.rule-dash {
  border: 0;
  border-top: 2px dashed var(--line);
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-name .accent {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--red);
  border-color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Intro ---------- */

.intro {
  padding: 72px 0 8px;
}

.intro-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  max-width: 720px;
  color: var(--ink);
}

.intro h1 em {
  font-style: normal;
  color: var(--red);
}

.stamp-center {
  fill: var(--red-deep);
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
}

.lede {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Shop ---------- */

.shop {
  padding: 56px 0 24px;
}

.shop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.shop-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-head .note {
  font-size: 14px;
  color: var(--ink-faint);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ---------- 商品卡片 ---------- */

.product-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* 封面：生成海报底图 + HTML 排版文字 */
.card-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-cover .pill {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  padding: 5px 12px;
}

.cover-title {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 22px;
}

.cover-title .line1 {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.cover-title .line2 {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.cover-tag {
  position: absolute;
  top: 20px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(185, 136, 47, 0.55);
  border-radius: 4px;
  padding: 3px 7px;
}

.cover-tagline {
  display: block;
  margin-top: 14px;
  padding: 0 30px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* 封面价格块 */
.cover-price {
  position: absolute;
  right: 18px;
  bottom: 16px;
  text-align: right;
  background: rgba(252, 249, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
}

.cover-price .now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--red-deep);
}

.cover-price .was {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: line-through;
}

/* 卡片信息区 */
.card-meta {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-meta h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.card-meta .desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-buy {
  background: var(--red);
  color: #fff;
}

.btn-buy:hover {
  background: var(--red-deep);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

/* 详情折叠 */
.card-details {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}

.card-details summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.card-details summary::after {
  content: "＋";
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--red);
  transition: transform 0.2s ease;
}

.card-details[open] summary::after {
  content: "－";
}

.card-details .details-body {
  padding: 4px 0 6px;
}

.details-body ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.details-body li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.details-body li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

.details-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- About ---------- */

.about {
  padding: 64px 0 72px;
}

.about-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--paper-card);
  box-shadow: var(--shadow);
}

.about-photo .stamp-mini {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  background: var(--paper-card);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about-body .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.about-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about-body .bio {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 640px;
}

.about-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(178, 58, 40, 0.06);
}

.social-link svg {
  width: 19px;
  height: 19px;
}

.btn-follow {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
}

.btn-follow:hover {
  background: var(--red-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 34px 0 40px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer .brand-name {
  font-size: 15px;
}

.footer-note {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-links > a:not(.social-link):hover {
  color: var(--red);
}

.social-link-sm {
  width: 34px;
  height: 34px;
}

.social-link-sm svg {
  width: 16px;
  height: 16px;
}

/* ---------- 入场动效（仅首屏，尊重 reduced-motion） ---------- */

@keyframes intro-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro h1,
.intro .lede,
.intro .eyebrow {
  animation: intro-fade-up 0.7s ease both;
}

.intro .lede {
  animation-delay: 0.12s;
}

.intro .eyebrow {
  animation-delay: 0.05s;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .intro {
    padding-top: 48px;
  }

  .intro-top {
    flex-direction: column;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .shop-head {
    flex-direction: column;
    gap: 6px;
  }

  .grid-cards {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-actions {
    flex-direction: column;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
