:root {
  --bg: #f7f8fc;
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf1;
  --brand: #3157d5;
  --brand-dark: #213c9b;
  --warm: #f0b45d;
  --card: rgba(255, 255, 255, .82);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--brand); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247,248,252,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231,234,241,.8);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), #6b7ff0); box-shadow: 0 8px 22px rgba(49,87,213,.25); }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.hero { padding: 112px 0 96px; background: radial-gradient(circle at 85% 5%, rgba(49,87,213,.15), transparent 34%), radial-gradient(circle at 5% 20%, rgba(240,180,93,.14), transparent 28%); }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 18px 0; font-size: clamp(42px, 7vw, 76px); line-height: 1.13; letter-spacing: -.055em; }
.lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 12px 25px rgba(49,87,213,.2); }
.button:hover { color: #fff; background: var(--brand-dark); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
section { padding: 88px 0; }
.section-kicker { margin-bottom: 10px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; letter-spacing: -.035em; }
.section-intro { max-width: 680px; color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 16px 42px rgba(24,34,58,.05); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.article-list { display: grid; gap: 14px; margin-top: 28px; }
.article { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.article-title { font-weight: 800; font-size: 18px; }
.article-meta { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.quote { padding: 30px; border-left: 4px solid var(--warm); border-radius: 0 18px 18px 0; background: #fff; font-size: 22px; font-weight: 700; }
.footer { padding: 34px 0 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.article-page { padding: 76px 0 100px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h1 { max-width: none; margin-bottom: 14px; font-size: clamp(34px, 5vw, 58px); }
.article-body .meta { color: var(--muted); font-size: 14px; }
.article-body .content { margin-top: 42px; font-size: 18px; }
.article-body .content h2 { margin-top: 42px; font-size: 30px; }
.article-body .content p { margin: 18px 0; }
.article-body .content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body .content strong { color: var(--ink); }
.article-body .content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: #fff; color: #35405b; }
.table-wrap { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.article-body .content table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.article-body .content th, .article-body .content td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body .content th { color: var(--ink); background: #f5f7fb; font-size: 14px; font-weight: 800; }
.article-body .content tr:last-child td { border-bottom: 0; }
.article-cover, .article-figure { margin: 30px 0 36px; }
.article-cover img, .article-figure img { display: block; width: 100%; height: auto; border-radius: 18px; background: #f3f4f6; box-shadow: 0 12px 32px rgba(15,23,42,.10); }
.article-cover img { max-height: 560px; object-fit: cover; }
.article-cover figcaption, .article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.image-note, .article-source { margin: 30px 0; padding: 18px 20px; border: 1px dashed #cbd3e6; border-radius: 14px; background: #fbfcff; color: var(--muted); font-size: 15px; line-height: 1.8; }
.article-source strong { display: block; margin-bottom: 4px; }
.article-source p { margin: 0 0 8px !important; }
.article-body .content h3 { margin: 42px 0 14px; font-size: 23px; line-height: 1.4; }
.prompt-card { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.prompt-card h4 { margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.prompt-card p { margin: 12px 0 0 !important; color: var(--muted); font-size: 15px; }
.prompt-card pre { margin: 0; padding: 15px; border-radius: 10px; background: #f5f7fb; color: #35405b; font: inherit; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.source-list { padding-left: 24px; }
.source-list li { margin: 10px 0; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), #6b7ff0); font-weight: 800; }
.author-box p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 620px); }
  .nav-inner { min-height: 62px; height: auto; gap: 12px; }
  .brand { gap: 8px; font-size: 15px; white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .nav-links { gap: 11px; font-size: 12px; white-space: nowrap; }
  .hero { padding: 64px 0 58px; }
  h1 { margin: 14px 0; font-size: clamp(36px, 11vw, 48px); line-height: 1.18; letter-spacing: -.045em; }
  .lead { font-size: 17px; line-height: 1.75; }
  .actions { flex-direction: column; gap: 10px; margin-top: 26px; }
  .button { width: 100%; min-height: 48px; }
  .grid, .profile { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  h2 { font-size: clamp(27px, 8vw, 36px); }
  .section-intro { line-height: 1.75; }
  .card { padding: 21px; border-radius: 18px; }
  .article { display: block; }
  .article-title { display: block; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
  .article-meta { display: block; margin-top: 5px; }
  .quote { padding: 22px; font-size: 18px; line-height: 1.7; }
  .article-page { padding: 50px 0 68px; }
  .article-body h1 { margin-bottom: 12px; font-size: clamp(30px, 9vw, 40px); line-height: 1.27; }
  .article-body .content { margin-top: 30px; font-size: 17px; line-height: 1.9; }
  .article-body .content h2 { margin-top: 34px; font-size: 25px; line-height: 1.35; }
  .article-body .content p { margin: 16px 0; }
  .article-body .content blockquote { margin: 24px 0; padding: 15px 17px; }
  .table-wrap { margin: 22px 0; border-radius: 12px; }
  .article-body .content table { font-size: 14px; }
  .article-body .content th, .article-body .content td { padding: 12px 13px; }
  .article-cover, .article-figure { margin: 22px -2px 28px; }
  .article-cover img, .article-figure img { border-radius: 12px; }
  .article-cover figcaption, .article-figure figcaption { font-size: 13px; }
  .image-note, .article-source { margin: 24px 0; padding: 15px 16px; font-size: 14px; }
  .article-body .content h3 { margin-top: 34px; font-size: 21px; }
  .prompt-card { margin: 18px 0; padding: 15px 16px; }
  .prompt-card pre { padding: 13px; font-size: 14px; line-height: 1.75; }
  .author-box { align-items: flex-start; margin-top: 36px; padding: 17px; }
  .footer { padding: 28px 0 38px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .brand { font-size: 14px; }
  .nav-links { gap: 8px; font-size: 11px; }
}
