:root {
  --bg: #f5efe4;
  --bg-deep: #e5dccb;
  --card: rgba(255, 251, 245, 0.8);
  --card-strong: rgba(247, 240, 229, 0.94);
  --text: #1d1d18;
  --muted: #625f57;
  --line: rgba(46, 40, 27, 0.1);
  --line-strong: rgba(46, 40, 27, 0.18);
  --accent: #18392b;
  --accent-soft: #dce9e0;
  --accent-warm: #8c4b2f;
  --shadow: 0 28px 70px rgba(39, 30, 13, 0.08);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 213, 190, 0.72), transparent 34%),
    linear-gradient(180deg, #f9f4ea 0%, var(--bg) 48%, #efe6d5 100%);
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.48;
}

.ambient-one {
  top: -60px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: rgba(114, 155, 124, 0.36);
}

.ambient-two {
  right: -80px;
  top: 160px;
  width: 320px;
  height: 320px;
  background: rgba(201, 150, 109, 0.22);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.topbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(50, 37, 14, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="zh-CN"] .brand {
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fefdf8;
  background: linear-gradient(135deg, #163528, #2d5f4a 55%, #8d4d31);
  box-shadow: 0 14px 28px rgba(24, 57, 43, 0.22);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-actions {
  align-items: center;
}

.nav-links a,
.list-block a,
.journey-card a {
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.list-block a:hover,
.journey-card a:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
}

.lang-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-btn.active {
  background: #173729;
  color: #fff;
  border-color: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.85fr);
  gap: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 249, 241, 0.88), rgba(241, 232, 216, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 57, 43, 0.16), transparent 68%);
}

.eyebrow,
.section-tag,
.card-label,
.tool-badge,
.journey-kicker {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #655e50;
}

.hero h1,
.section h2,
.tools-title,
.hero-card h2 {
  font-family: "Cormorant Garamond", "Songti SC", serif;
  letter-spacing: -0.02em;
}

html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] .section h2,
html[lang="zh-CN"] .tools-title,
html[lang="zh-CN"] .hero-card h2,
html[lang="zh-CN"] .metric-value {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.96;
}

.lead,
.panel p,
.tool-card p,
.section-note,
.footer-text,
.metric-label,
.hero-card p,
.section-body p,
.journey-card a,
.mini-links a {
  color: var(--muted);
  line-height: 1.8;
}

