
    :root {
      --bg: #f5f7fb; --surface: rgba(255,255,255,.84); --surface-solid: #fff;
      --text: #182033; --muted: #738098; --border: #e6eaf2;
      --primary: #6c5ce7; --primary-dark: #5342d2; --accent: #ff8b6a;
      --mint: #38bfa7; --code-bg: #f3f1ff; --header: rgba(255,255,255,.78);
      --radius: 20px; --shadow: 0 16px 45px rgba(55, 65, 110, .08);
      --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    [data-theme="dark"] {
      --bg: #101321; --surface: rgba(27,32,51,.84); --surface-solid: #1b2033;
      --text: #f0f2fa; --muted: #a2abc1; --border: #303850;
      --primary: #9a8cff; --primary-dark: #b3a8ff; --accent: #ff9d84;
      --mint: #57d8c2; --code-bg: #272341; --header: rgba(16,19,33,.82);
      --shadow: 0 18px 45px rgba(0,0,0,.22);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; color: var(--text); line-height: 1.75; font-family: var(--font); background: var(--bg); }
    body::before, body::after { content: ""; position: fixed; z-index: -1; width: 360px; height: 360px; border-radius: 50%; filter: blur(4px); opacity: .4; pointer-events: none; }
    body::before { top: 80px; left: -170px; background: #ddd7ff; }
    body::after { right: -170px; bottom: 80px; background: #ffe1d8; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
    .muted { color: var(--muted); }
    .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

    header.site { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
    .bar { display: flex; align-items: center; gap: 30px; min-height: 76px; }
    .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.1rem; }
    .brand-mark { display: grid; place-items: center; width: 37px; height: 37px; color: white; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #9c8df7); box-shadow: 0 8px 18px rgba(108,92,231,.28); }
    nav.site { display: flex; gap: 24px; color: var(--muted); font-size: .94rem; }
    nav.site a { transition: color .2s; } nav.site a:hover { color: var(--primary); }
    .spacer { margin-left: auto; }
    .toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); color: var(--text); background: var(--surface); border-radius: 12px; cursor: pointer; transition: transform .2s, border-color .2s; }
    .toggle:hover { transform: translateY(-2px); border-color: var(--primary); }

    .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 50px; align-items: center; padding: 88px 0 70px; }
    .hero h1 { max-width: 680px; margin: 14px 0 18px; font-size: clamp(2.45rem, 5vw, 4.4rem); line-height: 1.16; letter-spacing: -.055em; }
    .gradient-text { color: var(--primary); background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
    .hero-copy { max-width: 580px; margin: 0; font-size: 1.1rem; color: var(--muted); }
    .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
    .button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border-radius: 12px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
    .button:hover { transform: translateY(-2px); text-decoration: none; }
    .button.primary { color: white; background: var(--primary); box-shadow: 0 10px 22px rgba(108,92,231,.23); }
    .button.secondary { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
    .hero-art { position: relative; min-height: 310px; }
    .orb { position: absolute; inset: 18px 20px 0 30px; border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; background: linear-gradient(145deg, #d9d4ff, #fff0ea); transform: rotate(-8deg); }
    .hero-card { position: absolute; right: 0; bottom: 22px; width: min(290px, 86%); padding: 22px; color: #fff; border-radius: 18px; background: linear-gradient(145deg, #29234c, #5547a7); box-shadow: 0 24px 45px rgba(57,46,131,.25); transform: rotate(5deg); }
    .hero-card small { color: #c9c3ff; } .hero-card strong { display: block; margin: 8px 0 16px; font-size: 1.2rem; line-height: 1.4; }
    .progress { height: 7px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.2); } .progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: #ffad91; }
    .floating-note { position: absolute; top: 36px; left: 0; padding: 13px 16px; color: var(--text); background: var(--surface-solid); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-7deg); }

    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 70px; }
    .stat { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
    .stat strong { display: block; font-size: 1.7rem; line-height: 1.2; } .stat span { color: var(--muted); font-size: .88rem; }
    .layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; padding-bottom: 85px; align-items: start; }
    .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
    .section-heading h2 { margin: 4px 0 0; font-size: 1.75rem; letter-spacing: -.03em; }
    .search { display: flex; align-items: center; gap: 8px; width: 190px; padding: 9px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 11px; }
    .search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .85rem; }
    article.card { position: relative; padding: 25px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
    article.card:hover { transform: translateY(-4px); border-color: rgba(108,92,231,.35); box-shadow: 0 20px 50px rgba(55,65,110,.13); }
    .card.featured { overflow: hidden; color: #fff; background: linear-gradient(125deg, #29234c, #5f51bd); border: 0; }
    .featured .meta, .featured .excerpt { color: #d8d4f7; } .featured h3 a { color: #fff; }
    .featured::after { content: "✦"; position: absolute; right: 30px; top: 18px; color: rgba(255,255,255,.18); font-size: 6rem; line-height: 1; }
    article.card h3 { margin: 0 0 5px; font-size: 1.28rem; } article.card h3 a:hover { color: var(--primary); text-decoration: none; }
    .featured h3 a:hover { color: #fff; } .meta { margin: 0 0 11px; color: var(--muted); font-size: .84rem; } .excerpt { margin: 0 0 15px; }
    .tags { display: flex; flex-wrap: wrap; gap: 8px; } .tag { padding: 3px 10px; color: var(--primary); border: 1px solid rgba(108,92,231,.25); border-radius: 99px; background: rgba(108,92,231,.07); font-size: .78rem; }
    .tag.filter { cursor: pointer; transition: background .2s, color .2s, transform .2s; } .tag.filter:hover, .tag.filter.active { color: #fff; background: var(--primary); transform: translateY(-1px); }
    .featured .tag { color: #eeeaff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); }
    .featured .tag.filter:hover, .featured .tag.filter.active { color: var(--primary); background: #fff; }
    .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
    .read-more { color: var(--primary); font-size: .88rem; font-weight: 800; } .featured .read-more { color: #fff; }
    .read-more:hover { text-decoration: underline; text-underline-offset: 4px; }
    .category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
    .category-filter { padding: 7px 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; transition: .2s; }
    .category-filter:hover, .category-filter.active { color: #fff; border-color: var(--primary); background: var(--primary); }
    code { padding: 2px 6px; color: var(--primary-dark); background: var(--code-bg); border-radius: 6px; font-family: Consolas, monospace; font-size: .88em; }
    aside .widget { padding: 21px; margin-bottom: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
    aside h3 { margin: 0 0 14px; font-size: 1.03rem; } aside ul { list-style: none; padding: 0; margin: 0; } aside li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--muted); } aside li:last-child { border-bottom: 0; }
    aside li button.category-link { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; } aside li button.category-link:hover { color: var(--primary); }
    .about-card { background: linear-gradient(145deg, rgba(108,92,231,.13), rgba(255,139,106,.12)) !important; }
    .avatar { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; color: white; font-size: 1.25rem; font-weight: 800; border-radius: 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
    .quote { margin: 0; color: var(--muted); font-size: .92rem; }
    .modal-backdrop { display: none; position: fixed; inset: 0; z-index: 50; padding: 24px; place-items: center; background: rgba(12,15,28,.58); backdrop-filter: blur(6px); }
    .modal-backdrop.open { display: grid; }
    .modal { position: relative; width: min(620px, 100%); max-height: min(680px, 90vh); overflow: auto; padding: 30px; color: var(--text); border: 1px solid var(--border); border-radius: 22px; background: var(--surface-solid); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
    .modal h2 { margin: 8px 40px 10px 0; line-height: 1.3; } .modal p { color: var(--muted); }
    .modal-close { position: absolute; top: 17px; right: 17px; width: 36px; height: 36px; border: 1px solid var(--border); color: var(--text); background: var(--surface); border-radius: 10px; cursor: pointer; }
    .modal-close:hover { color: var(--primary); border-color: var(--primary); }
    .post-main { max-width: 860px; padding-top: 64px; padding-bottom: 88px; }
    .post-nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 42px; }
    .back-link { color: var(--primary); font-weight: 750; }
    .post-article { padding: clamp(24px, 5vw, 58px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
    .post-header { padding-bottom: 32px; margin-bottom: 34px; border-bottom: 1px solid var(--border); }
    .post-header h1 { margin: 12px 0 14px; font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.18; letter-spacing: -.045em; }
    .post-lead { margin: 18px 0; color: var(--muted); font-size: 1.08rem; }
    .post-content section + section { margin-top: 38px; }
    .post-content h2 { margin: 0 0 12px; font-size: 1.45rem; }
    .post-content p { margin: 0 0 15px; }
    .post-content pre { overflow-x: auto; margin: 20px 0 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--code-bg); line-height: 1.6; }
    .post-content pre code { padding: 0; color: var(--text); background: transparent; }
    footer.site { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); text-align: center; font-size: .85rem; } footer p { margin: 4px 0; }
    @media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 62px 0 45px; gap: 30px; } .hero-art { min-height: 250px; max-width: 500px; width: 100%; margin: auto; } .layout { grid-template-columns: 1fr; gap: 28px; } }
    @media (max-width: 520px) { .container { padding: 0 17px; } .bar { min-height: 66px; gap: 17px; } nav.site { gap: 14px; } .stats { gap: 8px; margin-bottom: 48px; } .stat { padding: 14px 11px; } .stat strong { font-size: 1.35rem; } .stat span { font-size: .75rem; } .section-heading { align-items: start; flex-direction: column; } .search { width: 100%; } article.card { padding: 20px; } }
  