/* 5loi.com inspired — DeepSeek 研究长卷
   Tokens from 5loi: --background #0a1628, --ink-blue #111e32, --gold #c9a962
   Content vs Framework: this file is the single visual source. Owner never touches it when adding papers.
*/
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css");

:root{
  --background:#0a1628;
  --foreground:#f5f0e8;
  --ink-blue:#111e32;
  --ink-cyan:#1a2e44;
  --gold:#c9a962;
  --gold-light:#e8d5a3;
  --bronze:#8b7355;
  --mist:#9ca3af;
  --ink-gray:#4b5563;
  --paper:#f5f0e8;
  --border-gold: rgba(201,169,98,0.12);
  --border-gold-hover: rgba(201,169,98,0.25);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"LXGW WenKai","LXGWWenKai",system-ui,"Noto Serif SC",serif;
  background:var(--background);
  color:var(--foreground);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* serene ink background */
body::before{
  content:"";position:fixed;inset:0;z-index:-1;
  background:rgba(10,22,40,0.96);
  pointer-events:none;
}
.ink-wash{
  position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.35;
  background:
    radial-gradient(800px 600px at 15% 20%, rgba(201,169,98,0.06), transparent 60%),
    radial-gradient(600px 500px at 85% 70%, rgba(26,46,68,0.4), transparent 60%);
}

/* header */
header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  transition:all .5s;
}
header.scrolled{background:rgba(10,22,40,0.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border-gold)}
.header-inner{max-width:80rem;margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none}
.brand-icon{width:40px;height:40px;border-radius:999px;border:1px solid rgba(201,169,98,0.3);overflow:hidden;position:relative;background:rgba(17,30,50,0.5)}
.brand-icon img{width:100%;height:100%;object-fit:cover}
.brand-text{display:flex;flex-direction:column}
.brand-title{font-family:"Cormorant Garamond",serif;font-size:1.25rem;letter-spacing:.08em;color:var(--gold);font-weight:300}
.brand-sub{font-size:.65rem;letter-spacing:.2em;color:rgba(245,240,232,.5)}
.nav{display:flex;gap:2rem;align-items:center}
.nav a{font-size:.85rem;letter-spacing:.12em;color:rgba(245,240,232,.7);text-decoration:none;position:relative}
.nav a:hover{color:var(--gold)}
.link-gold{position:relative}
.link-gold::after{content:"";position:absolute;left:0;bottom:-3px;width:0;height:1px;background:var(--gold);transition:width .4s cubic-bezier(.25,.46,.45,.94)}
.link-gold:hover::after{width:100%}
.mobile-btn{display:none;background:none;border:none;color:rgba(245,240,232,.7);cursor:pointer}

/* vertical text & seal */
.vertical-text{writing-mode:vertical-rl;text-orientation:mixed;font-size:.7rem;letter-spacing:.5em;color:rgba(201,169,98,.32)}
.seal{display:inline-flex;align-items:center;justify-content:center;border:2px solid rgba(201,169,98,.6);color:var(--gold);font-family:"Noto Serif SC",serif;padding:.35rem .6rem;line-height:1;letter-spacing:.35em;font-size:.75rem;transform:rotate(0deg)}

/* container */
.container{max-width:80rem;margin:0 auto;padding:0 1.5rem}
@media(min-width:1024px){.container{padding:0 2rem}}

