:root {
  color-scheme: dark;
  --navy-950: #030a16;
  --navy-900: #061225;
  --navy-850: #08182f;
  --navy-800: #0b203d;
  --navy-700: #12325b;
  --navy-600: #1a4677;
  --ink: #f7f4ec;
  --muted: #aebbd0;
  --muted-2: #7f90aa;
  --gold-100: #fff3bf;
  --gold-200: #f4dda0;
  --gold-300: #e5c16e;
  --gold-400: #c99338;
  --gold-500: #aa7225;
  --line: rgba(229, 193, 110, 0.28);
  --line-soft: rgba(255, 255, 255, 0.09);
  --panel: rgba(8, 24, 47, 0.82);
  --panel-solid: #0a1b35;
  --success: #58d6a7;
  --danger: #ff7b7b;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --gold-gradient: linear-gradient(135deg, #fff4c5 0%, #d6a449 42%, #f5dc91 70%, #aa6d1f 100%);
  --page: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(34, 92, 150, 0.22), transparent 28%),
    radial-gradient(circle at 12% 52%, rgba(193, 139, 49, 0.08), transparent 25%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--gold-300);
}

button {
  cursor: pointer;
}

.container {
  width: var(--page);
  margin-inline: auto;
}

.gold-text {
  color: var(--gold-200);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 193, 110, 0.14);
  background: rgba(3, 10, 22, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-logo {
  display: block;
  width: clamp(172px, 16vw, 260px);
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 14px rgba(229, 193, 110, 0.18));
}

.brand-logo-footer {
  width: min(280px, 78vw);
  max-height: 72px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 221, 160, 0.62);
  border-radius: 50% 50% 50% 14px;
  background: linear-gradient(145deg, #f9eab8, #b17425 52%, #f4dda0);
  box-shadow: 0 0 24px rgba(201, 147, 56, 0.22);
  transform: rotate(-8deg);
}

.brand-mark::before {
  content: "1";
  position: absolute;
  inset: 2px 0 0;
  display: grid;
  place-items: center;
  color: #07162d;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(8deg);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold-300);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #c9d3e2;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-100);
  background: rgba(229, 193, 110, 0.09);
}

