:root {
  --navy: #172554;
  --navy-2: #1e3a8a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --soft: #eff6ff;
  --bg: #f6f8fb;
  --orange: #f97316;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(219, 234, 254, 0.9), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(219, 234, 254, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--navy-2);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.credit-pill,
.user-pill,
.login-link,
.primary-small {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.credit-pill {
  border: 1px solid #bfdbfe;
  background: var(--soft);
  color: var(--navy);
}

.user-pill,
.login-link {
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #fff;
}

.primary-small,
.primary-cta {
  background: var(--navy);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.08fr);
  gap: 46px;
  align-items: center;
  padding: 70px 0 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: #020617;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #475569;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
}

.secondary-cta {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  position: absolute;
  inset: 6% -3% -5% 8%;
  content: "";
  border-radius: 34px;
  background: #dbeafe;
  transform: rotate(2deg);
}

.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dbeafe;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.shared-panel,
.tool-group,
.guide-section {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.shared-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 30px;
  align-items: center;
  margin: 26px 0 58px;
  padding: 28px;
}

.shared-panel h2,
.section-heading h2 {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
}

.shared-panel p {
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.shared-panel img {
  width: 100%;
  height: auto;
}

.tools-section {
  padding: 8px 0 56px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-group {
  padding: 22px;
}

.group-heading {
  min-height: 94px;
}

.group-heading h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 24px;
}

.group-heading p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

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

.tool-card {
  position: relative;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 18px 32px rgba(23, 37, 84, 0.12);
}

.tool-card img {
  width: 54px;
  height: 54px;
}

.tool-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: #fff7ed;
  padding: 5px 8px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.tool-card-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.tool-card-desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.tool-open {
  margin-top: auto;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 900;
}

.guide-section {
  margin-bottom: 48px;
  padding: 28px;
}

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

.guide-grid a {
  display: flex;
  min-height: 86px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 28px 20px 34px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .top-nav,
  .account-actions {
    justify-content: flex-start;
  }

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

  .hero {
    padding-top: 42px;
  }

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

@media (max-width: 720px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .top-nav {
    display: none;
  }

  .account-actions {
    flex-wrap: wrap;
  }

  .hero-actions,
  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .tool-cards,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

  .shared-panel,
  .tool-group,
  .guide-section {
    padding: 18px;
  }
}
