/* 设计稿配色 —— 改这里就能换整站颜色 */
:root {
  --accent: #2453C9;
  --accent-dark: #1A3E9E;
  --accent-tint: #E8EEFB;
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --muted-surface: #EDECE8;
  --border: #E4E2DC;
  --border-strong: #D6D3CC;
  --text: #1B1D21;
  --text-muted: #5C6066;
  --danger: #B42318;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
button, input, textarea, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding-bottom: 48px; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 15px; }
.crumbs a { color: var(--text-muted); }
.crumbs .sep { color: #9A9DA3; }
.crumbs .current { color: var(--text); font-weight: 500; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--text-muted); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.btn-outline:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; background: var(--bg); }
.btn-block { width: 100%; min-height: 50px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.icon-box.grey { background: var(--muted-surface); color: var(--text-muted); }

.section-title { font-size: 20px; font-weight: 700; margin: 36px 0 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ---------- 首页 ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 48px 0 16px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.hero-text .eyebrow { color: var(--accent); font-weight: 500; font-size: 14px; }
.hero-text h1 { font-size: clamp(28px, 4vw, 44px); }
.hero-text p { margin: 0; color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-sample { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.hero-sample .title { font-size: 18px; font-weight: 700; }

.industry-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.industry-card:hover { color: var(--text); }
.industry-card.active { border: 2px solid var(--accent); }
.industry-card .name { font-size: 18px; font-weight: 700; }
.industry-card .desc { font-size: 14px; color: var(--text-muted); }
.industry-card .go { font-weight: 500; color: var(--accent); margin-top: auto; }
.industry-head { display: flex; align-items: center; justify-content: space-between; }

.service-band { margin-top: 40px; background: var(--text); color: #fff; border-radius: 16px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.service-band h2 { font-size: 22px; }
.service-band p { margin: 8px 0 0; color: #D2D4D8; max-width: 620px; }

footer.site-footer { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ---------- 行业页 ---------- */
.industry-top { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; }
.banner { flex: 999 1 520px; min-width: 0; background: var(--accent); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.banner .eyebrow { color: #D9E3FA; font-size: 14px; }
.banner h1 { font-size: clamp(24px, 3vw, 32px); }
.banner p { margin: 0; color: #E8EEFB; }
.shop-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv .k { color: var(--text-muted); }
.bar { height: 8px; border-radius: 999px; background: var(--muted-surface); overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; }

.tool-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.tool-card:hover { color: var(--text); border-color: var(--accent); }
.tool-card .name { font-size: 17px; font-weight: 700; }
.tool-card .desc { font-size: 14px; color: var(--text-muted); }
.tool-card .go { color: var(--accent); font-weight: 500; }
.soon-card { background: var(--muted-surface); border: 1px dashed #C9C6BE; border-radius: var(--radius); padding: 18px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--muted-surface); font-size: 14px; }
.list-row:last-child { border-bottom: none; }

/* ---------- 工具页 ---------- */
.tool-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding-top: 24px; }
.tool-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.tool-nav .label { font-size: 13px; color: var(--text-muted); padding: 0 12px 6px; }
.tool-nav a { min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); display: flex; align-items: center; }
.tool-nav a.active { background: var(--accent-tint); color: var(--accent); font-weight: 700; }
.tool-form { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tool-result { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; }
.field .req { color: var(--danger); }
.input, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 15px;
}
.input:focus, .textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
.textarea { resize: vertical; line-height: 1.5; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.chip { min-height: 44px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; padding: 0 8px; }
.chip.on { border: 2px solid var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 700; }

.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.result-block { display: flex; flex-direction: column; gap: 10px; }
.result-block .block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-block .block-title { font-size: 13px; font-weight: 700; color: var(--accent); }
.result-block .block-body { white-space: pre-wrap; font-size: 16px; line-height: 1.8; word-break: break-word; }
.empty-result { text-align: center; color: var(--text-muted); padding: 48px 20px; }

.notice { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.notice.error { background: #FDECEA; color: var(--danger); }
.notice.info { background: var(--accent-tint); color: var(--accent-dark); }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(27,29,33,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { font-size: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 60; }

/* ---------- 登录 ---------- */
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- 后台 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.tab { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.tab.on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--muted-surface); vertical-align: top; white-space: nowrap; }
th { color: var(--text-muted); font-weight: 500; background: #FAFAF8; }
td.wrap { white-space: pre-wrap; max-width: 420px; min-width: 240px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar .container { min-height: 56px; }
  .crumbs { order: 3; width: 100%; padding-bottom: 8px; font-size: 14px; }
  .tool-nav { max-width: none; flex-direction: row; overflow-x: auto; gap: 8px; }
  .tool-nav .label { display: none; }
  .tool-nav a { white-space: nowrap; border: 1px solid var(--border-strong); background: var(--surface); }
  .service-band { padding: 24px; }
  /* 手机上"即将上线"的行业两列排，可用行业占满一行 */
  #industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #industry-list .industry-card { padding: 16px; }
  #industry-list .industry-card.active { grid-column: 1 / -1; }
}
