/* ========================================
   上岸研练营 · Notion 风格设计系统
   参考 web-design-engineer notion-pre-ai.md
   ======================================== */

/* === 主题色 === */
:root {
  --bg: #ffffff;
  --surface: #f7f6f3;
  --surface-hover: #efeeeb;
  --ink: #1f2937;
  --ink-secondary: #6b7280;
  --ink-tertiary: #9ca3af;
  --border: #e9e9e7;
  --border-light: #f0f0ee;
  --brand: #059669;
  --brand-dark: #047857;
  --brand-light: #ecfdf5;
  --brand-accent: #3b82f6;
  --brand-accent-light: #dbeafe;
  --brand-warm: #f59e0b;
  --brand-warm-light: #fef3c7;
  --font-sans: 'Inter', 'PingFang SC', -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, 'Songti SC', serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(15,15,15,0.06);
  --shadow-lg: 0 8px 25px rgba(15,15,15,0.08);
  --max-w: 780px;
}

/* === Reset === */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font-sans);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.6}

/* === 容器 === */
.notion-wrap{max-width:var(--max-w);margin:0 auto;padding:0 24px}

/* === Header === */
.notion-hd{display:flex;align-items:center;justify-content:space-between;padding:20px 0 12px;margin-bottom:40px;border-bottom:1px solid var(--border)}
.notion-hd .lg{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;color:var(--ink);text-decoration:none}
.notion-hd .lg svg{width:auto;height:24px;color:var(--ink)}
.notion-hd .nv{display:flex;gap:20px;font-size:13px}
.notion-hd .nv a{color:var(--ink-secondary);text-decoration:none;cursor:pointer;transition:color .15s}
.notion-hd .nv a:hover{color:var(--ink)}
.notion-hd .nv a.cur{color:var(--ink);font-weight:600}

