/* ============================================================
   客劳得内容工作台 · 原型样式系统
   纯手写 CSS，无外部依赖。绿色 = NEWYES 主品牌调性（商务 + 高级）
   ============================================================ */

:root {
  /* 品牌色 */
  --green-700: #0b6b46;
  --green-600: #0f8a5a;
  --green-500: #15a86d;
  --green-400: #2bc488;
  --green-50:  #e9f9f1;
  --green-100: #d2f2e2;

  /* 中性 */
  --ink:       #0f172a;
  --ink-2:     #334155;
  --ink-3:     #64748b;
  --ink-4:     #94a3b8;
  --line:      #e6ebf1;
  --line-2:    #eef2f6;
  --surface:   #ffffff;
  --bg:        #f5f7fa;
  --bg-2:      #eef1f5;

  /* 语义 */
  --amber:     #d97706;
  --amber-bg:  #fef3e2;
  --red:       #dc2626;
  --red-bg:    #fdecec;
  --blue:      #2563eb;
  --blue-bg:   #e8f0fe;
  --violet:    #7c3aed;

  /* 几何 */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
  --shadow:    0 2px 6px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.14);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 定制版主题：更深的墨绿 + 金属灰，体现"专属高级" */
[data-product="custom"] {
  --green-700: #0a5c54;
  --green-600: #0d7a6b;
  --green-500: #109684;
  --green-400: #2bb7a3;
  --green-50:  #e7f6f3;
  --green-100: #cdede7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--green-100); }

/* 图标基准尺寸（未被具体上下文覆盖时生效，防止 SVG 撑满 flex 空间） */
svg.ic { width: 18px; height: 18px; flex: none; }

/* ---------- 通用排版 ---------- */
.muted   { color: var(--ink-3); }
.muted-2 { color: var(--ink-4); }
.strong  { font-weight: 650; }
.mono    { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.nowrap  { white-space: nowrap; }
.tiny    { font-size: 12px; }
.small   { font-size: 13px; }
.big     { font-size: 18px; }
.h-num   { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green  { background: var(--green-50);  color: var(--green-700); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber); }
.badge-red    { background: var(--red-bg);    color: var(--red); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue); }
.badge-line   { background: #fff; border-color: var(--line); color: var(--ink-2); }
.badge-solid  { background: var(--green-600); color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: .15s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-600); border-color: var(--green-600); color: #fff;
  box-shadow: 0 1px 2px rgba(15,138,90,.25);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.card-title { font-size: 15px; font-weight: 650; }

/* ---------- 布局原子 ---------- */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}

/* =====================================================
   PC 端壳层（桌面工作台）
   ===================================================== */
.pc { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  background: #0e1b16; color: #cfe6da;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
[data-product="custom"] .sidebar { background: #0a1a18; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 4px 12px rgba(21,168,109,.4);
}
.brand-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.brand-edition { font-size: 11.5px; color: var(--green-400); font-weight: 600; }

.nav-section { font-size: 11px; color: #5e7a6e; font-weight: 700; letter-spacing: .04em;
  padding: 14px 10px 6px; text-transform: none; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm);
  font-size: 14px; color: #aecabd; font-weight: 500;
  transition: .12s; position: relative;
}
.nav-item .ic { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--green-600); color: #fff; font-weight: 600; }
.nav-item.active .ic { opacity: 1; }
.nav-item.locked { opacity: .5; }
.nav-item .tag-soon {
  margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 6px;
  background: rgba(255,255,255,.1); color: #8fb3a2; font-weight: 600;
}
.sidebar-foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 62px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
}
.topbar h1 { font-size: 17px; font-weight: 700; margin: 0; }
.topbar .crumb { color: var(--ink-4); font-weight: 500; }
.page { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }

/* 产品切换开关 */
.edition-switch {
  display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px;
  border: 1px solid var(--line);
}
.edition-switch a {
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.edition-switch a.on { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.stat .delta { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.delta-up { color: var(--green-600); } .delta-down { color: var(--red); }

/* ---------- 点数计量条 ---------- */
.meter { height: 9px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-400), var(--green-600)); transition: width .6s ease; }
.meter.warn > span { background: linear-gradient(90deg,#f59e0b,#d97706); }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line-2); }
.list-item:first-child { border-top: none; }
.list-item:hover { background: var(--bg); }
.thumb-mini { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bg-2); border: 1px solid var(--line); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--bg-2); color: var(--ink-3); border: 1.5px solid var(--line);
}
.step.done .num { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.step.active .num { background: #fff; color: var(--green-700); border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-50); }
.step .txt { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.step.done .txt, .step.active .txt { color: var(--ink); }
.step-line { width: 36px; height: 2px; background: var(--line); margin: 0 8px; }
.step.done + .step-line, .step-line.done { background: var(--green-500); }

/* ---------- 多语言矩阵 ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { padding: 0; }
.matrix thead th {
  position: sticky; top: 0; background: #fff; z-index: 2;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center;
}
.matrix thead th.rowhead { text-align: left; padding-left: 4px; }
.matrix td.rowhead {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding-right: 12px; white-space: nowrap; vertical-align: middle;
}
.cell { padding: 6px; }
.cellimg {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--line); aspect-ratio: 1 / 1; background: var(--bg-2);
  transition: .15s; cursor: pointer;
}
.cellimg:hover { border-color: var(--green-400); transform: translateY(-1px); box-shadow: var(--shadow); }
.cellimg svg { width: 100%; height: 100%; display: block; }
.cell-flag {
  position: absolute; top: 5px; left: 5px; font-size: 10.5px; font-weight: 700;
  background: rgba(15,23,42,.72); color: #fff; padding: 1px 6px; border-radius: 6px; backdrop-filter: blur(2px);
}
.cell-state {
  position: absolute; bottom: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 11px;
}
.cell-state.ok   { background: var(--green-600); }
.cell-state.new  { background: var(--blue); }
.cell-state.wait { background: var(--amber); }

/* 传播高亮闪烁 */
@keyframes flash { 0%{box-shadow:0 0 0 0 rgba(21,168,109,.0)} 30%{box-shadow:0 0 0 4px rgba(21,168,109,.35)} 100%{box-shadow:0 0 0 0 rgba(21,168,109,0)} }
.cellimg.flash { border-color: var(--green-500); animation: flash .9s ease; }

/* ---------- 大块提示 ---------- */
.callout {
  display: flex; gap: 13px; padding: 14px 16px; border-radius: var(--r);
  background: var(--green-50); border: 1px solid var(--green-100);
}
.callout .ic { flex: none; width: 22px; height: 22px; color: var(--green-600); }
.callout.amber { background: var(--amber-bg); border-color: #fce4c2; }
.callout.amber .ic { color: var(--amber); }
.callout.blue { background: var(--blue-bg); border-color: #d4e2fd; }
.callout.blue .ic { color: var(--blue); }

/* ---------- 表格（术语/计费） ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 650; color: var(--ink-3); font-size: 12.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg); }

/* 价格卡 */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.price-card { padding: 20px; position: relative; }
.price-card.featured { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-50), var(--shadow); }
.price-card .tier { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.price-card .amt { font-size: 30px; font-weight: 750; letter-spacing: -.02em; margin: 6px 0 2px; }
.price-card .amt small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.price-card .feat { font-size: 13px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line-2); display: flex; gap: 8px; align-items: center; }
.price-card .feat .ic { color: var(--green-600); flex: none; }
.ribbon { position: absolute; top: -10px; right: 16px; }

/* =====================================================
   移动端壳层（手机评审 App）
   ===================================================== */
.phone-stage {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 12px;
  background:
    radial-gradient(120% 80% at 50% -10%, #173a2c 0%, #0e1b16 45%, #0a1410 100%);
}
.phone {
  width: 390px; max-width: 100%; height: 844px; max-height: calc(100vh - 36px);
  background: var(--bg); border-radius: 44px; position: relative; overflow: hidden;
  box-shadow: 0 0 0 12px #1c1c1e, 0 0 0 14px #2c2c2e, var(--shadow-lg);
  display: flex; flex-direction: column;
}
/* 真机访问时铺满全屏 */
@media (max-width: 480px) {
  .phone-stage { padding: 0; background: var(--bg); }
  .phone { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0;
    box-shadow: none; }
  .phone .notch { display: none; }
  .status-bar { padding-top: env(safe-area-inset-top, 8px); }
}
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 30px; background: #000; border-radius: 999px; z-index: 50; }

.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px 4px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.m-header {
  padding: 6px 18px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.m-header.brand-head {
  background: linear-gradient(150deg, var(--green-600), var(--green-700));
  color: #fff; border-bottom: none; padding-bottom: 20px;
}
.m-header.brand-head .muted { color: rgba(255,255,255,.8); }
.m-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-scroll::-webkit-scrollbar { width: 0; }
.m-pad { padding: 16px; }

.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; }

/* 底部 Tab */
.tabbar {
  display: flex; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--ink-4);
  background: none; border: none;
}
.tabbar .tab .ic { width: 23px; height: 23px; }
.tabbar .tab.on { color: var(--green-600); }
.tab-badge { position: absolute; top: 2px; right: -8px; background: var(--red); color: #fff;
  font-size: 9.5px; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }

/* 评审大图 */
.review-stage { background: #11201a; position: relative; }
.review-stage .review-img { width: 100%; aspect-ratio: 1/1; }
.review-stage .lang-tabs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; }
.lang-chip { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.12); color: #cfe6da; white-space: nowrap; border: none; }
.lang-chip.on { background: #fff; color: var(--green-700); }

.checklist .ck { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line-2); font-size: 14px; }
.checklist .ck:first-child { border-top: none; }
.ck-mark { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; }
.ck-mark.ok { background: var(--green-600); } .ck-mark.warn { background: var(--amber); }

.m-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom,0));
  background: var(--surface); border-top: 1px solid var(--line); }
.btn-reject { background: #fff; color: var(--red); border-color: #f4caca; font-weight: 700; }
.btn-approve { background: var(--green-600); color: #fff; border-color: var(--green-600); font-weight: 700; }

/* 分段控件 */
.seg { display: flex; background: var(--bg-2); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; padding: 7px; border: none; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg button.on { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: center; animation: toastin .3s ease; }
.toast .ic { color: var(--green-400); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 移动端 toast 收敛到手机内 */
.phone .toast-wrap { position: absolute; bottom: 96px; }

/* ---------- 杂项 ---------- */
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; color: var(--ink-3); }
.dot-sep { color: var(--ink-4); }
.pill-soon { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-weight: 600; }

/* 响应式：窄屏下 PC 工作台退化为单列（演示兜底） */
@media (max-width: 960px) {
  .pc { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; }
}