/* hero */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden;padding-top:64px}
.hero-grid{display:grid;gap:4rem;width:100%}
@media(min-width:1024px){.hero-grid{grid-template-columns:repeat(12,minmax(0,1fr));align-items:center}}
.hero-left{grid-column:span 7}
.hero-right{grid-column:span 5}
.hero-kicker{display:inline-flex;align-items:center;gap:.75rem;margin-bottom:2rem}
.hero-kicker i{display:block;width:3rem;height:1px;background:rgba(201,169,98,.4)}
.hero-kicker span{font-size:.75rem;letter-spacing:.3em;color:rgba(201,169,98,.7)}
.hero h1{
  font-family:"Noto Serif SC","LXGW WenKai",serif;
  font-weight:300;line-height:1.35;letter-spacing:.05em;color:var(--gold-light);
  font-size:1.9rem;margin-bottom:1.8rem
}
@media(min-width:640px){.hero h1{font-size:2.6rem}}
@media(min-width:1024px){.hero h1{font-size:3.2rem}}
.hero h1 em{font-style:normal;color:var(--gold);position:relative}
.hero h1 em::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:linear-gradient(90deg,rgba(201,169,98,.4),transparent);transform-origin:left}
.hero p{max-width:36rem;color:rgba(245,240,232,.72);font-size:1rem;line-height:1.9;margin-bottom:2.5rem}
@media(min-width:640px){.hero p{font-size:1.08rem}}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.btn-gold{
  display:inline-flex;align-items:center;gap:.7rem;
  padding:1rem 2rem;border:1px solid rgba(201,169,98,.5);
  background:rgba(201,169,98,.1);color:var(--gold);
  font-size:.8rem;letter-spacing:.18em;text-decoration:none;
  transition:all .5s;
}
.btn-gold:hover{background:rgba(201,169,98,.2);box-shadow:0 0 30px rgba(201,169,98,.15)}
.btn-ghost{display:inline-flex;align-items:center;padding:1rem 2rem;color:rgba(201,169,98,.7);font-size:.8rem;letter-spacing:.12em;text-decoration:none}
.btn-ghost:hover{color:var(--gold)}

/* hero card (此刻) — like 5loi's frosted */
.frosted{
  position:relative;overflow:hidden;
  background:rgba(17,30,50,0.45);
  border:1px solid rgba(201,169,98,.12);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  box-shadow:0 4px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.05);
  padding:2rem;
  transition:border-color .6s, box-shadow .6s;
}
.frosted:hover{border-color:rgba(201,169,98,.25);box-shadow:0 8px 50px rgba(0,0,0,.3), 0 0 30px rgba(201,169,98,.06), inset 0 1px 0 rgba(255,255,255,.08)}
.frosted::before,.frosted::after{content:"";position:absolute;width:48px;height:48px;border-color:rgba(201,169,98,.18);border-style:solid}
.frosted::before{top:16px;right:16px;border-width:1px 1px 0 0}
.frosted::after{bottom:16px;left:16px;border-width:0 0 1px 1px}
.frosted-label{font-size:.65rem;letter-spacing:.3em;color:var(--bronze);margin-bottom:1.2rem}
.frosted ul{list-style:none;display:flex;flex-direction:column;gap:.9rem}
.frosted li{font-size:.92rem;color:rgba(245,240,232,.82);line-height:1.7}
.frosted-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(201,169,98,.1);margin-top:1.5rem;padding-top:1rem}
.frosted-foot span:first-child{font-size:.7rem;color:rgba(201,169,98,.45);letter-spacing:.15em}
.frosted-foot span:last-child{font-family:"Cormorant Garamond",serif;font-size:1.4rem;color:rgba(201,169,98,.55)}

/* stats — like bench */
.bench{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:rgba(201,169,98,.08);border:1px solid rgba(201,169,98,.08);margin-top:2.5rem}
@media(min-width:768px){.bench{grid-template-columns:repeat(4,1fr)}}
.bench-item{background:rgba(17,30,50,.35);padding:1.4rem;text-align:center}
.bench-num{font-family:"Cormorant Garamond",serif;font-weight:300;font-size:2.2rem;color:var(--gold-light);line-height:1}
.bench-label{font-size:.68rem;letter-spacing:.15em;color:var(--mist);margin-top:.4rem}

/* sections */
.section{padding:5rem 0}
@media(min-width:1024px){.section{padding:7rem 0}}
.section-grid{display:grid;gap:3rem}
@media(min-width:1024px){.section-grid{grid-template-columns:320px 1fr}}
.sticky-col{position:relative}
@media(min-width:1024px){.sticky-col{position:sticky;top:96px;align-self:start}}
.kicker{font-size:.68rem;letter-spacing:.3em;color:rgba(201,169,98,.7);margin-bottom:.8rem}
.section h2{font-family:"Noto Serif SC",serif;font-weight:300;line-height:1.2;font-size:1.9rem;color:var(--gold-light);margin-bottom:1rem}
@media(min-width:640px){.section h2{font-size:2.4rem}}
.divider{width:6rem;height:1px;background:linear-gradient(90deg,rgba(201,169,98,.5),transparent);margin-bottom:1.2rem}
.section-desc{color:rgba(245,240,232,.55);line-height:1.8;font-size:.92rem;max-width:28rem}

