/* ================================================================
   井芽工作室 v0.3 — codex 视觉系统原生 CSS 化 + SPA hash 路由
   ================================================================ */

/* === 1. CSS 变量 === */
:root {
  --well: #5A2A25;
  --ochre: #7A3A30;
  --cinnabar: #B84532;
  --sprout: #7F8F5B;
  --paper: #F7F1E6;
  --ink: #1A1A1A;
  --rice: #FCF8EF;
  --clay: #D8BCA1;
  --line: rgba(90, 42, 37, 0.1);
  --line-strong: rgba(90, 42, 37, 0.15);
  --line-dashed: rgba(90, 42, 37, 0.25);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", "STSong", "Noto Serif CJK SC", serif;
}

/* === 2. 全局重置 + 字体 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(184, 69, 50, 0.06), transparent 34rem),
    linear-gradient(180deg, rgba(252, 248, 239, 0.92), rgba(247, 241, 230, 1));
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* 纸感网格纹理 */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(90, 42, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 42, 37, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
textarea { font-family: inherit; }
img { max-width: 100%; height: auto; }
.serif-title {
  font-family: var(--font-serif);
  letter-spacing: 0;
}

/* === 3. page-shell 布局容器 === */
.page-shell {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 640px) {
  .page-shell { padding-left: 32px; padding-right: 32px; }
}

/* === 4. View 切换 === */
/* no-JS 回退：首页默认可见，其他页隐藏 */
.view { display: none; }
#view-home { display: flex; flex-direction: column; min-height: 100vh; }
/* JS 加载后：所有 view 隐藏，仅 .active 的显示 */
body.js-ready .view { display: none !important; }
body.js-ready .view.active {
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  animation: viewIn 0.3s ease;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === 5. 组件类 === */

/* eyebrow — 朱砂红小帽 */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ochre);
}

/* paper-panel — 纸感面板 */
.paper-panel {
  border: 1px solid var(--line-strong);
  background-color: rgba(252, 248, 239, 0.7);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.58), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(247, 241, 230, 0.32));
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
}

/* quiet-card — 安静卡片 */
.quiet-card {
  border: 1px solid var(--line);
  background-color: rgba(252, 248, 239, 0.55);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  transition: all 0.2s;
}
.quiet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 42, 37, 0.25);
  box-shadow: 0 22px 60px rgba(90, 42, 37, 0.10);
}

/* btn-primary — 暗红实心 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  transition: background 0.2s;
  min-height: 44px;
}
.btn-primary:hover { background: var(--ochre); }

/* btn-ghost — 幽灵边框 */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(90, 42, 37, 0.2);
  background: rgba(247, 241, 230, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--well);
  transition: all 0.2s;
  min-height: 44px;
}
.btn-ghost:hover {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 1);
}

/* section-title */
.section-title-wrap {
  max-width: 48rem;
  margin-bottom: 32px;
}
.section-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--well);
}
@media (min-width: 640px) {
  .section-title-wrap h2 { font-size: 36px; }
}
.section-title-wrap p.intro {
  margin-top: 16px;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.68);
}

