/* MBA论文大师 website. Light only (owner, E23 round 3); product UI comes as WebP, never rebuilt here.
   Visual reference: today.ai — floating frosted header, large light headings, pill actions,
   soft cards, quiet ambient light. Every colour below comes from these tokens. */
:root {
  color-scheme: light;
  --site-paper: #fbfbf9;
  --site-card: #ffffff;
  --site-wash: #f3f3f0;
  --site-ink: #1f2023;
  --site-ink-hover: #000000;
  --site-text: #3a3b40;
  --site-muted: #6f7075;
  --site-faint: #8c8d92;
  --site-line: #e7e7e3;
  --site-green: #315e4c;
  --site-glow-warm: rgba(234, 226, 212, 0.55);
  --site-glow-cool: rgba(222, 229, 234, 0.55);
  --site-glass: rgba(255, 255, 255, 0.72);
  --site-glass-line: rgba(0, 0, 0, 0.06);
  --site-todo-bg: #fff1b8;
  --site-todo-ink: #6b4e00;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -18px rgba(0, 0, 0, 0.12);
  --shadow-media: 0 2px 6px rgba(0, 0, 0, 0.04), 0 40px 90px -40px rgba(0, 0, 0, 0.22);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-media: 6px;
  --radius-pill: 999px;
  --header-offset: 96px;
  --gutter: 48px;
  font-family:
    system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
  color: var(--site-text);
  font-synthesis: none;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flow-root;
  /* Quiet, static light at the top of every page. */
  background:
    radial-gradient(40% 520px at 18% 0, var(--site-glow-warm), transparent 70%),
    radial-gradient(40% 520px at 82% 0, var(--site-glow-cool), transparent 70%),
    var(--site-paper);
  background-repeat: no-repeat;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-color: var(--site-line);
}
a:hover {
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--site-green);
  outline-offset: 4px;
  border-radius: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--site-ink);
  line-height: 1.35;
  font-weight: 500;
}
ul {
  padding-left: 1.4em;
}
li + li {
  margin-top: 10px;
}
img {
  max-width: 100%;
}
main {
  min-height: 60vh;
}
[id] {
  scroll-margin-top: var(--header-offset);
}
.wrap,
.site-footer {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--site-card);
  border-radius: var(--radius-pill);
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}

/* Header: a frosted bar that floats at the top. */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(100% - 24px, 1104px);
  margin: 12px auto 0;
}
.header-bar {
  /* Three columns: the middle nav sits at the exact centre of the bar, whatever the sides hold. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  height: 56px;
  /* Equal side padding keeps the grid's centre at the bar's centre. */
  padding: 0 10px;
  border: 1px solid var(--site-glass-line);
  border-radius: var(--radius-pill);
  background: var(--site-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-ink);
  white-space: nowrap;
}
.brand img {
  border-radius: 7px;
}
.brand {
  justify-self: start;
  padding-left: 6px;
}
.site-header nav {
  display: flex;
  gap: 32px;
}
.header-bar > .action {
  justify-self: end;
}
.site-header nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--site-muted);
  white-space: nowrap;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--site-ink);
}

