/* ============================================================
   suanqiu V4 — Components
   ============================================================ */

/* --- Sticky note --- */
.sticky {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg);
  border-radius: var(--radius-sticky);
  box-shadow: var(--shadow-sticky);
  font-family: var(--font-body);
  white-space: nowrap;
  line-height: 1.3;
}
.sticky-yellow { background: var(--sticky-yellow); --tilt: -2deg; }
.sticky-pink   { background: var(--sticky-pink);   --tilt: 1.5deg; }
.sticky-blue   { background: var(--sticky-blue);   --tilt: -1deg; }

/* --- Hand-written label --- */
.hand {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}
.hand::before {
  content: "\2192";
  margin-right: 0.15rem;
  font-family: var(--font-hand);
  color: inherit;
  opacity: 0.7;
}
.hand-red    { color: var(--label-red); }
.hand-blue   { color: var(--label-blue); }
.hand-yellow { color: var(--label-yellow); }
.hand-ink    { color: var(--label-ink); }
.hand-sm { font-size: 0.9rem; }
.hand-lg { font-size: 1.5rem; }

/* --- Sticky & Hand wobble --- */
.sticky, .hand {
  --tilt: 0deg;
  --sway-amp: 0deg;
  transform: rotate(calc(var(--tilt) + var(--sway-amp)));
  transform-origin: 50% 30%;
  animation: sticky-sway 4.2s ease-in-out infinite;
}
@keyframes sticky-sway {
  0%, 100% { --sway-amp: -1.5deg; }
  50%      { --sway-amp:  1.5deg; }
}

/* --- Nav --- */
.nav-sentinel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
}
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  z-index: 100;
  transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-left: 0.5rem;
}
.nav-logo-name {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-left: 0.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-lang-icon { flex-shrink: 0; opacity: 0.75; }
.nav-links a.nav-lang:hover .nav-lang-icon { opacity: 1; }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--fg);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-btn);
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
}
.nav-links a.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, width 0.3s;
}
.nav-hamburger span:first-child { width: 24px; }
.nav-hamburger span:last-child  { width: 16px; }
.nav-hamburger.active span:first-child {
  transform: translateY(6.5px) rotate(45deg);
  width: 24px;
}
.nav-hamburger.active span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 24px;
}

/* --- Hero v5: 双栏 copy + 粒子地球 (浅色 / 好读 / 经久耐看) --- */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: 112px clamp(1.25rem, 4vw, 3rem) clamp(3.25rem, 5vw, 4.5rem);
  background: var(--bg);
}
/* 柔和网格底纹 + 中心柔光 — 品牌暖色浮感，不扎眼 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(26, 26, 26, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(26, 26, 26, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 45%;
  width: clamp(520px, 62vw, 920px);
  height: clamp(520px, 62vw, 920px);
  transform: translate(30%, -50%);
  background: radial-gradient(circle, rgba(255, 149, 0, 0.065) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100dvh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}
.hero-copy {
  position: relative;
  min-width: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.hero-cta--primary {
  background: var(--accent);
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.30);
}
.hero-cta--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 149, 0, 0.34);
}
.hero-cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.hero-cta--ghost:hover { border-color: var(--fg); transform: translateY(-1px); }

/* 粒子地球舞台 */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
.hero-stage-canvas:active { cursor: grabbing; }

/* SECTION: 思豆·想 站在标题首字左侧 —— 向右推住「用」字，与文字分离 */
.hero-title-use { position: relative; display: inline-block; }
.hero-title-use .hero-push {
  position: absolute;
  left: -0.85em;                   /* 负偏移挂到字左侧，不占布局、不引起折行 */
  top: 40%;
  z-index: 2;
  pointer-events: none;
}
.hero-push-mascot {
  display: block;
  width: 1.05em;                   /* 相对标题字号，随断点自适应 */
  height: auto;
  overflow: visible;
  transform-origin: 18% 88%;
  animation: hero-think-push 1.8s ease-in-out infinite;
}
@keyframes hero-think-push {
  0%   { transform: rotate(-5deg) translate(0, 0); }
  20%  { transform: rotate(3deg)  translate(3px, 0); }      /* 发力向右顶 */
  32%  { transform: rotate(-1deg) translate(1px, 0); }      /* 顶住缓冲 */
  48%  { transform: rotate(4deg)  translate(4px, -1px); }   /* 第二段发力 */
  62%  { transform: rotate(-3deg) translate(1px, 0); }      /* 卸力回位 */
  100% { transform: rotate(-5deg) translate(0, 0); }
}

