/* =============================================================
   飞流 × 阿沉 个人主页
   设计来源：claude.ai/design 设计系统包（手帐风）
   规范：见 design package README §五 视觉基本功
   ============================================================= */

/* -------------------------------------------------------------
   1. WEB FONTS
   ------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Noto+Serif+SC:wght@400;500;600;700&family=Ma+Shan+Zheng&family=Caveat:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "LXGW WenKai";
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkai-regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "LXGW WenKai";
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkai-bold.woff2") format("woff2");
  font-weight: 700;
}

/* -------------------------------------------------------------
   2. RAW + SEMANTIC TOKENS
   ------------------------------------------------------------- */
:root {
  /* paper backgrounds */
  --paper: #f5efe3;
  --paper-2: #ede4d2;
  --paper-3: #e3d8be;
  --bg-elevated: #fbf6ea;

  /* ink + accents */
  --ink-orange: #d2691e;
  --ink-orange-deep: #b85716;
  --moss-green: #4a6741;
  --moss-green-deep: #38502f;
  --wood-brown: #8b6f47;
  --wood-brown-soft: #b8a182;

  --ink-black: #2b2620;
  --ink-gray: #6b645a;
  --ink-gray-soft: #9a9286;

  --line-soft: #d4c7b0;
  --line-strong: #b8a07e;

  --sticker-yellow: #f4d35e;
  --sticker-red: #c8553d;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-paper: 0 1px 2px rgba(43, 38, 32, 0.06),
                  0 4px 12px rgba(43, 38, 32, 0.04);
  --shadow-paper-lift: 0 2px 4px rgba(43, 38, 32, 0.08),
                       0 12px 28px rgba(43, 38, 32, 0.08);
  --shadow-sticker: 0 2px 0 rgba(139, 111, 71, 0.15),
                    0 6px 16px rgba(43, 38, 32, 0.08);

  /* type families */
  --font-han-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-han-script: "LXGW WenKai", "Noto Serif SC", "KaiTi", serif;
  --font-han-brush: "Ma Shan Zheng", "LXGW WenKai", cursive;

  --font-en-serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-en-body: "Source Serif 4", "Newsreader", Georgia, serif;
  --font-en-script: "Caveat", "Comic Sans MS", cursive;

  --font-display: var(--font-han-script), var(--font-en-serif);
  --font-body: var(--font-han-serif), var(--font-en-body);
  --font-script: var(--font-han-brush), var(--font-en-script);

  /* type scale */
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-caption: 14px;
  --fs-micro: 12px;

  --lh-tight: 1.3;
  --lh-base: 1.75;
  --lh-loose: 1.9;

  --tracking-han: 0.02em;

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;

  /* semantic */
  --bg: var(--paper);
  --bg-subtle: var(--paper-2);
  --fg: var(--ink-black);
  --fg-muted: var(--ink-gray);
  --fg-subtle: var(--ink-gray-soft);
  --fg-on-accent: #fffaf0;
  --accent: var(--ink-orange);
  --accent-hover: var(--ink-orange-deep);
  --accent-soft: #f4d4b3;
  --secondary: var(--moss-green);
  --decorative: var(--wood-brown);
  --border: var(--line-soft);
  --highlight: var(--sticker-yellow);
}

