:root{
  --bg:#f7fafc;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --accent:#2563eb;
  --accent2:#06b6d4;
  --border:rgba(15,23,42,.12);
}

html,body{height:100%}
body{margin:0;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg, rgba(37,99,235,.06), transparent 35%), var(--bg);color:var(--text)}
a{color:inherit}
.container{max-width:1160px;margin:0 auto;padding:0 16px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.header{position:sticky;top:0;z-index:10;background:rgba(247,250,252,.92);backdrop-filter:saturate(1.2) blur(10px);border-bottom:1px solid var(--border)}
.head-row{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:14px 0}
#logo a{display:inline-block;font-weight:900;text-decoration:none;padding:10px 12px;border-radius:14px;background:rgba(37,99,235,.10)}
.tagline{flex:1;min-width:0;color:var(--muted)}
.head-ads{min-width:180px;max-width:380px}

.stage{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;padding:16px}

.timeline .container{position:relative}
.spine{position:absolute;left:18px;top:0;bottom:0;width:2px;background:linear-gradient(180deg, rgba(37,99,235,.18), rgba(6,182,212,.18))}
.card{background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(15,23,42,.08);position:relative;margin-left:18px}
.card:before{content:"";position:absolute;left:-10px;top:22px;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px rgba(37,99,235,.12)}

.rail-right{position:sticky;top:78px;height:fit-content}
.rail-inner{background:rgba(255,255,255,.78);border:1px solid var(--border);border-radius:18px;padding:12px;backdrop-filter:saturate(1.2) blur(10px)}
.rail-title{font-weight:900;margin-bottom:8px}
.rail-right ul{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:6px}
.rail-right a{display:block;padding:10px 10px;border-radius:12px;text-decoration:none}
.rail-right li.active a{background:rgba(6,182,212,.14);font-weight:900}
.rail-slot{border:1px dashed rgba(15,23,42,.24);border-radius:16px;padding:10px;background:#fff}

#footer{border-top:1px solid var(--border);padding:16px 0;background:rgba(255,255,255,.70)}
#footer .social{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
#footer .social a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;border:1px solid var(--border);background:#fff}
#footer p{margin:0;color:var(--muted)}

@media (max-width: 980px){
  .stage{grid-template-columns:1fr}
  .head-ads{display:none}
  .rail-right{position:relative;top:auto}
}