/* SECTION: 地球工具节点 — 悬停提示 + 计数徽章 */
.hero-node-tip {
  position: absolute; left: 0; top: 0; z-index: 5;
  transform: translate(-50%, -100%);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: #fff; background: var(--mascot);
  border-radius: 999px; padding: 0.24rem 0.66rem;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hero-node-tip.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-node-tip { display: none; } }

/* SECTION: 工具页发布轴 ship-timeline */
.ship-timeline { margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ship-label { font-size: 0.9rem; color: var(--muted); }
.ship-track {
  list-style: none; display: flex; align-items: flex-start; gap: 0;
  position: relative; flex: 1; min-width: 280px; max-width: 560px;
}
.ship-track::before {
  content: ''; position: absolute; left: 8px; right: 20px; top: 7px;
  height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.ship-item { position: relative; flex: 1; padding-top: 20px; min-width: 0; }
.ship-dot {
  position: absolute; top: 2px; left: 8px; width: 12px; height: 12px;
  border-radius: 999px; background: var(--bg); border: 2px solid var(--line);
}
.ship-item--live .ship-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,149,0,.16); }
.ship-item--wip .ship-dot { border-color: var(--accent); border-style: dashed; }
.ship-item time { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: .04em; }
.ship-item b { display: block; font-size: 0.92rem; margin-top: 2px; }
.ship-item--soon b { color: var(--muted); font-weight: 500; }
.ship-item i { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.ship-item--live i { color: var(--accent); }

/* 无 JS / Canvas 降级兜底（与新地球同语言的淡青绿气泡） */
.hero-stage-fallback {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 55%, rgba(111,178,150,0.55) 82%, rgba(111,178,150,0.75) 100%);
  border: 1px solid rgba(111, 178, 150, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
.hero-stage-fallback .me {
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 149, 0, 0.14), 0 0 20px rgba(255, 149, 0, 0.4);
  transform: translate(24%, -10%);
}
@supports not (aspect-ratio: 1 / 1) {
  .hero-stage { width: 100%; padding-top: 100%; }
  .hero-stage > * { position: absolute; inset: 0; }
}

/* 进入动画（JS 加 revealed 类时展开） */
.hero-copy > * { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.hero.hero--revealed .hero-copy > * { opacity: 1; transform: none; }
.hero.hero--revealed .hero-title  { transition-delay: 0.15s; }
.hero.hero--revealed .hero-subtitle { transition-delay: 0.28s; }
.hero.hero--revealed .hero-ctas   { transition-delay: 0.40s; }

.hero-stage { opacity: 0; transform: scale(0.96); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.hero.hero--revealed .hero-stage { opacity: 1; transform: none; }

/* 桌面 >= 900：保持双栏；小屏切换为 copy 上 + 地球下 */
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }
  .hero-copy { order: 1; text-align: left; }
  .hero-stage {
    order: 2;
    width: 86%;
    margin: 0 auto;
    max-width: 520px;
  }
  .hero-subtitle { max-width: 100%; }
}
@media (max-width: 520px) {
  .hero { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero-cta { padding: 0.72rem 1.25rem; }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-stage { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-stage-canvas { cursor: default; }
}

/* --- Products --- */
.products-section { background: var(--bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.product-card[href] { cursor: pointer; }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.product-preview {
  background: var(--line-soft);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.product-preview-label {
  position: absolute;
  top: 8px;
  right: 8px;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  font-weight: 600;
}
.product-tag--live { background: var(--accent-soft); color: var(--accent); }
.product-tag--wip  { background: var(--sticky-blue); color: var(--fg); }
.product-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  color: var(--muted);
  border-radius: var(--radius-tag);
  border: 1px solid var(--line);
}
.product-link {
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--fg);
  transition: gap 0.2s;
}
.product-link:hover { gap: 0.625rem; }
.product-link svg { transition: transform 0.3s var(--ease-out); }
.product-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 320px;
  background: var(--bg);
  border: 2px dashed var(--line);
  color: var(--muted);
}
.product-card--placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Journey --- */
.journey-section {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.journey-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 3rem;
}
.journey-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--fg);
}
.journey-item {
  position: relative;
  padding: 1.75rem 0;
}
.journey-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 2.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--fg);
  transform: translateX(-5.25px);
  z-index: 1;
}
.journey-item--current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.15);
}
.journey-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.journey-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.journey-content p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.journey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.journey-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
}
.journey-mascot {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 82px;
  pointer-events: none;
}