/* === 6. Site Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 230, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  min-height: 44px;
}
@media (min-width: 640px) {
  .site-header-inner { padding: 12px 32px; }
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.wordmark-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--well);
}
.wordmark-sub {
  font-size: 12px;
  color: rgba(90, 42, 37, 0.65);
}
.wordmark-divider {
  display: none;
  height: 28px;
  width: 1px;
  background: rgba(90, 42, 37, 0.18);
}
@media (min-width: 768px) {
  .wordmark-divider { display: block; }
}
.wordmark-tag {
  display: none;
  font-size: 12px;
  color: rgba(90, 42, 37, 0.45);
}
@media (min-width: 768px) {
  .wordmark-tag { display: block; }
}
.header-nav {
  display: none;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.72);
}
@media (min-width: 768px) {
  .header-nav { display: flex; }
}
.header-nav a { transition: color 0.2s; }
.header-nav a:hover { color: var(--well); }
.header-mobile-btn { display: inline-flex; }
@media (min-width: 768px) {
  .header-mobile-btn { display: none; }
}
.header-desktop-btn { display: none; }
@media (min-width: 768px) {
  .header-desktop-btn { display: inline-flex; }
}

/* === 7. 井+芽 CSS 3D 视觉 === */
.well-visual {
  position: relative;
  min-height: 330px;
}
.well-visual::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 8%;
  height: 52%;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 241, 224, 0.12) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(26, 26, 26, 0.12) 0 2px, transparent 2px 54px),
    linear-gradient(180deg, #8f3d30 0%, #64251f 100%);
  box-shadow: inset 0 18px 32px rgba(26, 26, 26, 0.22), 0 22px 45px rgba(90, 42, 37, 0.2);
  transform: perspective(520px) rotateX(8deg);
}
.well-visual::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 49%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #4b1e1b 0 42%, #7a332b 43% 100%);
  box-shadow: inset 0 8px 22px rgba(26, 26, 26, 0.28);
}
.sprout-stem {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 55%;
  width: 12px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #8d9a66, var(--sprout));
  animation: sproutPulse 4.8s ease-in-out infinite;
}
.sprout-leaf {
  position: absolute;
  z-index: 2;
  bottom: 80%;
  width: 112px;
  height: 56px;
  border-radius: 100% 8% 100% 8%;
  background: linear-gradient(140deg, #95a46b, #667844);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.18);
}
.sprout-leaf.left {
  left: calc(50% - 118px);
  transform: rotate(18deg);
  animation: leafBreatheLeft 5.4s ease-in-out infinite;
}
.sprout-leaf.right {
  left: calc(50% + 8px);
  transform: scaleX(-1) rotate(18deg);
  animation: leafBreatheRight 5.4s ease-in-out infinite;
}
.soil-wave {
  background:
    radial-gradient(80% 40% at 40% 0%, rgba(216, 188, 161, 0.34), transparent 65%),
    linear-gradient(165deg, transparent 0 42%, rgba(216, 188, 161, 0.22) 42% 56%, transparent 56% 100%);
}
.well-vertical-text {
  position: absolute;
  right: 8px;
  top: 56px;
  z-index: 10;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(90, 42, 37, 0.7);
  writing-mode: vertical-rl;
  display: none;
}
@media (min-width: 768px) {
  .well-vertical-text { display: block; }
}

/* hero-stage 带品牌 logo */
.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 2% 7%;
  border: 1px solid rgba(90, 42, 37, 0.1);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.36), transparent 20rem),
    linear-gradient(140deg, rgba(252, 248, 239, 0.84), rgba(247, 241, 230, 0.18));
  box-shadow: 0 30px 80px rgba(90, 42, 37, 0.1);
}
.hero-stage::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 12%;
  height: 26%;
  background:
    radial-gradient(80% 80% at 50% 20%, rgba(216, 188, 161, 0.36), transparent 66%),
    linear-gradient(165deg, transparent 0 30%, rgba(216, 188, 161, 0.3) 30% 47%, rgba(127, 143, 91, 0.08) 47% 58%, transparent 58%);
  opacity: 0.92;
}
.hero-ground {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(127, 143, 91, 0.12), transparent 18rem),
    linear-gradient(168deg, transparent 0 54%, rgba(216, 188, 161, 0.22) 54% 62%, transparent 62%),
    linear-gradient(180deg, rgba(252, 248, 239, 0.2), rgba(247, 241, 230, 0.92));
}
.paper-ribbon {
  position: absolute;
  z-index: 1;
  height: 92px;
  width: 92%;
  left: 5%;
  background: linear-gradient(90deg, transparent, rgba(216, 188, 161, 0.42), transparent);
  transform-origin: center;
}
.ribbon-one {
  top: 43%;
  transform: rotate(-14deg);
  animation: driftRibbon 10s ease-in-out infinite;
}
.ribbon-two {
  top: 58%;
  transform: rotate(10deg);
  opacity: 0.72;
  animation: driftRibbon 12s ease-in-out infinite reverse;
}
.hero-brand-mark {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 4;
  width: min(64%, 430px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 34px rgba(90, 42, 37, 0.18));
}
.hero-brand-mark::before {
  content: "";
  position: absolute;
  inset: 13% 9% 3%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 241, 230, 0.86), rgba(247, 241, 230, 0.18) 66%, transparent 72%);
}
.hero-brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-mark-caption {
  position: absolute;
  right: -7%;
  bottom: 10%;
  width: 150px;
  border-left: 2px solid rgba(184, 69, 50, 0.55);
  padding-left: 12px;
  color: rgba(90, 42, 37, 0.72);
}
.brand-mark-caption span,
.brand-mark-caption strong { display: block; }
.brand-mark-caption span {
  font-size: 12px;
  font-weight: 700;
  color: var(--cinnabar);
}
.brand-mark-caption strong {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
}