/* === 通用按钮 === */
.btn-pri{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border-radius:var(--radius-md);background:var(--ink);color:#fff;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:all .2s cubic-bezier(.4,0,.2,1);text-decoration:none}
.btn-pri:hover{background:#2b2924;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.btn-pri:active{transform:translateY(0)}
.btn-pri.loading{opacity:0.7;pointer-events:none}
.btn-pri.loading::after{content:'';display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}

.btn-sec{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border-radius:var(--radius-md);background:transparent;color:var(--ink);font-size:13px;font-weight:500;cursor:pointer;border:1px solid var(--border);transition:all .2s cubic-bezier(.4,0,.2,1);text-decoration:none}
.btn-sec:hover{background:var(--surface);border-color:#d1d0cd;transform:translateY(-1px)}
.btn-sec:active{transform:translateY(0)}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}

/* 进场动画 */
.fade-in{animation:fadeIn .35s cubic-bezier(.16,1,.3,1) both}
.slide-up{animation:slideUp .4s cubic-bezier(.16,1,.3,1) both}

/* 分步进场延迟 */
.delay-1{animation-delay:.05s}
.delay-2{animation-delay:.1s}
.delay-3{animation-delay:.15s}
.delay-4{animation-delay:.2s}

/* === Notion Block === */
.n-block{border-radius:var(--radius-md);background:var(--surface);padding:20px 24px;margin-bottom:6px;transition:all .2s cubic-bezier(.4,0,.2,1);cursor:default}
.n-block:hover{background:var(--surface-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.n-block-row{display:flex;align-items:flex-start;gap:14px}
.n-block-icon{width:40px;height:40px;border-radius:var(--radius-md);background:var(--border-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.n-block-icon svg{width:20px;height:20px;stroke:var(--brand);stroke-width:1.8;fill:none}
.n-block-content{flex:1;min-width:0;padding-top:8px}
.n-block-title{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:2px}
.n-block-desc{font-size:13px;color:var(--ink-secondary);line-height:1.5}

/* === Section Header === */
.n-sec-hd{display:flex;align-items:center;gap:10px;margin-bottom:14px;margin-top:40px}
.n-sec-hd .sw{width:28px;height:28px;border-radius:var(--radius-sm);background:var(--border-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.n-sec-hd .sw svg{width:16px;height:16px;stroke:var(--brand);stroke-width:1.8;fill:none}
.n-sec-hd h2{font-size:16px;font-weight:600;color:var(--ink)}
.n-sec-hd .more{margin-left:auto;font-size:12px;color:var(--brand);font-weight:600;cursor:pointer;transition:color .15s;text-decoration:none}
.n-sec-hd .more:hover{color:var(--brand-dark)}

/* === Stats === */
.n-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:40px;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--border)}
.n-stat{padding:20px 16px;text-align:center;border-right:1px solid var(--border);background:#fafaf9}
.n-stat:last-child{border-right:none}
.n-stat .num{font-family:var(--font-serif);font-size:28px;font-weight:900;color:var(--brand);line-height:1.2}
.n-stat .num.dk{color:var(--ink)}
.n-stat .lb{font-size:11px;color:var(--ink-secondary);margin-top:4px}

/* === Exam List === */
.n-exam-list{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}
.n-exam-item{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:background .15s;border-bottom:1px solid var(--border);text-decoration:none;color:inherit}
.n-exam-item:last-child{border-bottom:none}
.n-exam-item:hover{background:var(--surface)}
.n-exam-item .tag{width:32px;height:28px;border-radius:var(--radius-sm);background:var(--border);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--ink);flex-shrink:0}
.n-exam-item .tag.g{background:var(--brand);color:#fff}
.n-exam-item .info{flex:1;min-width:0}
.n-exam-item .nm{font-size:13px;font-weight:600;color:var(--ink)}
.n-exam-item .sb{font-size:11px;color:var(--ink-secondary);margin-top:1px}
.n-exam-item .ct{font-size:11px;color:var(--ink-secondary);background:var(--border-light);padding:2px 8px;border-radius:var(--radius-sm);flex-shrink:0}

/* === Callout === */
.n-callout{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border-radius:var(--radius-md);background:var(--surface);margin-bottom:40px}
.n-callout .sw{width:36px;height:36px;border-radius:var(--radius-md);background:var(--border-light);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.n-callout .sw svg{width:20px;height:20px;stroke:var(--brand);stroke-width:1.8;fill:none}
.n-callout .t{font-size:13px;color:var(--ink);line-height:1.6}
.n-callout .t strong{color:var(--brand)}

/* === Review Box === */
.n-review{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border-radius:var(--radius-md);border:1px solid var(--border);margin-bottom:40px;background:#fafaf9}
.n-review .sw{width:36px;height:36px;border-radius:50%;background:var(--brand-light);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.n-review .sw svg{width:18px;height:18px;stroke:var(--brand);stroke-width:1.8;fill:none}
.n-review .qt{font-size:14px;color:var(--ink);line-height:1.7}
.n-review .qt strong{color:var(--brand)}
.n-review .au{font-size:11px;color:var(--ink-secondary);margin-top:4px}

/* === Pricing Grid === */
.n-pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:40px}
.n-pcard{border-radius:var(--radius-md);border:1px solid var(--border);padding:20px;transition:all .15s;cursor:pointer;background:var(--bg);text-decoration:none;color:inherit;display:block}
.n-pcard:hover{border-color:#d1d0cd}
.n-pcard .sw{width:36px;height:36px;border-radius:var(--radius-md);background:var(--border-light);display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.n-pcard .sw svg{width:18px;height:18px;stroke:var(--brand);stroke-width:1.8;fill:none}
.n-pcard .nm{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:2px}
.n-pcard .pr{font-size:20px;font-weight:700;color:var(--ink);margin-bottom:8px}
.n-pcard .pr small{font-size:11px;font-weight:400;color:var(--ink-secondary)}
.n-pcard .desc{font-size:11px;color:var(--ink-secondary);line-height:1.6;margin-bottom:12px}
.n-pcard .pill{display:inline-block;padding:4px 12px;border-radius:var(--radius-sm);font-size:11px;font-weight:600}
.n-pcard .pill.b{background:var(--brand);color:#fff}
.n-pcard .pill.o{background:var(--border-light);color:var(--ink-secondary)}
.n-pcard.feat{border-color:var(--brand);background:#fafbf9}
.n-pcard.feat .pill.b{background:var(--ink)}

/* === Footer === */
.n-ft{padding:24px 0 40px;border-top:1px solid var(--border);text-align:center}
.n-ft p{font-size:11px;color:var(--ink-secondary);line-height:1.8}
.n-ft a{color:var(--ink-secondary);text-decoration:none;cursor:pointer}
.n-ft a:hover{color:var(--ink)}

/* === Toast === */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:999;padding:10px 20px;border-radius:var(--radius-md);font-size:13px;font-weight:500;box-shadow:var(--shadow-lg);opacity:0;transition:all .3s ease;pointer-events:none;max-width:90vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.success{background:var(--brand);color:#fff}
.toast.error{background:#dc2626;color:#fff}
.toast.info{background:var(--ink);color:#fff}

/* === 表单输入 === */
.form-input{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:14px;outline:none;background:var(--bg);color:var(--ink);font-family:var(--font-sans);transition:border .2s,box-shadow .2s}
.form-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(5,150,105,0.1)}
.form-input.error{border-color:#dc2626}
.form-input:disabled{background:var(--surface);color:var(--ink-tertiary);cursor:not-allowed}
.form-label{display:block;font-size:13px;font-weight:500;color:var(--ink);margin-bottom:6px}
.form-error{font-size:12px;color:#dc2626;margin-top:4px;display:none}
.form-error.show{display:block}

/* === Skeleton === */
.skeleton{background:linear-gradient(90deg,var(--border-light) 25%,var(--border) 50%,var(--border-light) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:var(--radius-sm)}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* === Back Button === */
.n-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-secondary);text-decoration:none;cursor:pointer;padding:6px 0;transition:color .15s}
.n-back:hover{color:var(--ink)}
.n-back svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}

/* === Responsive === */
@media(max-width:640px){
  .notion-wrap{padding:0 16px}
  .notion-hd{padding:16px 0 10px;margin-bottom:28px}
  .notion-hd .nv{gap:12px;font-size:12px}
  .notion-hd .lg svg{height:20px}
  .n-pricing{grid-template-columns:1fr}
  .n-block{padding:16px 18px}
  .n-stats{grid-template-columns:repeat(3,1fr)}
  .hero{padding:48px 0 32px;gap:32px;flex-direction:column}
  .hero-right{display:none}
  .friend-stats{gap:16px}
  .style-row{gap:6px}
  .style-opt{width:52px;height:52px}
  .lr-stats{gap:6px}
  .poster-entry{padding:14px 16px}
}