/* -------------------------------------------------------------
   3. RESET + ELEMENT DEFAULTS
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  letter-spacing: var(--tracking-han);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg) url("assets/paper-noise.svg") repeat;
  background-size: 240px;
  min-height: 100vh;
}

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: var(--lh-tight);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  letter-spacing: var(--tracking-han);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 var(--space-4); font-size: var(--fs-body); line-height: var(--lh-base); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

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

mark {
  background: linear-gradient(transparent 55%, var(--highlight) 55%, var(--highlight) 90%, transparent 90%);
  color: inherit;
  padding: 0 2px;
}

::selection { background: var(--highlight); color: var(--ink-black); }

/* -------------------------------------------------------------
   4. LAYOUT / CONTAINER
   ------------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------
   5. NAV
   ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-han-brush);
  font-size: 24px;
  color: var(--ink-black);
  white-space: nowrap;
  border: none;
}
.nav__brand:hover { color: var(--ink-black); border: none; }
.nav__brand-achen {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--wood-brown);
}
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__link {
  font-size: 14px;
  color: var(--ink-gray);
  border: none;
  font-family: var(--font-body);
}
.nav__link:hover { color: var(--ink-orange); border: none; }
.nav__cta {
  padding: 8px 18px;
  background: var(--ink-orange);
  color: #fffaf0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--ink-orange);
  box-shadow: 0 2px 0 rgba(139, 111, 71, 0.2);
}
.nav__cta:hover {
  background: var(--ink-orange-deep);
  color: #fffaf0;
  border-color: var(--ink-orange-deep);
}

/* -------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-han-brush);
  color: var(--wood-brown);
  font-size: 20px;
  margin-bottom: 8px;
  transform: rotate(-1.5deg);
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink-black);
}
.hero__accent { color: var(--ink-orange); position: relative; }
.hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-gray);
  max-width: 460px;
  margin-bottom: 28px;
}
.hero__cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 26px;
  background: var(--ink-orange);
  color: #fffaf0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--ink-orange);
  box-shadow: 0 2px 0 rgba(139, 111, 71, 0.2), var(--shadow-paper);
}
.btn-primary:hover {
  background: var(--ink-orange-deep);
  color: #fffaf0;
  border-color: var(--ink-orange-deep);
}
.btn-secondary {
  padding: 14px 22px;
  background: transparent;
  color: var(--moss-green);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--moss-green);
}
.btn-secondary:hover {
  background: var(--moss-green);
  color: #fffaf0;
  border-color: var(--moss-green);
}
.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-gray-soft);
  font-family: var(--font-han-brush);
}
.hero__avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero__avatar-a {
  width: 320px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(43, 38, 32, 0.18));
  transform: rotate(-1.5deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.hero__avatar-a:hover {
  transform: rotate(0) translateY(-2px);
}

/* -------------------------------------------------------------
   7. SECTION COMMON
   ------------------------------------------------------------- */
section { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.section-head { margin-bottom: 24px; }
.section-label {
  font-family: var(--font-han-brush);
  font-size: 16px;
  color: var(--wood-brown);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

/* -------------------------------------------------------------
   8. ABOUT
   ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about__h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-black);
}
.about__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-black);
  margin: 0 0 20px;
}
.ai-stack-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1.5px dashed var(--wood-brown);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow-paper);
}
.ai-stack-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--wood-brown-soft);
  padding-bottom: 10px;
}
.ai-stack-card__title {
  font-family: var(--font-han-brush);
  font-size: 18px;
  color: var(--moss-green-deep);
}
.ai-stack-card__tag {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ink-gray);
}
.ai-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ai-stack-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-black);
  padding-left: 16px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-stack-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -2px;
  color: var(--ink-orange);
  font-size: 22px;
  line-height: 1;
}
.ai-stack-list li b {
  color: var(--moss-green-deep);
  margin-right: 4px;
}
.ai-stack-list li small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-gray);
  margin-top: 2px;
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tags { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
.tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--wood-brown-soft);
  color: var(--wood-brown);
  background: var(--paper-2);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .tags { flex-wrap: wrap; }
}

/* -------------------------------------------------------------
   9. CHANNELS
   ------------------------------------------------------------- */
.channels__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.channel-big {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-paper-lift);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.channel-big__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.channel-big__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--moss-green);
  color: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-han-brush);
  font-size: 22px;
}
.channel-big__name { font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.channel-big__sub { font-size: 13px; color: var(--ink-gray); }
.channel-big__pitch {
  font-size: 16px; line-height: 1.7; color: var(--ink-black);
  margin: 8px 0 14px; max-width: 480px;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--sticker-yellow);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-black);
  margin-right: 8px;
}
.channel-big__cta {
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--ink-orange);
  color: #fffaf0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--ink-orange);
  box-shadow: 0 2px 0 rgba(139, 111, 71, 0.2);
}
.channel-big__cta:hover {
  background: var(--ink-orange-deep);
  color: #fffaf0;
  border-color: var(--ink-orange-deep);
}
.channel-side { display: grid; gap: 12px; }
.channel-small {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.channel-small:hover {
  color: inherit;
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-lift);
}
.channel-small__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-han-brush);
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.channel-small__name { font-size: 14px; font-weight: 600; color: var(--ink-black); }
.channel-small__handle { font-size: 12px; color: var(--ink-gray); }

/* -------------------------------------------------------------
   10. PRODUCTS
   ------------------------------------------------------------- */
.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense;
  gap: 18px;
}
.product-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-paper);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-lift);
}
.product-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.product-card__name {
  font-size: 20px; font-weight: 700; font-family: var(--font-body);
  margin: 0; color: var(--ink-black);
}
.product-card__price {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--moss-green-deep);
  font-weight: 600;
  white-space: nowrap;
}
.product-card__pitch {
  font-size: 15px; line-height: 1.7; color: var(--ink-black);
  margin: 6px 0 14px;
}
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.product-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__tag {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--paper-2);
  color: var(--wood-brown);
  border: 1px solid var(--wood-brown-soft);
}
.product-card__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-orange);
  border-bottom: 1px solid var(--accent-soft);
  white-space: nowrap;
}

