/* =========================
   Theme & Base
========================= */
:root{
  --fg:#0e1324; --sub:#647084;
  --green:#22c55e; --blue:#2448d8;
  --paper:#f7fbff; --line:#e6edf3;
  --r:18px; --shadow:0 14px 36px rgba(3,7,18,.08);
  --w:820px; /* 宽度稍加大，提升阅读 */
  --board:#0b1220; --chalk:#e3f6ec;
  --rise:#16a34a; --fall:#dc2626;
  --space:18px;
}

*,*:before,*:after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--fg);
  background:
    radial-gradient(140% 120% at 8% -10%, #eef4ff 0%, #fff 65%) no-repeat,
    #fff;
  font:16px/1.7 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{color:#1f3fa6;text-decoration:none}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid rgba(36,72,216,.35); outline-offset:2px}
.note{color:var(--sub);font-size:13px}
.center{text-align:center;margin:20px 0 88px}
.lead{font-size:17px}
.mt-6{margin-top:6px}

/* 全局间距：让段落/标题呼吸更顺畅 */
:where(h1,h2,h3,p,.list,.chips,.actions){margin-block:12px}
.h2{font-size:20px;margin-bottom:8px}

/* 容器与卡片 */
.container{max-width:var(--w);margin:0 auto;padding:20px; padding-bottom:96px}
.panel{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:22px;
  margin:14px 0;
}

/* Hero */
.hero{position:relative;overflow:hidden;isolation:isolate}
.pill{
  display:inline-block;padding:4px 10px;border-radius:999px;
  font-weight:800;font-size:12px;background:#e9f8ef;border:1px solid #d7f1e2;color:#0a5a2d
}
.hero-title{font-size:clamp(22px,4.4vw,34px);letter-spacing:.2px;margin:10px 0 6px}
.decor{
  position:absolute;right:-28px;bottom:-46px;width:310px;opacity:.16;z-index:-1;
  pointer-events:none
}

/* Buttons */
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn{
  appearance:none;border:1px solid transparent;border-radius:999px;
  padding:12px 18px;font-weight:800;display:inline-block;text-align:center;
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease, background .14s ease, border-color .14s ease
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{box-shadow:var(--shadow);filter:brightness(.96)}
.btn-primary:focus{outline:2px solid rgba(34,197,94,.35);outline-offset:2px}
.btn-ghost{
  background:#fff;border-color:#dfe7ef;color:#0e1324
}
.btn-ghost:hover{background:#f7fbff}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{
  font-size:12px;padding:5px 10px;border-radius:999px;
  background:#f1f5f9;border:1px solid #e2e8f0; white-space:nowrap
}

/* Demo ticker */
.strip{
  position:relative;
  background:var(--board);color:var(--chalk);
  border:1px solid rgba(255,255,255,.06);border-radius:12px;
  padding:8px 10px;overflow:hidden;
  /* 两端渐隐，避免硬切 */
  -webkit-mask-image:linear-gradient(90deg,transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.row{display:flex;gap:24px;white-space:nowrap;animation:slide 26s linear infinite;will-change:transform}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.q{display:flex;gap:10px;align-items:baseline;font-variant-numeric:tabular-nums}
.q .t{opacity:.85;font-weight:800}
.q .z.up{color:var(--rise);font-weight:800}
.q .z.down{color:var(--fall);font-weight:800}

/* 减少动效用户：停掉滚动动画 */
@media (prefers-reduced-motion: reduce){
  .row{animation:none;transform:none}
}

/* List / OL */
.list{display:grid;gap:10px}
.list.bulleted > div{position:relative;padding-left:1.1em}
.list.bulleted > div:before{
  content:"•";position:absolute;left:0;top:0;color:#93a3b8
}
.ol{margin:8px 0 0 18px}
.ol.tight li{margin:6px 0}

/* About：移动端上下排，桌面左右分栏 */
.about{display:block}
.about.grid{
  display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:start
}
.about .ph{
  width:96px;height:96px;border-radius:50%;overflow:hidden;border:1px solid var(--line);margin:4px 0
}
.about-text p{margin-top:6px}
@media(min-width:680px){
  .about.grid{
    grid-template-columns:128px 1fr;gap:18px
  }
  .about .ph{width:128px;height:128px}
}

/* Sticky dock（适配 iOS 安全区） */
.bar{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:rgba(255,255,255,.93);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom);
}
.bar-inner{
  max-width:var(--w);margin:0 auto;padding:10px 14px;
  display:flex;align-items:center;justify-content:space-between;gap:12px
}

/* 小增强：卡片 hover 更有层次（桌面） */
@media (hover:hover){
  .panel:hover{box-shadow:0 18px 44px rgba(3,7,18,.10)}
}

/* === Additions for re-launch (policy-safe, high CTR) === */

/* Optional: subtle red/green diagonal stock-line background (toggle with .bg-lines on body) */
.bg-lines{
  --bg1: rgba(34,197,94,.08);  /* green */
  --bg2: rgba(220,38,38,.08);  /* red */
  background:
    linear-gradient(120deg, var(--bg1) 0 2px, transparent 2px 48px, var(--bg2) 48px 50px, transparent 50px 98px),
    radial-gradient(140% 120% at 8% -10%, #eef4ff 0%, #fff 65%) no-repeat, #fff;
  background-size: 100px 100px, auto, auto;
}

.hero .badge{
  display:inline-flex;align-items:center;gap:6px;
  font-weight:700;font-size:12px;border-radius:999px;
  padding:4px 10px;background:#f8fafc;border:1px solid #e2e8f0;color:#0b1220
}
.hero .badge svg{width:14px;height:14px;opacity:.7}

/* Safer footer disclaimers */
.footer-legal{font-size:12px;color:var(--sub);line-height:1.6}
.footer-legal a{color:inherit;text-decoration:underline}

/* Cookie-lite banner (non-intrusive, no tracking until accept) */
.cookie{
  position:fixed;left:14px;right:14px;bottom:14px;z-index:50;
  background:#0b1220;color:#e5e7eb;border-radius:14px;padding:14px;border:1px solid #1f2937;
  box-shadow:0 18px 44px rgba(3,7,18,.25)
}
.cookie p{margin:0 0 10px 0;font-size:14px}
.cookie .actions{margin:0;gap:8px}
.cookie .btn{padding:10px 14px}
.cookie .btn-ghost{background:transparent;border-color:#374151;color:#e5e7eb}
/* === Mentor / About Avatar Styles === */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.about .ph {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
}

.about .ph .avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  color: #0b1220;
  line-height: 1.6;
}

.about-text strong {
  font-size: 18px;
  font-weight: 600;
}

.about-text .note {
  font-size: 14px;
  color: #6b7280;
}

.about-text .chips {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about .ph {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}