/* hero label + surprise-sheet */
.motion-label {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(90, 42, 37, 0.12);
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.74);
  padding: 10px 14px;
  color: rgba(90, 42, 37, 0.66);
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(90, 42, 37, 0.08);
  animation: floatLabel 6s ease-in-out infinite;
}
.label-one { left: 9%; top: 24%; }
.label-two { right: 8%; top: 20%; animation-delay: -1.8s; }
.label-three { left: 14%; bottom: 18%; animation-delay: -3s; }

.surprise-sheet {
  position: absolute;
  right: 7%;
  bottom: 12%;
  z-index: 7;
  width: 172px;
  border: 1px solid rgba(90, 42, 37, 0.16);
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.88);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(90, 42, 37, 0.12);
}
.surprise-sheet span { color: var(--cinnabar); font-size: 12px; font-weight: 700; display: block; }
.surprise-sheet strong { margin-top: 12px; color: var(--well); font-family: var(--font-serif); font-size: 26px; display: block; }
.surprise-sheet i { display: block; height: 8px; margin-top: 10px; border-radius: 999px; background: rgba(127, 143, 91, 0.2); }
.surprise-sheet i:last-child { width: 62%; }

/* === 8. 首页 section === */

/* Visual Problem Wall */
.visual-tile {
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(90, 42, 37, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 24%, rgba(127, 143, 91, 0.12), transparent 10rem),
    rgba(252, 248, 239, 0.68);
  padding: 22px;
  box-shadow: 0 16px 42px rgba(90, 42, 37, 0.07);
}
.tile-illustration {
  position: relative;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.2), rgba(216, 188, 161, 0.18));
}
.tile-illustration span {
  position: absolute;
  border-radius: 8px;
  background: rgba(90, 42, 37, 0.12);
}
/* tile-1: 项目多 → 重点没冒出来 */
.tile-1 span:nth-child(1) { left: 18%; top: 22%; width: 42%; height: 22%; }
.tile-1 span:nth-child(2) { left: 30%; top: 50%; width: 54%; height: 16%; background: rgba(184, 69, 50, 0.18); }
.tile-1 span:nth-child(3) { left: 20%; bottom: 14%; width: 18%; height: 18%; border-radius: 50%; background: rgba(127, 143, 91, 0.42); }
/* tile-2: 材料多 → 结构没长出来 */
.tile-2 span { width: 54%; height: 16%; left: 22%; }
.tile-2 span:nth-child(1) { top: 26%; }
.tile-2 span:nth-child(2) { top: 46%; background: rgba(90, 42, 37, 0.18); }
.tile-2 span:nth-child(3) { top: 66%; width: 32%; background: rgba(127, 143, 91, 0.32); }
/* tile-3: 想做作品 → 第一步没落下来 */
.tile-3 span:nth-child(1) { left: 37%; bottom: 24%; width: 8px; height: 68px; border-radius: 999px; background: rgba(127, 143, 91, 0.6); }
.tile-3 span:nth-child(2), .tile-3 span:nth-child(3) { top: 42%; width: 74px; height: 34px; border-radius: 100% 8% 100% 8%; background: rgba(127, 143, 91, 0.5); }
.tile-3 span:nth-child(2) { left: 22%; transform: rotate(16deg); }
.tile-3 span:nth-child(3) { left: 42%; transform: scaleX(-1) rotate(16deg); }

.visual-tile h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--well);
}
.visual-tile .tile-text {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.55);
}

