/* ============ 时间刺客 · 蒸汽波暗色主题 ============ */
:root {
  --bg: #0b0b1a;
  --bg2: #14142b;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --neon: #ff3d81;
  --neon2: #7c4dff;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --text: #e8e6f5;
  --muted: #8f8cb0;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, #2a1245 0%, transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, #0f2a4a 0%, transparent 55%),
              linear-gradient(160deg, var(--bg), var(--bg2) 60%, #0d0d20);
  color: var(--text);
  min-height: 100vh;
  padding: 24px 4vw 60px;
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.35; z-index: 0;
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}
.topbar, .layout, .history-panel, .foot { position: relative; z-index: 1; }
.v2-link { text-decoration: none; margin-left: 8px; background: rgba(34, 211, 238, .16); border-color: rgba(34, 211, 238, .45); color: var(--cyan); }
.v2-notice { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 0 auto 18px; max-width: 1400px; padding: 12px 16px; border: 1px solid rgba(34, 211, 238, .3); border-radius: 12px; background: rgba(34, 211, 238, .08); color: var(--text); font-size: 14px; }
.v2-notice a { color: var(--cyan); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 680px) { .v2-notice { align-items: flex-start; flex-direction: column; gap: 8px; } }

/* ---------- header ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; gap: 14px; align-items: center; }
.logo {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 0 24px rgba(255, 61, 129, 0.45);
}
.brand h1 { font-size: 26px; letter-spacing: 1px; }
.brand h1 .en { font-size: 13px; color: var(--muted); margin-left: 8px; letter-spacing: 3px; font-weight: 400; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid; }
.badge.ok { color: var(--lime); border-color: rgba(163, 230, 53, 0.4); background: rgba(163, 230, 53, 0.08); }
.badge.warn { color: var(--amber); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.badge.unknown { color: var(--muted); border-color: rgba(143, 140, 176, 0.35); }
.badge.hidden { display: none; }
.badge.mock { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); margin-left: 8px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(380px, 440px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px);
}
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-title h2 { font-size: 17px; }
.panel-title h3 { font-size: 15px; }

/* ---------- form ---------- */
.panel-title-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.random-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--card-border);
  background: transparent; color: var(--cyan); cursor: pointer; font-size: 13px;
  transition: all 0.2s; white-space: nowrap;
}
.random-btn:hover { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.mode-switch { display: flex; gap: 8px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--card-border);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 13px;
  transition: all 0.2s;
}
.pill.active { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(255, 61, 129, 0.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text); padding: 9px 11px; font-size: 13.5px; outline: none; transition: border 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neon); }
.field textarea { resize: vertical; }
.field input[type="range"] { padding: 0; accent-color: var(--neon); }
#occupationCustom { display: none; }

.blocks-title { margin: 18px 0 10px; }
.blocks-title h3 { font-size: 15px; }
.hint { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.hint code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 5px; color: var(--cyan); }

.block-row { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 8px; margin-bottom: 8px; align-items: center; }
.block-row .b-label { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.block-row .b-label .dot { width: 9px; height: 9px; border-radius: 50%; }
.block-row input {
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--card-border); border-radius: 10px;
  color: var(--text); padding: 8px 10px; font-size: 13px; outline: none; width: 100%;
}
.block-row input:focus { border-color: var(--neon); }

.taste-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .taste-row, .form-grid { grid-template-columns: 1fr; } .block-row { grid-template-columns: 70px 1fr; } .block-row .b-range { grid-column: 2; } }

.gen-btn {
  margin-top: 18px; width: 100%; padding: 14px; border: none; border-radius: 13px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 6px 24px rgba(255, 61, 129, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.gen-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 61, 129, 0.55); }
