:root {
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --white: #fbf8f3;
  --ink: #1b1915;
  --ink-soft: #3c3832;
  --muted: #6f675c;
  --line: rgba(27, 25, 21, 0.12);
  --copper: #c4623a;
  --copper-deep: #8d3f22;
  --pine: #14343c;
  --pine-2: #10242c;
  --cream: #f6f1e7;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "SimSun", serif;
  --sans: "Sora", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header: 6.25rem;
  --content: 1120px;
  --shadow: 0 18px 50px rgba(16, 36, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #efc7b6; }

.site { min-height: 100vh; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}
.skip:focus { top: 0.5rem; }
.mobile-only { display: none; }
#tools { scroll-margin-top: 5.2rem; }
.open-app { margin-top: 1.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 1.5rem;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.brand img {
  height: 5.4rem;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.nav-menus {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.menu-btn {
  appearance: none;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}
.menu-btn:hover, .menu.is-active .menu-btn, .menu.is-open .menu-btn {
  color: var(--ink);
  background: rgba(27, 25, 21, 0.05);
}
.menu { position: relative; }
.caret {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.72;
  transition: transform 0.16s ease;
}
.menu.is-open .caret, .menu:hover .caret, .menu:focus-within .caret {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  min-width: 280px;
  padding: 0.45rem 0.45rem 0.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}
.dropdown a {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
}
.dropdown a:hover, .dropdown a.is-current { background: var(--paper); }
.dropdown strong { font-weight: 600; font-size: 0.95rem; }
.dropdown small { color: var(--muted); font-size: 0.8rem; }
@media (hover: hover) and (pointer: fine) {
  .menu:hover .dropdown, .menu:focus-within .dropdown { display: block; }
}
.menu.is-open .dropdown { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.header-actions .btn { white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.site-header.is-nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(40deg); }
.site-header.is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-40deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
}
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(27, 25, 21, 0.04); }
.btn-light { background: var(--cream); color: var(--pine-2); }
.btn-light:hover { background: white; }
.btn-line { background: transparent; color: var(--cream); border-color: rgba(246, 241, 231, 0.4); }
.btn-line:hover { border-color: var(--cream); }
.btn-copper { background: var(--copper); color: white; }
.btn-copper:hover { background: var(--copper-deep); }
.text-link { color: var(--copper-deep); font-weight: 600; text-underline-offset: 0.18em; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% 10%, rgba(196, 98, 58, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(70, 130, 120, 0.18), transparent 55%),
    var(--pine-2);
  color: var(--cream);
  padding: 4.5rem 1.5rem 5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(rgba(214, 228, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 228, 220, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  animation: grid-drift 56s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
}
.orb {
  position: absolute;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 106, 58, 0.22), transparent 68%);
  animation: float 22s ease-in-out infinite;
  pointer-events: none;
}
.orb-b {
  width: 32vw;
  height: 32vw;
  right: -6vw;
  bottom: -8vw;
  background: radial-gradient(circle, rgba(120, 170, 160, 0.2), transparent 68%);
  animation-duration: 28s;
  animation-direction: reverse;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 48%, transparent 16%, #000 58%);
  mask-image: radial-gradient(ellipse at 50% 48%, transparent 16%, #000 58%);
}
.plots path {
  fill: none;
  stroke: rgba(223, 232, 226, 0.5);
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  animation: dash 36s linear infinite;
}
.plots .d2 { animation-duration: 48s; animation-direction: reverse; }
.plots .d3 { animation-duration: 24s; }
.plots .d4 { animation-duration: 32s; animation-direction: reverse; }
.cell { fill: transparent; stroke: rgba(223, 232, 226, 0.28); }
.cell.on {
  fill: rgba(212, 106, 58, 0.72);
  stroke: transparent;
  animation: cell 5.5s ease-in-out infinite alternate;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  text-align: center;
}
.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e4b39f;
}
:lang(zh) .eyebrow { letter-spacing: 0.08em; text-transform: none; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.15rem, 6.4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero h1 span { display: block; }
.lede {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  color: rgba(246, 241, 231, 0.82);
  font-size: 1.08rem;
}
.points {
  list-style: none;
  margin: 1.8rem auto 0;
  padding: 0;
  width: min(34rem, 100%);
  text-align: left;
  display: grid;
  gap: 0.72rem;
}
.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(246, 241, 231, 0.92);
  animation: rise 0.7s ease both;
}
.point:nth-child(2) { animation-delay: 0.08s; }
.point:nth-child(3) { animation-delay: 0.16s; }
.point:nth-child(4) { animation-delay: 0.24s; }
.point i {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--copper);
  display: block;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.95rem 0;
}
.marquee-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 2.4rem; padding-right: 2.4rem; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 0.92rem;
}
.marquee-item::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--copper);
}

