:root {
  --bg: #fff6eb;
  --surface: rgba(255, 250, 244, 0.78);
  --surface-strong: #fffdfa;
  --ink: #11353b;
  --muted: #5c6f73;
  --line: rgba(17, 53, 59, 0.12);
  --brand: #ef6d4c;
  --brand-deep: #d85136;
  --accent: #0b4652;
  --accent-soft: #dff1ef;
  --shadow: 0 24px 60px rgba(17, 53, 59, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 120, 73, 0.28), transparent 26%),
    radial-gradient(circle at 12% 8%, rgba(255, 195, 137, 0.55), transparent 24%),
    linear-gradient(180deg, #fff7ef 0%, #fffaf5 38%, #fff7ef 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 20px auto 40px;
}

.site-header,
.section-block,
.site-footer {
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 24px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(17, 53, 59, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff946f, #ef6d4c);
  color: #fff8f1;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 1.08rem;
}

.brand-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  gap: 26px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible,
.tool-card a:hover,
.tool-card a:focus-visible {
  color: var(--brand-deep);
}

.nav-cta,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-cta,
.primary-btn {
  background: linear-gradient(135deg, var(--brand), #ff8b55);
  color: #fff;
  box-shadow: 0 16px 28px rgba(239, 109, 76, 0.24);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
}

.nav-cta:hover,
.primary-btn:hover,
.ghost-btn:hover,
.nav-cta:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.tab-button:hover,
.tab-button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  min-height: 640px;
  padding: 58px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, rgba(255, 238, 220, 0.95), rgba(255, 141, 86, 0.9) 60%, rgba(255, 86, 56, 0.96));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 239, 0.72));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.eyebrow,
.section-heading p,
.cta-kicker {
  margin: 0 0 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.cta-banner h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(17, 53, 59, 0.88);
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--accent);
}

.hero-panel {
  position: relative;
  min-height: 460px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 245, 235, 0.52);
  border-radius: 50%;
}

.orbit-a {
  inset: 12% 6% auto auto;
  width: 360px;
  height: 360px;
}

.orbit-b {
  inset: 5% 15% auto auto;
  width: 280px;
  height: 280px;
}

.hero-cube {
  position: absolute;
  right: 56px;
  bottom: 56px;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(17, 53, 59, 0.96), rgba(5, 34, 42, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  box-shadow:
    0 28px 44px rgba(9, 31, 37, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: perspective(900px) rotateX(18deg) rotateY(-24deg);
}

.hero-cube span {
  font-size: clamp(4rem, 10vw, 6rem);
  color: #fff9ef;
  text-shadow: 0 0 26px rgba(255, 174, 126, 0.45);
  font-weight: 800;
}

.hero-badge {
  position: absolute;
  right: 48px;
  top: 56px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(17, 53, 59, 0.72);
  box-shadow: 0 10px 24px rgba(17, 53, 59, 0.18);
}

.hero-grid {
  position: absolute;
  inset: auto 0 0 auto;
  width: 82%;
  height: 62%;
  background-image:
    linear-gradient(rgba(255, 214, 192, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 192, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(900px) rotateX(64deg);
  transform-origin: bottom center;
}

.section-block {
  margin-top: 26px;
  padding: 34px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 36px;
  box-shadow: 0 18px 40px rgba(17, 53, 59, 0.08);
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading span {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.tab-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(17, 53, 59, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 70, 82, 0.18);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 243, 0.94));
  border: 1px solid rgba(17, 53, 59, 0.08);
  box-shadow: 0 18px 38px rgba(17, 53, 59, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 160ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(17, 53, 59, 0.12);
}

.tool-card.hidden {
  display: none;
}

.tool-card.featured {
  background:
    radial-gradient(circle at top right, rgba(223, 241, 239, 0.92), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 255, 254, 0.95));
}

.tool-topline,
.tool-title,
.tool-tags,
.stats-strip,
.guide-grid,
.site-footer {
  display: flex;
}

.tool-topline {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill,
.score {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.pill {
  background: rgba(11, 70, 82, 0.1);
  color: var(--accent);
}

.score {
  background: rgba(239, 109, 76, 0.12);
  color: var(--brand-deep);
}

.tool-title {
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.tool-title h3 {
  margin: 0;
  font-size: 1.18rem;
}

.tool-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tool-logo {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.logo-openai {
  background: linear-gradient(135deg, #16b193, #06755f);
}

.logo-gemini {
  background: linear-gradient(135deg, #528bff, #ab5aff);
}

.logo-claude {
  background: linear-gradient(135deg, #f0a071, #d9783f);
}

.logo-deepseek {
  background: linear-gradient(135deg, #5b80ff, #304fe1);
}

.logo-perplexity {
  background: linear-gradient(135deg, #24a4b7, #0f5f6b);
}

.logo-copilot {
  background: linear-gradient(135deg, #252f39, #10171e);
  font-size: 0.86rem;
}

.logo-midjourney {
  background: linear-gradient(135deg, #55738a, #2f4654);
}

.tool-summary {
  margin: 18px 0 0;
  color: rgba(17, 53, 59, 0.86);
  line-height: 1.8;
}

.tool-tags {
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.tool-tags li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 53, 59, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.tool-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.stats-strip {
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
}

.stat-item {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.9rem;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}

.stat-item span {
  color: var(--muted);
}

.compare-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(17, 53, 59, 0.08);
  text-align: left;
}

.compare-table thead {
  background: linear-gradient(135deg, #0d4854, #133741);
  color: #fff;
}

.compare-table tbody tr:hover {
  background: rgba(239, 109, 76, 0.06);
}

.guide-grid {
  gap: 18px;
  margin-top: 28px;
}

.guide-grid article {
  flex: 1;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 240, 0.92));
  border: 1px solid rgba(17, 53, 59, 0.08);
}

.guide-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.guide-grid h3 {
  margin: 0 0 10px;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(9, 45, 53, 0.98), rgba(7, 30, 36, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  color: #fff;
}

.cta-banner h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.cta-banner .primary-btn {
  flex: 0 0 auto;
}

.site-footer {
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 10px 4px;
  color: var(--muted);
}

.site-footer strong {
  display: inline-block;
  color: var(--ink);
  margin-bottom: 6px;
}

@media (max-width: 1080px) {
  .hero,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-panel {
    min-height: 380px;
  }

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

  .guide-grid,
  .stats-strip,
  .cta-banner,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 10px;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
  }

  .hero,
  .section-block {
    padding: 24px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-points,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 290px;
  }

  .hero-cube {
    right: 12px;
    bottom: 18px;
    width: 190px;
    height: 190px;
  }

  .hero-badge {
    top: 14px;
    right: 8px;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .orbit-a {
    right: 0;
    width: 220px;
    height: 220px;
  }

  .orbit-b {
    right: 36px;
    width: 170px;
    height: 170px;
  }

  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .compare-table th,
  .compare-table td {
    min-width: 160px;
  }
}
