/* 聚合查单 - 前台与后台共用样式 */
:root {
  --primary: #316c72;
  --primary-dark: #27565c;
  --primary-light: #e8f2f3;
  --bg: #f4f7f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5eaed;
  --shadow: 0 8px 28px rgba(24, 54, 60, .08);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--primary); text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 18px; border-radius: 8px; cursor: pointer; transition: .18s;
  font-size: 14px; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.danger { color: #c0392b; border-color: #f3c7c2; }
.btn.danger:hover { background: #fff1f0; border-color: #e57373; }
.btn.small { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn.outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn.outline:hover { background: var(--primary-light); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.text-btn { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 4px; font-size: 13px; }

/* ---------- 前台 ---------- */
.page-home { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.brand-desc { color: var(--muted); font-size: 12px; margin-top: -2px; }
.header-link {
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; color: var(--muted); transition: .2s;
}
.header-link:hover { color: var(--primary); border-color: var(--primary); }
.install-tip { background: #fff7e6; color: #ad6800; text-align: center; padding: 10px; font-size: 13px; }

.hero {
  position: relative; overflow: hidden; padding: 78px 24px 96px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 52%, #3d8188 100%);
  text-align: center; color: #fff;
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%);
  top: -320px; right: -120px; pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 20px;
  padding: 3px 14px; font-size: 11px; letter-spacing: 2px; opacity: .85; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; margin: 0 0 12px; font-weight: 700; letter-spacing: 1px; }
.hero p { font-size: 16px; opacity: .88; margin: 0 0 34px; }
.search-bar {
  display: flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 6px 6px 6px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.16);
  max-width: 640px; margin: 0 auto;
}
.search-icon { color: #9aa5ab; font-size: 24px; margin-right: 10px; line-height: 1; }
.search-bar input {
  flex: 1; border: 0; outline: 0; padding: 12px 0; font-size: 15px; color: var(--text); min-width: 0;
}
.search-bar input::placeholder { color: #a7b0b6; }
.search-bar button {
  border: 0; border-radius: 9px; background: var(--primary); color: #fff;
  padding: 12px 28px; font-size: 15px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.search-bar button:hover { background: var(--primary-dark); }
.search-bar button:disabled { opacity: .7; cursor: wait; }
.query-meta { margin-top: 16px; font-size: 13px; min-height: 20px; opacity: .9; }

.main-content { width: min(1120px, calc(100% - 40px)); margin: -44px auto 60px; position: relative; z-index: 2; flex: 1; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 14px; }
.section-head h2 { font-size: 17px; margin: 0; }
.section-sub { color: var(--muted); font-size: 13px; }
.order-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.order-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border: 1px solid rgba(229,234,237,.7); transition: .2s;
}
.order-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(24,54,60,.13); }
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.source-tag {
  background: var(--primary-light); color: var(--primary); font-size: 11px;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.order-no { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.status-badge.done, .mini-badge.done { background: #e8f7ee; color: #137333; }
.status-badge.running, .mini-badge.running { background: #e8f1fd; color: #1967d2; }
.status-badge.pending, .mini-badge.pending { background: #fff4e5; color: #b06000; }
.status-badge.paused, .mini-badge.paused { background: #eef0f2; color: #667085; }
.status-badge.error, .mini-badge.error { background: #fdecea; color: #c0392b; }
.status-badge.refund, .mini-badge.refund { background: #f2eefd; color: #6941c6; }
.order-course { font-size: 15px; font-weight: 600; margin: 16px 0 12px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-track { flex: 1; height: 7px; background: #edf1f3; border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 8px; background: var(--primary); transition: width .4s; }
.progress-fill.done { background: #34a853; }
.progress-fill.error { background: #e57373; }
.progress-fill.paused { background: #98a2b3; }
.progress-text { font-size: 12px; color: var(--muted); min-width: 36px; text-align: right; }
.order-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.order-remark { margin-top: 8px; font-size: 12px; color: #a15c00; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.empty-section {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 56px 20px; text-align: center;
}
.empty-illustration { font-size: 46px; color: #cbd5d9; line-height: 1; }
.empty-title { font-size: 16px; font-weight: 600; margin-top: 14px; }
.empty-desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.history-section { margin-top: 26px; }
.history-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 6px 14px; font-size: 12px; color: var(--muted); cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.site-footer { text-align: center; color: #98a2b3; font-size: 12px; padding: 20px 12px 30px; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 32, 37, .5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 14px; width: min(94vw, 520px);
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.24);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal.detail-modal { width: min(94vw, 680px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x { border: 0; background: none; font-size: 24px; line-height: 1; color: #98a2b3; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.notice-content { white-space: pre-wrap; line-height: 1.9; color: #374151; }
.action-tip { color: #4b5563; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; margin-bottom: 6px; color: #374151; }
.field-input {
  width: 100%; padding: 10px 12px; border: 1px solid #d7dee2; border-radius: 8px; outline: none;
}
.field-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.detail-item { display: flex; flex-direction: column; background: #f8fafb; padding: 9px 12px; border-radius: 8px; }
.detail-item span { font-size: 12px; color: var(--muted); }
.detail-item b { font-size: 13px; font-weight: 600; word-break: break-all; }
.detail-subtitle { font-size: 14px; font-weight: 600; margin: 22px 0 12px; }
.timeline { border-left: 2px solid var(--line); padding-left: 16px; }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item:before {
  content: ''; position: absolute; left: -22px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--primary); border: 2px solid #fff;
}
.timeline-time { color: var(--muted); font-size: 12px; }
.timeline-title { font-weight: 600; margin: 2px 0; }
.timeline-content { color: #4b5563; font-size: 13px; }
.mini-badge { font-size: 11px; padding: 1px 7px; border-radius: 10px; font-weight: 400; }
.no-log, .loading { color: var(--muted); text-align: center; padding: 24px; font-size: 13px; }
.toast {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 200;
  background: #1f2937; color: #fff; padding: 10px 20px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px;
}
.toast.success { background: #137333; }
.toast.warn { background: #b06000; }
.toast.error { background: #c0392b; }
.service-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 50;
  border: 0; border-radius: 24px; background: var(--primary); color: #fff;
  padding: 12px 18px; box-shadow: 0 8px 24px rgba(49,108,114,.35); cursor: pointer;
  font-size: 13px;
}
.service-float:hover { background: var(--primary-dark); }

/* ---------- 后台 ---------- */
.admin-body { background: #f3f6f8; min-height: 100vh; }
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 20px;
}
.login-card {
  width: min(92vw, 400px); background: #fff; border-radius: 16px; padding: 36px 34px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; color: var(--primary); }
.login-card .login-sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin-top: 8px; padding: 11px; }
.login-tip { margin-top: 18px; font-size: 12px; color: #98a2b3; text-align: center; }

.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: #1e3e44; color: #d7e5e7;
  display: flex; flex-direction: column; transition: width .2s;
}
.sidebar.collapsed { width: 64px; }
.sidebar-brand {
  height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 700; color: #fff; white-space: nowrap;
}
.sidebar-brand .brand-logo { width: 30px; height: 30px; font-size: 15px; flex-shrink: 0; }
.sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px;
  cursor: pointer; color: #c4d6d9; margin-bottom: 4px; white-space: nowrap; transition: .15s;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot button {
  width: 100%; border: 0; background: rgba(255,255,255,.08); color: #d7e5e7;
  padding: 9px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.sidebar-foot button:hover { background: rgba(255,255,255,.16); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.collapse-btn { border: 0; background: none; cursor: pointer; font-size: 20px; color: #667085; padding: 4px 8px; }
.topbar-title { font-size: 15px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.admin-content { padding: 22px 24px 40px; flex: 1; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel-title { font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 6px; }
.stat-card .icon { float: right; width: 34px; height: 34px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-bar { width: 60%; max-width: 34px; background: var(--primary); border-radius: 5px 5px 0 0; min-height: 3px; opacity: .85; }
.chart-label { font-size: 11px; color: var(--muted); }
.chart-num { font-size: 11px; color: var(--primary); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select, .field-input, .form-input {
  border: 1px solid #d7dee2; border-radius: 8px; padding: 9px 11px; outline: none; background: #fff;
}
.toolbar input:focus, .toolbar select:focus, .field-input:focus, .form-input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.toolbar input { width: 220px; }
.toolbar .spacer { flex: 1; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { color: var(--muted); font-weight: 600; background: #f8fafb; }
.data-table tbody tr:hover { background: #fafcfd; }
.data-table .cell-limit { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 6px; }
.link-btn { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 2px 4px; font-size: 12px; }
.link-btn.danger { color: #c0392b; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pagination button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.pagination button:disabled { opacity: .5; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item label { font-size: 13px; color: #374151; }
.form-item .form-input { width: 100%; }
.form-item.full { grid-column: 1 / -1; }
.form-hint { font-size: 12px; color: #98a2b3; }
textarea.form-input { min-height: 90px; resize: vertical; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: 36px; height: 20px; accent-color: var(--primary); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 9px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.source-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-card h3 { margin: 0; font-size: 15px; }
.source-meta { color: var(--muted); font-size: 12px; margin-top: 8px; word-break: break-all; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #eef0f2; color: #667085; }
.badge.on { background: #e8f7ee; color: #137333; }
.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.empty-table { text-align: center; color: var(--muted); padding: 36px; }

/* ===== v1.1 多货源查询分组 ===== */
.source-group { margin-bottom: 22px; }
.source-group-head { display: flex; align-items: center; gap: 10px; margin: 4px 2px 12px; }
.source-group-head .source-tag { font-size: 13px; }
.source-group-count { color: var(--muted); font-size: 12px; }
.btn.danger { color: #c0392b; border-color: #e4b7b0; }
.btn.outline.danger { color: #c0392b; }

/* ===== 客服二维码（后台上传 + 前台正方形弹窗） ===== */
[hidden] { display: none !important; }
.qrcode-setting { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e3e8eb; }
.qrcode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.qrcode-row input[type="file"] { font-size: 13px; max-width: 100%; }
.qrcode-preview { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.qrcode-preview img { width: 120px; height: 120px; object-fit: contain; background: #fff; border: 1px solid #e3e8eb; border-radius: 8px; }
.service-qrcode { display: flex; justify-content: center; margin-bottom: 14px; }
.service-qrcode img {
  width: min(64vw, 260px); height: min(64vw, 260px);
  object-fit: contain; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}

/* ===== 全局替换词（后台系统设置） ===== */
.replace-row {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.replace-row .form-input { width: 100%; }
@media (max-width: 720px) {
  .replace-row { grid-template-columns: 1fr; }
}

/* ===== 前台查询页美化（浅色卡片风格） ===== */
.page-home { background: #f6faf9; }
.page-home .hero {
  width: min(1120px, calc(100% - 40px));
  margin: 26px auto 0;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, #eef8f5 0%, #e5f4ef 100%);
  border: 1px solid #dcece7;
  box-shadow: 0 10px 30px rgba(31, 105, 91, .06);
  text-align: left;
  color: var(--text);
  overflow: hidden;
}
.page-home .hero-inner {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.page-home .hero-copy { flex: 1; min-width: 0; }
.page-home .hero h1 {
  font-size: 24px; color: #173f37; margin: 0 0 6px;
  font-weight: 700; letter-spacing: 0;
}
.page-home .hero p {
  font-size: 13px; color: #6f8b83; margin: 0 0 18px; opacity: 1;
}
.page-home .search-label {
  display: block; font-size: 12px; color: #5c7b73; margin-bottom: 7px;
}
.page-home .search-bar {
  max-width: 560px; margin: 0; padding: 5px 5px 5px 14px;
  background: #fff; border: 1px solid #d8e9e3; border-radius: 10px;
  box-shadow: 0 4px 14px rgba(31, 105, 91, .06);
}
.page-home .search-icon { font-size: 20px; color: #9bb5ad; }
.page-home .search-bar input { padding: 11px 0; font-size: 14px; }
.page-home .search-bar button {
  background: var(--primary); border-radius: 8px; padding: 11px 26px; font-size: 14px;
}
.page-home .search-bar button:hover { background: var(--primary-dark); }
.page-home .query-meta {
  margin-top: 10px; font-size: 12px; color: #7a958e; min-height: 18px; opacity: 1;
}
.page-home .hero-visual { width: 230px; flex: 0 0 230px; }
.page-home .hero-visual svg { width: 100%; height: auto; display: block; }

.page-home .main-content {
  width: min(1120px, calc(100% - 40px));
  margin: 22px auto 50px;
}
.page-home .result-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid #e3efeb; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(24, 64, 56, .05);
}
.page-home .summary-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-home .summary-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.page-home .summary-title { font-size: 15px; font-weight: 700; color: #263b36; }
.page-home .summary-account { font-size: 12px; color: var(--muted); margin-top: 2px; }
.page-home .summary-count {
  background: #e8f3ff; color: #1967d2; border-radius: 6px;
  padding: 5px 11px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.page-home .source-group { margin-bottom: 18px; }
.page-home .source-group-head { margin: 0 2px 10px; }
.page-home .source-tag {
  background: #fff; border: 1px solid #dceae6; color: var(--primary);
  padding: 5px 12px; border-radius: 8px; font-weight: 600;
}
.page-home .order-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px;
}
.page-home .order-card {
  padding: 0; border: 1px solid #e2ece9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(24, 64, 56, .05);
}
.page-home .order-card:hover {
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 64, 56, .1);
}
.page-home .order-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: #f2faf7; border-bottom: 1px solid #e5f0ec;
}
.page-home .order-head-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-home .order-icon {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
  background: #e3f3ed; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.page-home .order-head h3 {
  margin: 0; font-size: 15px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-home .order-body { padding: 16px 18px; }
.page-home .block-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.page-home .info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.page-home .info-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-home .info-label { font-size: 11px; color: #98a2b3; }
.page-home .info-value { font-size: 12px; color: #374151; word-break: break-all; }
.page-home .progress-block {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e5ece9;
}
.page-home .progress-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.page-home .progress-name { font-size: 13px; font-weight: 700; }
.page-home .progress-percent { font-size: 12px; color: var(--primary); font-weight: 600; }
.page-home .progress-track { height: 8px; background: #edf3f1; }
.page-home .progress-fill { background: linear-gradient(90deg, var(--primary), #63b8a8); }
.page-home .study-note {
  margin-top: 9px; background: #f7faf9; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: #6b7f79; line-height: 1.7;
}
.page-home .order-actions {
  padding: 12px 18px; border-top: 1px solid #eef2f0; background: #fcfdfd;
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0;
}
.page-home .empty-section {
  border: 1px solid #e3efeb; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(24, 64, 56, .05);
}
@media (max-width: 860px) {
  .page-home .hero-inner { flex-direction: column; align-items: stretch; }
  .page-home .hero-visual { display: none; }
  .page-home .order-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-home .hero, .page-home .main-content { width: calc(100% - 24px); }
  .page-home .hero { margin-top: 12px; padding: 22px 18px; }
  .page-home .main-content { margin-top: 14px; }
  .page-home .info-grid { grid-template-columns: 1fr; }
}

/* 查询结果紧凑化：不显示货源分组名，订单卡片单列居中 */
.page-home .source-group-head { display: none !important; }
.page-home .result-section { max-width: 760px; margin: 0 auto; }
.page-home .order-list {
  width: 100%; max-width: 760px; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.page-home .source-group { margin-bottom: 0; }
.page-home .source-group > .order-card { margin-bottom: 14px; }
@media (max-width: 860px) {
  .page-home .result-section, .page-home .order-list { max-width: 100%; }
  .page-home .order-list { grid-template-columns: 1fr; }
}

/* 手机端订单卡片紧凑化：减少上下留白，信息改双列 */
@media (max-width: 600px) {
  .page-home .hero { margin-top: 8px; padding: 14px 16px; border-radius: 14px; }
  .page-home .hero h1 { font-size: 20px; margin-bottom: 4px; }
  .page-home .hero p { font-size: 12px; margin-bottom: 0; }
  .page-home .search-label { margin-top: 8px; font-size: 11px; }
  .page-home .search-bar { max-width: 100%; padding: 4px 4px 4px 10px; }
  .page-home .search-bar input { padding: 8px 0; font-size: 13px; }
  .page-home .search-bar button { padding: 8px 14px; font-size: 13px; }

  .page-home .result-summary { padding: 9px 12px; margin-bottom: 10px; }
  .page-home .summary-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 14px; }
  .page-home .summary-title { font-size: 13px; }
  .page-home .summary-account { font-size: 11px; margin-top: 1px; }
  .page-home .summary-count { font-size: 11px; padding: 4px 8px; }

  .page-home .order-list { gap: 10px; }
  .page-home .order-card { border-radius: 10px; }
  .page-home .order-head { padding: 8px 10px; gap: 8px; }
  .page-home .order-icon { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; border-radius: 6px; }
  .page-home .order-head h3 { font-size: 13px; }
  .page-home .status-badge { font-size: 11px; padding: 3px 7px; }
  .page-home .order-body { padding: 9px 10px; }
  .page-home .block-title { font-size: 11px; margin-bottom: 6px; }
  .page-home .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; }
  .page-home .info-label { font-size: 10px; }
  .page-home .info-value { font-size: 11px; line-height: 1.3; }
  .page-home .progress-block { margin-top: 8px; padding-top: 8px; }
  .page-home .progress-head { margin-bottom: 5px; }
  .page-home .progress-name { font-size: 11px; }
  .page-home .progress-percent { font-size: 11px; }
  .page-home .progress-track { height: 6px; }
  .page-home .study-note {
    margin-top: 6px; padding: 6px 8px; font-size: 10px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .page-home .order-actions { padding: 7px 10px; gap: 5px; }
  .page-home .order-actions .btn.small { padding: 5px 8px; font-size: 11px; }
}

/* 卡片字段精简：只保留学习账号，节省竖向空间 */
.page-home .account-line {
  display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 8px;
}
.page-home .account-label { flex: 0 0 auto; font-size: 11px; color: #98a2b3; }
.page-home .account-value { font-size: 12px; color: #374151; font-weight: 600; word-break: break-all; }
@media (max-width: 600px) {
  .page-home .account-line { margin-bottom: 6px; }
  .page-home .account-label { font-size: 10px; }
  .page-home .account-value { font-size: 11px; }
}

/* 搜索区去掉「学习账号」标签后留出间距 */
.page-home .search-label { display: none !important; }
@media (max-width: 600px) {
  .page-home .hero p { margin-bottom: 10px; }
}

/* 平台名显示在「学习账号」行右侧，加粗主色，不显示「平台」二字 */
.page-home .account-line .platform-name {
  margin-left: auto; flex: 0 1 auto; min-width: 0; text-align: right;
  padding-left: 10px; font-size: 12px; font-weight: 700; color: var(--primary);
  word-break: break-all;
}
@media (max-width: 600px) {
  .page-home .account-line .platform-name { font-size: 11px; padding-left: 8px; }
}