/* 旗舰产品卡：横向左图右文，跨整行 */
.product-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px 24px;
}
.product-card--featured .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__hint {
  display: inline-block;
  font-family: var(--font-han-brush);
  font-size: 13px;
  color: var(--wood-brown);
  margin-top: 4px;
}

/* 相纸风格缩略图（贴在卡片左侧） */
.polaroid {
  position: relative;
  display: block;
  width: 200px;
  background: #fff;
  padding: 8px 8px 12px;
  border: none;
  box-shadow:
    0 1px 0 rgba(43, 38, 32, 0.04),
    0 4px 12px rgba(43, 38, 32, 0.14),
    0 12px 24px rgba(43, 38, 32, 0.06);
  transform: rotate(-1.6deg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  cursor: zoom-in;
}
.polaroid:hover {
  transform: rotate(-0.4deg) translateY(-3px);
  box-shadow:
    0 2px 0 rgba(43, 38, 32, 0.05),
    0 8px 20px rgba(43, 38, 32, 0.18),
    0 20px 36px rgba(43, 38, 32, 0.08);
  border: none;
}
.polaroid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1px;
}
.polaroid__tape {
  position: absolute;
  top: -8px;
  left: -10px;
  width: 56px;
  height: 18px;
  background: rgba(244, 211, 94, 0.78);
  transform: rotate(-14deg);
  box-shadow: 0 1px 3px rgba(43, 38, 32, 0.15);
  pointer-events: none;
  z-index: 1;
}
.polaroid__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
  box-shadow: 0 4px 12px rgba(43, 38, 32, 0.3);
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  z-index: 1;
}
.polaroid:hover .polaroid__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--ink-orange);
  color: #fff;
}

/* -------------------------------------------------------------
   11. POSTS
   ------------------------------------------------------------- */
.posts {
  background: var(--paper-2);
  padding: 56px 0;
  margin-top: 32px;
  max-width: none;
}
.posts__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.posts__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.posts__h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}
.posts__more {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-orange);
  border-bottom: 1px solid var(--accent-soft);
}
/* Services (服务 & 合作 2 张卡) */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.service-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px 30px 24px;
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-lift);
  border-color: var(--ink-orange);
}
.service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--wood-brown-soft);
  padding-bottom: 10px;
}
.service-card__num {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--wood-brown);
  letter-spacing: 0.06em;
}
.service-card__label {
  font-family: var(--font-han-brush);
  font-size: 14px;
  color: var(--moss-green-deep);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--ink-black);
}
.service-card__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-black);
  margin: 0;
}
.service-card__detail {
  display: grid;
  grid-template-columns: 50px 1fr;
  row-gap: 8px;
  column-gap: 12px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px dashed var(--wood-brown-soft);
}
.service-card__detail dt {
  font-family: var(--font-han-brush);
  color: var(--wood-brown);
  font-size: 14px;
  margin: 0;
  padding-top: 2px;
}
.service-card__detail dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-black);
  margin: 0;
}
.service-card__cta {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-orange);
  border-bottom: 1px solid var(--accent-soft);
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 22px 20px; }
}

/* Collections (作品集 3 大卡) */
.collections__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.collection {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 24px 24px 20px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.collection:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-lift);
}
.collection__head {
  border-bottom: 1.5px dashed var(--wood-brown-soft);
  padding-bottom: 12px;
}
.collection__num {
  display: inline-block;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--wood-brown);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.collection__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink-black);
}
.collection__sub {
  font-size: 13px;
  color: var(--ink-gray);
  margin: 0;
  line-height: 1.6;
}
.collection__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.collection__list li {
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  padding-left: 14px;
}
.collection__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--ink-orange);
  font-weight: 700;
}
.collection__list a {
  color: var(--ink-black);
  border-bottom: 1px solid transparent;
}
.collection__list a:hover {
  color: var(--ink-orange);
  border-bottom-color: var(--accent-soft);
}
.collection__more {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-orange);
  border-bottom: 1px solid var(--accent-soft);
  align-self: flex-start;
  margin-top: auto;
}