/* Motion Story Strip */
.motion-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .motion-strip { grid-template-columns: repeat(3, 1fr); }
}
.motion-frame {
  min-height: 210px;
  border: 1px solid rgba(90, 42, 37, 0.1);
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.68);
  padding: 20px;
  box-shadow: 0 16px 42px rgba(90, 42, 37, 0.06);
}
@media (min-width: 768px) {
  .motion-frame { min-height: 300px; }
}
.motion-frame .step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--cinnabar);
}
.motion-frame .step-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--well);
}
.motion-frame .frame-art {
  position: relative;
  height: 100px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(165deg, transparent 0 44%, rgba(216, 188, 161, 0.28) 44% 56%, transparent 56%);
}
@media (min-width: 768px) {
  .motion-frame .frame-art { height: 190px; }
}
.frame-art i {
  position: absolute;
  border-radius: 999px;
  background: rgba(90, 42, 37, 0.2);
}
.frame-art i:nth-child(1) { left: 25%; top: 26%; width: 56%; height: 12px; }
.frame-art i:nth-child(2) { left: 18%; top: 46%; width: 68%; height: 12px; background: rgba(184, 69, 50, 0.18); }
.frame-art i:nth-child(3) { left: 36%; bottom: 24%; width: 28%; height: 28px; background: rgba(127, 143, 91, 0.35); }
.motion-frame .step-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.62);
}

/* Surprise Card Preview */
.surprise-card-preview {
  border: 1px solid var(--line-strong);
  background-color: rgba(252, 248, 239, 0.7);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.58), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(247, 241, 230, 0.32));
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  overflow: hidden;
  border-radius: 8px;
}
.surprise-card-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}
@media (min-width: 640px) {
  .surprise-card-header { padding: 24px; }
}
.surprise-card-header .card-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--cinnabar);
}
.surprise-card-header .card-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--well);
  margin-top: 8px;
}
.surprise-card-header .card-intro {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.62);
}
.surprise-card-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .surprise-card-grid { grid-template-columns: repeat(4, 1fr); }
}
.surprise-card-field {
  border-bottom: 1px solid var(--line);
  padding: 20px;
}
@media (min-width: 768px) {
  .surprise-card-field { border-bottom: none; border-right: 1px solid var(--line); }
  .surprise-card-field:last-child { border-right: none; }
}
.surprise-card-field .field-num {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sprout);
}
.surprise-card-field .field-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--well);
}
.surprise-card-field .field-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.66);
}
.surprise-card-boundary {
  background: rgba(184, 69, 50, 0.08);
  padding: 16px 24px;
  font-size: 14px;
  color: var(--cinnabar);
}

/* Case Poster (首页案例卡片) */
.case-poster {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(90, 42, 37, 0.12);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(90, 42, 37, 0.09);
}
@media (min-width: 768px) {
  .case-poster { min-height: 360px; }
}
.case-poster-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-poster-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.case-poster-photo:hover img {
  transform: scale(1.035);
  opacity: 0.88;
}
.case-poster-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(252, 248, 239, 0.08) 0%, rgba(252, 248, 239, 0.22) 42%, rgba(90, 42, 37, 0.72) 100%),
    radial-gradient(circle at 72% 12%, rgba(247, 241, 230, 0.5), transparent 16rem);
}
.case-poster::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -40px;
  bottom: -42px;
  width: 250px;
  height: 250px;
  border: 34px solid rgba(90, 42, 37, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.case-poster span,
.case-poster strong {
  position: relative;
  z-index: 2;
  display: block;
}
.case-poster span {
  color: var(--cinnabar);
  font-size: 14px;
  font-weight: 700;
}
.case-poster-photo span {
  color: rgba(247, 241, 230, 0.86);
}
.case-poster strong {
  margin-top: 80px;
  max-width: 420px;
  color: var(--well);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .case-poster strong { font-size: 34px; }
}
.case-poster-photo strong {
  margin-top: 14px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(26, 26, 26, 0.22);
}
.poster-green {
  background:
    radial-gradient(circle at 78% 30%, rgba(127, 143, 91, 0.22), transparent 12rem),
    linear-gradient(145deg, rgba(252, 248, 239, 0.88), rgba(216, 188, 161, 0.18));
}

/* Service cards */
.service-card-v3 {
  border: 1px solid rgba(90, 42, 37, 0.1);
  background-color: rgba(252, 248, 239, 0.55);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  transition: all 0.2s;
}
.service-card-v3:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 42, 37, 0.25);
  box-shadow: 0 22px 60px rgba(90, 42, 37, 0.10);
}
.service-card-v3 h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--well);
}
.service-card-v3 .service-text {
  margin-top: 16px;
  min-height: 96px;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.70);
}
.service-card-v3 .service-note {
  margin-top: 20px;
  display: inline-flex;
  background: rgba(184, 69, 50, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--cinnabar);
}