html[lang="zh-CN"] .lead,
html[lang="zh-CN"] .panel p,
html[lang="zh-CN"] .tool-card p,
html[lang="zh-CN"] .section-note,
html[lang="zh-CN"] .footer-text,
html[lang="zh-CN"] .metric-label,
html[lang="zh-CN"] .hero-card p,
html[lang="zh-CN"] .section-body p {
  line-height: 1.9;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-search {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hero-search-input {
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
}

.hero-search-button {
  min-width: 138px;
}

.hero-tags,
.filter-chips,
.keyword-cloud,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(46, 40, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font: inherit;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.tool-link:hover,
.category-link:hover,
.strip-card:hover,
.journey-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #173729, #295540 58%, #8b4c31);
  box-shadow: 0 18px 36px rgba(24, 57, 43, 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.hero-side,
.section-body,
.list-block {
  display: grid;
  gap: 14px;
}

.hero-card,
.panel,
.metric,
.tool-card {
  padding: 24px;
  border: 1px solid rgba(66, 52, 25, 0.08);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(57, 41, 15, 0.05);
}

.hero-card-primary {
  background:
    linear-gradient(145deg, rgba(26, 58, 43, 0.92), rgba(54, 91, 72, 0.86)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #f9f6ee;
}

.hero-card-primary .card-label,
.hero-card-primary p {
  color: rgba(249, 246, 238, 0.8);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.15;
}

.hero-card h3,
.panel h3,
.tool-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.28;
}

.mini-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(46, 40, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 128px;
  background: rgba(255, 251, 245, 0.78);
}

.metric-strong {
  background: linear-gradient(180deg, rgba(232, 242, 235, 0.92), rgba(255, 251, 245, 0.88));
}

.metric-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.section {
  margin-top: 24px;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(57, 41, 15, 0.04);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.compact-head {
  margin-bottom: 18px;
}

.section h2,
.tools-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.section-note {
  max-width: 460px;
  margin: 0;
}

.grid,
.detail-grid {
  display: grid;
  gap: 18px;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.starter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.persona-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid,
.directory-grid,
.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
}

.rank-card,
.starter-card,
.persona-card {
  min-height: 220px;
}

.rank-no,
.starter-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(23, 55, 41, 0.08);
  color: #244030;
  font-weight: 700;
}

.rank-card h3,
.starter-card h3,
.persona-card h3 {
  font-size: 1.3rem;
}

.persona-card a {
  margin-top: 8px;
  font-weight: 700;
  color: #173729;
  text-decoration: none;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(46, 40, 27, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: #244030;
  font-weight: 600;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 68%);
}

.tone-chat {
  background: linear-gradient(180deg, rgba(234, 244, 238, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-search {
  background: linear-gradient(180deg, rgba(238, 244, 231, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-image {
  background: linear-gradient(180deg, rgba(248, 236, 227, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-video {
  background: linear-gradient(180deg, rgba(236, 234, 247, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-code {
  background: linear-gradient(180deg, rgba(233, 238, 245, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-office {
  background: linear-gradient(180deg, rgba(236, 243, 248, 0.95), rgba(255, 251, 245, 0.92));
}

.tone-warm {
  background: linear-gradient(180deg, rgba(247, 237, 228, 0.95), rgba(255, 251, 245, 0.92));
}

.tool-link,
.category-link,
.strip-card,
.journey-card {
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tool-link:hover,
.category-link:hover,
.strip-card:hover,
.journey-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 22px 42px rgba(57, 41, 15, 0.08);
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 55, 41, 0.08);
  color: #284034;
}

.tool-meta {
  display: inline-block;
  margin-top: 10px;
  color: #3e433d;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(23, 55, 41, 0.08);
  color: #244030;
  font-weight: 700;
}

.journey-card a {
  margin-top: 8px;
  font-weight: 700;
  color: #173729;
}

.strip-card {
  min-height: 210px;
}

.strip-card h3 {
  max-width: 18ch;
}

.journey-card {
  min-height: 260px;
}

.journey-card h3 {
  font-size: 1.48rem;
}

.journey-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0 10px;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(23, 55, 41, 0.08);
  letter-spacing: 0.08em;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
}

.submit-grid a,
#tool-description a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(46, 40, 27, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.tools-hero,
.tool-detail-shell,
.redirect-shell {
  margin-top: 0;
}

.directory-controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.directory-search {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #173729, #295540 58%, #8b4c31);
}

.directory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.small-button {
  min-height: 42px;
  padding: 0 16px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.justify-center {
  justify-content: center;
}

.redirect-shell {
  text-align: center;
}

.footer {
  margin-top: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px 0;
}

.footer-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.02rem;
}

.footer-text,
.footer-year {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section,
  .tool-card,
  .panel {
    animation: rise-in 640ms ease both;
  }

  .tool-card:nth-child(2),
  .panel:nth-child(2) {
    animation-delay: 60ms;
  }

  .tool-card:nth-child(3),
  .panel:nth-child(3) {
    animation-delay: 120ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .strip-grid,
  .persona-grid,
  .journey-grid,
  .tool-grid,
  .directory-grid,
  .detail-grid,
  .two-column,
  .footer,
  .hero-stats,
  .rank-grid,
  .starter-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 980px) {
  .section-head,
  .topbar,
  .directory-summary {
    display: block;
  }

  .nav-links {
    margin-top: 14px;
  }

  .small-button {
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .hero,
  .section {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .detail-actions,
  .hero-search {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-search-button {
    width: 100%;
  }
}
