/* 个人主页模板：主要配色、宽度和间距都可以在这里修改 */
:root {
  color-scheme: dark;
  --bg: #0a1020; --surface: #121b2d; --surface2:#172338;
  --text: #eef4ff; --muted: #a6b5cd; --line: rgba(203,218,246,.13);
  --accent: #8ce0ce; --accent2: #b1a8ff; --max: 1080px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fd; --surface: #ffffff; --surface2:#edf3fb;
  --text: #17243a; --muted:#55657b; --line:rgba(39,65,97,.13);
  --accent:#067b75; --accent2:#6751b5;
}
*, *::before, *::after {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0; background:var(--bg); color:var(--text); font:16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}
a {color:inherit;text-decoration:none}
button {font:inherit}
a:focus-visible,button:focus-visible {outline:3px solid var(--accent);outline-offset:3px}
::selection {background:var(--accent);color:var(--bg)}
.container {width:min(calc(100% - 44px),var(--max));margin:0 auto}
.skip {position:absolute;left:-9999px;top:8px;background:var(--accent);color:var(--bg);padding:8px 12px;z-index:10}
.skip:focus {left:12px}
.site-header {border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 92%,transparent);position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}
.nav {min-height:75px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand {font-size:19px;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.brand-mark {display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--accent);color:var(--bg);margin-right:8px;font-size:14px}
.nav-links {display:flex;gap:24px;align-items:center;font-size:14px;color:var(--muted)}
.nav-links a:hover,.nav-links a[aria-current="page"] {color:var(--text)}
.theme-toggle {border:1px solid var(--line);padding:7px 11px;border-radius:11px;color:var(--text);background:var(--surface);cursor:pointer}
.hero {padding:92px 0 68px;position:relative}
.kicker {display:inline-flex;align-items:center;gap:9px;color:var(--accent);font-weight:700;letter-spacing:.11em;text-transform:uppercase;font-size:12px}
.kicker::before {content:"";display:block;width:22px;height:2px;background:var(--accent)}
h1,h2,h3,p {margin-top:0}
h1 {font-weight:830;line-height:1.12;font-size:clamp(42px,7vw,76px);letter-spacing:-.055em;max-width:790px;margin:23px 0}
h1 .shine {background:linear-gradient(95deg,var(--accent),var(--accent2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p {max-width:630px;color:var(--muted);font-size:19px;margin:0 0 30px}
.actions {display:flex;gap:12px;flex-wrap:wrap}
.btn {display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--accent);color:var(--bg);padding:12px 20px;border:1px solid transparent;border-radius:12px;font-weight:750;font-size:14px}
.btn:hover {transform:translateY(-2px)}
.btn-outline {background:transparent;color:var(--text);border-color:var(--line)}
.section {padding:45px 0 70px}
.section-head {display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:24px}
.section h2 {font-size:clamp(28px,4vw,37px);letter-spacing:-.04em;line-height:1.24;margin:0}
.section-desc,.muted {color:var(--muted)}
.section-desc {margin:10px 0 0;font-size:15px}
.all-link {color:var(--accent);font-weight:700;font-size:14px;white-space:nowrap}
.grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.card {padding:27px;border:1px solid var(--line);background:var(--surface);border-radius:20px;transition:transform .2s,border-color .2s;min-height:235px}
a.card:hover {transform:translateY(-4px);border-color:var(--accent)}
.card .eyebrow {color:var(--accent);font-size:12px;letter-spacing:.05em;font-weight:750;text-transform:uppercase;margin:0 0 12px}
.card h3 {font-size:21px;line-height:1.35;margin:0 0 10px;letter-spacing:-.025em}
.card p {color:var(--muted);font-size:14px;margin:0 0 22px}
.tag-row {display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}
.tag {border:1px solid var(--line);background:var(--surface2);font-size:12px;color:var(--muted);border-radius:99px;padding:3px 9px}
.note {border:1px solid var(--line);background:linear-gradient(120deg,var(--surface),var(--surface2));border-radius:22px;padding:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.note p {margin:0;color:var(--muted);font-size:15px}
.note h2 {margin-bottom:9px}
.site-footer {border-top:1px solid var(--line);padding:28px 0 46px;font-size:13px;color:var(--muted)}
.footer-inner {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.page-intro {padding:65px 0 36px}
.page-intro h1 {font-size:clamp(38px,6vw,59px);margin:13px 0}
.page-intro p {color:var(--muted);max-width:660px}
.list {display:grid;gap:14px;padding-bottom:70px}
.post-link {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 27px;background:var(--surface);border:1px solid var(--line);border-radius:17px}
.post-link:hover {border-color:var(--accent)}
.post-link h2 {font-size:19px;margin:0 0 4px;line-height:1.35}
.post-link p {color:var(--muted);font-size:14px;margin:0}
.post-link .date {font-size:13px;color:var(--muted);white-space:nowrap}
.article {max-width:780px;margin:0 auto;padding:60px 0 95px}
.article h1 {font-size:clamp(35px,6vw,55px)}
.article .meta {color:var(--muted);font-size:14px;margin-bottom:37px}
.article h2 {font-size:24px;margin-top:40px}
.article p,.article li {color:var(--muted)}
.article a:not(.btn) {color:var(--accent);text-decoration:underline}
.article code {font-size:.9em;background:var(--surface2);padding:2px 6px;border-radius:5px}
.article pre {overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px}
.article pre code {background:none;padding:0}
.article blockquote {border-left:3px solid var(--accent);padding-left:18px;margin-left:0;color:var(--muted)}
@media (max-width:800px) {.grid {grid-template-columns:repeat(2,minmax(0,1fr))}.hero {padding-top:68px}}
@media (max-width:560px) {.container {width:min(calc(100% - 32px),var(--max))}.nav {align-items:flex-start;padding:14px 0;flex-direction:column;gap:8px}.nav-links {gap:14px;flex-wrap:wrap}.hero {padding:58px 0 44px}.hero p {font-size:16px}.section {padding:27px 0 48px}.grid {grid-template-columns:1fr}.card {min-height:0}.note {align-items:flex-start;flex-direction:column;padding:24px}.section-head {align-items:flex-start;flex-direction:column}.post-link {align-items:flex-start;flex-direction:column}.page-intro {padding:48px 0 20px}}
@media (prefers-reduced-motion:reduce) {html {scroll-behavior:auto} *,*::before,*::after{transition:none!important}}