/* === 9. Start 页（选择问题 → 真LLM接入） === */
.start-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.start-art-img {
  width: 132px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.start-title-v3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--well);
  margin-top: 16px;
}
.start-sub-v3 {
  margin: 16px auto;
  max-width: 28rem;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.70);
}
.start-options {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.start-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--well);
  min-height: 44px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.55);
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  transition: all 0.2s;
}
.start-option-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 42, 37, 0.25);
  box-shadow: 0 22px 60px rgba(90, 42, 37, 0.10);
}
.start-hint {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.48);
}
.start-divider {
  text-align: center;
  margin: 24px 0;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.48);
  position: relative;
}
.start-free-input {
  width: 100%;
  background: rgba(252, 248, 239, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  min-height: 44px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.start-submit-btn {
  display: block;
  width: 100%;
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 12px;
  min-height: 44px;
  transition: background 0.2s;
}
.start-submit-btn:hover { background: var(--ochre); }
.start-privacy {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

/* === 10. Chat 页 === */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 230, 0.86);
  backdrop-filter: blur(12px);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.chat-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--well);
}
.chat-status {
  font-size: 12px;
  color: var(--sprout);
}
.chat-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--well);
  padding: 8px 14px;
  border: 1px solid rgba(90, 42, 37, 0.2);
  border-radius: 8px;
  transition: all 0.2s;
  min-height: 44px;
}
.chat-settings-btn:hover {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 1);
}
.step-indicator {
  text-align: center;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: rgba(252, 248, 239, 0.38);
}
.msg-bubble {
  max-width: 82%;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
}
.msg-ai {
  border: 1px solid var(--line);
  background: rgba(247, 241, 230, 0.8);
  color: rgba(26, 26, 26, 0.72);
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
}
.msg-user {
  margin-left: auto;
  background: rgba(127, 143, 91, 0.18);
  color: rgba(26, 26, 26, 0.72);
}
.msg-loading {
  display: inline-flex;
  gap: 6px;
  padding: 16px;
}
.msg-loading span {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--sprout);
  animation: pulse 1.4s ease-in-out infinite;
}
.msg-loading span:nth-child(2) { animation-delay: 150ms; }
.msg-loading span:nth-child(3) { animation-delay: 300ms; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.92);
}
.chat-input {
  flex: 1;
  background: rgba(247, 241, 230, 1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  min-height: 44px;
  max-height: 120px;
  resize: none;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.5;
}
.chat-input:disabled {
  background: rgba(247, 241, 230, 0.5);
  color: rgba(26, 26, 26, 0.38);
}
.chat-send {
  width: 44px;
  height: 44px;
  background: var(--well);
  color: var(--paper);
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--ochre); }
.chat-send:disabled { background: rgba(90, 42, 37, 0.3); color: rgba(247, 241, 230, 0.5); }

/* upload-transition-btn (聊天完成后出现) */
.upload-transition-btn {
  align-self: center;
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
  min-height: 44px;
  transition: background 0.2s;
  animation: viewIn 0.4s ease;
}
.upload-transition-btn:hover { background: var(--ochre); }