/* -------------------------------------------------------------
   12. CONTACT
   ------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 24px 32px;
}
.contact__h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 14px;
}
.contact__body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-black);
  margin: 0 0 16px;
}
.contact__list { display: grid; gap: 10px; font-size: 15px; }
.contact__row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.contact__key {
  font-family: var(--font-han-brush);
  color: var(--wood-brown);
  min-width: 100px;
  font-size: 16px;
}
.contact__val {
  color: var(--ink-black);
  font-family: "Newsreader", "Source Serif 4", serif;
}
.qr-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.qr-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-paper-lift);
  position: relative;
}
.qr-card__label {
  font-family: var(--font-han-brush);
  font-size: 16px;
  color: var(--moss-green-deep);
}
.qr-image {
  width: 150px;
  height: 150px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 6px;
  display: block;
  object-fit: contain;
}
.qr-card__hint { font-size: 12px; color: var(--ink-gray); }

/* -------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------- */
.footer {
  background: var(--paper-2);
  border-top: 1.5px dashed var(--wood-brown);
  margin-top: 32px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__slogan {
  font-family: var(--font-han-brush);
  font-size: 22px;
  color: var(--wood-brown);
}
.footer__meta {
  font-size: 13px;
  color: var(--ink-gray);
  text-align: right;
  line-height: 1.7;
}

/* -------------------------------------------------------------
   14. DECORATIONS
   ------------------------------------------------------------- */
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 80px;
  height: 20px;
  background: rgba(244, 211, 94, 0.7);
  box-shadow: 0 1px 3px rgba(43, 38, 32, 0.1);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}
.tape--big   { width: 90px; left: 48px; transform: translateX(0) rotate(-3deg); }
.tape--card  { width: 70px; left: 40px; transform: translateX(0) rotate(-3deg); }
.tape--qr    { width: 90px; left: 50%; transform: translateX(-50%) rotate(-2deg); }

.underline-svg {
  display: inline-block;
  vertical-align: 4px;
  width: 120px;
  height: 14px;
}

/* -------------------------------------------------------------
   14b. LIGHTBOX
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px 16px;
  overflow-y: auto;
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
  max-width: min(720px, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__frame {
  background: #fff;
  padding: 14px 14px 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}
.lightbox__img,
.lightbox__video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  height: auto;
  width: auto;
  object-fit: contain;
}
.lightbox__img[hidden],
.lightbox__video[hidden] { display: none; }
.lightbox__video { background: #000; }
.lightbox__caption {
  font-family: var(--font-han-brush);
  font-size: 18px;
  color: #f5efe3;
  text-align: center;
  max-width: 560px;
  line-height: 1.5;
  padding: 0 12px;
}
.lightbox__nav {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #f5efe3;
  font-size: 14px;
}
.lightbox__btn {
  padding: 8px 16px;
  background: rgba(245, 239, 227, 0.12);
  border: 1px solid rgba(245, 239, 227, 0.3);
  color: #f5efe3;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dur-base);
}
.lightbox__btn:hover { background: rgba(245, 239, 227, 0.22); }
.lightbox__counter {
  font-family: "Newsreader", serif;
  font-style: italic;
  opacity: 0.85;
  min-width: 60px;
  text-align: center;
}
.lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 239, 227, 0.12);
  border: 1px solid rgba(245, 239, 227, 0.3);
  color: #f5efe3;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 101;
}
.lightbox__close:hover { background: rgba(245, 239, 227, 0.22); }

/* -------------------------------------------------------------
   15. RESPONSIVE (per README §5.7)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .channels__grid { grid-template-columns: 1fr; }
  .collections__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 26px;
    --fs-h3: 20px;
    --fs-body-lg: 16px;
  }
  .nav__links { gap: 12px; }
  .nav__link { display: none; }
  .nav__cta { display: inline-block; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px 40px;
    text-align: left;
  }
  .hero__h1 { font-size: 36px; }
  .hero__sub { font-size: 16px; max-width: none; }
  .hero__avatar-wrap { min-height: 0; order: -1; }
  .hero__avatar-a { width: 240px; }

  section { padding: 36px 20px; }
  .section-h2, .about__h2, .contact__h2 { font-size: 26px; }

  .about,
  .products__grid,
  .contact { grid-template-columns: 1fr; gap: 28px; }

  .product-card--featured {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 18px;
  }
  .polaroid {
    width: 180px;
    margin: 6px auto 0;
  }
  .polaroid img { height: 180px; }

  .collections__grid { grid-template-columns: 1fr; }
  .posts { padding: 40px 0; margin-top: 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }

  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 15px; }

  .channel-big { padding: 22px 20px; min-height: 0; }
  .channel-big__pitch { font-size: 15px; }
}

/* -------------------------------------------------------------
   16. MOTION (respect reduced)
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
