:root {
  --ink: #10213b;
  --muted: #64748b;
  --blue: #2463eb;
  --blue-dark: #1544b8;
  --blue-soft: #eaf0ff;
  --line: #dfe6ef;
  --paper: #f6f8fb;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; line-height: 1.7; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,230,239,.85); backdrop-filter: blur(14px); }
.nav-wrap { max-width: var(--max); height: 74px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--blue); font-size: 13px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 34px; color: #5f718a; }
.nav-links a { position: relative; padding: 25px 0 22px; font-size: 15px; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px; background: var(--ink); }

.hero { min-height: 640px; max-width: var(--max); margin: auto; padding: 105px 24px 90px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 84px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 24px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(45px, 5vw, 68px); line-height: 1.16; letter-spacing: 0; }
.hero p { margin: 27px 0 32px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.primary-btn { padding: 13px 22px; color: white; background: var(--blue); font-weight: 700; transition: background .2s, transform .2s; }
.primary-btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.primary-btn span { margin-left: 14px; }
.text-btn { color: var(--blue); font-weight: 700; border-bottom: 1px solid currentColor; }
.hero-stats { margin-top: 58px; display: flex; gap: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; line-height: 1.2; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.hero-code { position: relative; background: #111d34; color: #afbdd1; box-shadow: 22px 26px 0 var(--blue-soft); transform: translateY(-10px); }
.code-top { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-top span { width: 8px; height: 8px; border-radius: 50%; background: #526079; }
.code-top span:first-child { background: #ff6b6b; }.code-top span:nth-child(2) { background: #f6c85f; }.code-top span:nth-child(3) { background: #55c59a; }
.code-top small { margin-left: auto; color: #728099; }
.hero-code pre { margin: 0; padding: 38px 40px 72px; overflow: hidden; font: 15px/2 "Cascadia Code", Consolas, monospace; }
.hero-code i { color: #6ea8ff; font-style: normal; }.hero-code b { color: #dba8ff; }.hero-code em { color: #85d6b0; font-style: normal; }
.code-note { position: absolute; right: 24px; bottom: 18px; color: #7f90ab; font-size: 12px; }

.section { max-width: var(--max); margin: auto; padding: 90px 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.section-heading > div { display: flex; align-items: center; gap: 15px; }
.section-index { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin: 0; font-size: 30px; line-height: 1.25; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.stack-section { padding-top: 36px; padding-bottom: 70px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-list span { padding: 9px 17px; color: #2957ba; background: var(--blue-soft); border: 1px solid #dbe5ff; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s; }
.stack-list span:hover { transform: translateY(-3px); background: #dce7ff; }

.notes-section { padding-top: 70px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { padding: 7px 15px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.filter:hover, .filter.active { color: white; border-color: var(--blue); background: var(--blue); }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-card { min-height: 280px; padding: 30px; background: var(--white); border: 1px solid transparent; display: flex; flex-direction: column; box-shadow: 0 8px 28px rgba(28,50,88,.06); cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.article-card:hover, .article-card:focus { outline: none; transform: translateY(-5px); border-color: #cfdcff; box-shadow: 0 16px 34px rgba(28,50,88,.11); }
.article-card.featured { background: var(--ink); color: white; }
.article-card[hidden] { display: none; }
.card-meta { display: flex; justify-content: space-between; color: #7890b0; font-size: 12px; }
.card-meta span { color: var(--blue); font-weight: 700; }
.featured .card-meta { color: #aebbd0; }.featured .card-meta span { color: #8bb2ff; }
.article-card h3 { margin: 24px 0 12px; font-size: 23px; line-height: 1.45; }
.article-card p { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.featured p { color: #aebbd0; }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card-footer button { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-weight: 700; }
.featured .card-footer button { color: #8bb2ff; }
.card-footer button span { display: inline-block; margin-left: 8px; transition: transform .2s; }.article-card:hover .card-footer button span { transform: translateX(5px); }
.card-footer small { color: #8b99ad; }

.projects { background: #eef3fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.project-card { display: grid; grid-template-columns: 62px 1fr 30px; gap: 22px; align-items: start; padding: 25px 28px; background: white; border: 1px solid #e5ebf3; transition: transform .2s, border-color .2s; }
.project-card:hover { transform: translateX(4px); border-color: #b7caff; }
.project-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-size: 14px; font-weight: 800; }
.project-card small { color: #8495ad; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.project-card h3 { margin: 5px 0 4px; font-size: 19px; }
.project-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { padding: 3px 9px; color: #54709a; background: #f2f5f9; font-size: 11px; }
.project-arrow { color: var(--blue); font-size: 20px; }

.roadmap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.roadmap-card { position: relative; min-height: 285px; padding: 32px; border-right: 1px solid var(--line); overflow: hidden; }
.roadmap-card:last-child { border: 0; }
.roadmap-number { position: absolute; right: 18px; top: 5px; color: #f0f3f8; font-size: 82px; font-weight: 900; line-height: 1; }
.roadmap-card small { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.roadmap-card h3 { position: relative; margin: 55px 0 6px; font-size: 21px; }
.roadmap-card p { min-height: 48px; margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.progress { width: calc(100% - 40px); height: 4px; display: inline-block; background: #e8edf4; vertical-align: middle; }
.progress i { display: block; height: 100%; background: var(--blue); }
.roadmap-card b { float: right; color: var(--blue); font-size: 12px; }

.routine { padding-top: 95px; padding-bottom: 100px; }
.routine-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.routine-step { min-height: 190px; padding: 26px 24px; border-right: 1px solid var(--line); }
.routine-step:last-child { border-right: 0; }
.routine-step > span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.routine-step h3 { margin: 20px 0 8px; font-size: 18px; }
.routine-step p { margin: 0; color: var(--muted); font-size: 13px; }
.quote-card { position: relative; margin-top: 40px; padding: 30px 38px 30px 82px; background: var(--blue); color: white; }
.quote-card > span { position: absolute; left: 30px; top: 9px; color: #a9c3ff; font: 70px Georgia, serif; }
.quote-card p { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.quote-card small { color: #d2dfff; }

.resources { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.resource-card { min-height: 215px; padding: 24px 20px; border: 1px solid var(--line); background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-4px); border-color: #b9cbf7; box-shadow: 0 10px 24px rgba(28,50,88,.08); }
.resource-card > span { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.resource-card h3 { margin: 20px 0 8px; font-size: 17px; }
.resource-card p { min-height: 62px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.resource-card b { color: var(--blue); font-size: 12px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.about-copy h2 { margin: 18px 0 0; font-size: 37px; line-height: 1.45; }
.about-text { border-left: 1px solid var(--line); padding-left: 56px; color: var(--muted); }
.about-text p { margin: 0 0 18px; }
.about-text a { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 700; }
.about-text a span { margin-left: 8px; }
footer { min-height: 150px; padding: 35px max(24px, calc((100vw - var(--max)) / 2 + 24px)); display: flex; align-items: center; justify-content: space-between; color: #8a98ab; background: #0d192c; font-size: 12px; }
footer > div { display: flex; align-items: center; gap: 20px; } footer .brand { color: white; } footer .brand-mark { width: 32px; height: 32px; }
.footer-meta { align-items: flex-end; flex-direction: column; gap: 8px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: #aab9cf; }.footer-meta a:hover { color: #fff; }

.article-dialog { width: min(720px, calc(100% - 32px)); max-height: 86vh; padding: 48px; border: 0; color: var(--ink); box-shadow: 0 24px 80px rgba(9,24,48,.25); }
.article-dialog::backdrop { background: rgba(8,19,38,.65); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 15px; right: 20px; width: 34px; height: 34px; border: 0; background: #eef2f8; cursor: pointer; font-size: 22px; line-height: 1; }
.dialog-meta { display: flex; gap: 12px; color: var(--blue); font-size: 12px; font-weight: 700; }
.article-dialog h2 { margin: 14px 0 28px; font-size: 30px; line-height: 1.35; }
.dialog-body { color: #52647d; }.dialog-body h3 { margin-top: 28px; color: var(--ink); }.dialog-body p { margin: 0 0 14px; }.dialog-body code { padding: 2px 5px; background: #eef2f8; color: var(--blue-dark); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s, transform .65s; }
.reveal.visible { opacity: 1; transform: none; }
.mobile-break { display: none; }

@media (max-width: 860px) {
  .nav-wrap { height: 66px; }.menu-toggle { display: block; }.nav-links { position: absolute; top: 66px; left: 0; right: 0; display: none; padding: 10px 24px 22px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; }.nav-links.open { display: flex; }.nav-links a { width: 100%; padding: 12px 0; }.nav-links a::after { display: none; }
  .hero { min-height: 0; padding-top: 70px; grid-template-columns: 1fr; gap: 65px; }.hero-code { max-width: 560px; }.hero h1 { font-size: 46px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.section-heading p { text-align: left; }
  .roadmap-grid { grid-template-columns: 1fr; }.roadmap-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .routine-grid { grid-template-columns: repeat(2, 1fr); }.routine-step:nth-child(2) { border-right: 0; }.routine-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 50px; }.about-text { padding-left: 36px; }
}

@media (max-width: 620px) {
  .hero { padding: 58px 20px 70px; }.hero h1 { font-size: 38px; }.mobile-break { display: block; }.hero p { font-size: 15px; }.hero-stats { gap: 22px; justify-content: space-between; }.hero-stats strong { font-size: 19px; }.hero-code { box-shadow: 12px 14px 0 var(--blue-soft); }.hero-code pre { padding: 28px 20px 64px; font-size: 12px; }
  .section { padding: 68px 20px; }.stack-section { padding-top: 18px; }.section-heading h2 { font-size: 25px; }.section-heading > div { gap: 10px; }
  .article-grid { grid-template-columns: 1fr; }.article-card { min-height: 255px; padding: 24px; }.article-card h3 { font-size: 20px; }
  .project-card { grid-template-columns: 45px 1fr 16px; gap: 14px; padding: 20px 16px; }.project-icon { width: 42px; height: 42px; font-size: 12px; }.project-card h3 { font-size: 17px; }
  .routine-grid { grid-template-columns: 1fr; }.routine-step { min-height: 0; padding: 22px 8px; border-right: 0; border-bottom: 1px solid var(--line); }.routine-step:nth-child(2) { border-bottom: 1px solid var(--line); }.routine-step:last-child { border-bottom: 0; }.routine-step h3 { margin-top: 10px; }
  .resource-grid { grid-template-columns: 1fr; }.resource-card { min-height: 0; }.resource-card p { min-height: 0; }
  .quote-card { padding: 25px 22px 25px 56px; }.quote-card > span { left: 17px; font-size: 56px; }.quote-card p { font-size: 16px; }
  .about { grid-template-columns: 1fr; gap: 35px; }.about-copy h2 { font-size: 30px; }.about-text { padding: 0; border: 0; }
  footer { padding: 32px 20px; align-items: flex-start; flex-direction: column; gap: 25px; } footer > div { align-items: flex-start; flex-direction: column; gap: 8px; } footer p { margin: 0; }.footer-meta { align-items: flex-start; }
  .article-dialog { padding: 38px 24px 28px; }.article-dialog h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } .reveal { opacity: 1; transform: none; } }