/* === 11. Upload 页 === */
.upload-content {
  padding: 20px;
}
.upload-title-v3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--well);
}
.upload-sub-v3 {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.55);
}
.upload-zone {
  margin-top: 24px;
  min-height: 44px;
  border: 1px dashed var(--line-dashed);
  border-radius: 8px;
  background: rgba(247, 241, 230, 0.45);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 0.68);
}
.upload-zone-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.upload-zone-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--well);
}
.upload-zone-hint {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  margin-top: 4px;
}
.upload-warning {
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(184, 69, 50, 0.1);
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--cinnabar);
}
.privacy-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.privacy-confirm input {
  margin-top: 5px;
  accent-color: var(--well);
  flex: 0 0 auto;
}
.upload-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.format-tag {
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(252, 248, 239, 0.7);
  color: var(--well);
  border-radius: 4px;
  font-family: monospace;
  border: 1px solid var(--line);
}
.uploaded-files {
  margin-top: 16px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.65);
  margin-bottom: 8px;
}
.file-name {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  flex-shrink: 0;
}
.upload-skip {
  text-align: center;
  font-size: 14px;
  padding: 8px;
  margin-bottom: 8px;
}
.skip-link {
  color: var(--well);
  border: 1px solid rgba(90, 42, 37, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip-link:hover {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 1);
}
.upload-next {
  display: block;
  width: 100%;
  background: var(--well);
  color: var(--paper) !important;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: 44px;
  transition: background 0.2s;
}
.upload-next:hover { background: var(--ochre); }

/* === 12. Result 页 === */
.result-content {
  padding: 20px;
}
.result-header {
  text-align: center;
  margin-bottom: 24px;
}
.result-art-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.result-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--well);
}
.result-header p {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
}
.result-section-title {
  font-size: 12px;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.result-section-body {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.70);
  margin-bottom: 16px;
}
.result-note {
  border: 1px solid rgba(90, 42, 37, 0.12);
  border-radius: 8px;
  background: rgba(127, 143, 91, 0.1);
  padding: 12px 14px;
  color: rgba(90, 42, 37, 0.72);
}
.result-loading {
  text-align: center;
  padding: 40px 0;
}
.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top: 3px solid var(--well);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-loading p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.55);
}
.result-error {
  text-align: center;
  padding: 20px;
}
.result-error p {
  font-size: 14px;
  color: var(--cinnabar);
}
.result-retry-btn {
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  margin-top: 16px;
}
.result-retry-btn:hover { background: var(--ochre); }
.result-actions {
  margin-top: 24px;
}
.result-action-card {
  border: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.68);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.ra-label {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  margin-bottom: 4px;
}
.ra-wechat {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--well);
  font-weight: 600;
}
.ra-tip {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
}
.result-copy-btn {
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  width: 100%;
  min-height: 44px;
  transition: background 0.2s;
}
.result-copy-btn:hover { background: var(--ochre); }
.result-copy-btn.copied { background: var(--sprout); }
.result-nav-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.result-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(90, 42, 37, 0.2);
  background: rgba(247, 241, 230, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--well);
  min-height: 44px;
  transition: all 0.2s;
}
.result-back-btn:hover {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 1);
}
.result-regen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--well);
  color: var(--paper) !important;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.2s;
}
.result-regen-btn:hover { background: var(--ochre); }
.result-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--well);
  min-height: 44px;
}
.result-boundary {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.55);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.60);
}
.result-boundary .boundary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cinnabar);
}

/* === 13. Cases 页 === */
.cases-hero {
  display: grid;
  gap: 40px;
  padding: 56px 20px;
  align-items: center;
}
@media (min-width: 768px) {
  .cases-hero { grid-template-columns: 1fr 0.82fr; padding: 56px 32px; }
}
.cases-hero-text .cases-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ochre);
  margin-bottom: 20px;
}
.cases-hero-text h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--well);
}
@media (min-width: 640px) {
  .cases-hero-text h1 { font-size: 60px; }
}
.cases-hero-text .cases-intro {
  margin-top: 24px;
  max-width: 32rem;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.70);
}