/* Actions: pill buttons. One height per size, no size change on hover. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  text-decoration: none;
  background: var(--site-ink);
  color: var(--site-card);
  border: 1px solid var(--site-ink);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.action:hover {
  background: var(--site-ink-hover);
}
.action.secondary {
  background: var(--site-card);
  border-color: var(--site-line);
  color: var(--site-ink);
  box-shadow: var(--shadow-sm);
}
.action.secondary:hover {
  background: var(--site-wash);
}
:root[data-os='mac'] .platform-mac {
  order: -1;
  background: var(--site-ink);
  border-color: var(--site-ink);
  color: var(--site-card);
  box-shadow: none;
}
:root[data-os='mac'] .platform-mac:hover {
  background: var(--site-ink-hover);
}
:root[data-os='mac'] .platform-win {
  background: var(--site-card);
  border-color: var(--site-line);
  color: var(--site-ink);
  box-shadow: var(--shadow-sm);
}
:root[data-os='mac'] .platform-win:hover {
  background: var(--site-wash);
}
.action.small {
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
}
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
  flex-shrink: 0;
  font-size: 1.15em;
}
.eyebrow {
  display: inline-block;
  color: var(--site-muted);
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-pill);
  background: var(--site-card);
  margin-bottom: 20px;
}
.fine {
  font-size: 12px;
  color: var(--site-muted);
  margin-top: 16px;
}
.muted {
  color: var(--site-muted);
}

/* Home */
.launch-hero {
  text-align: center;
  padding-block: 104px 0;
}
.launch-hero h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.22;
  font-weight: 500;
}
.hero-description {
  margin-top: 22px;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.6;
  color: var(--site-faint);
  text-wrap: balance;
  /* Break only at punctuation, never inside a word. */
  word-break: keep-all;
}
.hero-actions {
  justify-content: center;
}
.hero-actions .action {
  min-width: 168px;
}
.product-image {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-media);
  background: var(--site-card);
  box-shadow: var(--shadow-media);
}
.product-image img {
  display: block;
  width: 100%;
  height: auto;
}
.product-overview {
  margin-top: 80px;
}
.media-placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--site-card), var(--site-wash));
  color: var(--site-faint);
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 160px 140px;
}
.feature {
  min-width: 0;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  box-shadow: var(--shadow-sm);
  color: var(--site-green);
  font-size: 19px;
  margin-bottom: 24px;
}
.feature h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.feature p {
  font-size: 17px;
  color: var(--site-muted);
  max-width: 380px;
}
.features:has(.with-image) {
  grid-template-columns: 1fr;
  gap: 128px;
}
.feature.with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 72px;
}
.feature.with-image:nth-child(even) .feature-copy {
  order: 2;
}
.feature.with-image:nth-child(even) {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

/* Inner pages */
.page-heading {
  padding-block: 88px 40px;
}
.page-heading h1 {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.lead {
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1.9;
  margin-top: 18px;
  max-width: 720px;
}
.notice {
  background: var(--site-wash);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-size: 14px;
  color: var(--site-text);
  margin-bottom: 40px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.download-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--site-line);
  background: var(--site-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.platform-icon {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--site-wash);
  color: var(--site-ink);
  font-size: 22px;
  margin-bottom: 28px;
}
.download-card h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.download-card > p:not(.eyebrow) {
  font-size: 14px;
  color: var(--site-muted);
}
.download-card .action {
  width: 100%;
}
.download-card > p + .action,
.download-card > p + .unavailable {
  margin-top: 28px;
}
.unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--site-wash);
  color: var(--site-muted);
  font-size: 14px;
}
.checksum {
  margin-top: 20px;
  font-size: 11px;
}
.checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--site-muted);
}
.section {
  padding-block: 96px;
}
.compact {
  padding-block: 64px;
}
.compact > h2 {
  margin-bottom: 20px;
}
.release-notes {
  border-top: 1px solid var(--site-line);
  padding-block: 32px 64px;
}
.release-notes h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.release-notes p,
.release-notes li {
  font-size: 15px;
  color: var(--site-muted);
}

/* Help and legal documents: contents list, prose, tables, keys, operator placeholders. */
.doc-page {
  padding-bottom: 80px;
}
.doc-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding-bottom: 80px;
}
.toc {
  position: sticky;
  top: var(--header-offset);
  font-size: 13px;
}
.toc p {
  color: var(--site-faint);
  font-size: 12px;
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li + li {
  margin-top: 0;
}
.toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--site-muted);
  line-height: 1.6;
}
.toc a:hover {
  color: var(--site-ink);
  background: var(--site-wash);
}
.prose {
  max-width: 760px;
}
.prose > section + section {
  margin-top: 64px;
}
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
}
.prose > section > h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.prose p,
.prose ul,
.prose ol {
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.95;
}
.prose p {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  margin: 14px 0 0;
}
.prose li + li {
  margin-top: 6px;
}
.prose strong {
  color: var(--site-ink);
  font-weight: 600;
}
.prose code {
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  background: var(--site-wash);
  border-radius: 6px;
  padding: 2px 6px;
}
kbd {
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  border: 1px solid var(--site-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--site-card);
  color: var(--site-ink);
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--site-line);
}
.prose th {
  font-weight: 500;
  font-size: 12px;
  color: var(--site-faint);
}
.prose td {
  color: var(--site-muted);
}
.prose td:first-child {
  color: var(--site-ink);
  white-space: nowrap;
}
mark.todo {
  background: var(--site-todo-bg);
  color: var(--site-todo-ink);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 500;
}

/* Open-source licences: main components, then the texts behind a disclosure. */
.oss-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  max-width: 880px;
}
.oss-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-block: 14px;
  border-bottom: 1px solid var(--site-line);
  font-size: 15px;
}
.oss-list a {
  color: var(--site-ink);
  text-decoration: none;
}
.oss-list a:hover {
  text-decoration: underline;
}
.oss-list span {
  color: var(--site-muted);
  white-space: nowrap;
}
.license-texts {
  margin-top: 40px;
  max-width: 880px;
  font-size: 14px;
}
.license-texts summary {
  cursor: pointer;
  color: var(--site-muted);
  width: fit-content;
}
.license-texts summary:hover {
  color: var(--site-ink);
}
.license-texts ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  columns: 3;
  column-gap: 32px;
}
.license-texts li {
  margin: 0;
  padding-block: 4px;
  font-size: 13px;
  break-inside: avoid;
  overflow-wrap: anywhere;
}
.license-texts a {
  color: var(--site-muted);
}