.section { padding: 4.5rem 1.5rem; }
.section-narrow { width: min(var(--content), 100%); margin: 0 auto; }
.section h2, .page h1, .cta h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.2rem 0 0.6rem; }
.section-head p, .prose p { color: var(--ink-soft); }
.kicker {
  margin: 0;
  color: var(--copper-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:lang(zh) .kicker { letter-spacing: 0.06em; text-transform: none; }

.tools { background: var(--paper); }
.tool-grid, .step-grid, .card-grid, .tier-grid, .post-grid {
  display: grid;
  gap: 1rem;
}
.tool-grid, .step-grid, .tier-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid, .post-grid { grid-template-columns: repeat(3, 1fr); }
.post-grid { grid-template-columns: repeat(2, 1fr); }

.tool, .step, .info, .tier, .post, .page-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.2rem;
}
.tool { display: flex; flex-direction: column; min-height: 100%; box-shadow: var(--shadow); }
.tool .index, .step .n {
  font-family: var(--serif);
  color: var(--copper);
  font-size: 1.35rem;
}
.tool h3, .step h3, .info h3, .tier h3, .post h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.tool p, .step p, .info p, .tier li, .post p { color: var(--ink-soft); margin: 0; }
.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.3rem;
}
.url {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}
.steps { background: #efeae0; }
.step a { color: var(--copper-deep); font-weight: 600; }
.practice { background: var(--paper); }
.info h3 { font-family: var(--serif); font-weight: 560; font-size: 1.45rem; }
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.1s; }
.reveal:nth-child(4) { animation-delay: 0.15s; }
.reveal:nth-child(5) { animation-delay: 0.2s; }
.reveal:nth-child(6) { animation-delay: 0.25s; }

.cta {
  margin: 0 1.5rem 4.5rem;
  border-radius: 22px;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(196, 98, 58, 0.35), transparent 60%),
    var(--pine);
  color: var(--cream);
  padding: 3rem 2rem;
  text-align: center;
}
.cta-inner { width: min(40rem, 100%); margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.7rem; }
.cta p { color: rgba(246, 241, 231, 0.8); }

.page { width: min(820px, calc(100% - 3rem)); margin: 0 auto; padding: 3.2rem 0 4.5rem; }
.page h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0.25rem 0 0.8rem; }
.page .lede { color: var(--ink-soft); margin-left: 0; text-align: left; }
.prose { display: grid; gap: 1.6rem; margin-top: 2rem; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.4rem; font-weight: 560; }
.prose ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.prose li + li { margin-top: 0.3rem; }
.link-list { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.link-list a, .post {
  display: block;
  text-decoration: none;
}
.link-list a {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.link-list a:hover, .post:hover, .tool:hover { border-color: rgba(141, 63, 34, 0.35); }
.link-list strong { display: block; }
.link-list span, .post time { color: var(--muted); font-size: 0.85rem; }
.related { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 2rem; }
.wide { width: min(var(--content), calc(100% - 3rem)); }

.tier .price {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0.2rem 0 0.8rem;
}
.tier ul { margin: 0; padding-left: 1.1rem; }
.tier li + li { margin-top: 0.35rem; }
.note { color: var(--muted); font-size: 0.9rem; }

.form { display: grid; gap: 0.9rem; margin-top: 1.6rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea {
  font-weight: 400;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--copper); }
.field .error { color: var(--copper-deep); font-weight: 500; }
.form-note, .banner {
  background: #efe4d4;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--ink-soft);
}
.banner { margin-top: 1rem; }

.site-footer {
  background: var(--pine-2);
  color: rgba(246, 241, 231, 0.78);
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr 0.9fr 0.7fr;
  gap: 1.8rem 1.4rem;
}
.site-footer h2 {
  margin: 0 0 0.7rem;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
:lang(zh) .site-footer h2 { letter-spacing: 0.06em; text-transform: none; font-size: 0.92rem; }
.site-footer a, .lang-btn {
  display: block;
  color: rgba(246, 241, 231, 0.78);
  text-decoration: none;
  padding: 0.18rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.site-footer a:hover, .lang-btn:hover, .lang-btn.is-current { color: white; }
.lang-btn.is-current { font-weight: 600; }
.footer-base {
  width: min(var(--content), 100%);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(246, 241, 231, 0.55);
  font-size: 0.8rem;
}

@keyframes grid-drift { to { transform: translate3d(-68px, -34px, 0); } }
@keyframes dash { to { stroke-dashoffset: -420; } }
@keyframes cell { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -24px, 0); }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .site-header { padding-inline: 0.85rem; gap: 0.6rem; }
  .brand img { height: 3.35rem; }
  .nav-toggle { display: inline-block; }
  .nav-menus {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem 0.75rem 0.9rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header));
    overflow: auto;
  }
  .site-header.is-nav-open .nav-menus { display: flex; }
  .menu-btn { justify-content: space-between; width: 100%; }
  .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.35rem 0.45rem;
  }
  .menu.is-open .dropdown { display: block; }
  .tool-grid, .step-grid, .card-grid, .tier-grid, .post-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; padding-top: 3.2rem; }
  .cta { margin-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