.gen-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.error { color: #ff6b81; font-size: 13px; margin-top: 10px; }

/* ---------- 思考过程展示 ---------- */
.thinking-panel {
  margin-top: 14px; border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 12px;
  background: rgba(34, 211, 238, 0.05); padding: 12px 14px; max-height: 220px; overflow-y: auto;
}
.thinking-head { font-size: 12px; color: var(--cyan); margin-bottom: 8px; letter-spacing: 1px; }
.thinking-text {
  font-size: 12.5px; line-height: 1.8; color: rgba(232, 230, 245, 0.75);
  white-space: pre-wrap; word-break: break-all;
}
.thinking-panel.done { border-color: rgba(163, 230, 53, 0.35); background: rgba(163, 230, 53, 0.05); }
.thinking-panel.done .thinking-head { color: var(--lime); }

/* ---------- result ---------- */
.placeholder { text-align: center; padding: 60px 20px; color: var(--muted); }
.ph-icon { font-size: 52px; margin-bottom: 12px; opacity: 0.7; }
.ph-sub { font-size: 12px; margin-top: 8px; opacity: 0.7; }
.hidden { display: none !important; }

.facts-card {
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--card-border); border-radius: 13px;
  padding: 14px 16px; margin-bottom: 14px;
}
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.fact-item .num { font-size: 20px; font-weight: 800; }
.fact-item .lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.bar-row .bar-name { width: 52px; flex-shrink: 0; }
.bar-track { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag-mini { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(124, 77, 255, 0.15); color: #c9b8ff; border: 1px solid rgba(124, 77, 255, 0.3); }
.weak { font-size: 12px; color: var(--amber); margin-top: 8px; }

.lines { display: flex; flex-direction: column; gap: 10px; }
.line-card {
  border: 1px solid var(--card-border); border-radius: 13px; padding: 14px 16px;
  background: rgba(0, 0, 0, 0.22); position: relative;
}
.line-card .tag {
  position: absolute; top: -9px; left: 14px; font-size: 10.5px; padding: 2px 10px;
  border-radius: 999px; color: #fff; letter-spacing: 1px;
}
.line-card.core .tag { background: linear-gradient(135deg, var(--neon), #ff7a59); }
.line-card.data .tag { background: linear-gradient(135deg, var(--cyan), #3b82f6); }
.line-card.advice .tag { background: linear-gradient(135deg, var(--lime), #16a34a); }
.line-card.share .tag { background: linear-gradient(135deg, var(--amber), #f97316); }
.line-card p { font-size: 15px; line-height: 1.7; margin-top: 4px; }
.line-card.share p { font-size: 17px; font-weight: 700; color: var(--amber); }

.share-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  padding: 10px 18px; border-radius: 11px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05); color: var(--text); font-size: 13.5px; cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { border-color: var(--neon); }
.btn.primary { background: linear-gradient(135deg, var(--neon), var(--neon2)); border: none; font-weight: 600; }
.poster-wrap { margin-top: 16px; text-align: center; }
#posterCanvas { max-width: 100%; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }

/* ---------- 原始数据（调试）面板 ---------- */
.btn.ghost { background: transparent; border: 1px dashed var(--card-border); color: var(--muted, #94a3b8); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.debug-wrap { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.debug-section { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.debug-title {
  padding: 8px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--cyan); background: rgba(34,211,238,0.08); border-bottom: 1px solid var(--card-border);
}
.debug-code {
  margin: 0; padding: 12px 14px; max-height: 320px; overflow: auto;
  font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.6;
  color: var(--text); white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,0.25);
}

/* ---------- history ---------- */
.history-panel { margin-top: 20px; }
.history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.history-item {
  border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2); cursor: pointer; transition: border 0.2s;
}
.history-item:hover { border-color: var(--neon); }
.history-item .h-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.history-item .h-core { font-size: 13.5px; line-height: 1.6; }
.history-item .h-share { font-size: 12px; color: var(--amber); margin-top: 6px; }
.history-filters select, .history-filters .h-search, .history-filters input[type="date"] {
  background: rgba(0,0,0,0.28); border: 1px solid var(--card-border); color: var(--text);
  border-radius: 9px; padding: 6px 10px; font-size: 12.5px; outline: none;
  transition: border 0.2s;
}
.history-filters select:focus, .history-filters .h-search:focus, .history-filters input[type="date"]:focus {
  border-color: var(--neon);
}
.history-filters .h-search { width: 180px; }
.history-filters input[type="date"] { color-scheme: dark; }
.history-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.history-pager .pg-btn {
  padding: 6px 14px; border-radius: 9px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05); color: var(--text); font-size: 12.5px; cursor: pointer; transition: all 0.2s;
}
.history-pager .pg-btn:hover:not(:disabled) { border-color: var(--neon); }
.history-pager .pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.history-pager .pg-info { font-size: 12.5px; color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; opacity: 0.7; }

/* ============ v2 视觉：简约白 ============ */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-border: #e7e9ee;
  --neon: #2563eb;
  --neon2: #4f46e5;
  --cyan: #0891b2;
  --lime: #16a34a;
  --amber: #d97706;
  --text: #172033;
  --muted: #6b7280;
  --radius: 12px;
}
body {
  background: #f7f8fa;
  color: var(--text);
}
.bg-grid { opacity: .22; background-image: linear-gradient(#dbe3ef 1px, transparent 1px), linear-gradient(90deg, #dbe3ef 1px, transparent 1px); }
.logo { background: #eef2ff; box-shadow: none; }
.brand h1 { color: #111827; }
.badge.ok { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.badge.warn { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.badge.unknown { color: #6b7280; border-color: #d1d5db; background: #fff; }
.badge.mock, .v2-link { color: #0369a1; border-color: #bae6fd; background: #f0f9ff; }
.panel { background: #fff; border-color: #e5e7eb; box-shadow: 0 4px 18px rgba(15, 23, 42, .05); backdrop-filter: none; }
.primary-btn { margin-top: 18px; width: 100%; padding: 13px 16px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,.18); }
.primary-btn:hover { background: #1d4ed8; }
.primary-btn:disabled { opacity: .55; cursor: not-allowed; }
.output-panel blockquote { margin: 18px 0; padding: 20px; border-left: 3px solid #2563eb; border-radius: 8px; background: #eff6ff; color: #1e3a8a; font-size: 22px; line-height: 1.7; font-weight: 700; }
.output-panel #state, .output-panel #achievement { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 13px; }
.random-btn, .pill { border-color: #d1d5db; color: #2563eb; background: #fff; }
.random-btn:hover, .pill:hover { background: #eff6ff; border-color: #93c5fd; }
.pill.active, .gen-btn, .btn.primary { background: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, .18); }
.field input, .field select, .field textarea, .block-row input,
.history-filters select, .history-filters .h-search, .history-filters input[type="date"] {
  background: #fff; color: #172033; border-color: #d1d5db;
}
.field input:focus, .field select:focus, .field textarea:focus, .block-row input:focus,
.history-filters select:focus, .history-filters .h-search:focus, .history-filters input[type="date"]:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.hint code { background: #f1f5f9; color: #0369a1; }
.v2-notice { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.v2-notice a { color: #1d4ed8; }
.facts-card, .line-card, .history-item { background: #f8fafc; border-color: #e5e7eb; }
.bar-track { background: #e5e7eb; }
.tag-mini { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.line-card.share p, .history-item .h-share, .weak { color: #b45309; }
.btn, .history-pager .pg-btn { background: #fff; color: #374151; border-color: #d1d5db; }
.btn:hover, .history-pager .pg-btn:hover:not(:disabled) { border-color: #2563eb; color: #1d4ed8; }
.thinking-panel { background: #f0f9ff; border-color: #bae6fd; }
.thinking-text { color: #475569; }
.debug-code { background: #f8fafc; color: #334155; }
.debug-title { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }
#posterCanvas { box-shadow: 0 8px 24px rgba(15,23,42,.12); }

/* ---------- v2 工作台 ---------- */
.v2-page { padding: 0 5vw 48px; }
.v2-header { position: relative; z-index: 2; height: 72px; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef0f4; }
.v2-brand { display: flex; align-items: center; gap: 10px; color: #172033; text-decoration: none; }
.v2-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #172033; color: #fff; font-size: 24px; line-height: 1; }
.v2-brand b { display: block; font-size: 15px; letter-spacing: 1px; }
.v2-brand small { display: block; margin-top: 2px; color: #9ca3af; font-size: 9px; letter-spacing: 1.5px; }
.v2-header nav { display: flex; gap: 28px; }
.v2-header nav a { padding: 26px 0 22px; border-bottom: 2px solid transparent; color: #9ca3af; font-size: 12px; text-decoration: none; }
.v2-header nav a.active, .v2-header nav a:hover { color: #172033; border-color: #2563eb; }
.v2-header-right { color: #9ca3af; font-size: 11px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #22c55e; }
.v2-main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.v2-hero { min-height: 220px; display: flex; align-items: center; justify-content: space-between; padding: 40px 18px 25px; }
.eyebrow { color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.v2-hero h1 { margin: 12px 0 10px; color: #111827; font-size: clamp(30px, 4vw, 48px); letter-spacing: -2px; }
.v2-hero p:not(.eyebrow) { max-width: 520px; color: #6b7280; font-size: 14px; line-height: 1.8; }
.hero-orbit { width: 156px; height: 156px; display: grid; place-items: center; position: relative; border: 1px solid #dbeafe; border-radius: 50%; color: #2563eb; transform: rotate(-10deg); }
.hero-orbit:before { content: ''; position: absolute; inset: 13px; border: 1px dashed #bfdbfe; border-radius: 50%; }
.hero-orbit span { position: absolute; top: 18px; right: 28px; font-size: 10px; }
.hero-orbit i { color: #1e3a8a; font-size: 12px; font-style: normal; font-weight: 800; line-height: 1.35; letter-spacing: 2px; text-align: center; }
.v2-dashboard { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.v2-card { padding: 24px; border: 1px solid #e7e9ee; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px rgba(15,23,42,.045); }
.v2-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.v2-card-head > div { display: flex; align-items: center; gap: 10px; }
.v2-card-head h2 { color: #172033; font-size: 17px; }
.step { color: #2563eb; font-family: Consolas, monospace; font-size: 11px; font-weight: 700; }
.card-note, .mini-label { color: #9ca3af; font-size: 11px; }
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.persona-card { min-height: 112px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #172033; cursor: pointer; text-align: left; transition: .2s; }
.persona-card:hover, .persona-card.selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 4px 12px rgba(37,99,235,.1); }
.persona-symbol { display: block; margin-bottom: 10px; color: #2563eb; font-size: 22px; }
.persona-card b { display: block; font-size: 13px; }
.persona-card small { display: block; margin-top: 5px; color: #9ca3af; font-size: 10px; line-height: 1.5; }
.v2-divider { height: 1px; margin: 22px 0; background: #eef0f4; }
.v2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v2-field { display: flex; flex-direction: column; gap: 7px; color: #6b7280; font-size: 11px; }
.v2-field input, .v2-field select { width: 100%; padding: 10px 11px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #172033; font: inherit; font-size: 13px; outline: none; }
.v2-field input:focus, .v2-field select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.score-preview { display: flex; align-items: center; gap: 16px; padding: 14px 0 22px; }
.score-ring { width: 84px; height: 84px; display: flex; align-items: baseline; justify-content: center; padding-top: 27px; border: 7px solid #dbeafe; border-right-color: #2563eb; border-radius: 50%; color: #2563eb; }
.score-ring strong { font-size: 26px; line-height: 1; }
.score-ring span { color: #9ca3af; font-size: 10px; }
.score-preview b { display: block; color: #172033; font-size: 16px; }.score-preview p { margin-top: 5px; color: #9ca3af; font-size: 11px; }
.mountain-mini { padding: 15px; border-radius: 10px; background: #f8fafc; }
.mountain-line, .mountain-meta { display: flex; justify-content: space-between; color: #94a3b8; font-size: 10px; }.mountain-meta { margin-top: 8px; }.mountain-meta strong { color: #2563eb; }
.mountain-line i { flex: 1; height: 1px; margin: 6px 10px; background: #cbd5e1; }
.mountain-track { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }.mountain-track b { display: block; width: 35%; height: 100%; border-radius: inherit; background: #2563eb; transition: width .2s; }
.v2-profile-foot { display: flex; justify-content: space-between; margin-top: 20px; color: #9ca3af; font-size: 11px; }.v2-profile-foot b { color: #172033; }
.v2-time-card, .v2-expand-card { grid-column: 1 / -1; }.time-input-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }.time-input { position: relative; padding: 12px; border-radius: 9px; background: #f8fafc; }.time-input span { display: block; margin-bottom: 7px; color: #64748b; font-size: 11px; }.time-input input { width: 70%; border: 0; outline: 0; background: transparent; color: #172033; font-size: 21px; font-weight: 700; }.time-input em { color: #94a3b8; font-size: 9px; font-style: normal; }.time-input .time-range-input { display:block; width:100%; box-sizing:border-box; margin-top:9px; padding:6px 0; border-top:1px solid #e2e8f0; color:#64748b; font-size:10px; font-weight:400; }.time-input .time-range-input::placeholder { color:#a1aab8; }.time-input.work { border-top: 2px solid #2563eb; }.time-input.study { border-top: 2px solid #8b5cf6; }.time-input.exercise { border-top: 2px solid #22c55e; }.time-input.rest { border-top: 2px solid #f59e0b; }.time-input.phone { border-top: 2px solid #f43f5e; }.compact { grid-template-columns: 1fr 1fr 2fr; }.wide { grid-column: auto; }
.expand-hint { margin: -8px 0 14px; color: #94a3b8; font-size: 11px; }.v2-expand-card details { border-top: 1px solid #eef0f4; }.v2-expand-card summary { padding: 13px 0; color: #374151; cursor: pointer; font-size: 12px; list-style: none; }.v2-expand-card summary:before { content: '+'; display: inline-block; width: 22px; color: #2563eb; font-size: 16px; }.v2-expand-card details[open] summary:before { content: '−'; }.v2-expand-card summary span { float: right; color: #9ca3af; font-size: 10px; }.v2-expand-card textarea { width: 100%; min-height: 62px; margin: 0 0 12px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px; resize: vertical; color: #334155; font: 12px Consolas, monospace; outline: none; }.v2-expand-card textarea:focus { border-color: #2563eb; }
.v2-action-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0; padding: 20px 24px; border-radius: 14px; background: #172033; color: #fff; }.action-title { font-size: 16px; font-weight: 700; }.action-note { margin-top: 5px; color: #aab3c2; font-size: 11px; }.v2-generate { display: flex; align-items: center; gap: 35px; padding: 13px 17px 13px 20px; border: 0; border-radius: 8px; background: #fff; color: #172033; cursor: pointer; font-size: 13px; font-weight: 700; }.v2-generate b { color: #2563eb; font-size: 20px; }.v2-generate:disabled { opacity: .6; cursor: wait; }.v2-generate.loading span { display: inline-flex; align-items: center; gap: 8px; }.v2-generate.loading span::before { width: 13px; height: 13px; border: 2px solid #cbd5e1; border-top-color: #2563eb; border-radius: 50%; content: ''; animation: v2-spin .75s linear infinite; }.v2-action-row .error { margin: 0; }
@keyframes v2-spin { to { transform: rotate(360deg); } }
.explanation-toggle { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #d6deea; font-size: 12px; cursor: pointer; }.explanation-toggle input { accent-color: #93c5fd; }.explanation-wrap { margin: 20px 0 4px; padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; }.explanation-title { margin-bottom: 8px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.explanation-wrap p { margin: 0; color: #475569; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.v2-result { padding: 42px 8%; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; text-align: center; }.result-kicker { display: flex; align-items: center; justify-content: center; gap: 12px; color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: 2px; }.result-kicker i { width: 30px; height: 1px; background: #93c5fd; }.v2-result blockquote { margin: 22px auto; color: #172033; font-size: clamp(22px, 3vw, 32px); line-height: 1.55; font-weight: 800; }.result-meta { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }.result-meta span { padding: 7px 11px; border-radius: 99px; background: #fff; color: #64748b; font-size: 11px; }
.v2-history-card { margin-top: 16px; }.v2-card-head a { color: #2563eb; font-size: 11px; text-decoration: none; }.history-filters { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; }.history-filters input, .history-filters select, .history-filters button, .history-pagination button, .history-pagination input { min-height:32px; box-sizing:border-box; padding:6px 9px; border:1px solid #dbe3ed; border-radius:7px; background:#fff; color:#475569; font:11px inherit; outline:0; }.history-filters input:first-child { flex:1 1 220px; }.history-filters button, .history-pagination button { color:#2563eb; cursor:pointer; }.history-filters button:hover, .history-pagination button:hover:not(:disabled) { border-color:#2563eb; background:#eff6ff; }.v2-history-list { display: grid; gap: 0; }.v2-history-list p, .v2-history-list .history-entry { display:block; width:100%; margin:0; padding:13px 2px; border:0; border-top:1px solid #eef0f4; background:transparent; color:#475569; font:inherit; font-size:12px; line-height:1.5; text-align:left; cursor:pointer; }.v2-history-list p:first-child, .v2-history-list .history-entry:first-child { border-top:0; }.v2-history-list .history-entry:hover { color:#2563eb; background:#f8fafc; }.history-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:14px; color:#64748b; font-size:11px; }.history-pagination button:disabled { opacity:.45; cursor:not-allowed; }.history-pagination input { width:54px; }.loading { color: #9ca3af; font-size: 12px; }.v2-footer { position: relative; z-index: 1; margin-top: 24px; color: #a1aab8; font-size: 10px; letter-spacing: 1.5px; text-align: center; }
@media (max-width: 800px) { .v2-header nav { display: none; }.v2-header-right { font-size: 10px; }.hero-orbit { display: none; }.v2-dashboard { grid-template-columns: 1fr; }.v2-time-card, .v2-expand-card { grid-column: auto; }.time-input-grid { grid-template-columns: repeat(3, 1fr); }.compact { grid-template-columns: 1fr 1fr; }.compact .wide { grid-column: 1 / -1; }.v2-action-row { align-items: flex-start; flex-direction: column; }.v2-generate { width: 100%; justify-content: space-between; } }
@media (max-width: 500px) { .v2-page { padding-left: 18px; padding-right: 18px; }.v2-hero { padding-left: 4px; }.v2-card { padding: 18px; }.persona-grid, .v2-form-grid, .time-input-grid { grid-template-columns: 1fr 1fr; }.persona-card { min-height: 100px; }.time-input input { font-size: 18px; }.v2-action-row { padding: 18px; } }

.subhead { display:flex; align-items:center; justify-content:space-between; margin: 15px 0 9px; color:#334155; font-size:12px; }.subhead:first-child { margin-top:0; }.add-row { border:0; background:transparent; color:#2563eb; cursor:pointer; font-size:11px; }.data-row { display:grid; grid-template-columns: 1.1fr 1.3fr .8fr .8fr 24px; gap:7px; margin-bottom:7px; }.data-row input, .data-row select { min-width:0; padding:8px; border:1px solid #e5e7eb; border-radius:7px; background:#fff; color:#334155; font-size:11px; outline:0; }.data-row input:focus, .data-row select:focus { border-color:#2563eb; }.data-row .remove-row { width:24px; border:0; border-radius:6px; background:#fef2f2; color:#ef4444; cursor:pointer; font-size:16px; }.action-buttons { display:flex; align-items:center; gap:9px; }.v2-random { padding:12px 14px; border:1px solid #475569; border-radius:8px; background:transparent; color:#cbd5e1; cursor:pointer; font-size:12px; }.v2-random:hover { border-color:#fff; color:#fff; }.debug-toggle { margin-top:25px; padding:8px 14px; border:1px solid #bfdbfe; border-radius:8px; background:#fff; color:#2563eb; cursor:pointer; font-size:11px; }.debug-toggle b { margin-left:7px; }.debug-toggle.open b { display:inline-block; transform:rotate(180deg); }.debug-panel { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:15px; padding-top:15px; border-top:1px solid #dbeafe; text-align:left; }.debug-panel label { display:block; margin-bottom:5px; color:#64748b; font-size:10px; font-weight:700; }.debug-panel pre { max-height:180px; overflow:auto; margin:0; padding:10px; border-radius:7px; background:#fff; color:#334155; font:10px/1.5 Consolas,monospace; white-space:pre-wrap; word-break:break-word; }.debug-panel > div:nth-child(4), .debug-panel > div:nth-child(5), .debug-panel > div:nth-child(6) { grid-column:1/-1; }
.json-tree { max-height:260px; overflow:auto; padding:6px 8px; border:1px solid #e2e8f0; border-radius:7px; background:#fff; color:#334155; font:11px/1.6 Consolas,monospace; }.json-tree-table { min-width:100%; }.json-tree-node details { margin:0; }.json-tree-node summary { display:flex; align-items:center; min-height:23px; cursor:pointer; list-style:none; }.json-tree-node summary::-webkit-details-marker { display:none; }.json-tree-node summary::before { width:14px; color:#94a3b8; content:'›'; font:14px/1 sans-serif; }.json-tree-node details[open] > summary::before { transform:rotate(90deg); }.json-tree-indent { display:inline-block; width:calc(var(--depth) * 16px); flex:0 0 calc(var(--depth) * 16px); }.json-tree-key { min-width:110px; color:#475569; }.json-tree-type { margin-left:18px; color:#94a3b8; }.json-tree-value { margin-left:18px; overflow-wrap:anywhere; }.json-string { color:#0f766e; }.json-number { color:#2563eb; }.json-boolean { color:#c2410c; }.json-null { color:#94a3b8; }.json-tree > .json-tree-table > .json-tree-node > details > .json-tree-node { border-top:1px solid #f1f5f9; }
.row-hint { margin: -3px 0 9px; color:#94a3b8; font-size:10px; }.mountain-section .data-row { grid-template-columns: repeat(4, minmax(0, 1fr)) 24px; }
@media (max-width: 680px) { .data-row { grid-template-columns:1fr 1fr 1fr 1fr 24px; }.mountain-section .data-row { grid-template-columns: repeat(2, minmax(0, 1fr)) 24px; }.data-row input, .data-row select { font-size:10px; padding:7px 5px; }.debug-panel { grid-template-columns:1fr; }.debug-panel > div { grid-column:auto !important; } }

/* ---------- 三页共用导航 ---------- */
.shared-nav { max-width: 1400px; margin: 0 auto 22px; padding: 0 2px 14px; border-bottom: 1px solid #e5e7eb; }
.shared-brand { display: flex; align-items: center; gap: 10px; color: #172033; text-decoration: none; }
.shared-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #172033; color: #fff; font-size: 25px; line-height: 1; }
.shared-brand b { display: block; font-size: 16px; letter-spacing: 1px; }.shared-brand small { display: block; margin-top: 2px; color: #9ca3af; font-size: 9px; letter-spacing: 1.6px; }
.shared-links { display: flex; align-items: center; gap: 26px; height: 52px; margin-left: auto; margin-right: 28px; }
.shared-links a { padding: 19px 0 15px; border-bottom: 2px solid transparent; color: #9ca3af; font-size: 12px; text-decoration: none; }
.shared-links a:hover, .shared-links a.active { border-color: #2563eb; color: #172033; }.shared-links em { margin-left: 3px; color: #2563eb; font-size: 9px; font-style: normal; }
.shared-status { display: flex; align-items: center; gap: 6px; }.shared-status .badge { white-space: nowrap; }
@media (max-width: 700px) { .shared-nav { align-items: flex-start; }.shared-links { order: 3; width: 100%; height: 38px; margin: 4px 0 -8px; gap: 20px; }.shared-links a { padding: 10px 0 9px; }.shared-status { margin-left: auto; }.shared-status .badge { font-size: 10px; padding: 4px 8px; } }
