/* ==========================================================================
   龙个哩个龙 · 小工具应用
   配色：米纸 + 赤陶红 + 墨绿。赤陶红作唯一点缀，墨绿只用于主按钮。
   logo 保持原样（白龙 + 原色火焰），不染色、不加底色块。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 纸面 */
  --bg: #F6F0E6;
  --bg-soft: #FBF6EE;
  --surface: #FFFFFF;
  --surface-2: #FDF9F3;
  --line: #EADFD1;
  --line-2: #DCCDB9;

  /* 墨色文字 */
  --ink: #2B2620;
  --ink-2: #6B6156;
  --ink-3: #9C9083;

  /* 赤陶红 */
  --clay: #C0563A;
  --clay-deep: #A3432A;
  --clay-lt: #D97757;
  --clay-ghost: rgba(192, 86, 58, 0.1);

  /* 墨绿 */
  --moss: #22392E;
  --moss-lt: #2E4A3B;

  /* 暖阴影 */
  --sh-1: 0 1px 2px rgba(96, 66, 44, 0.05), 0 10px 24px -18px rgba(96, 66, 44, 0.22);
  --sh-2: 0 26px 54px -30px rgba(96, 66, 44, 0.34), 0 6px 16px -12px rgba(96, 66, 44, 0.16);

  /* 排版 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --wrap: 1440px;
  --pad: clamp(20px, 3.4vw, 44px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: rgba(192, 86, 58, 0.2); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #D9CCB8; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #C7B79F; }

/* ---------- 3. 全局氛围层 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(192, 86, 58, 0.09) 0%, rgba(192, 86, 58, 0.03) 42%, transparent 66%);
  mix-blend-mode: multiply;
  will-change: transform;
}

main { position: relative; z-index: 1; }

/* ---------- 4. 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s;
}

.nav.is-stuck {
  background: rgba(246, 240, 230, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D97757, var(--clay) 62%, var(--clay-deep));
  box-shadow: 0 0 0 3px rgba(192, 86, 58, 0.12);
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* ---------- 5. 按钮 ---------- */
.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.3s ease,
              border-color 0.3s ease, box-shadow 0.4s var(--ease), color 0.3s ease;
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(110px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.22), transparent 66%);
  transition: opacity 0.35s ease;
}

.btn:hover::after { opacity: 1; }

.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; height: 48px; }

/* 主按钮：墨绿 */
.btn-solid {
  background: var(--moss);
  color: #F8F3EA;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 18px -12px rgba(34, 57, 46, 0.7);
}
.btn-solid::after {
  background: radial-gradient(110px circle at var(--bx) var(--by), rgba(217, 119, 87, 0.5), transparent 68%);
}
.btn-solid:hover {
  background: var(--moss-lt);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 16px 30px -16px rgba(34, 57, 46, 0.6);
}

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(192, 86, 58, 0.07); }

