/* ==========================================================================
   兮兮颜 — styles.css
   设计语义：冬日凝白 + 冰蓝 + 冬炉微橙；克制的留白；冰裂瓷纹作签名装饰。
   ========================================================================== */

:root {
  /* 凝白纸 + 冷墨 */
  --bg: #F2F0EA;
  --bg-deep: #E6E3DA;
  --paper: #F9F7F0;
  --ink: #1C1F23;
  --ink-soft: #4A4E54;
  --bamboo: #8A8F8C;
  --line: rgba(28, 31, 35, 0.14);
  --line-soft: rgba(28, 31, 35, 0.07);

  /* 冬日签名色 */
  --frost: #8FA5B5;
  --frost-deep: #5C7285;
  --ember: #C8745A;       /* 冬炉暖色，对冲冰蓝 */
  --ember-deep: #9F5238;
  --pine: #6B7560;

  --container: 1180px;

  --f-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --f-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-delicate:"ZCOOL XiaoWei", "Noto Serif SC", serif;
  --f-brush:   "Ma Shan Zheng", "Noto Serif SC", serif;
}

/* -------- Reset / Base -------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* 冬日冷调纸纹（与暖纸版相反 — 颗粒更细） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(28, 31, 35, 0.022) 1px, transparent 1px),
    radial-gradient(rgba(92, 114, 133, 0.025) 1px, transparent 1px);
  background-size: 2px 2px, 6px 6px;
  background-position: 0 0, 1px 1px;
  z-index: 0;
  opacity: .7;
}
main, header, footer { position: relative; z-index: 1; }

.section { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 48px); }
.section-head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 8vw, 88px);
}
.section-sub {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  letter-spacing: .04em;
}

/* -------- eyebrow（与上一版不同：用「雪花」笔画替 brush 直条） -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--frost-deep);
}
.eyebrow .flake {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}
.eyebrow .flake::before,
.eyebrow .flake::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--frost-deep);
  border-radius: 2px;
}
.eyebrow .flake::before {
  width: 22px;
  height: 1px;
  top: 11px;
  bottom: 11px;
  transform: rotate(45deg);
}
.eyebrow .flake::after {
  width: 22px;
  height: 1px;
  top: 11px;
  bottom: 11px;
  transform: rotate(-45deg);
}
.eyebrow .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.eyebrow-center { display: inline-flex; }
.contact-inner .eyebrow { margin-bottom: 24px; }

/* -------- 顶部导航 -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 234, 0.78);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--frost-deep);
  letter-spacing: .04em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--frost-deep);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .logo-mark { transform: rotate(6deg) scale(1.04); }
.brand-text {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .14em;
  color: var(--ink);
}
.brand-text.sm { font-size: 16px; }

.nav {
  display: flex;
  gap: 36px;
  font-family: var(--f-display);
  font-size: 15px;
}
.nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  transition: color .3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--frost-deep);
  transition: width .4s ease, left .4s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; left: 0; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { height: 1px; background: var(--ink); transition: all .3s ease; }
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; align-self: flex-end; }
.nav-toggle span:nth-child(3) { width: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

/* -------- Hero -------- */
.hero {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 48px) clamp(80px, 12vw, 140px);
  max-width: var(--container);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.hero-left { min-width: 0; }

/* 大标题 — 三行竖排，强调冬日凝滞 */
.hero-title {
  margin: 28px 0 36px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(68px, 12vw, 188px);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-title .ht-line { display: block; }
.hero-title .emph {
  font-family: var(--f-delicate);
  font-weight: 400;
  font-size: .82em;
  margin-left: .25em;
  color: var(--frost-deep);
  letter-spacing: .02em;
}
.hero-title .emph em {
  font-style: normal;
  position: relative;
}
.hero-title .emph em::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -6px;
  width: 116%;
  height: 1px;
  background: var(--frost);
  opacity: .6;
}

.hero-sub {
  max-width: 52ch;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
}
.hero-sub strong {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--frost-deep);
  padding-bottom: 1px;
}
.hero-sub em {
  font-style: normal;
  font-family: var(--f-display);
  color: var(--ember);
  font-weight: 600;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 右侧 冰裂瓷 */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-bottom: 12px;
}
.crack-frame {
  position: relative;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 1;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(28,31,35,.04),
    0 40px 80px -50px rgba(92,114,133,.4);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), box-shadow .8s ease;
}
.crack-frame:hover {
  transform: translateY(-4px) rotate(.4deg);
  box-shadow: 0 50px 90px -50px rgba(92,114,133,.55);
}
.crackle {
  width: 100%;
  height: 100%;
  color: var(--frost-deep);
}
.crack-frame-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.crack-frame-sub {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--bamboo);
}
.hero-tiny {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bamboo);
}
.ht-mini-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--frost);
}

.hero-footer {
  margin-top: clamp(60px, 9vw, 100px);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bamboo);
}
.hf-divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* -------- 按钮 -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .35s ease;
  cursor: pointer;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--frost-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(92,114,133,.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--frost-deep);
  color: var(--frost-deep);
  transform: translateY(-2px);
}