/* lab cards */
.lab-cards{display:grid;gap:1.5rem}
.lab-card{position:relative}
.lab-card .frosted{padding:2rem}
.lab-number{position:absolute;right:1rem;top:-.2rem;font-family:"Cormorant Garamond",serif;font-weight:300;font-size:5rem;line-height:1;color:rgba(201,169,98,.05);pointer-events:none}
.lab-topbar{position:absolute;left:0;top:0;right:0;height:2px;background:rgba(26,46,68,.6)}
.lab-topbar i{display:block;height:100%;background:linear-gradient(90deg,rgba(201,169,98,.6),var(--gold));width:0;transition:width 1.2s}
.lab-card:hover .lab-topbar i{width:100%}
.lab-icon{width:48px;height:48px;border-radius:999px;border:1px solid rgba(201,169,98,.22);background:rgba(201,169,98,.05);display:flex;align-items:center;justify-content:center;color:var(--gold);margin-bottom:1rem}
.lab-phase{font-family:"Cormorant Garamond",serif;font-size:.8rem;letter-spacing:.12em;color:var(--bronze);margin-bottom:.3rem}
.lab-title{font-size:1.25rem;color:var(--gold-light);margin-bottom:.25rem}
.lab-sub{font-size:.82rem;color:rgba(201,169,98,.6);letter-spacing:.06em;margin-bottom:.8rem}
.lab-desc{font-size:.9rem;color:rgba(245,240,232,.6);line-height:1.8;margin-bottom:1.2rem}
.lab-link{display:inline-flex;align-items:center;gap:.4rem;color:var(--gold);font-size:.85rem;text-decoration:none}
.lab-link::after{content:"↗";font-size:.75rem;transition:transform .3s}
.lab-card:hover .lab-link::after{transform:translateX(3px)}

/* filters — pill */
.filter-bar{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.8rem 0 2rem;align-items:center}
.filter-group{display:flex;flex-wrap:wrap;gap:.4rem}
.pill{
  padding:.45rem .95rem;border-radius:999px;
  border:1px solid rgba(201,169,98,.15);
  background:transparent;color:rgba(245,240,232,.55);
  font-size:.78rem;cursor:pointer;transition:all .25s;
  font-family:inherit;
}
.pill:hover{border-color:rgba(201,169,98,.3);color:var(--gold-light)}
.pill.active{background:rgba(201,169,98,.12);border-color:rgba(201,169,98,.5);color:var(--gold)}
.search-wrap{flex:1;min-width:240px;position:relative}
.search-wrap input{
  width:100%;padding:.6rem 1rem .6rem 2.4rem;
  background:rgba(17,30,50,.5);border:1px solid rgba(201,169,98,.12);
  color:var(--foreground);font-size:.9rem;outline:none;
  font-family:inherit;
}
.search-wrap input::placeholder{color:rgba(156,163,175,.5)}
.search-wrap input:focus{border-color:rgba(201,169,98,.35)}
.search-wrap svg{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:rgba(156,163,175,.45)}

