:root {
  color-scheme: light;
  --ink: #211d3c;
  --muted: #514b66;
  --brand: #5738c6;
  --deep: #171435;
  --line: #e2deef;
  --soft: #f4f1fc;
  --content: 72rem;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 1rem; line-height: 1.65; }
a { color: var(--brand); text-underline-offset: .22em; }
a:focus-visible, [tabindex]:focus-visible { outline: .19rem solid #7860df; outline-offset: .23rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.23; }
footer p, .prose p { color: var(--muted); }
.wrap { width: min(calc(100% - 3.5rem), var(--content)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; top: .8rem; left: .8rem; z-index: 5; background: #fff; padding: .65rem 1rem; }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .99rem; font-weight: 850; letter-spacing: .055em; text-decoration: none; }
.logo { display: inline-grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .55rem; background: var(--brand); }
.logo::before { content: ""; width: .76rem; height: .76rem; border: .13rem solid #fff; transform: rotate(45deg); border-radius: .16rem; }
.header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.75rem; }
.header nav a, .contact-link { display: inline-block; font-size: .9rem; font-weight: 650; text-decoration: none; }
.header nav a { color: var(--muted); padding-block: .3rem; }
.header nav a:hover, .header nav a[aria-current] { color: var(--brand); text-decoration: underline; }
.contact-link { border: 1px solid #d7cff5; border-radius: .65rem; padding: .5rem .9rem; white-space: nowrap; }
.contact-link:hover { background: var(--soft); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 5%, #5d4395 0%, transparent 43%),
    radial-gradient(ellipse at 90% 100%, #322061 0%, transparent 48%),
    var(--deep);
  color: white;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 38%; pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 39px, #e2cbff19 40px 41px, transparent 42px 73px);
  mask-image: linear-gradient(90deg, transparent, black);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 6.1rem); }
.hero h1 { font-size: clamp(2.85rem, 6.15vw, 5.35rem); letter-spacing: -.028em; line-height: 1.1; font-weight: 800; }
.hero-copy > p { max-width: 31rem; margin-top: 1.35rem; color: #e1dcf2; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; }
.actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .75rem; }
.hero .actions { margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.85rem; padding: .63rem 1.05rem; border: 1px solid transparent; border-radius: .65rem; font-size: .94rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { background: #43289e; }
.hero .button.primary { color: #211944; background: #ddd0ff; }
.hero .button.primary:hover { background: #f0e8ff; }
.button.ghost { color: #fff; border-color: #c5b4ec85; background: #f1dfff0e; }
.button.ghost:hover { background: #f1dfff30; }
.button.outline { color: var(--brand); border-color: #cec4ef; }
.button.outline:hover { background: var(--soft); }

.subscription-panel { padding: 1.25rem 1.3rem; border: 1px solid #ffffff42; border-radius: 1.35rem; background: #211939ad; box-shadow: 0 1.35rem 4rem #0a061c64; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; padding: .1rem .35rem .75rem; }
.panel-heading strong { font-size: 1.13rem; }
.panel-heading span, .panel-category { color: #e0d6f4; font-size: .87rem; }
.panel-row { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .65rem; min-height: 3.22rem; padding: .45rem .35rem; color: #fff; border-top: 1px solid #ffffff2e; text-decoration: none; font-weight: 650; }
.panel-row:hover { background: #fff1; }
.panel-category { text-align: right; font-weight: 500; }
.mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem; font-size: 1.1rem; font-weight: 800; background: var(--mark-bg, #eee8ff); color: var(--mark-ink, #5940a8); }
.panel-row .mark { width: 1.95rem; height: 1.95rem; border-radius: .53rem; font-size: .9rem; }
.chatgpt { --mark-bg: #dff5eb; --mark-ink: #155a48; }
.gemini { --mark-bg: #e6ecff; --mark-ink: #334bb2; }
.claude { --mark-bg: #fbe8dc; --mark-ink: #84442d; }
.grok { --mark-bg: #e9e8ed; --mark-ink: #302b40; }
.muse { --mark-bg: #eee4ff; --mark-ink: #6236b0; }

.section { padding-block: clamp(2.8rem, 6vw, 4.75rem); }
.section-muted { background: #f7f5fd; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.55rem, 3.1vw, 2.25rem); letter-spacing: -.02em; }
.section-head p { margin-top: .48rem; color: var(--muted); }
.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.brand-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.15rem; gap: .25rem; }
.brand-card, .guide-card, .side-card { background: #fff; border: 1px solid var(--line); border-radius: .95rem; color: var(--ink); text-decoration: none; }
.brand-card:hover, .guide-card:hover { border-color: #8e73dd; background: #fcfaff; }
.brand-name { margin-top: .65rem; font-size: 1.13rem; font-weight: 750; }
.brand-caption { min-height: 2.5em; color: var(--muted); font-size: .89rem; line-height: 1.35; }
.brand-action { margin-top: .5rem; color: var(--brand); font-size: .88rem; font-weight: 650; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.guide-card { display: block; padding: 1.35rem 1.45rem; }
.guide-card .guide-tag { color: var(--brand); font-size: .87rem; font-weight: 700; }
.guide-card h3 { margin: .35rem 0 .55rem; font-size: 1.22rem; }
.guide-card p { color: var(--muted); }
.masthead { padding-block: 1.6rem clamp(2rem, 5.5vw, 4rem); background: var(--soft); border-bottom: 1px solid var(--line); }
.masthead h1 { max-width: 60rem; font-size: clamp(2rem, 4.7vw, 3.55rem); letter-spacing: -.021em; }
.masthead p { max-width: 47rem; margin-top: .85rem; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; font-size: .9rem; }
.crumbs a + a::before { content: "/"; display: inline-block; margin-right: .55rem; color: #635e77; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); gap: clamp(1.5rem, 4vw, 3.5rem); }
.article { max-width: 49rem; }
.prose { min-width: 0; }
.prose section + section, .wide .table-scroll + section { margin-top: 2.15rem; }
.prose h2 { margin-bottom: .72rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.025em; }
.prose h3 { margin-top: 1.12rem; margin-bottom: .4rem; font-size: 1.12rem; }
.prose li + li { margin-top: .5rem; }
.prose ol, .prose ul { padding-left: 1.55rem; }
.prose p + .button { margin-top: 1rem; }
.answer { padding: 1.15rem 1.35rem; background: var(--soft); border-left: .25rem solid var(--brand); border-radius: 0 .8rem .8rem 0; }
.answer .answer-action { display: none; }
.sources { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.sources p { font-size: .9rem; }
.sidebar { align-self: start; display: grid; gap: .85rem; }
.side-card { padding: 1.1rem; }
.side-card h2 { margin-block: .6rem .5rem; font-size: 1.18rem; }
.side-card p { color: var(--muted); font-size: .94rem; }
.side-card .button { margin-top: .9rem; width: 100%; }
.side-card ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.side-card li + li { margin-top: .5rem; }
.table-scroll { border: 1px solid var(--line); border-radius: .8rem; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: .94rem; }
th, td { padding: .8rem .9rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
thead { background: var(--soft); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { min-width: 7.25rem; }
.footer { background: #faf9fe; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-inner p, .footer-links { font-size: .88rem; }
.footer-note { flex: 0 0 100%; }

@media (max-width: 61rem) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 1.8rem; }
  .hero::before { inset-inline-start: 8%; }
  .header-inner { flex-wrap: wrap; padding-block: .72rem; }
  .header nav { order: 2; justify-content: flex-start; width: 100%; gap: .45rem 1.3rem; }
  .detail-grid { gap: 1.5rem; }
  .answer .answer-action { display: inline-flex; }
  .sidebar .side-card:first-child { display: none; }
}
@media (max-width: 36rem) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .subscription-panel, .brand-card { padding-inline: .85rem; }
  .table-scroll table { min-width: 29rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
