/* 沐晨数据合作 — 全站样式。品牌色取自 MUCHEN AI 资产包：标准字 #16151C，图标渐变 #C1F1FF → #6A4BFF */
:root {
  --ink: #16151c;
  --ink-2: #4a4858;
  --ink-3: #7c7a8a;
  --line: #e7e6ef;
  --line-2: #f0eff6;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --brand: #6a4bff;
  --brand-600: #5a3cf0;
  --brand-50: #f1eeff;
  --brand-100: #e4ddff;
  --sky: #c1f1ff;
  --mid: #969eff;
  --ok: #1f9d62;
  --ok-50: #e8f7ef;
  --warn: #b7791f;
  --warn-50: #fdf5e6;
  --danger: #d6455d;
  --danger-50: #fdecef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 21, 28, .04), 0 8px 24px rgba(22, 21, 28, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand .brand-sub { font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.navlink { color: var(--ink-2); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.nav a.navlink:hover { background: var(--bg-soft); text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 550; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(106, 75, 255, .28); }
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--mid); background: var(--brand-50); }
.btn-text { background: transparent; color: var(--brand); padding: 0 8px; height: 32px; }
.btn-text:hover { background: var(--brand-50); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c4cc; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.arrow::after { content: "→"; font-weight: 400; }

/* 通用块 */
.kicker { display: inline-block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--brand-50); color: var(--brand); }
.pill-solid { background: var(--brand); color: #fff; }
.grad-text { background: linear-gradient(90deg, #5b8cff 0%, var(--brand) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.section-title { font-size: 30px; margin-bottom: 12px; }
.section-lead { color: var(--ink-2); margin-bottom: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.icon { width: 22px; height: 22px; flex: none; color: var(--brand); }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(193, 241, 255, .55), rgba(150, 158, 255, .18) 55%, transparent 72%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 16px 0 20px; letter-spacing: -.01em; }
.hero .lead { color: var(--ink-2); font-size: 16px; max-width: 560px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { padding: 24px 24px 0; box-shadow: var(--shadow); overflow: hidden; }
.hero-card .kicker { margin-bottom: 4px; }
.hero-card h3 { font-size: 20px; margin-bottom: 16px; }
.hero-card .row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.hero-card .row:first-of-type { border-top: 0; }
.hero-card .row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); display: grid; place-items: center; flex: none; }
.hero-card .row h4 { font-size: 15px; margin-bottom: 2px; }
.hero-card .row p { font-size: 13px; color: var(--ink-3); }
.hero-card .foot { margin: 8px -24px 0; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--brand); background: linear-gradient(90deg, var(--brand-50), #eef9ff); }

/* 征集横幅 */
.callout { padding: 28px 32px; border-radius: 16px; background: linear-gradient(120deg, #f6f4ff 0%, #f3fbff 100%); border: 1px solid var(--brand-100); display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.callout h2 { font-size: 24px; margin: 12px 0 8px; }
.callout p { color: var(--ink-2); font-size: 14px; }

/* 方向卡片 */
.tabs { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 24px; border: 1px solid var(--line-2); }
.tabs button { border: 0; background: transparent; padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(22, 21, 28, .08); font-weight: 550; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dir-card { padding: 22px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.dir-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.dir-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.dir-card h3 { font-size: 17px; margin-bottom: 6px; }
.dir-card p { color: var(--ink-2); font-size: 14px; flex: 1; }
.dir-card .price { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dir-card .price .lbl { font-size: 12px; color: var(--ink-3); }
.dir-card .price .num { font-size: 22px; font-weight: 700; color: var(--brand); }
.dir-card .price .unit { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* 价值 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.value-grid h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.value-grid p { color: var(--ink-2); font-size: 14px; padding-left: 32px; }

/* 流程 */
.process { padding: 24px; }
.process .meta { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; text-align: left; padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.step:hover { border-color: var(--mid); }
.step[aria-selected="true"] { border-color: var(--brand); background: var(--brand-50); }
.step .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 650; background: var(--bg-soft); color: var(--ink-3); margin-bottom: 10px; }
.step[aria-selected="true"] .no { background: var(--brand); color: #fff; }
.step.done .no { background: var(--ok-50); color: var(--ok); }
.step h4 { font-size: 15px; }
.step p { font-size: 12px; color: var(--ink-3); }
.step-detail { display: flex; gap: 24px; padding: 24px 8px 8px; }
.step-detail .big { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1; }
.step-detail h3 { font-size: 18px; margin: 4px 0 8px; }
.step-detail p { color: var(--ink-2); font-size: 14px; }
.step-detail .hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* FAQ */
.faq { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.faq h2 { font-size: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--ink-3); font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 14px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line-2); padding: 32px 0 40px; color: var(--ink-3); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer img { height: 22px; }
.footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink-3); }

/* 表单页 */
.page { padding: 40px 0 80px; background: var(--bg-soft); min-height: calc(100vh - 64px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--ink-2); margin-top: 6px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel .panel-lead { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 550; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .help { font-size: 12px; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106, 75, 255, .14); }
.input[readonly] { background: var(--bg-soft); color: var(--ink-2); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; background: #fff; }
.check:hover { border-color: var(--mid); }
.check input { margin-top: 4px; accent-color: var(--brand); }
.check.on { border-color: var(--brand); background: var(--brand-50); }
.check-group-title { font-size: 12px; color: var(--ink-3); margin: 6px 0 2px; grid-column: 1 / -1; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.agree input { margin-top: 5px; accent-color: var(--brand); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.form-actions .status-text { margin-right: auto; font-size: 13px; color: var(--ink-3); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--danger-50); color: var(--danger); }
.alert-info { background: var(--brand-50); color: var(--brand-600); }
.alert-ok { background: var(--ok-50); color: var(--ok); }

/* 登录 */
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-wrap .panel { padding: 32px; }
.auth-wrap h1 { font-size: 22px; margin-bottom: 6px; }
.auth-wrap .form-grid { grid-template-columns: 1fr; }
.auth-switch { margin-top: 16px; font-size: 14px; color: var(--ink-3); text-align: center; }
.gate { text-align: center; padding: 48px 28px; }
.gate h2 { font-size: 20px; margin-bottom: 8px; }
.gate p { color: var(--ink-2); margin-bottom: 20px; }

/* 工作台 */
.list { display: flex; flex-direction: column; gap: 12px; }
.app-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 22px; align-items: center; }
.app-item h3 { font-size: 16px; }
.app-item .sub { color: var(--ink-3); font-size: 13px; }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--bg-soft); color: var(--ink-2); }
.status-draft { background: var(--bg-soft); color: var(--ink-3); }
.status-submitted { background: var(--warn-50); color: var(--warn); }
.status-evaluating, .status-agreement { background: var(--brand-50); color: var(--brand); }
.status-signed { background: var(--ok-50); color: var(--ok); }
.status-declined, .status-withdrawn { background: var(--danger-50); color: var(--danger); }
.mini-steps { display: flex; gap: 6px; margin-top: 6px; }
.mini-steps span { height: 4px; width: 36px; border-radius: 2px; background: var(--line); }
.mini-steps span.on { background: var(--brand); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 550; color: var(--ink-3); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #faf9ff; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; font-size: 14px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; color: var(--ink-3); font-size: 14px; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--mid), var(--brand)); transition: width .1s; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--mid); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-size: 12px; color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* 后台 */
.admin-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .lbl { font-size: 12px; color: var(--ink-3); }
.stat .val { font-size: 26px; font-weight: 700; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 140px; }
.toolbar select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 5.5 5 5 5-5' fill='none' stroke='%23555162' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  .toolbar select.input { appearance: auto; background-image: none; }
}
.toolbar .grow { flex: 1; min-width: 220px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(22, 21, 28, .32); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: #fff; z-index: 41; overflow-y: auto; box-shadow: -8px 0 32px rgba(22, 21, 28, .14); }
.drawer-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 1; }
.drawer-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.drawer-body h3 { font-size: 15px; margin-bottom: 10px; }

/* 提示 */
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.toast.error { background: var(--danger); }

/* 响应式 */
@media (max-width: 960px) {
  .hero .container, .two-col, .faq { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3, .value-grid, .checks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .grid-3, .value-grid, .checks, .form-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .brand .brand-sub { display: none; }
  .section { padding: 48px 0; }
  .panel { padding: 20px; }
  .kv { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

/* 补充 */
.mt { margin-top: 16px; }
details > summary.btn { list-style: none; display: inline-flex; }
details > summary.btn::-webkit-details-marker { display: none; }
.field .form-actions { margin-top: 0; flex-wrap: nowrap; }
.drawer .form-actions .input { flex: 1; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--brand-100); box-shadow: var(--shadow); }
.agree + .agree { margin-top: 10px; }
.gate .form-actions { justify-content: center; }
.gate .pill + h2 { margin-top: 16px; }
.agree.field { flex-direction: row; }
.table th { white-space: nowrap; }
.nav a.navlink, .user-chip { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .container { padding: 0 16px; }
  .brand img { height: 22px; }
  .user-chip { display: none; }
  .nav { gap: 4px; }
  .nav a.navlink { padding: 6px; }
}
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; min-width: 112px; }