/* --- Approach --- */
.approach-section { background: var(--bg); position: relative; }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}
.approach-card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: all 0.3s var(--ease-out);
}
.approach-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.approach-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--accent-soft);
  border-radius: var(--radius-tag);
}
.approach-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.approach-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Thinking --- */
.thinking-section {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.thinking-card {
  display: block;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  transition: all 0.3s var(--ease-out);
}
.thinking-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.thinking-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.thinking-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.thinking-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.thinking-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.thinking-card-link svg { transition: transform 0.3s var(--ease-out); }
.thinking-card:hover .thinking-card-link svg { transform: translateX(3px); }
.thinking-more { margin-top: 1.5rem; text-align: center; }
.thinking-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: all 0.3s var(--ease-out);
}
.thinking-more-link:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: #fff;
  gap: 0.625rem;
}

/* --- Article / Blog --- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--fg); }

.article-header { margin-bottom: 3rem; }
.article-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.article-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fg);
}
.article-body p {
  margin-bottom: 1.25rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.article-body strong {
  font-weight: 600;
  color: var(--fg);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.article-body a:hover { opacity: 0.7; }

.article-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 3rem 0;
}

@media (max-width: 767px) {
  .article { padding-top: 6rem; }
}

/* --- About（与全站同语言：display 声明 → mono/时间线 → 卡片原则） --- */
.about-section { background: var(--bg); }

/* ① 主：display 字体大声明（同 contact-title 语言），em 橙色强调 */
.about-section .section-header { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.about-intro { max-width: 46rem; }
.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.about-statement em { color: var(--accent); font-style: normal; }
.about-intro-sub {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 40rem;
}

/* --- Contact --- */
.contact-section {
  text-align: center;
  background: var(--bg);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.contact-title em { color: var(--accent); font-style: normal; }
.contact-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-family: var(--font-mono);
  color: var(--fg);
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius-btn);
  transition: all 0.3s var(--ease-out);
}
.contact-email:hover {
  background: var(--accent);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.25);
}
.contact-email svg { transition: transform 0.3s var(--ease-out); }
.contact-email:hover svg { transform: translateX(3px); }