/* ProjectShowcase */
.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(90, 42, 37, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.5), transparent 18rem),
    rgba(252, 248, 239, 0.68);
  box-shadow: 0 24px 64px rgba(90, 42, 37, 0.08);
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .project-showcase { grid-template-columns: 1.05fr 0.95fr; }
}
.project-visual {
  position: relative;
  min-height: 430px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(216, 188, 161, 0.2), transparent 45%),
    rgba(247, 241, 230, 0.55);
}
@media (min-width: 768px) {
  .project-visual { border-right: 1px solid var(--line); border-bottom: none; min-height: 560px; }
}
.project-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(165deg, transparent 0 42%, rgba(216, 188, 161, 0.26) 42% 56%, transparent 56%),
    rgba(252, 248, 239, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
@media (min-width: 768px) {
  .project-visual::before { inset: 42px; }
}
.project-visual::after {
  content: "";
  position: absolute;
  right: 54px;
  bottom: 64px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(90, 42, 37, 0.12);
  border-radius: 50%;
}
@media (max-width: 767px) {
  .project-visual::after { right: 24px; bottom: 38px; width: 120px; height: 120px; border-width: 18px; }
}
.project-visual.school::after { border-color: rgba(127, 143, 91, 0.18); }
.visual-evidence-main {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(90, 42, 37, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 24%, rgba(127, 143, 91, 0.12), transparent 9rem),
    rgba(252, 248, 239, 0.76);
  box-shadow: 0 18px 48px rgba(90, 42, 37, 0.12);
  min-height: 200px;
  max-height: 420px;
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .visual-evidence-main { min-height: 260px; max-height: 500px; }
}
.visual-evidence-main img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  background: rgba(252, 248, 239, 0.4);
  pointer-events: auto;  /* 图片本身接收点击触发 lightbox */
}
@media (min-width: 768px) {
  .visual-evidence-main img { max-height: 480px; }
}
/* 主图下方专属 header（不再浮在图上） */
.visual-evidence-main + .evidence-label {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}
.visual-evidence-main .evidence-label {
  /* 移到主图下方做独立 header，不再绝对定位挡图 */
  display: block;
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.86);
  padding: 10px 14px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(90, 42, 37, 0.08);
}
.visual-evidence-main .evidence-label span {
  display: block;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
}
.visual-evidence-main .evidence-label strong {
  display: block;
  margin-top: 4px;
  color: var(--well);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.16;
}
@media (min-width: 768px) {
  .visual-evidence-main .evidence-label strong { font-size: 28px; }
}
.evidence-strip {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 38px;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.evidence-strip::-webkit-scrollbar { height: 6px; }
.evidence-strip::-webkit-scrollbar-thumb { background: rgba(90,42,37,0.25); border-radius: 3px; }
@media (min-width: 768px) {
  .evidence-strip { left: 74px; right: 74px; bottom: 72px; gap: 10px; }
}
.evidence-strip figure {
  flex: 0 0 auto;
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(252, 248, 239, 0.78);
  overflow: hidden;
  margin: 0;
  color: rgba(90, 42, 37, 0.78);
  font-size: 12px;
  line-height: 1.4;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) {
  .evidence-strip figure { width: 110px; }
}
.evidence-strip figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 42, 37, 0.18);
}
.evidence-strip figure.is-active {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 2px rgba(184, 69, 50, 0.25);
}
.evidence-strip img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}
.evidence-strip figcaption {
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-content { padding: 26px; }
@media (min-width: 768px) { .project-content { padding: 40px; } }
.project-content .project-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--cinnabar);
}
.project-content .project-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--well);
  margin-top: 8px;
}
@media (min-width: 768px) { .project-content .project-title { font-size: 40px; } }
.project-content .project-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(26, 26, 26, 0.58);
}
.project-point {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.project-point .point-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--well);
  margin-bottom: 8px;
}
.project-point .point-text {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.68);
}
.cases-boundary-note {
  margin-top: 32px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.55);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.55);
}

/* === 14. Contact 页 === */
.contact-layout {
  display: grid;
  gap: 40px;
  padding: 56px 20px;
  align-items: center;
  min-height: calc(100vh - 72px);
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; padding: 56px 32px; }
}
.contact-text .contact-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ochre);
  margin-bottom: 20px;
}
.contact-text h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--well);
}
@media (min-width: 640px) {
  .contact-text h1 { font-size: 60px; }
}
.contact-text .contact-intro {
  margin-top: 24px;
  max-width: 28rem;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.70);
}
.contact-text .contact-intro .highlight {
  font-weight: 600;
  color: var(--well);
}
.contact-panel {
  border: 1px solid var(--line-strong);
  background-color: rgba(252, 248, 239, 0.7);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.58), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(247, 241, 230, 0.32));
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  border-radius: 8px;
  padding: 24px;
}
@media (min-width: 640px) {
  .contact-panel { padding: 32px; }
}
.contact-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--well);
}
.contact-panel-header h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
}
.contact-panel-grid {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .contact-panel-grid { grid-template-columns: 220px 1fr; }
}
.qr-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed var(--line-dashed);
  border-radius: 8px;
  background: rgba(247, 241, 230, 0.7);
  text-align: center;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.48);
  padding: 20px;
}
.contact-info-block {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.70);
}
.contact-info-block h3 {
  font-weight: 600;
  color: var(--well);
  margin-bottom: 8px;
}