/* Footer: two rows — contact and help; copyright and the terms. */
.site-footer {
  margin-top: 96px;
  padding-block: 0 40px;
  font-size: 14px;
}
/* The divider spans the content column, not the gutters. */
.site-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--site-line);
  margin-bottom: 32px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-row a {
  color: var(--site-muted);
  text-decoration: none;
}
.footer-row a:hover,
.footer-row a[aria-current] {
  color: var(--site-ink);
}
.footer-contact {
  color: var(--site-ink);
  overflow-wrap: anywhere;
}
.footer-contact .label {
  margin-right: 12px;
  color: var(--site-faint);
}
.footer-contact a {
  color: var(--site-ink);
}
.footer-contact a:hover {
  text-decoration: underline;
}
/* The header's 联系我们 lands here; highlight without moving anything. */
.footer-contact:target {
  border-radius: var(--radius-sm);
  background: var(--site-wash);
  box-shadow: 0 0 0 8px var(--site-wash);
}
.footer-fine {
  margin-top: 20px;
  font-size: 12px;
  color: var(--site-faint);
}
.footer-fine nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-fine a {
  color: var(--site-faint);
}

@media (max-width: 850px) {
  :root {
    --gutter: 28px;
  }
  .site-header nav {
    gap: 22px;
  }
  .features {
    gap: 24px;
    padding-block: 120px 100px;
  }
  .features:has(.with-image) {
    gap: 96px;
  }
  .feature.with-image {
    gap: 36px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .toc {
    position: static;
    padding: 18px 22px;
    border: 1px solid var(--site-line);
    border-radius: var(--radius-md);
    background: var(--site-card);
  }
  .toc ol {
    columns: 2;
    column-gap: 20px;
  }
  .toc a {
    margin-left: 0;
    padding-inline: 0;
  }
  .toc a:hover {
    background: none;
  }
}
@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --header-offset: 80px;
  }
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
  }
  .header-bar {
    column-gap: 8px;
    height: 52px;
    padding: 0 7px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
    padding-left: 5px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav a {
    font-size: 13px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  .action.small {
    padding: 0 14px;
    font-size: 13px;
  }
  .launch-hero {
    padding-top: 64px;
  }
  .launch-hero h1 {
    font-size: clamp(34px, 9.6vw, 44px);
  }
  .hero-description {
    font-size: 18px;
    margin-top: 16px;
  }
  .hero-actions {
    margin-top: 28px;
    gap: 10px;
  }
  .hero-actions .action {
    min-width: max-content;
    flex: 1 1 180px;
    height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }
  .product-overview {
    margin-top: 48px;
  }
  .features {
    grid-template-columns: 1fr;
    padding-block: 88px 64px;
  }
  .features:has(.with-image) {
    gap: 72px;
  }
  .feature.with-image,
  .feature.with-image:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature.with-image:nth-child(even) .feature-copy {
    order: initial;
  }
  .feature-icon {
    margin-bottom: 18px;
  }
  .feature h2 {
    font-size: 26px;
  }
  .feature p {
    max-width: none;
    font-size: 16px;
  }
  .page-heading {
    padding-block: 56px 28px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 16px;
    margin-top: 14px;
  }
  .download-card {
    padding: 24px;
  }
  .download-card h2 {
    font-size: 24px;
  }
  .toc ol {
    columns: 1;
  }
  .oss-list {
    grid-template-columns: 1fr;
  }
  .license-texts ul {
    columns: 1;
  }
  .prose h2 {
    font-size: 23px;
  }
  .prose table {
    font-size: 13px;
  }
  .stack-table thead {
    display: none;
  }
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
  }
  .stack-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--site-line);
  }
  .stack-table td {
    border: 0;
    padding: 0;
  }
  .stack-table td:first-child {
    font-weight: 500;
    margin-bottom: 6px;
  }
  .stack-table td[data-label]::before {
    content: attr(data-label) '：';
    color: var(--site-ink);
  }
  .stack-table td + td + td {
    margin-top: 6px;
  }
  .site-footer {
    margin-top: 72px;
  }
}
/* Narrow phones: the logo alone, so the centred nav never touches the brand. */
@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}