@media (max-width: 1080px) {
  .site-nav .pc-home-link {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: white;
  background: transparent;
}

.btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #08152a;
  background: var(--gold-gradient);
  box-shadow: 0 10px 28px rgba(170, 114, 37, 0.2);
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(170, 114, 37, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.btn-outline {
  color: var(--gold-200);
  border-color: rgba(229, 193, 110, 0.5);
  background: rgba(229, 193, 110, 0.04);
  box-shadow: none;
}

.btn-ghost {
  color: #d7dfeb;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.btn-danger {
  color: #ffd7d7;
  border-color: rgba(255, 123, 123, 0.38);
  background: rgba(255, 123, 123, 0.08);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.97) 0%, rgba(3, 10, 22, 0.82) 43%, rgba(3, 10, 22, 0.28) 78%, rgba(3, 10, 22, 0.68) 100%),
    linear-gradient(0deg, var(--navy-950), transparent 38%),
    url("/assets/media/hero-office-ai.jpg") center 40% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -280px;
  width: 640px;
  height: 640px;
  z-index: -1;
  border: 1px solid rgba(229, 193, 110, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(229, 193, 110, 0.06);
}

.hero-grid {
  width: var(--page);
  margin: 0 auto;
  padding: 92px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(260px, 1fr);
  gap: 56px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(229, 193, 110, 0.65);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: #bdc8d8;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-proof {
  padding: 24px;
  border: 1px solid rgba(229, 193, 110, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(14, 40, 73, 0.84), rgba(4, 14, 29, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-proof strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  color: #d3dbe7;
  font-size: 14px;
}

.proof-icon,
.card-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 193, 110, 0.38);
  color: var(--gold-200);
  background: rgba(229, 193, 110, 0.06);
}

.proof-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.metric-strip {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: -52px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(229, 193, 110, 0.22);
  border-radius: var(--radius-md);
  background: rgba(5, 18, 36, 0.94);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric + .metric {
  border-left: 1px solid var(--line-soft);
}

.metric strong {
  color: var(--gold-200);
  font-size: 28px;
  line-height: 1;
}

.metric span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 104px 0;
}

.section-compact {
  padding-block: 72px;
}

.section-alt {
  border-block: 1px solid rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, rgba(12, 31, 57, 0.54), rgba(5, 15, 30, 0.24));
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-intro {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--gold-200);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.feature-grid,
.resource-grid,
.news-grid,
.community-grid {
  display: grid;
  gap: 20px;
}

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

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

.news-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.feature-card,
.resource-card,
.news-card,
.community-card,
.panel {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(15, 43, 78, 0.76), rgba(5, 17, 35, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.feature-card,
.resource-card,
.community-card {
  padding: 26px;
}

.feature-card::before,
.resource-card::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  opacity: 0.75;
  background: var(--gold-gradient);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 220ms ease;
}

.feature-card:hover::before,
.resource-card:hover::before,
.news-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover,
.resource-card:hover,
.news-card:hover {
  border-color: rgba(229, 193, 110, 0.32);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-weight: 800;
}

.feature-card h3,
.resource-card h3,
.news-card h3,
.community-card h3 {
  margin: 20px 0 10px;
  font-size: 20px;
  line-height: 1.38;
}

.feature-card p,
.resource-card p,
.news-card p,
.community-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.tool-link-card {
  min-height: 214px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(circle at 82% 14%, rgba(229, 193, 110, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(13, 39, 73, 0.9), rgba(4, 14, 31, 0.94));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26), 0 0 28px rgba(229, 193, 110, 0.08);
}

.tool-link-card .badge {
  width: fit-content;
  margin-top: 2px;
}

.tool-link-card h3 {
  margin: 0;
  font-size: 19px;
}

.tool-link-card p {
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-link-card .card-meta {
  margin-top: auto;
  justify-content: space-between;
  color: var(--gold-200);
}

.tool-logo-wrap {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 193, 110, 0.36);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(229, 193, 110, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.tool-logo-wrap img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.tool-arrow {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #08162c;
  background: var(--gold-gradient);
  font-weight: 900;
}

body[data-page="tool"] {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 7%, rgba(244, 221, 160, 0.16), transparent 25%),
    radial-gradient(circle at 14% 34%, rgba(26, 70, 119, 0.42), transparent 30%),
    linear-gradient(160deg, #030a16 0%, #061225 46%, #081a35 100%);
}

body[data-page="tool"] main {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  background: transparent;
}

body[data-page="tool"] main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 82% 14%, rgba(229, 193, 110, 0.18), transparent 18%),
    linear-gradient(115deg, transparent 0 56%, rgba(229, 193, 110, 0.06) 56% 57%, transparent 57%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, black 64%, transparent 100%);
}

body[data-page="tool"] .page-hero {
  position: relative;
  padding: 78px 0 42px;
  border-bottom: 1px solid rgba(229, 193, 110, 0.2);
  background:
    radial-gradient(circle at 70% 12%, rgba(229, 193, 110, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(13, 37, 69, 0.88), rgba(3, 10, 22, 0.18));
}

body[data-page="tool"] .page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -150px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(229, 193, 110, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(229, 193, 110, 0.08), 0 0 64px rgba(229, 193, 110, 0.12);
}

body[data-page="tool"] .page-hero .container,
body[data-page="tool"] .section-compact .container {
  position: relative;
  z-index: 1;
}

body[data-page="tool"] .page-hero h1 {
  color: var(--gold-200);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body[data-page="tool"] .page-hero p {
  color: rgba(232, 238, 248, 0.76);
}

body[data-page="tool"] .section-compact {
  padding-top: 42px;
}

body[data-page="tool"] .catalog-toolbar {
  margin-bottom: 38px;
  padding: 16px;
  border: 1px solid rgba(229, 193, 110, 0.22);
  border-radius: 24px;
  background: rgba(5, 16, 34, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

body[data-page="tool"] .filter-chip {
  border-color: rgba(229, 193, 110, 0.18);
  color: rgba(232, 238, 248, 0.72);
  background: rgba(255, 255, 255, 0.035);
}

body[data-page="tool"] .filter-chip:hover,
body[data-page="tool"] .filter-chip.active {
  border-color: rgba(255, 243, 191, 0.54);
  color: #071225;
  background: var(--gold-gradient);
  box-shadow: 0 10px 26px rgba(229, 193, 110, 0.18);
}

body[data-page="tool"] .search-box input {
  border-color: rgba(229, 193, 110, 0.22);
  background: rgba(3, 10, 22, 0.72);
}

.ai-tool-directory.resource-grid {
  display: block;
}

.ai-tool-section {
  margin-bottom: 64px;
}

.ai-tool-section-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(229, 193, 110, 0.2);
}

.ai-tool-section-head h2 {
  margin: 0;
  color: var(--gold-200);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 850;
}

.ai-tool-section-head span {
  color: rgba(232, 238, 248, 0.62);
  font-size: 16px;
  white-space: nowrap;
}

.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ai-tool-card {
  min-height: 214px;
  position: relative;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(229, 193, 110, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(18, 50, 91, 0.78), rgba(4, 13, 29, 0.94) 64%),
    radial-gradient(circle at 18% 0%, rgba(255, 243, 191, 0.12), transparent 32%);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ai-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 22% 64%, rgba(229, 193, 110, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%);
  opacity: 0.62;
}

.ai-tool-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 191, 0.88), transparent);
  opacity: 0.72;
}

.ai-tool-card > * {
  position: relative;
  z-index: 1;
}

.ai-tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 243, 191, 0.58);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(229, 193, 110, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-tool-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(229, 193, 110, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(3, 10, 22, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.ai-tool-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
}

.tool-fallback-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #071225;
  background: var(--gold-gradient);
  font-size: 24px;
  font-weight: 900;
}

.recommend-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #071225;
  background: var(--gold-gradient);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(229, 193, 110, 0.18);
}

.ai-tool-card strong {
  margin-top: 4px;
  color: var(--gold-100);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.ai-tool-card p {
  margin: 0;
  min-height: 52px;
  color: rgba(232, 238, 248, 0.72);
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-tool-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(229, 193, 110, 0.16);
  color: rgba(232, 238, 248, 0.5);
  font-size: 14px;
}

.ai-tool-footer span:last-child {
  color: var(--gold-200);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(229, 193, 110, 0.25);
  border-radius: 999px;
  color: var(--gold-200);
  background: rgba(229, 193, 110, 0.06);
  font-size: 12px;
}

.news-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.news-body {
  padding: 24px;
}

.news-card:first-child img {
  aspect-ratio: 16 / 8.5;
}

.cta-panel {
  position: relative;
  padding: 54px;
  border: 1px solid rgba(229, 193, 110, 0.34);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(229, 193, 110, 0.15), transparent 28%),
    linear-gradient(135deg, #0f3159, #07152b 66%);
  box-shadow: var(--shadow);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(229, 193, 110, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 92px 0 68px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 82% 4%, rgba(229, 193, 110, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(13, 37, 69, 0.72), transparent);
}

.page-hero h1 {
  max-width: 820px;
  margin: 16px 0 14px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.catalog-toolbar {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: rgba(229, 193, 110, 0.4);
  color: var(--gold-100);
  background: rgba(229, 193, 110, 0.08);
}

.search-box {
  position: relative;
  min-width: min(100%, 320px);
}

.search-box input,
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(3, 12, 25, 0.72);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.search-box input:focus,
.form-control:focus {
  border-color: rgba(229, 193, 110, 0.58);
  box-shadow: 0 0 0 3px rgba(229, 193, 110, 0.08);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 72px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.pagination-button:hover,
.pagination-button:focus-visible {
  border-color: var(--gold-300);
  color: var(--gold-100);
  outline: 2px solid transparent;
}

.pagination-button:active {
  transform: translateY(1px);
}

.pagination-button.active {
  color: #08152a;
  border-color: transparent;
  background: var(--gold-gradient);
}

.pagination-gap {
  min-width: 24px;
  color: var(--muted-2);
  text-align: center;
}

.download-ready {
  color: var(--gold-200);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.detail-main,
.detail-aside {
  padding: 32px;
}

.detail-cover {
  width: 100%;
  max-height: 520px;
  margin-bottom: 28px;
  border-radius: 14px;
  object-fit: cover;
}

.detail-video {
  display: block;
  width: 100%;
  max-height: 560px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #020817;
}

.about-published-list { display: grid; gap: 32px; margin-top: 48px; }
.about-published-item { overflow: hidden; padding: 0; }
.about-published-item > img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.about-published-body { padding: 32px; }
.about-published-body h2 { margin: 8px 0 16px; }
.about-published-body video { display: block; width: 100%; margin: 24px 0; border-radius: 12px; background: #020817; }
@media (max-width: 640px) { .about-published-list { margin-top: 32px; gap: 24px; } .about-published-body { padding: 24px; } }

.detail-main h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
}

.detail-content {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  color: #ced7e5;
  font-size: 16px;
  line-height: 1.8;
}

.detail-content h2,
.detail-content h3 {
  margin: 32px 0 12px;
  color: var(--gold-100);
  line-height: 1.3;
}

.detail-content h2 {
  font-size: 24px;
}

.detail-content h3 {
  font-size: 20px;
}

.detail-content p {
  margin: 0 0 16px;
}

.detail-content code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--gold-100);
  background: rgba(229, 193, 110, 0.1);
}

.detail-list-item {
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
}

.detail-list-item::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-300);
}

.detail-actions {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.detail-actions .btn {
  width: 100%;
}

.aside-list {
  display: grid;
  gap: 14px;
}

.aside-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.aside-row strong {
  color: var(--ink);
  font-weight: 600;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.community-feed {
  display: grid;
  gap: 16px;
}

.community-card h3 {
  margin-top: 0;
}

.community-card footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
}

.form-card,
.auth-card {
  padding: 32px;
}

.form-card h2,
.auth-card h1 {
  margin: 0 0 8px;
}

.form-card > p,
.auth-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #cbd4e2;
  font-size: 13px;
  font-weight: 600;
}

.form-message {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.auth-page {
  min-height: calc(100vh - 76px);
  padding: 70px 20px;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 440px;
  border: 1px solid rgba(229, 193, 110, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(5, 17, 34, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-visual {
  position: relative;
  min-height: 560px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(4, 13, 28, 0.98), rgba(4, 13, 28, 0.2)),
    url("/assets/media/hero-office-ai.jpg") center / cover;
}

.auth-visual h2 {
  max-width: 470px;
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.16;
}

.auth-visual p {
  max-width: 480px;
  margin: 0;
  color: #c0cbd9;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(13, 38, 70, 0.86), rgba(5, 16, 33, 0.94));
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.demo-account {
  margin-top: 22px;
  padding: 14px;
  border: 1px dashed rgba(229, 193, 110, 0.25);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(229, 193, 110, 0.04);
  font-size: 12px;
}

.member-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.member-profile {
  position: sticky;
  top: 100px;
  padding: 28px;
}

.avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid rgba(229, 193, 110, 0.46);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07152b;
  background: var(--gold-gradient);
  font-size: 28px;
  font-weight: 900;
}

.member-profile h2 {
  margin: 0 0 4px;
}

.member-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.member-content {
  display: grid;
  gap: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  color: var(--gold-200);
  font-size: 30px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.data-list {
  display: grid;
  gap: 0;
}

.data-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong {
  display: block;
}

.data-row small {
  color: var(--muted-2);
}

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid rgba(229, 193, 110, 0.15);
  background: #020914;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}

.footer-about p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: var(--gold-200);
  font-size: 14px;
}

.footer-column a,
.footer-column span {
  margin: 9px 0;
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.footer-column a:hover {
  color: var(--gold-100);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 12px;
}

.loading {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.loading::before {
  content: "";
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border: 2px solid rgba(229, 193, 110, 0.18);
  border-top-color: var(--gold-300);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .ai-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: fixed;
    inset: 76px 20px auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(3, 12, 26, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-proof {
    max-width: 520px;
  }

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

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

  .news-card:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 780px) {
  :root {
    --page: min(100% - 28px, 680px);
  }

  .brand-logo {
    width: 176px;
    max-height: 46px;
  }

  body[data-page="tool"] main {
    padding-top: 0;
  }

  body[data-page="tool"] .page-hero {
    padding: 58px 0 32px;
  }

  body[data-page="tool"] .catalog-toolbar {
    padding: 14px;
    border-radius: 18px;
  }

  body[data-page="tool"] .section-compact {
    padding-top: 28px;
  }

  .ai-tool-section {
    margin-bottom: 44px;
  }

  .ai-tool-section-head {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .ai-tool-section-head h2 {
    font-size: 22px;
  }

  .ai-tool-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-tool-card {
    min-height: 198px;
    padding: 22px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(0deg, #030a16 0%, rgba(3, 10, 22, 0.55) 50%, rgba(3, 10, 22, 0.78) 100%),
      url("/assets/media/hero-office-ai.jpg") 66% center / cover no-repeat;
  }

  .hero-grid {
    padding: 96px 0 108px;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    border-left: 0;
  }

  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .section {
    padding-block: 76px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .feature-grid,
  .resource-grid,
  .news-grid,
  .form-grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .news-card:first-child {
    grid-column: auto;
  }

  .cta-panel {
    padding: 36px 26px;
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .community-layout,
  .member-layout {
    grid-template-columns: 1fr;
  }

  .detail-main,
  .detail-aside,
  .form-card {
    padding: 24px;
  }

  .member-profile {
    position: static;
  }

  .auth-page {
    padding: 28px 14px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 300px;
    padding: 30px;
  }

  .auth-visual h2 {
    font-size: 32px;
  }

  .auth-card {
    padding: 30px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* AI 工具箱最终主题覆盖：确保该页面与整站深蓝渐金风格统一 */
body[data-page="tool"] {
  background:
    radial-gradient(circle at 15% 12%, rgba(212, 169, 83, 0.20), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(71, 130, 255, 0.16), transparent 32%),
    linear-gradient(145deg, #071225 0%, #0b1830 42%, #07101f 100%) !important;
  color: #f6ead0;
}

body[data-page="tool"] main {
  background: transparent !important;
  padding-top: 0;
  overflow: hidden;
}

body[data-page="tool"] .page-hero {
  position: relative;
  margin: 0;
  padding: 78px 0 42px;
  background:
    linear-gradient(120deg, rgba(9, 24, 48, 0.92), rgba(9, 17, 32, 0.72)),
    radial-gradient(circle at 76% 26%, rgba(242, 202, 126, 0.24), transparent 34%) !important;
  border-bottom: 1px solid rgba(224, 181, 95, 0.26);
}

body[data-page="tool"] .page-hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 150, 0.85), transparent);
  box-shadow: 0 0 22px rgba(255, 204, 104, 0.55);
}

body[data-page="tool"] .page-hero .eyebrow,
body[data-page="tool"] .gold-text,
body[data-page="tool"] .ai-tool-card strong {
  background: linear-gradient(180deg, #fff7d7 0%, #f5cf7a 38%, #b67824 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

body[data-page="tool"] .page-hero p,
body[data-page="tool"] .ai-tool-card p {
  color: rgba(231, 238, 250, 0.78) !important;
}

body[data-page="tool"] .catalog-toolbar {
  background: rgba(9, 22, 43, 0.82) !important;
  border: 1px solid rgba(219, 177, 92, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

body[data-page="tool"] .filter-chip,
body[data-page="tool"] .search-box input {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(219, 177, 92, 0.24) !important;
  color: #f8e7bd !important;
}

body[data-page="tool"] .filter-chip.active {
  background: linear-gradient(135deg, #f6d990, #b97a25) !important;
  color: #071225 !important;
}

body[data-page="tool"] .ai-tool-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(16, 35, 67, 0.96), rgba(8, 18, 36, 0.98)) !important;
  border: 1px solid rgba(230, 190, 106, 0.34) !important;
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body[data-page="tool"] .ai-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(255, 211, 126, 0.22), transparent 26%);
  pointer-events: none;
}

body[data-page="tool"] .ai-tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 216, 137, 0.62) !important;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 220, 148, 0.12) !important;
}

body[data-page="tool"] .ai-tool-logo {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(232, 194, 115, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
}

body[data-page="tool"] .recommend-badge {
  background: linear-gradient(135deg, #ffe9ab, #c98a2d) !important;
  color: #071225 !important;
}

body[data-page="tool"] .ai-tool-card footer {
  border-color: rgba(232, 194, 115, 0.16) !important;
  color: rgba(231, 238, 250, 0.55);
}

body[data-page="tool"] .ai-tool-card footer span:last-child {
  color: #ffd984 !important;
}

/* Mobile experience: compact, touch-friendly and consistent across every public page. */
@media (max-width: 780px) {
  :root {
    --page: calc(100% - 32px);
    --radius-md: 16px;
    --radius-lg: 22px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .site-header {
    backdrop-filter: blur(20px);
  }

  .nav-shell {
    min-height: 64px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    margin-right: auto;
  }

  .brand-logo {
    width: min(148px, 43vw);
    max-height: 42px;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-actions .btn {
    min-height: 40px;
    padding-inline: 11px;
    display: inline-flex;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-color: rgba(229, 193, 110, 0.28);
    color: var(--gold-100);
    background: rgba(229, 193, 110, 0.06);
  }

  .site-nav {
    inset: 72px 16px auto;
    max-height: calc(100dvh - 88px);
    padding: 10px;
    gap: 2px;
    overflow-y: auto;
    border-radius: 18px;
    background: rgba(4, 14, 29, 0.985);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  .hero::after {
    width: 330px;
    height: 330px;
    right: -190px;
    top: -90px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(3, 10, 22, 0.62), rgba(3, 10, 22, 0.9) 74%, #030a16 100%),
      url("/assets/media/hero-office-ai.jpg") 62% center / cover no-repeat;
  }

  .hero-grid {
    padding: 70px 0 66px;
    gap: 28px;
    align-items: start;
  }

  .eyebrow {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .eyebrow::before {
    width: 22px;
  }

  .hero h1 {
    margin: 16px 0;
    max-width: 13em;
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: 12px;
  }

  .hero-proof {
    max-width: none;
    padding: 20px;
    border-radius: 18px;
  }

  .proof-list {
    gap: 10px;
  }

  .metric-strip {
    margin-top: -24px;
    border-radius: 16px;
  }

  .metric {
    min-height: 90px;
    padding: 18px;
  }

  .metric strong {
    font-size: 24px;
  }

  .metric span {
    margin-top: 7px;
    font-size: 12px;
  }

  .section,
  .section-compact {
    padding-block: 52px;
  }

  .section-head {
    margin-bottom: 24px;
    gap: 12px;
  }

  .section-title {
    margin-top: 8px;
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .section-intro {
    margin-top: 10px;
    font-size: 15px;
  }

  .feature-grid,
  .resource-grid,
  .news-grid,
  .community-grid,
  .ai-tool-grid {
    gap: 14px;
  }

  .feature-card,
  .resource-card,
  .community-card,
  .news-body {
    padding: 20px;
  }

  .feature-card h3,
  .resource-card h3,
  .news-card h3,
  .community-card h3 {
    margin-top: 16px;
    font-size: 18px;
  }

  .feature-card p,
  .resource-card p,
  .news-card p,
  .community-card p,
  .detail-content,
  .aside-row,
  .card-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .news-card {
    min-height: 0;
  }

  .cta-panel {
    padding: 28px 20px;
    gap: 22px;
    border-radius: 20px;
  }

  .cta-panel h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .cta-panel .btn {
    width: 100%;
  }

  .page-hero,
  body[data-page="tool"] .page-hero {
    padding: 52px 0 34px;
  }

  .page-hero h1 {
    margin: 12px 0;
    max-width: 100%;
    font-size: clamp(32px, 10vw, 42px);
    overflow-wrap: anywhere;
  }

  .page-hero p {
    font-size: 16px;
    line-height: 1.75;
  }

  .catalog-toolbar,
  body[data-page="tool"] .catalog-toolbar {
    margin-bottom: 22px;
    padding: 12px;
    display: grid;
    gap: 12px;
    border-radius: 16px;
  }

  .filter-list {
    width: 100%;
    padding-bottom: 3px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    min-height: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .search-box input,
  .form-control {
    min-height: 48px;
    font-size: 16px;
  }

  body[data-page="tool"] .section-compact {
    padding-top: 30px;
  }

  .ai-tool-section {
    margin-bottom: 38px;
  }

  .ai-tool-section-head {
    gap: 10px;
    align-items: start;
  }

  body[data-page="tool"] .ai-tool-card,
  .ai-tool-card {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .ai-tool-card strong {
    font-size: 19px;
  }

  .ai-tool-card p {
    min-height: 0;
    font-size: 15px;
  }

  .ai-tool-footer {
    padding-top: 14px;
  }

  .detail-layout,
  .community-layout,
  .member-layout {
    gap: 16px;
  }

  .detail-main,
  .detail-aside,
  .form-card,
  .auth-card,
  .member-content {
    padding: 20px;
  }

  .detail-main h1 {
    font-size: clamp(30px, 9vw, 40px);
    overflow-wrap: anywhere;
  }

  .detail-content {
    margin-top: 22px;
    padding-top: 22px;
    font-size: 16px;
  }

  .detail-content pre,
  .detail-content table {
    max-width: 100%;
    overflow-x: auto;
  }

  .aside-row {
    align-items: flex-start;
  }

  .community-card footer {
    gap: 10px;
    flex-wrap: wrap;
  }

  .auth-page {
    min-height: auto;
    padding: 18px 16px 40px;
  }

  .auth-visual {
    min-height: 220px;
    padding: 24px 20px;
  }

  .auth-visual h2 {
    font-size: 28px;
  }

  .form-grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-about,
  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 8px;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  :root {
    --page: calc(100% - 24px);
  }

  .brand-logo {
    width: min(128px, 40vw);
  }

  .nav-actions .btn {
    padding-inline: 9px;
    font-size: 12px;
  }

  .hero-grid {
    padding-top: 58px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 84px;
    padding: 14px;
  }

  .metric strong {
    font-size: 22px;
  }

  .page-hero,
  body[data-page="tool"] .page-hero {
    padding-top: 42px;
  }
}

/* Phone-first refinement: compact like a mini-program page without reducing touch targets. */
@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  .nav-shell { min-height: 64px; }
  .menu-toggle { animation: none; border-radius: 12px; }
  .site-nav { inset: 72px 16px auto; padding: 8px; border-radius: 12px; }
  .site-nav a { min-height: 48px; padding: 12px 16px; border-radius: 8px; }
  .hero-grid { padding: 64px 0 72px; gap: 32px; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); line-height: 1.2; }
  .hero-lead, .section-intro, .page-hero p { font-size: 16px; line-height: 1.6; }
  .section { padding-block: 48px; }
  .section-head { gap: 16px; margin-bottom: 24px; }
  .section-title { font-size: 24px; }
  .feature-grid, .resource-grid, .news-grid, .community-feed { gap: 12px; }
  .feature-card, .resource-card, .community-card, .form-card, .auth-card, .detail-main, .detail-aside { padding: 16px; border-radius: 12px; }
  .feature-card h3, .resource-card h3, .news-card h3, .community-card h3 { margin-top: 12px; font-size: 18px; }
  .page-hero, body[data-page="tool"] .page-hero { padding: 40px 0 24px; }
  .page-hero h1 { font-size: 32px; }
  .catalog-toolbar, body[data-page="tool"] .catalog-toolbar { gap: 8px; margin-bottom: 16px; padding: 8px; border-radius: 12px; }
  .filter-chip, .btn, .btn-sm { min-height: 44px; }
  .ai-tool-section { margin-bottom: 24px; }
  .ai-tool-section-head { margin-bottom: 12px; padding-bottom: 12px; }
  .ai-tool-card, body[data-page="tool"] .ai-tool-card { min-height: 0; padding: 16px; border-radius: 12px; }
  .auth-page { padding: 16px 16px 32px; }
  .auth-visual { display: none; }
  .form-grid { gap: 16px; }
  .form-control, .search-box input { min-height: 48px; }
  .site-footer { padding-top: 40px; }
  .footer-grid { gap: 24px; }
}

/* Partner platform embed */
.embedded-page { min-height: calc(100vh - 76px); }
.embedded-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line-soft); }
.embedded-head-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.embedded-head h1 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 42px); }
.embedded-head p { max-width: 720px; margin: 0; color: var(--muted); }
.embedded-head .btn { flex: 0 0 auto; }
.embedded-section { padding: 32px 0 64px; }
.embedded-frame-wrap { position: relative; min-height: 760px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.embedded-frame { display: block; position: relative; z-index: 1; width: 100%; min-height: 760px; border: 0; background: #fff; }
.embedded-fallback { position: absolute; z-index: 0; inset: 0; display: grid; place-content: center; gap: 12px; padding: 32px; text-align: center; color: #26354a; background: #fff; }
.embedded-fallback strong { font-size: 20px; }
.embedded-fallback .btn { justify-self: center; margin-top: 8px; }
.platform-fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 60;
  display: grid;
  width: 72px;
  min-height: 72px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(246, 211, 131, 0.72);
  border-radius: 16px;
  background: #b9832d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  color: #061426;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease;
}
.platform-fab:hover { transform: translateY(-2px); background: #f2cf77; }
.platform-fab.active { background: #f2cf77; }
@media (max-width: 640px) {
  .embedded-head { padding: 32px 0 24px; }
  .embedded-head-inner { align-items: stretch; flex-direction: column; gap: 20px; }
  .embedded-head .btn { width: 100%; }
  .embedded-section { padding: 16px 0 32px; }
  .embedded-frame-wrap, .embedded-frame { min-height: 620px; border-radius: 12px; }
  .platform-fab {
    right: 16px;
    bottom: 86px;
    width: 56px;
    min-height: 56px;
    padding: 6px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.15;
  }
  .platform-fab:active { transform: translateY(1px); }
}