.btn-line {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.btn-line::after {
  background: radial-gradient(110px circle at var(--bx) var(--by), rgba(192, 86, 58, 0.14), transparent 68%);
}
.btn-line:hover {
  border-color: rgba(192, 86, 58, 0.45);
  box-shadow: 0 10px 22px -16px rgba(192, 86, 58, 0.5);
}

.i-arrow {
  width: 15px; height: 15px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .i-arrow { transform: translateX(3px); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(54% 50% at 76% 34%, rgba(192, 86, 58, 0.085), transparent 72%),
    radial-gradient(48% 46% at 6% 88%, rgba(34, 57, 46, 0.05), transparent 72%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(246, 240, 230, 0), var(--bg) 84%);
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.aurora-a {
  width: 56vw; height: 56vw;
  max-width: 820px; max-height: 820px;
  right: -12vw; top: -16vh;
  background: radial-gradient(circle, rgba(192, 86, 58, 0.11), rgba(192, 86, 58, 0.035) 46%, transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora-b {
  width: 46vw; height: 46vw;
  max-width: 700px; max-height: 700px;
  left: -16vw; bottom: -20vh;
  background: radial-gradient(circle, rgba(34, 57, 46, 0.08), transparent 66%);
  animation: drift-b 28s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5vw, 4vh, 0) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vh, 0) scale(1.1); }
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(150, 110, 76, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 110, 76, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 76% 66% at 60% 44%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 60% 44%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.hero-copy { max-width: 520px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 26px;
}

.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 rgba(192, 86, 58, 0.5);
  animation: ripple 2.6s ease-out infinite;
}

@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 rgba(192, 86, 58, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(192, 86, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 86, 58, 0); }
}

.hero-title {
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.018em;
  background: linear-gradient(168deg, #241F1A 0%, #3D342B 52%, #6E5F52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 15px;
  font-size: clamp(0.8rem, 1.05vw, 0.9rem);
  letter-spacing: 0.24em;
  color: var(--clay);
  font-weight: 500;
  padding-left: 3px;
}

.hero-desc {
  margin-top: 26px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-meta {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}

/* 右侧视觉：白龙原样放在米纸上，暖光只是衬托，不加底色块 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.visual-glow {
  position: absolute;
  width: 104%;
  aspect-ratio: 1 / 0.82;
  border-radius: 50%;
  background: radial-gradient(ellipse at 46% 54%,
    rgba(192, 86, 58, 0.15) 0%,
    rgba(192, 86, 58, 0.07) 38%,
    rgba(192, 86, 58, 0.02) 60%,
    transparent 76%);
  filter: blur(48px);
  pointer-events: none;
}

.dragon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  /* 暖色投影把白龙从米纸上托起来，避免和背景糊在一起 */
  filter: drop-shadow(0 20px 30px rgba(96, 62, 40, 0.26))
          drop-shadow(0 1px 1px rgba(96, 62, 40, 0.1));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  display: grid;
  place-items: center;
}

.scroll-hint span {
  width: 2px; height: 7px;
  border-radius: 2px;
  background: var(--ink-3);
  animation: scroll-dot 2.2s var(--ease) infinite;
}

@keyframes scroll-dot {
  0%   { transform: translateY(-5px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(7px); opacity: 0; }
}

/* ---------- 7. 通用区块 ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  position: relative;
  padding: clamp(90px, 12vh, 150px) 0;
}

.section--tight { padding: clamp(60px, 8vh, 90px) 0; }

.section-head { margin-bottom: clamp(38px, 5vw, 60px); max-width: 620px; }

.index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--clay);
  text-transform: uppercase;
}

h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--ink);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- 8. 工具卡片 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.tool-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 264px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(192, 86, 58, 0.11), transparent 62%);
  transition: opacity 0.45s ease;
}

.tool-card:hover { border-color: rgba(192, 86, 58, 0.35); }
.tool-card:hover .card-glow { opacity: 1; }

.tool-card:hover {
  box-shadow: 0 30px 60px -34px rgba(150, 70, 42, 0.4), 0 8px 20px -14px rgba(96, 66, 44, 0.2);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.card-state {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #3E7A5C;
  box-shadow: 0 0 0 3px rgba(62, 122, 92, 0.14);
}

.tool-card h3 {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tool-card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.card-specs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.card-specs li {
  font-size: 11px;
  color: var(--ink-2);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  letter-spacing: 0.02em;
  background: var(--surface-2);
}

.card-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--clay);
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.link-arrow .i-arrow { transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--clay-deep); }
.link-arrow:hover .i-arrow { transform: translateX(4px); }

.tool-card--ghost {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  box-shadow: none;
}
.tool-card--ghost:hover {
  border-color: rgba(192, 86, 58, 0.4);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-1);
}

/* ---------- 9. 在线试用 ---------- */
.try-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 130% at 88% 0%, rgba(192, 86, 58, 0.09), transparent 58%),
    var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

.try-copy h2 { max-width: 11em; }

.try-copy p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.try-copy .btn { margin-top: 30px; }

.try-hint {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: var(--ink-3) !important;
}

/* 用 CSS 画的工作台示意（浅色 UI） */
.try-mock {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 24px 50px -32px rgba(96, 66, 44, 0.4), 0 1px 0 #fff inset;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s var(--ease);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #F8F2E8;
}

.mock-dots { display: flex; gap: 5px; }
.mock-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #E2D6C4;
}
.mock-dots i:first-child { background: #D9A08C; }

.mock-pill {
  width: 62px; height: 8px;
  border-radius: 99px;
  background: #ECE2D3;
}

.mock-url {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-left: auto;
  padding-right: 2px;
}

.mock-body {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  padding: 20px;
  min-height: 258px;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.mock-avatar {
  width: 20px; height: 20px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: linear-gradient(160deg, #D97757, var(--clay));
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.mock-line {
  height: 6px;
  border-radius: 3px;
  background: #E6DCCC;
  display: block;
}
.mock-line.tall { height: 9px; background: #D8CBB8; }
.mock-line.thin { height: 5px; background: #EDE4D6; }
.mock-line.end { margin-left: auto; }

.w70 { width: 70%; } .w62 { width: 62%; } .w58 { width: 58%; }
.w55 { width: 55%; } .w52 { width: 52%; } .w50 { width: 50%; }
.w48 { width: 48%; } .w44 { width: 44%; } .w40 { width: 40%; }
.w38 { width: 38%; } .w34 { width: 34%; } .w28 { width: 28%; }
.w16 { width: 16px; }

.mock-main { display: flex; flex-direction: column; gap: 14px; }

.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mock-titles { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.mock-btn {
  flex: 0 0 auto;
  width: 56px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #CF6E4E, var(--clay-deep));
  box-shadow: 0 6px 14px -8px rgba(192, 86, 58, 0.8);
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mock-stat.is-hot {
  border-color: rgba(192, 86, 58, 0.35);
  background: linear-gradient(160deg, rgba(192, 86, 58, 0.1), var(--surface));
}

.mock-stat.is-hot .mock-line { background: rgba(192, 86, 58, 0.28); }

.mock-list { display: flex; flex-direction: column; gap: 8px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mock-chip {
  width: 15px; height: 15px;
  border-radius: 5px;
  background: #EADFD0;
  flex: 0 0 auto;
}

.mock-list > .mock-row:first-child .mock-chip { background: var(--clay); }
.mock-list > .mock-row:first-child { border-color: rgba(192, 86, 58, 0.25); }

/* ---------- 10. 原则 ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.rule {
  position: relative;
  padding: 34px 30px 8px 0;
  border-right: 1px solid var(--line);
}

.rule:last-child { border-right: 0; }

.rule-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--clay);
  letter-spacing: 0.1em;
}

.rule h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rule p {
  margin-top: 9px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 11. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
  background: var(--bg-soft);
}

.foot-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.foot-say { font-size: 13px; color: var(--ink-3); }

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px clamp(44px, 7vw, 110px);
  padding: 34px 0;
}

.foot-col { display: flex; flex-direction: column; gap: 11px; min-width: 96px; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 400;
  text-transform: uppercase;
}

.foot-col a {
  font-size: 13.5px;
  color: var(--ink-2);
  width: fit-content;
  transition: color 0.3s ease;
}
.foot-col a:hover { color: var(--clay); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.foot-base a { transition: color 0.3s; }
.foot-base a:hover { color: var(--ink-2); }
.foot-note { margin-left: auto; color: #B3A794; }

/* ---------- 12. 登录弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(60, 44, 32, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.35s ease;
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(80, 50, 30, 0.5), 0 2px 8px -4px rgba(80, 50, 30, 0.1);
  animation: pop-in 0.42s var(--ease);
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-mark {
  display: block;
  width: 26px; height: 26px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: radial-gradient(circle at 35% 30%, #D97757, var(--clay) 58%, var(--clay-deep));
  box-shadow: 0 6px 16px -8px rgba(192, 86, 58, 0.8);
}

.modal-card h2 { font-size: 22px; margin-top: 0; letter-spacing: -0.02em; }

.modal-desc {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-3);
  transition: color 0.3s, background 0.3s;
}
.modal-x:hover { color: var(--ink); background: var(--surface-2); }
.modal-x svg { width: 15px; height: 15px; }

#loginForm { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field > span {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.field input {
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input::placeholder { color: #B6A996; }

.field input:focus {
  outline: none;
  border-color: rgba(192, 86, 58, 0.6);
  box-shadow: 0 0 0 3px rgba(192, 86, 58, 0.12);
}

.field input[aria-invalid="true"] { border-color: #C0392B; }

.form-msg {
  min-height: 16px;
  font-size: 12.5px;
  color: #B4372A;
  line-height: 1.5;
}

.form-msg.is-ok { color: #2E7D5B; }

#loginForm .btn { margin-top: 2px; }

.modal-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* 已登录状态 */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-user:hover { border-color: rgba(192, 86, 58, 0.5); box-shadow: 0 6px 14px -10px rgba(192, 86, 58, 0.6); }

.nav-user b {
  display: grid;
  place-items: center;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: linear-gradient(180deg, #CF6E4E, var(--clay-deep));
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

/* ---------- 13. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100;
  transform: translate(-50%, 24px);
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--moss);
  color: #F4EDE2;
  box-shadow: 0 20px 44px -20px rgba(34, 57, 46, 0.7);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. 滚动进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 660px; margin: 0 auto; width: 100%; }
  .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .eyebrow, .hero-meta { justify-content: center; }
  .hero-sub { padding-left: 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .try-panel { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .rule { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .rule:last-child { border-bottom: 0; }
  .foot-note { margin-left: 0; width: 100%; }
  .foot-cols { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  body { font-size: 15px; }
  .hero { padding-bottom: 56px; }
  .hero-desc br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .brand-sub { display: none; }
  .tool-card { min-height: 0; }
  .try-panel { padding: 26px 20px; border-radius: 18px; }
  .mock-body { grid-template-columns: 68px 1fr; gap: 12px; padding: 14px; min-height: 0; }
  .mock-side { padding-right: 10px; gap: 9px; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .mock-stat { padding: 9px 8px; gap: 7px; }
  .mock-stat:nth-child(3) { display: none; }
  .mock-row { padding: 8px; gap: 8px; }
  .mock-btn { width: 40px; height: 18px; }
  .modal-card { padding: 28px 22px 22px; }
  .section { padding: 72px 0; }
}

/* ---------- 16. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .spotlight { display: none; }
}

@media (hover: none) {
  .spotlight { display: none; }
}