/* === 15. Styleguide 页 === */
.styleguide-color-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .styleguide-color-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .styleguide-color-grid { grid-template-columns: repeat(6, 1fr); } }
.color-swatch {
  border: 1px solid var(--line);
  background: rgba(252, 248, 239, 0.55);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(90, 42, 37, 0.08);
  transition: all 0.2s;
}
.color-swatch:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 42, 37, 0.25);
  box-shadow: 0 22px 60px rgba(90, 42, 37, 0.10);
}
.color-swatch .swatch-block {
  height: 80px;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.color-swatch .swatch-name {
  font-weight: 600;
  color: var(--well);
}
.color-swatch .swatch-value {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.55);
}

/* === 16. Settings Modal === */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.overlay.active { display: flex; align-items: center; justify-content: center; }
.modal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(92vw, 380px);
  box-shadow: 0 22px 60px rgba(90, 42, 37, 0.10);
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--well);
}
.modal-sub {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.55);
  margin: 4px 0 20px;
}
.modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--well);
  margin-top: 16px;
  margin-bottom: 4px;
}
.modal select,
.modal input {
  width: 100%;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}
.modal-hint {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  margin-top: 4px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
}
.modal-btn-primary {
  background: var(--well);
  color: var(--paper) !important;
  flex: 1;
}
.modal-btn-primary:hover { background: var(--ochre); }
.modal-btn-secondary {
  border: 1px solid rgba(90, 42, 37, 0.2);
  color: var(--well);
  flex: 1;
  transition: all 0.2s;
}
.modal-btn-secondary:hover {
  border-color: rgba(90, 42, 37, 0.35);
  background: rgba(252, 248, 239, 1);
}

/* === 17. 井+芽 keyframes === */
@keyframes sproutPulse {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(1.05); }
}
@keyframes leafBreatheLeft {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(10deg) translateY(-5px); }
}
@keyframes leafBreatheRight {
  0%, 100% { transform: scaleX(-1) rotate(18deg); }
  50% { transform: scaleX(-1) rotate(10deg) translateY(-5px); }
}
@keyframes driftRibbon {
  0%, 100% { translate: 0 0; }
  50% { translate: 24px 10px; }
}
@keyframes floatLabel {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* === 18. 响应式桌面 === */
@media (min-width: 768px) {
  body.js-ready .view.active { min-height: 600px; }
  /* hero grid */
  .hero-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 32px; align-items: center; }
  /* sections 间距 */
  .home-section { padding: 56px 32px; }
  /* problem wall */
  .problem-wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* services grid */
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* cases poster grid */
  .case-poster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* === 19. Safe area + misc === */
.contact-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 12px;
  color: rgba(26, 26, 26, 0.48);
  line-height: 1.8;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.toast {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--well);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 60;
  animation: viewIn 0.3s ease;
  pointer-events: none;
}

/* === Lightbox 图片查看器（含平铺水印） === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 14, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(252, 248, 239, 0.15);
  color: #fff;
  border: 1px solid rgba(252, 248, 239, 0.3);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(252, 248, 239, 0.25); }
.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
/* 真正显示的图 */
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
/* 平铺水印层（覆盖在图上，pointer-events: none 不挡关闭按钮） */
.lightbox-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'><text x='0' y='30' fill='rgba(252,248,239,0.32)' font-family='Songti SC, SimSun, serif' font-size='18' font-weight='700' transform='rotate(-22 110 60)'>井芽工作室 JINGYA</text><text x='0' y='90' fill='rgba(252,248,239,0.18)' font-family='PingFang SC, Microsoft YaHei, sans-serif' font-size='12' transform='rotate(-22 110 60)'>© 案例预览 · 下载无效</text></svg>");
  background-repeat: repeat;
  background-size: 220px 120px;
  mix-blend-mode: screen;
}
/* 案例版权声明（底部一行） */
.lightbox-credit {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(252, 248, 239, 0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  font-family: var(--font-sans, system-ui, sans-serif);
}
.lightbox-hint {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(252, 248, 239, 0.5);
  font-size: 12px;
  pointer-events: none;
  font-family: var(--font-sans, system-ui, sans-serif);
}