/* -------- 冬之章 -------- */
.concept { background: var(--bg-deep); }
.concept h2,
.gallery h2,
.notes h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0;
}
.concept-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.concept-card {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.concept-card::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  height: 1px;
  width: 0;
  background: var(--ember);
  transition: width .6s ease;
}
.concept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -36px rgba(28,31,35,.22);
  border-color: transparent;
}
.concept-card:hover::before { width: 56px; }
.concept-card .card-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--frost-deep);
  margin-bottom: 24px;
}
.concept-card h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: .12em;
}
.concept-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* -------- 颜集 -------- */
.gallery .section-head { text-align: left; }
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.gcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gcard-feature { grid-column: span 3; }
.gcard:not(.gcard-feature) { grid-column: span 2; }

.gcard-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  isolation: isolate;
}
.gcard-feature .gcard-art { aspect-ratio: 16 / 11; }
.gcard-glyph {
  font-family: var(--f-delicate);
  font-weight: 400;
  font-size: clamp(120px, 18vw, 220px);
  color: rgba(249, 247, 240, .92);
  letter-spacing: .02em;
  text-shadow: 0 4px 20px rgba(28,31,35,.12);
}
.gcard-glyph.small { font-size: clamp(90px, 11vw, 140px); }
.gcard figcaption { padding: 0 4px; }
.gcard-tag {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bamboo);
}
.gcard h3 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: .08em;
}
.gcard-meta {
  margin: 0;
  font-size: 13px;
  color: var(--bamboo);
}

/* 颜集卡片「冬日配色」（与上一版的秋天色对比） */
.art-1 { background: linear-gradient(135deg, #D9DEE3 0%, #B6BFCA 100%); } /* 初雪晨灰 */
.art-2 { background: linear-gradient(135deg, #C2CFD9 0%, #7A8FA3 100%); } /* 寒窗冰蓝 */
.art-3 { background: linear-gradient(135deg, #D8B49B 0%, #A2684E 100%); } /* 暖灯橙 */
.art-4 { background: linear-gradient(135deg, #B5AFA2 0%, #6E6757 100%); } /* 寒枝褐 */
.art-5 { background: linear-gradient(135deg, #C9BBAB 0%, #6E5D4A 100%); } /* 茶烟褐 */
.art-6 { background: linear-gradient(135deg, #E0DCD3 0%, #A6A195 100%); } /* 暮归米 */
.art-3 .gcard-glyph { color: rgba(249, 247, 240, .96); }
.art-4 .gcard-glyph,
.art-5 .gcard-glyph { color: rgba(249, 247, 240, .85); }

/* 颜集卡片入场 */
.gcard { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.gcard.in-view { opacity: 1; transform: translateY(0); }

/* -------- 手记 -------- */
.notes { background: var(--bg-deep); }
.notes-list {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.note-row {
  display: grid;
  grid-template-columns: 100px 1fr 160px 40px;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .4s ease, background .4s ease, color .4s ease;
}
.note-row:hover {
  padding-left: 24px;
  background: var(--paper);
  color: var(--frost-deep);
}
.note-row .note-date {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--bamboo);
}
.note-row .note-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: .06em;
}
.note-row .note-meta {
  font-size: 13px;
  color: var(--bamboo);
  letter-spacing: .08em;
}
.note-row .note-arrow {
  font-family: var(--f-display);
  font-size: 22px;
  text-align: right;
  transition: transform .4s ease;
}
.note-row:hover .note-arrow { transform: translateX(6px); }

/* -------- 来信 -------- */
.contact { text-align: center; }
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.contact h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
}
.contact .eyebrow { margin: 0 auto 6px; }
.contact-sub {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.9;
}

/* -------- 页脚 -------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 48px) 48px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--frost-deep);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--frost);
}
.footer-brand .logo-mark { width: 32px; height: 32px; color: var(--frost); }
.footer-brand .brand-text { color: var(--paper); }
.footer-tag {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .12em;
  color: var(--paper);
  max-width: 32ch;
}
.footer-meta {
  border-top: 1px solid rgba(249,247,240,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(249,247,240,.72);
}
.copyright { margin: 0; letter-spacing: .1em; }
.record {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.police-badge {
  width: 18px;
  height: 20px;
  flex-shrink: 0;
}
.record-link {
  color: rgba(249,247,240,.92);
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .3s ease;
}
.record-link:hover { color: var(--frost); }

/* -------- 响应式 -------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
  }
  .crack-frame { width: clamp(200px, 60vw, 320px); }
  .concept-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gcard-feature,
  .gcard:not(.gcard-feature) { grid-column: span 2; }
  .note-row { grid-template-columns: 80px 1fr 30px; }
  .note-row .note-meta { display: none; }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 100%; right: 16px;
    left: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.2);
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
  .hero-title { font-size: clamp(56px, 16vw, 96px); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gcard-feature,
  .gcard:not(.gcard-feature) { grid-column: span 1; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* -------- 偏好减弱动画 -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .gcard { opacity: 1; transform: none; }
}

/* -------- 键盘 focus -------- */
:where(a, button, .brand):focus-visible {
  outline: 2px solid var(--frost-deep);
  outline-offset: 4px;
  border-radius: 4px;
}
