
:root{
  --bg:#f4fbfb;
  --surface:#ffffff;
  --surface-soft:#f7fcfc;
  --text:#183337;
  --muted:#718486;
  --accent:#18aaa3;
  --accent-dark:#108b86;
  --accent-soft:#e2f7f5;
  --border:#e4eeee;
  --shadow:0 5px 24px rgba(25,91,94,.055);
  --radius:14px;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:linear-gradient(180deg,#eaf9f8 0,#f5fbfb 260px,#fff 620px);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;
  line-height:1.78;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed;
  z-index:-1;
  width:360px;height:360px;
  left:-220px;top:-220px;
  border-radius:50%;
  background:rgba(70,210,201,.16);
  filter:blur(70px);
  pointer-events:none;
}
a{color:inherit;text-decoration:none}
.container{width:min(860px,calc(100% - 34px));margin-left:auto;margin-right:auto}

/* Header */
.site-header{
  position:sticky;
  top:12px;
  z-index:20;
  width:min(860px,calc(100% - 24px));
  margin:12px auto 0;
  border:1px solid rgba(21,112,111,.09);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 4px 18px rgba(24,87,90,.06);
}
.nav{
  height:54px;
  display:flex;
  align-items:center;
  padding:0 15px;
}
.brand{
  font-size:17px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.035em;
}
.brand span{color:var(--accent)}
.nav nav{margin-left:auto;display:flex;gap:3px}
.nav nav a{
  padding:7px 10px;
  border-radius:9px;
  color:#60777a;
  font-size:13px;
  transition:color .22s var(--ease),background .22s var(--ease),transform .22s var(--ease);
}
.nav nav a:hover{
  color:var(--accent-dark);
  background:var(--accent-soft);
  transform:translateY(-1px);
}

/* Home */
.hero{
  padding:70px 2px 34px;
  animation:fadeUp .55s var(--ease) both;
}
.hero small{
  color:var(--accent-dark);
  font-size:10px;
  font-weight:800;
  letter-spacing:.17em;
}
.hero h1{
  max-width:720px;
  margin:9px 0 10px;
  font-size:clamp(34px,6vw,50px);
  line-height:1.13;
  letter-spacing:-.055em;
}
.hero p{
  max-width:560px;
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.post-card{
  padding:20px 21px;
  margin:10px 0;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease);
  animation:fadeUp .5s var(--ease) both;
}
.post-card:hover{
  transform:translateY(-2px);
  border-color:#d3e9e8;
  box-shadow:0 10px 32px rgba(25,91,94,.08);
}
.post-card h2{
  margin:6px 0 4px;
  font-size:19px;
  line-height:1.45;
  letter-spacing:-.025em;
}
.post-card h2 a{transition:color .2s var(--ease)}
.post-card:hover h2 a{color:var(--accent-dark)}
.post-card p{margin:0;color:var(--muted);font-size:13px}
.post-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:#7b8e90;
  font-size:11px;
}
.post-meta span{
  padding:1px 7px;
  border-radius:999px;
  color:var(--accent-dark);
  background:var(--accent-soft);
}

/* Article */
.article-page{
  padding-top:66px;
  padding-bottom:90px;
}
.article-page article{
  max-width:760px;
  margin:0 auto;
  animation:fadeUp .55s var(--ease) both;
}
.article-page h1{
  margin:11px 0 14px;
  font-size:clamp(32px,6vw,50px);
  line-height:1.14;
  letter-spacing:-.05em;
}
.lead{
  margin:0 0 30px;
  color:var(--muted);
  font-size:16px;
}
.article-page article h2{
  margin:42px 0 14px;
  font-size:25px;
  line-height:1.35;
  letter-spacing:-.035em;
}
.article-page article h3{
  margin:30px 0 10px;
  font-size:20px;
}
.article-page article p,
.article-page article ul,
.article-page article ol{
  margin:1em 0;
}
.article-page article a{
  color:var(--accent-dark);
  text-decoration:underline;
  text-decoration-color:rgba(16,139,134,.25);
  text-underline-offset:4px;
}
.article-page article blockquote{
  margin:25px 0;
  padding:8px 16px;
  border-left:3px solid #51cfc7;
  border-radius:0 10px 10px 0;
  background:#f0fbfa;
  color:#61787a;
}
.article-page article pre{
  margin:24px 0;
  padding:17px;
  overflow:auto;
  border-radius:12px;
  background:#193438;
  color:#edffff;
  font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
}
.article-page article code{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
}
.article-page article :not(pre)>code{
  padding:2px 5px;
  border-radius:5px;
  color:#167d79;
  background:#e9f8f7;
}
.math{
  overflow:auto;
  padding:10px 0;
}
.katex-display{overflow:auto;overflow-y:hidden}
.footer{
  padding:20px 0 40px;
  color:#849395;
  font-size:11px;
  text-align:center;
}

/* Animations */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:640px){
  .container{width:calc(100% - 22px)}
  .site-header{top:8px;margin-top:8px}
  .nav{height:50px;padding:0 11px}
  .nav nav a{padding:6px 8px}
  .hero{padding-top:50px}
  .hero h1{font-size:35px}
  .post-card{padding:18px 17px}
  .article-page{padding-top:48px}
  .article-page article{max-width:none}
  .article-page h1{font-size:34px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}