/* --- Footer --- */
.footer {
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-links a:hover { color: var(--fg); }
.footer-sep { color: var(--line); }

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* --- Scroll Reveal --- */
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.revealed > .section-inner > .section-header {
  animation: revealFadeUp 0.7s var(--ease-out) both;
}
.reveal.revealed > .section-inner > .products-grid > .product-card,
.reveal.revealed > .section-inner > .approach-grid > .approach-card,
.reveal.revealed > .section-inner > .journey-timeline > .journey-item,
.reveal.revealed > .section-inner > .thinking-grid > .thinking-card {
  animation: revealFadeUp 0.7s var(--ease-out) both;
}
.reveal.revealed > .section-inner > .products-grid > .product-card:nth-child(1),
.reveal.revealed > .section-inner > .approach-grid > .approach-card:nth-child(1),
.reveal.revealed > .section-inner > .journey-timeline > .journey-item:nth-child(1),
.reveal.revealed > .section-inner > .thinking-grid > .thinking-card:nth-child(1) { animation-delay: 0.1s; }
.reveal.revealed > .section-inner > .products-grid > .product-card:nth-child(2),
.reveal.revealed > .section-inner > .approach-grid > .approach-card:nth-child(2),
.reveal.revealed > .section-inner > .journey-timeline > .journey-item:nth-child(2),
.reveal.revealed > .section-inner > .thinking-grid > .thinking-card:nth-child(2) { animation-delay: 0.2s; }
.reveal.revealed > .section-inner > .approach-grid > .approach-card:nth-child(3),
.reveal.revealed > .section-inner > .journey-timeline > .journey-item:nth-child(3) { animation-delay: 0.3s; }
.reveal.revealed > .section-inner > .about-intro,
.reveal.revealed > .section-inner > .cap-grid > .cap-card { animation: revealFadeUp 0.7s var(--ease-out) both; }
.reveal.revealed > .section-inner > .cap-grid > .cap-card:nth-child(2) { animation-delay: 0.1s; }
.reveal.revealed > .section-inner > .cap-grid > .cap-card:nth-child(3) { animation-delay: 0.2s; }
.reveal.revealed > .section-inner > .open-band { animation: revealFadeUp 0.7s var(--ease-out) both; animation-delay: 0.25s; }

/* --- Placeholder --- */
.placeholder-label {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* --- Mascot --- */
.mascot { display: inline-block; vertical-align: middle; overflow: visible; }
.mascot { overflow: visible; }
.mascot-think  { width: 90px; height: 105px; }
.mascot-type   { width: 90px; height: 105px; }
.mascot-run    { width: 90px; height: 105px; }
.mascot-search { width: 90px; height: 105px; }

/* --- Mepage preview --- */
.mepage-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: 140px;
}
.mepage-card-mini {
  width: 100%;
  max-width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.mepage-avatar-mini {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.mepage-name-mini {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}
.mepage-role-mini {
  font-size: 0.625rem;
  color: #666;
}
.mepage-divider-mini {
  width: 60%;
  height: 1px;
  background: #e5e7eb;
  margin: 0.15rem 0;
}
.mepage-contact-mini {
  display: flex;
  gap: 0.35rem;
}
.mepage-contact-mini span {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: #f3f4f6;
  display: block;
}
.mepage-view-switch {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.mepage-view-switch span {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 980px;
  font-family: var(--font-mono);
}
.mepage-view-switch .view-active {
  background: #6366f1;
  color: #fff;
}
.mepage-view-switch .view-inactive {
  background: #f3f4f6;
  color: #999;
}

/* --- Calendar preview --- */
.cal-preview { font-family: var(--font-body); padding: 0.25rem; }
.cal-header {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: 0.6875rem;
}
.cal-dow {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem 0;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}
.cal-day {
  text-align: center;
  padding: 0.3rem 0.2rem;
  border-radius: 4px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.cal-day--dim { color: var(--muted); }
.cal-day--today { background: var(--accent); color: #fff; font-weight: 700; }
.cal-notes {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.cal-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  color: var(--muted);
}
.cal-note-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- Responsive --- */
@media (max-width: 1023px) {
  .products-grid, .thinking-grid, .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-grid > :nth-child(3) { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .journey-mascot { display: none; }
}

@media (max-width: 767px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    flex-direction: column;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--line-soft);
    align-items: flex-start;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.125rem; font-weight: 500; }
  .products-grid, .thinking-grid, .approach-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .approach-grid > :nth-child(3) { grid-column: auto; max-width: none; }
  .journey-timeline { padding-left: 2rem; }
  .journey-item::before { left: -2rem; transform: translateX(-5px); }
  .journey-mascot { display: none; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero-cta, .contact-email {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-logo-name { font-size: 1.4rem; }
  .hero-feature-hand { font-size: 1.2rem; }
}

@media (min-width: 1440px) {
  .section-inner { padding: 0; }
}

@media (min-width: 1920px) {
  .hero-content { max-width: 820px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-push-mascot, .hero-feature-hand { animation: none; }
  .reveal.revealed > .section-inner > *,
  .reveal.revealed > .section-inner > .products-grid > *,
  .reveal.revealed > .section-inner > .approach-grid > *,
  .reveal.revealed > .section-inner > .journey-timeline > *,
  .reveal.revealed > .section-inner > .thinking-grid > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   Tools hub (工具中心) v4.4
   ============================================================ */
.tools-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(7rem, 12vh, 9rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem);
  position: relative;
}
.tools-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.tools-sub {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}
.tools-hand { position: absolute; right: 0; top: clamp(7rem, 12vh, 9rem); }

.tools-group + .tools-group { border-top: 1px solid var(--line-soft); }
.tools-group {
  background: var(--bg);
  /* 紧跟 tools-hero，收紧上下留白 */
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}
.tools-group:nth-of-type(even) { background: var(--surface); }

/* 规划中占位卡 */
.product-tag--planned { background: var(--line); color: var(--muted); }

/* SECTION: 列表页统一骨架 —— 返回链接 + 眉头 + 大标题（AI Building / 笔记共用） */
.page-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  margin-bottom: 1.5rem; transition: color 0.2s;
}
.page-back:hover { color: var(--fg); }

/* 笔记列表：左图右文经典布局，配标签与分页，为内容扩容设计 */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.blog-card {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center;
  padding: 1.4rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: all 0.3s var(--ease-out);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--fg); }
.blog-thumb {
  width: 168px; aspect-ratio: 16 / 10; flex: none;
  border-radius: 10px; background: var(--accent-soft);
  border: 1px solid rgba(255, 149, 0, 0.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-thumb b {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.02em; color: var(--accent);
}
.blog-card-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 0.45rem; }
.blog-card-title {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.45rem; color: var(--fg); letter-spacing: -0.01em;
}
.blog-card-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.6rem; }
.blog-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.blog-tag {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.08rem 0.6rem; white-space: nowrap;
}
.blog-card-link {
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
  white-space: nowrap; align-self: center;
}
@media (max-width: 767px) {
  .blog-card { grid-template-columns: 1fr; gap: 1rem; }
  .blog-thumb { width: 100%; aspect-ratio: 21 / 9; }
}

/* 分页（静态站预留，文章多了接 JS 翻页） */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 0.45rem;
  margin-top: 2.5rem;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: all 0.2s var(--ease-out);
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--fg); }
.page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.product-card--planned .product-preview {
  border: 2px dashed var(--line);
  background: var(--bg);
  opacity: 0.9;
}
.product-card--planned .product-preview-label { display: none; }

/* 工具卡：名称链接（多外链场景，卡片本身是 article） */
.tool-card .product-name-link { display: inline-flex; align-items: center; color: var(--fg); }
.tool-card .product-name-link:hover { color: var(--accent); }
.tool-card .product-name-link .product-name { transition: color 0.2s; }
.tool-card--wide { grid-column: 1 / -1; }

/* 付费 / 订阅徽章 */
.pay-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.pay-badge--paid { background: var(--accent); color: #fff; }
.pay-badge--sub  { background: var(--fg); color: #fff; }
.pay-badge--free { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pay-badge:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }

/* SECTION: 关于合并区 —— Apple 系视觉（浅色/细边/柔和投影/克制用色，无暗色模式） */
.about-journey { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.about-journey .journey-content p { margin-bottom: 0; }

/* 座右铭一行（手写体，接在声明下） */
.about-motto {
  margin-top: 0.95rem;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--muted);
  transform: rotate(-1deg);
  display: inline-block;
}

/* 区块小标题（能力 / 在找） */
.about-block-head {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: clamp(2.25rem, 4vw, 3rem) 0 1.1rem;
}
.about-block-head .bh-marker {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
}
.about-block-head h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em;
}

/* 能力卡：细边 + 极柔投影 + 18px 圆角 */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s var(--ease-out);
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cap-card .cap-tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em;
}
.cap-card h4 {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  margin: 0.5rem 0 0.4rem; letter-spacing: -0.01em;
}
.cap-card p { font-size: 0.8125rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }

/* 需求条：正在找什么 */
.open-band {
  display: flex; align-items: center; gap: 1rem 1.1rem; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.open-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; min-width: 0; }
.open-chip {
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.24rem 0.85rem; border-radius: 999px;
  white-space: nowrap;
}
.open-cta {
  font-size: 0.85rem; font-weight: 600; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1.1rem; white-space: nowrap;
  transition: all 0.25s var(--ease-out);
}
.open-cta:hover { border-color: var(--fg); background: var(--fg); color: #fff; }
.open-mascot { flex: none; opacity: 0.9; }

/* SECTION: 首页卡片价格角标 */
.pay-chip {
  display: inline-block; margin-top: .6rem;
  font-family: var(--font-hand); font-size: .92rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: .12rem .62rem; border-radius: 999px;
  transform: rotate(-2deg);
}

/* SECTION: 导航语言入口 */
.nav-links a.nav-lang {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em;
  color: var(--muted);
}
.nav-links a.nav-lang:hover { color: var(--accent); }

/* SECTION: 工具详情页 */
.breadcrumb { font-size: .8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.detail-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: -.02em; margin: .35rem 0 .6rem;
}
.detail-tag { color: var(--muted); font-size: 1.05rem; max-width: 56ch; line-height: 1.7; }
.detail-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.25rem 0 2.25rem; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-list li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.15rem 1.3rem;
  font-size: .875rem; color: var(--muted); line-height: 1.65;
}
.feature-list li b {
  display: block; color: var(--fg); font-size: .95rem; margin-bottom: .3rem;
  font-family: var(--font-display); letter-spacing: -.01em;
}
.feature-list li b::before { content: '✦ '; color: var(--accent); }
.pricing-note {
  margin-top: 2.5rem; padding: 1.2rem 1.5rem;
  border: 2px dashed var(--accent); border-radius: var(--radius-card);
  background: rgba(255, 149, 0, .05);
  font-size: .9rem; color: var(--fg); line-height: 1.7;
}
.pricing-note b { color: var(--accent); }
.detail-actions { display: flex; gap: .875rem; flex-wrap: wrap; margin-top: 2.25rem; align-items: center; }
@media (max-width: 767px) { .feature-list { grid-template-columns: 1fr; } }

/* 统一的 "查看更多" 入口（首页精选 / 工具中心共用） */
.section-more { margin-top: 1.5rem; text-align: center; }
.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: all 0.3s var(--ease-out);
}
.section-more-link:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: #fff;
  gap: 0.625rem;
}
.section-more-link svg { transition: transform 0.3s var(--ease-out); }
.section-more-link:hover svg { transform: translateX(3px); }

@media (max-width: 767px) {
  .tools-hero { padding-top: 6rem; }
  .tools-hand { position: static; display: block; margin-top: 1rem; }
}