/* paper grid — as scroll-like cards */
.papers{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1rem}
.paper{
  position:relative;background:rgba(17,30,50,.38);
  border:1px solid rgba(201,169,98,.1);
  backdrop-filter:blur(12px);padding:1.6rem 1.5rem;
  cursor:pointer;transition:all .4s;
  display:flex;flex-direction:column;
}
.paper:hover{border-color:rgba(201,169,98,.22);background:rgba(17,30,50,.6);transform:translateY(-2px)}
.paper-num{font-family:"Cormorant Garamond",serif;font-size:.75rem;letter-spacing:.12em;color:rgba(201,169,98,.38);margin-bottom:.9rem}
.paper-title{font-size:1rem;line-height:1.5;color:var(--gold-light);margin-bottom:.6rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.paper-summary{font-size:.86rem;color:rgba(245,240,232,.52);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:1rem;flex:1}
.paper-meta{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.9rem}
.tag{font-size:.68rem;letter-spacing:.06em;padding:.2rem .55rem;background:rgba(201,169,98,.1);border:1px solid rgba(201,169,98,.14);color:var(--gold)}
.paper-foot{display:flex;gap:.5rem;flex-wrap:wrap}
.mini-link{font-size:.75rem;color:rgba(245,240,232,.55);text-decoration:none;border:1px solid rgba(201,169,98,.12);padding:.3rem .6rem;transition:all .2s}
.mini-link:hover{color:var(--gold);border-color:rgba(201,169,98,.28)}
.empty{padding:3rem;text-align:center;color:var(--mist);border:1px dashed rgba(201,169,98,.15)}

/* timeline — vertical ink line with gold dots */
.timeline{position:relative;padding-left:1.8rem}
.timeline::before{content:"";position:absolute;left:0;top:.5rem;bottom:.5rem;width:1px;background:rgba(201,169,98,.14)}
.tl-group{margin-bottom:2.2rem}
.tl-group-title{font-family:"Cormorant Garamond",serif;font-size:1rem;color:var(--gold);margin-bottom:1rem;letter-spacing:.04em}
.tl-item{position:relative;padding:.9rem 0;cursor:pointer;border-bottom:1px solid rgba(201,169,98,.06)}
.tl-item::before{content:"";position:absolute;left:-1.85rem;top:1.2rem;width:7px;height:7px;border-radius:50%;background:var(--mist);border:2px solid var(--background);transition:background .3s}
.tl-item:hover::before{background:var(--gold)}
.tl-date{font-size:.75rem;color:var(--mist);margin-bottom:.2rem}
.tl-title{font-size:.95rem;color:var(--gold-light)}
.tl-desc{font-size:.82rem;color:rgba(245,240,232,.5)}
.tl-item:hover .tl-title{color:var(--gold)}

/* news list */
.news{display:grid;gap:1px;background:rgba(201,169,98,.08);border:1px solid rgba(201,169,98,.08)}
.news-item{padding:1.2rem 1.4rem;background:rgba(17,30,50,.42);display:flex;justify-content:space-between;gap:1rem;align-items:center;transition:background .2s}
.news-item:hover{background:rgba(17,30,50,.6)}
.news-date{font-size:.75rem;color:var(--mist);margin-bottom:.2rem}
.news-title{font-size:.92rem;color:rgba(245,240,232,.85)}
.news a{color:var(--gold);font-size:.82rem;text-decoration:none;white-space:nowrap}
.news a:hover{opacity:.75}

/* steps */
.steps{display:grid;gap:1px;background:rgba(201,169,98,.08);border:1px solid rgba(201,169,98,.08)}
.step{padding:1.2rem 1.4rem;background:rgba(17,30,50,.38);display:flex;gap:1rem;align-items:flex-start}
.step-n{width:32px;height:32px;border-radius:.5rem;background:rgba(201,169,98,.12);color:var(--gold);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;flex-shrink:0}
.step-title{font-size:.92rem;color:var(--gold-light);margin-bottom:.2rem}
.step-desc{font-size:.82rem;color:rgba(245,240,232,.55)}
.step code{display:block;margin-top:.6rem;padding:.6rem .8rem;background:rgba(0,0,0,.35);border:1px solid rgba(201,169,98,.08);color:var(--gold-light);font-family:"SF Mono","Fira Code",monospace;font-size:.78rem;overflow:auto}

/* footer */
footer{border-top:1px solid rgba(201,169,98,.1);padding:2.5rem 0;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-left{font-size:.82rem;color:rgba(156,163,175,.7)}
.footer-left strong{color:var(--gold);font-weight:500}
.footer-links{display:flex;gap:1.2rem}
.footer-links a{font-size:.82rem;color:rgba(156,163,175,.6);text-decoration:none}
.footer-links a:hover{color:var(--gold)}

/* Drawer — replaces modal, like opening a scroll */
.drawer{
  position:fixed;inset:0;z-index:80;display:none;
}
.drawer.open{display:block}
.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(6px)}
.drawer-panel{
  position:absolute;top:0;right:0;height:100%;width:min(860px,100%);
  background:#0e1b2f;border-left:1px solid rgba(201,169,98,.15);
  overflow:auto;transform:translateX(100%);transition:transform .45s cubic-bezier(.25,.46,.45,.94);
  box-shadow:-20px 0 60px rgba(0,0,0,.4);
}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{position:sticky;top:0;z-index:2;background:rgba(14,27,47,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(201,169,98,.12);padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between}
.drawer-close{width:36px;height:36px;border-radius:.5rem;border:1px solid rgba(201,169,98,.15);background:rgba(255,255,255,.03);color:rgba(245,240,232,.6);font-size:1.2rem;cursor:pointer}
.drawer-close:hover{background:rgba(255,255,255,.06);color:var(--gold-light)}
.drawer-body{padding:2rem}
.drawer-title{font-family:"Noto Serif SC",serif;font-weight:500;font-size:1.45rem;color:var(--gold-light);line-height:1.4;margin-bottom:.8rem}
.drawer-meta{display:flex;flex-wrap:wrap;gap:1rem;font-size:.82rem;color:var(--mist);margin-bottom:1.2rem}
.drawer-meta span{display:inline-flex;align-items:center;gap:.3rem}
.drawer-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.2rem 0 1.8rem}
.drawer-actions a{padding:.5rem .9rem;border:1px solid rgba(201,169,98,.2);color:rgba(245,240,232,.7);text-decoration:none;font-size:.82rem;transition:all .2s}
.drawer-actions a.primary{background:rgba(201,169,98,.14);color:var(--gold);border-color:rgba(201,169,98,.35)}
.drawer-actions a:hover{border-color:rgba(201,169,98,.4);color:var(--gold-light)}

/* md content — reading experience like 5loi long scroll */
.md{line-height:1.9;color:rgba(245,240,232,.75);font-size:.95rem}
.md h1{font-family:"Noto Serif SC",serif;font-size:1.5rem;color:var(--gold-light);margin:2.2rem 0 .8rem;padding-bottom:.6rem;border-bottom:1px solid rgba(201,169,98,.12)}
.md h2{font-family:"Noto Serif SC",serif;font-size:1.2rem;color:var(--gold-light);margin:2rem 0 .7rem}
.md h3{font-size:1.02rem;color:var(--foreground);margin:1.6rem 0 .5rem}
.md p{margin-bottom:1rem}
.md strong{color:var(--gold-light);font-weight:600}
.md ul,.md ol{margin:0 0 1rem 1.2rem}
.md li{margin-bottom:.35rem}
.md li::marker{color:rgba(201,169,98,.6)}
.md a{color:var(--gold);text-decoration:none;border-bottom:1px solid transparent}
.md a:hover{border-bottom-color:var(--gold)}
.md code{font-family:"SF Mono","Fira Code",monospace;font-size:.85em;background:rgba(201,169,98,.1);padding:.15rem .4rem;border-radius:.25rem;color:var(--gold-light)}
.md pre{background:rgba(0,0,0,.35);border:1px solid rgba(201,169,98,.08);padding:1rem;border-radius:.5rem;overflow:auto;margin:1rem 0}
.md pre code{background:none;padding:0}
.md blockquote{border-left:2px solid var(--gold);padding:.6rem 1rem;margin:1rem 0;background:rgba(201,169,98,.06);color:rgba(245,240,232,.65);font-style:italic}
.md table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.88rem}
.md th,.md td{padding:.55rem .7rem;border-bottom:1px solid rgba(201,169,98,.1);text-align:left}
.md th{color:var(--gold-light);font-weight:600}
.md hr{border:none;border-top:1px solid rgba(201,169,98,.12);margin:1.8rem 0}
.md-toc{border:1px solid rgba(201,169,98,.1);background:rgba(17,30,50,.4);padding:1rem 1.2rem;margin-bottom:1.5rem}
.md-toc-title{font-size:.78rem;letter-spacing:.15em;color:var(--bronze);margin-bottom:.6rem}
.md-toc a{font-size:.82rem;color:rgba(245,240,232,.6);display:block;padding:.2rem 0}
.md-toc a:hover{color:var(--gold)}
.md-toc a.lv2{padding-left:.8rem}
.md-toc a.lv3{padding-left:1.6rem}

/* entrance reveal like 5loi blur */
.reveal{opacity:0;filter:blur(8px);transform:translateY(12px);transition:all .8s}
.reveal.in{opacity:1;filter:blur(0);transform:translateY(0)}

/* responsive */
@media(max-width:768px){
  .header-inner{padding:0 1rem}
  .nav{display:none}
  .mobile-btn{display:block}
  .container{padding:0 1rem}
  .hero{padding-top:5rem}
  .frosted{padding:1.4rem}
  .papers{grid-template-columns:1fr}
  .drawer-panel{width:100%}
  .vertical-text{display:none}
}
