/* ===== 硬件询价网 · 腾讯云控制台风格 UI ===== */

:root {
  --primary: #4a73e0;
  --primary-hover: #6288e6;
  --primary-active: #3a5fc0;
  --btn: #0052d9;
  --btn-hover: #2672e6;
  --btn-active: #0043b0;
  --success: #00a870;
  --warning: #ed7b2f;
  --danger: #d54941;
  --text-1: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --text-4: #bbbbbb;
  --border: #e5e5e5;
  --border-light: #eeeeee;
  --bg-page: #f5f7fa;
  --bg-table-head: #f7f8fa;
  --sider-bg: #1f2533;
  --sider-text: #a3a7b1;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; color: var(--text-1); background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* ================= 登录页（Gitee 风格 · 居中双栏卡片） ================= */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #F5F7FA; position: relative; overflow: hidden; padding: 40px 16px;
}
/* 背景装饰几何体 */
.auth-page::before, .auth-page::after { content: ""; position: absolute; pointer-events: none; }
.auth-page::before {
  left: -120px; bottom: -140px; width: 420px; height: 420px; border-radius: 12px;
  background: linear-gradient(135deg, #E4ECFB, #D3E0F8);
  transform: rotate(18deg); opacity: .7;
}
.auth-page::after {
  right: -90px; top: -110px; width: 340px; height: 340px; border-radius: 50%;
  border: 46px solid #E8EFFC; opacity: .9;
}
.auth-card2 {
  position: relative; z-index: 2;
  width: 880px; max-width: 96vw; min-height: 540px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 24px 70px -18px rgba(20, 45, 110, .22);
  display: grid; grid-template-columns: 42% 58%; overflow: hidden;
}
/* 左侧品牌栏 */
.auth-brand2 {
  background:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, #1B2A52 0%, #0D1B3E 60%, #0A1735 100%);
  color: #fff; padding: 44px 40px; display: flex; flex-direction: column;
}
.ab-logo-row { display: flex; align-items: center; gap: 10px; }
.ab-logo { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.10); padding: 4px; }
.ab-name { font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.ab-name small { font-size: 10.5px; font-weight: 400; opacity: .65; letter-spacing: 1px; }
.ab-slogan { margin-top: 34px; font-size: 25px; line-height: 1.5; font-weight: 600; letter-spacing: 1px; }
.ab-quote { margin-top: auto; padding-top: 40px; }
.ab-quote p { font-size: 13px; line-height: 2; color: rgba(255,255,255,.82); }
.ab-author { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); }
.ab-promo {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.85); transition: color .2s;
}
.ab-promo:hover { color: #fff; }
.ab-promo svg { transition: transform .2s; }
.ab-promo:hover svg { transform: translateX(3px); }
/* 右侧表单 */
.auth-form2 { padding: 52px 56px 40px; display: flex; flex-direction: column; }
.af-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.af-head h2 { font-size: 22px; font-weight: 700; color: var(--navy); }
.af-head a { font-size: 13px; color: #4A73E0; }
.af-head a:hover { color: #0052D9; }
.af-input {
  width: 100%; height: 46px; border: 1px solid #D9DEE8; border-radius: 4px;
  padding: 0 14px; font-size: 14px; color: var(--text-1); outline: none;
  margin-bottom: 18px; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.af-input::placeholder { color: #B6BDCC; }
.af-input:hover { border-color: #B6C2D8; }
.af-input:focus { border-color: #4A73E0; box-shadow: 0 0 0 2px rgba(74,115,224,.14); }
.af-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.af-captcha { display: flex; gap: 10px; margin-bottom: 18px; }
.af-captcha .af-input { margin-bottom: 0; flex: 1; }
.af-seg { display: flex; background: #F0F3F9; border-radius: 6px; padding: 3px; margin-bottom: 20px; }
.af-seg .seg-item {
  flex: 1; height: 34px; border: none; background: none; border-radius: 4px;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all .2s;
}
.af-seg .seg-item.active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 2px 6px rgba(20,45,110,.10); }
.af-btn-sm {
  width: 132px; height: 46px; flex-shrink: 0; border-radius: 4px; cursor: pointer;
  border: 1px solid #0052D9; color: #0052D9; background: #fff; font-size: 13px;
  transition: all .2s;
}
.af-btn-sm:hover:not(:disabled) { background: #0052D9; color: #fff; }
.af-btn-sm:disabled { border-color: #C9D2E4; color: #9AA5BC; cursor: not-allowed; background: #F5F7FA; }
.af-cap-img {
  width: 132px; height: 46px; border-radius: 4px; cursor: pointer;
  border: 1px solid #D9DEE8; background: #F5F8FF; flex-shrink: 0;
  transition: border-color .2s;
}
.af-cap-img:hover { border-color: #4A73E0; }
.af-check { display: inline-block; font-size: 13px; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.af-check input { width: 15px; height: 15px; accent-color: #0052D9; cursor: pointer; vertical-align: middle; margin-right: 7px; }
.af-check a { color: #4A73E0; text-decoration: none; }
.af-check a:hover { text-decoration: underline; }
.af-hint { font-size: 12px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
.af-btn {
  width: 100%; height: 46px; border: none; border-radius: 4px;
  background: #0052D9; color: #fff; font-size: 16px; letter-spacing: 6px;
  cursor: pointer; transition: background .2s;
}
.af-btn:hover { background: #2672E6; }
.af-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-msg { color: var(--danger); font-size: 12px; margin-top: 10px; text-align: center; min-height: 16px; }
.af-divider {
  display: flex; align-items: center; gap: 14px; margin: 26px 0 18px;
  color: var(--text-3); font-size: 12.5px;
}
.af-divider::before, .af-divider::after { content: ""; flex: 1; height: 1px; background: #E8ECF3; }
.af-oauth { display: flex; justify-content: center; gap: 22px; }
.oauth-ico {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: #EFF3FA; color: #6B7A9C; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; user-select: none;
}
.oauth-ico:hover { background: #0052D9; color: #fff; }
.oauth-wx:hover { background: #07C160; }
.wx-qr-box {
  width: 300px; height: 340px; margin: 6px auto 0;
  border: 1px solid #E8ECF3; border-radius: 8px; overflow: hidden;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.wx-qr-frame { width: 100%; height: 100%; border: none; }
.wx-qr-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.af-field-hint { color: var(--danger); font-size: 12px; margin: 6px 2px 0; min-height: 14px; line-height: 1.4; }
.af-input.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(237, 68, 68, .08); }

/* 滑块验证按钮 */
.af-slider-verify { margin-bottom: 18px; }
.slider-verify-btn {
  width: 100%; height: 46px; border-radius: 4px; cursor: pointer;
  border: 1px solid #D9DEE8; background: #F5F8FF; color: var(--text-2);
  font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s; user-select: none;
}
.slider-verify-btn:hover { border-color: #4A73E0; color: #4A73E0; }
.slider-verify-btn.verified { border-color: #00A870; background: #F0FFF9; color: #00A870; cursor: default; }
.slider-verify-btn .sv-icon {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.slider-verify-btn.verified .sv-icon { background: #00A870; color: #fff; border-color: #00A870; }

/* 滑块验证弹窗 */
.slider-box {
  background: #fff; border-radius: 8px; width: 360px; max-width: 92vw;
  box-shadow: 0 24px 70px -18px rgba(20, 45, 110, .28);
  overflow: hidden; animation: modalIn .2s ease;
}
.slider-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--text-1);
  border-bottom: 1px solid var(--border-light);
}
.slider-close {
  width: 28px; height: 28px; border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text-3); border-radius: 4px;
}
.slider-close:hover { color: var(--text-1); background: #F5F7FA; }
.slider-puzzle { padding: 18px; }
.slider-bg {
  position: relative; width: 320px; height: 160px; border-radius: 4px; overflow: hidden;
  background: #F5F8FF; margin: 0 auto;
}
.slider-bg img { display: block; width: 100%; height: 100%; }
.slider-piece {
  position: absolute; left: 0; top: 0; width: 50px; height: 50px;
  cursor: grab; touch-action: none; z-index: 2;
}
.slider-piece:active { cursor: grabbing; }
.slider-piece img { width: 100%; height: 100%; display: block; }
.slider-status {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s;
  text-shadow: 0 1px 2px rgba(255,255,255,.9), 0 0 8px rgba(255,255,255,.7);
}
.slider-status.ok { background: rgba(0, 168, 112, .22); color: #008f5f; opacity: 1; }
.slider-status.err { background: rgba(213, 73, 65, .22); color: #b9362f; opacity: 1; }
.slider-track {
  position: relative; height: 42px; margin: 0 18px 18px; border-radius: 21px;
  background: #F0F3F9; user-select: none; touch-action: none;
}
.slider-bar {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: rgba(74, 115, 224, .15); border-radius: 21px 0 0 21px;
}
.slider-handle {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: #4A73E0; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: grab; box-shadow: 0 4px 12px rgba(74, 115, 224, .35);
  transition: background .2s, transform .05s;
}
.slider-handle:active { cursor: grabbing; transform: scale(1.05); }
.slider-tip {
  position: absolute; left: 0; right: 0; top: 0; line-height: 42px; text-align: center;
  font-size: 13px; color: var(--text-3); pointer-events: none;
}

.auth-foot2 { position: relative; z-index: 2; margin-top: 26px; font-size: 12px; color: #9AA5BC; }
.auth-foot2 a { color: #6B7A9C; }
.auth-foot2 a:hover { color: #0052D9; }
/* 窄屏: 隐藏品牌栏 */
@media (max-width: 800px) {
  .auth-card2 { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand2 { display: none; }
  .auth-form2 { padding: 40px 28px 32px; }
}

/* ================= 通用控件（腾讯云规范） ================= */
.tc-label { display: block; font-size: 12px; color: var(--text-2); margin: 12px 0 6px; }
.tc-input, .tc-textarea {
  width: 100%; border: 1px solid #ddd; border-radius: var(--radius);
  padding: 7px 12px; font-size: 13px; color: var(--text-1);
  outline: none; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.tc-input { height: 36px; }
.tc-textarea { resize: vertical; line-height: 1.6; }
.tc-input:hover, .tc-textarea:hover { border-color: #c8c8c8; }
.tc-input:focus, .tc-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 115, 224, .15);
}
.tc-input::placeholder, .tc-textarea::placeholder { color: var(--text-4); }

.tc-btn {
  height: 32px; padding: 0 16px; border-radius: 0;
  font-size: 13px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s; white-space: nowrap; background: #fff;
}
.tc-btn:disabled { opacity: .55; cursor: not-allowed; }
.tc-btn.primary { background: var(--btn); color: #fff; }
.tc-btn.primary:hover:not(:disabled) { background: var(--btn-hover); }
.tc-btn.primary:active:not(:disabled) { background: var(--btn-active); }
.tc-btn.success { background: var(--btn); color: #fff; }
.tc-btn.success:hover:not(:disabled) { background: var(--btn-hover); }
.tc-btn.default { border-color: #ddd; color: var(--text-1); }
.tc-btn.default:hover:not(:disabled) { border-color: var(--btn); color: var(--btn); }
.tc-btn.text { border: none; color: var(--text-2); background: none; padding: 0 8px; }
.tc-btn.text:hover { color: var(--primary); }
.tc-btn.danger-text { border: none; color: var(--text-3); background: none; padding: 0 6px; }
.tc-btn.danger-text:hover { color: var(--danger); }
.tc-btn.sm { height: 26px; padding: 0 12px; font-size: 12px; }
.tc-btn.block { width: 100%; height: 38px; font-size: 14px; }

.hint { font-size: 12px; color: var(--text-3); }

/* 标签 */
.tag {
  display: inline-block; font-size: 12px; line-height: 20px;
  padding: 0 8px; border-radius: 2px; white-space: nowrap;
}
.tag-green { color: var(--success); background: #e8f8f2; }
.tag-orange { color: var(--warning); background: #fcebdd; }
.tag-gray { color: var(--text-3); background: #f0f1f5; }
.tag-blue { color: var(--primary); background: #e8f1ff; }
.tag-outline-green { color: var(--success); border: 1px solid var(--success); background: #fff; }

/* ================= 控制台框架 ================= */
.layout { display: flex; min-height: 100vh; }

.sider {
  width: 216px; background: var(--sider-bg); color: var(--sider-text);
  display: flex; flex-direction: column; flex-shrink: 0;
}
.sider-logo {
  height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; color: #fff; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sider-logo-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-block; object-fit: cover;
}
.sider-menu { padding: 12px 0; flex: 1; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px 0 24px; cursor: pointer;
  font-size: 14px; color: var(--sider-text); position: relative;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.menu-item.active { color: #fff; background: rgba(255,255,255,.1); border-left-color: var(--primary); }
.menu-ico { font-size: 15px; opacity: .8; }
.sider-footer {
  padding: 16px 20px; font-size: 11px; line-height: 1.8;
  color: rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.06);
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0;
}
.topbar-title { font-size: 16px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-right: 4px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.content { padding: 20px 24px; flex: 1; }

/* ================= 卡片与区块 ================= */
.tc-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 21, 64, .06);
  padding: 20px 24px; margin-bottom: 16px;
}
.sec-title {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  padding-left: 10px; border-left: 3px solid var(--primary);
  line-height: 1.2; margin-bottom: 10px;
}
.sec-title.mb-0 { margin-bottom: 0; }
.sec-count { font-size: 12px; color: var(--text-3); font-weight: 400; }
.sec-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

.empty {
  border: 1px dashed #dcdfe5; border-radius: var(--radius);
  padding: 28px 0; text-align: center; font-size: 12px; color: var(--text-4);
  background: #fafbfc;
}

/* ================= 设备条目 ================= */
.item-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.item-row:hover { border-color: #c6dfff; box-shadow: 0 2px 8px rgba(74, 115, 224, .06); }
.item-name { width: 190px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-model { width: 210px; font-size: 12px; color: var(--primary); font-family: Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-spec { flex: 1; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-qty { font-size: 12px; color: var(--text-3); width: 64px; text-align: right; }

/* ================= 结果卡片 ================= */
.result-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 21, 64, .06);
  padding: 20px 24px;
}
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-title { font-size: 15px; font-weight: 600; }
.result-title .model { font-size: 12px; color: var(--primary); font-weight: 400; margin-left: 8px; font-family: Consolas, monospace; }
.result-tools { display: flex; align-items: center; gap: 8px; }

.suggest-panel {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(90deg, #f2f8ff 0%, #f0fbf6 100%);
  border: 1px solid #d6e9ff; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 16px;
}
.suggest-label { font-size: 12px; color: var(--text-3); }
.suggest-price { font-size: 26px; font-weight: 700; color: var(--danger); line-height: 1.2; }
.suggest-reason {
  flex: 1; font-size: 12px; color: var(--text-2); line-height: 1.7;
  border-left: 1px solid #d6e9ff; padding-left: 20px;
}

/* 腾讯云风格表格 */
.tc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tc-table th {
  background: var(--bg-table-head); color: var(--text-3);
  font-weight: 500; font-size: 12px; text-align: left;
  padding: 9px 12px; border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.tc-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.tc-table tbody tr:hover { background: #f2f7ff; }
.price-cell { font-weight: 600; color: var(--text-1); white-space: nowrap; }
.src-cell .src-title { color: var(--text-1); }
.src-link {
  display: block; font-size: 12px; color: var(--primary);
  word-break: break-all; margin-top: 2px; text-decoration: none;
}
.src-link:hover { text-decoration: underline; }
.caliber-cell { font-size: 12px; color: var(--text-3); line-height: 1.6; max-width: 320px; }

/* ================= 模态窗口 ================= */
.modal-mask {
  position: fixed; inset: 0; background: rgba(13, 27, 62, .45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: maskIn .15s ease;
}
@keyframes maskIn { from { opacity: 0 } to { opacity: 1 } }
.modal-box {
  background: #fff; border-radius: 8px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(10, 30, 80, .3); overflow: hidden;
  animation: boxIn .18s cubic-bezier(.22, .61, .36, 1);
}
@keyframes boxIn { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
.modal-body { padding: 26px 26px 8px; display: flex; gap: 14px; }
.modal-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.modal-ico.info { background: #E8F1FF; color: #4A73E0; }
.modal-ico.warn { background: #FCEBDD; color: #ED7B2F; }
.modal-txt h3 { font-size: 15.5px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.modal-txt p { font-size: 13px; color: var(--text-2); line-height: 1.8; word-break: break-all; }
.modal-txt input {
  width: 100%; height: 38px; border: 1px solid #D9DEE8; border-radius: 4px;
  padding: 0 12px; font-size: 13px; outline: none; margin-top: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.modal-txt input:focus { border-color: #4A73E0; box-shadow: 0 0 0 2px rgba(74, 115, 224, .14); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 22px; }
.modal-box.modal-lg { max-width: 1020px; max-height: 86vh; display: flex; flex-direction: column; }
.modal-box.modal-lg .modal-body-lg { padding: 16px 26px 22px; overflow-y: auto; }

/* ================= 步骤进度条（腾讯云阶段式） ================= */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.step { display: flex; align-items: flex-start; gap: 12px; transition: opacity .3s; }
.step .dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #DCDfe5; color: #fff; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.step-info { display: flex; flex-direction: column; gap: 3px; }
.step .lbl { font-size: 15px; color: var(--text-3); font-weight: 500; transition: color .25s; white-space: nowrap; }
.step .sub { font-size: 12px; color: var(--text-4); white-space: nowrap; transition: color .25s; }
.step.active .dot {
  background: var(--primary);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 115, 224, .12); }
  50% { box-shadow: 0 0 0 9px rgba(74, 115, 224, .05); }
}
.step.active .lbl { color: var(--primary); font-weight: 700; }
.step.active .sub { color: var(--text-3); }
.step.done .dot { background: var(--success); animation: dotPop .4s ease; }
@keyframes dotPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.step.done .lbl { color: var(--text-1); font-weight: 600; }
.step.done .sub { color: var(--text-4); }
.stepper .chev {
  flex: 1; height: 4px; border-radius: 2px; min-width: 28px;
  background: #E4E9F2; position: relative; overflow: hidden;
  font-size: 0; user-select: none; transition: background .3s;
}
.stepper .chev::after {
  content: ''; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--success), var(--primary));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.stepper .chev.passed::after { transform: scaleX(1); }
.stepper .chev.passed { background: #D7E4F7; }
.step-hint {
  margin-top: 16px; padding: 14px 16px 12px;
  background: #F7F9FD; border: 1px solid #EBEFF7; border-radius: 6px;
}
.step-hint-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-1);
  padding-left: 9px; border-left: 3px solid var(--primary);
  line-height: 1.2; margin-bottom: 8px;
}
.step-hint p {
  font-size: 12.5px; color: var(--text-3); line-height: 1.9;
  margin: 0; padding-left: 12px; transition: opacity .25s;
}

/* 日志中心 */
.log-pre {
  background: #0D1B3E; color: #B9C6E4; font-family: Consolas, ui-monospace, monospace;
  font-size: 12px; line-height: 1.8; padding: 16px 18px; border-radius: 6px;
  max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin-top: 12px;
}

/* 响应式 */
@media (max-width: 900px) {
  .sider { width: 64px; }
  .sider-logo { font-size: 0; justify-content: center; padding: 0; gap: 0; }
  .menu-item { justify-content: center; padding: 0; font-size: 0; }
  .menu-ico { font-size: 18px; }
  .sider-footer { display: none; }
  .item-spec { display: none; }
  .item-model { width: 140px; }
}


/* ================= 个人中心 ================= */
.profile-tabs {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.profile-tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 10px 16px; font-size: 14px; color: var(--text-2); cursor: pointer;
  transition: all .15s;
}
.profile-tab:hover { color: var(--primary); }
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.profile-pane { animation: paneIn .2s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.profile-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
}
.profile-avatar-col {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.profile-avatar-label { font-size: 14px; font-weight: 500; color: var(--text-1); }
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.profile-avatar-tip { font-size: 12px; color: var(--text-3); }
.profile-form-col { display: grid; gap: 14px; }
.pf-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.pf-row label { font-size: 13px; color: var(--text-2); text-align: right; }
.pf-row .af-input[readonly] { background: #F5F7FB; color: var(--text-3); }
.pf-row:last-child { margin-top: 6px; }
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; align-items: flex-start; }
  .pf-row label { text-align: left; }
}


/* ================= 支付中心 ================= */
.vip-status-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, #F2F7FF 0%, #F0FAF6 100%);
  border: 1px solid #D6E9FF; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 24px;
}
.vip-status-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--primary); font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(74,115,224,.12);
}
.vip-status-info { flex: 1; }
.vip-status-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.vip-status-sub { font-size: 13px; color: var(--text-2); }
.vip-status-card .tag { flex-shrink: 0; }

.pane-title {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  margin-bottom: 16px; padding-left: 10px; border-left: 3px solid var(--primary);
}
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.plan-card {
  background: #fff; border: 1px solid #E8ECF3; border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column;
  position: relative; transition: all .2s;
}
.plan-card:hover {
  border-color: #BFD4FF;
  box-shadow: 0 8px 24px rgba(20, 45, 110, .08);
  transform: translateY(-2px);
}
.plan-recommend {
  position: absolute; top: -1px; right: 18px;
  background: #FF7A45; color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 0 0 6px 6px;
}
.plan-name { font-size: 18px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.plan-price { font-size: 34px; font-weight: 700; color: var(--primary); margin: 10px 0; }
.plan-price small { font-size: 16px; font-weight: 500; margin-right: 2px; }
.plan-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.plan-btn {
  width: 100%; height: 44px; border: none; border-radius: 4px;
  background: #0052D9; color: #fff; font-size: 15px; cursor: pointer;
  transition: background .2s;
}
.plan-btn:hover:not(:disabled) { background: #2672E6; }
.plan-btn:disabled {
  background: #C9D2E4; color: #fff; cursor: not-allowed;
}


/* ================= 用户管理操作列 ================= */
.user-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
}
.user-actions .planSel {
  height: 30px; min-width: 92px; max-width: 110px;
  border: 1px solid #D9DEE8; border-radius: 4px;
  padding: 0 8px; font-size: 12px; color: var(--text-1);
  background: #fff; cursor: pointer; outline: none;
  transition: border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.user-actions .planSel:focus {
  border-color: #4A73E0; box-shadow: 0 0 0 2px rgba(74,115,224,.12);
}
.user-actions .act-btn {
  height: 30px; padding: 0 12px;
  border: 1px solid #D9DEE8; border-radius: 4px;
  background: #fff; color: var(--text-2); font-size: 12px;
  cursor: pointer; transition: all .15s;
  white-space: nowrap; flex-shrink: 0;
}
.user-actions .act-btn:hover {
  border-color: #4A73E0; color: #4A73E0;
}
.user-actions .act-btn.primary {
  background: #0052D9; color: #fff; border-color: #0052D9;
}
.user-actions .act-btn.primary:hover {
  background: #2672E6; border-color: #2672E6;
}


/* ================= 支付中心美化 ================= */
.pay-section { max-width: 840px; margin: 0 auto; }
.pay-subtitle {
  text-align: center; font-size: 13px; color: var(--text-3);
  margin-bottom: 24px;
}
.plan-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.plan-card {
  background: #fff; border: 1px solid #E8ECF3; border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column;
  position: relative; transition: all .25s;
}
.plan-card:hover {
  border-color: #BFD4FF;
  box-shadow: 0 12px 32px rgba(20, 45, 110, .10);
  transform: translateY(-3px);
}
.plan-card.plan-popular {
  border-color: #0052D9;
  background: linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
}
.plan-badge {
  position: absolute; top: 0; right: 24px;
  background: #0052D9; color: #fff; font-size: 12px;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,82,217,.18);
}
.plan-header { margin-bottom: 18px; }
.plan-name { font-size: 20px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.plan-price { font-size: 42px; font-weight: 700; color: #0052D9; line-height: 1; margin-bottom: 8px; }
.plan-price small { font-size: 18px; font-weight: 500; margin-right: 3px; }
.plan-meta { font-size: 12px; color: var(--text-3); }
.plan-features {
  list-style: none; margin: 0 0 24px; padding: 0; flex: 1;
  border-top: 1px dashed #E8ECF3; padding-top: 18px;
}
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2); margin-bottom: 10px;
}
.plan-features li:last-child { margin-bottom: 0; }
.plan-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #E8F1FF; color: #0052D9; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-btn {
  width: 100%; height: 46px; border: none; border-radius: 6px;
  background: #0052D9; color: #fff; font-size: 15px; cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(0,82,217,.18);
}
.plan-btn:hover:not(:disabled) { background: #2672E6; }
.plan-btn:disabled {
  background: #C9D2E4; color: #fff; cursor: not-allowed; box-shadow: none;
}
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
}


/* ================= 三栏定价卡片 ================= */
.pricing-header { text-align: center; margin-bottom: 32px; }
.pricing-label { font-size: 12px; color: #5A6F9E; letter-spacing: 2px; text-transform: uppercase; }
.pricing-title { font-size: 28px; font-weight: 700; color: #0D1B3E; margin: 8px 0 6px; }
.pricing-subtitle { font-size: 13px; color: #5A6376; }
.plan-grid.three { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card .plan-desc { font-size: 13px; color: #5A6376; margin: 6px 0 12px; min-height: 20px; }
.plan-card .plan-price { font-size: 42px; font-weight: 700; color: #0052D9; line-height: 1.2; margin: 4px 0 14px; }
.plan-card .plan-price small { font-size: 16px; font-weight: 500; color: #5A6376; margin: 0 2px; }
.plan-highlight {
  display: inline-block; background: #EEF3FF; color: #0052D9;
  font-size: 12px; padding: 6px 12px; border-radius: 6px; margin-bottom: 18px;
}
.plan-features { border-top: none; padding-top: 0; margin-bottom: 22px; }
.plan-features li { font-size: 13px; color: #3C404B; padding-bottom: 10px; border-bottom: 1px solid #F2F4F8; margin-bottom: 10px; }
.plan-features li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.plan-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #E8F5E9; color: #43A047; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-btn.ghost {
  background: #fff; color: #0052D9; border: 1px solid #0052D9;
  box-shadow: none;
}
.plan-btn.ghost:hover:not(:disabled) { background: #F2F7FF; }
@media (max-width: 900px) {
  .plan-grid.three { grid-template-columns: 1fr; }
}


/* ================= 推广信息 ================= */
.invite-card {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid #E8ECF3; border-radius: 12px;
  padding: 28px;
}
.invite-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 16px; }
.invite-code-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.invite-code {
  flex: 1; font-size: 28px; font-weight: 700; letter-spacing: 4px;
  color: #0052D9; background: #F2F7FF; border-radius: 8px;
  padding: 12px 20px; text-align: center; font-family: Consolas, monospace;
}
.invite-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
.invite-stat {
  background: #F7F9FD; border-radius: 8px; padding: 16px; text-align: center;
}
.invite-stat-num { font-size: 18px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.invite-stat-label { font-size: 12px; color: var(--text-3); }
.invite-rule { font-size: 12px; color: var(--text-3); line-height: 1.8; }

/* ================= 支付预览 ================= */
.pay-preview {
  background: #F7F9FD; border: 1px solid #E8ECF3; border-radius: 8px;
  padding: 14px 18px; margin-bottom: 16px;
}
.pay-preview-row {
  display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px;
}
.pay-preview-row:last-child { margin-bottom: 0; }
.pay-preview-label { color: var(--text-2); }
.pay-preview-value { color: var(--text-1); font-weight: 500; }
.pay-preview-value.discount { color: var(--warning); }
.pay-preview-value.total { font-size: 16px; color: #0052D9; font-weight: 700; }
.pay-red-toggle {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2);
  margin-bottom: 16px; cursor: pointer;
}
.pay-red-toggle input { width: 16px; height: 16px; accent-color: #0052D9; cursor: pointer; }


/* ================= 上传 Excel 弹窗 ================= */
.upload-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; font-size: 15px; font-weight: 600; color: var(--text-1);
  border-bottom: 1px solid var(--border-light);
}
.upload-modal-body { padding: 20px 22px 24px; }
.upload-notes-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.upload-notes {
  margin: 0 0 16px; padding-left: 20px;
  font-size: 13px; color: var(--text-2); line-height: 1.9;
}
.upload-notes li { margin-bottom: 6px; }
.upload-notes b { color: var(--primary); }
.upload-tpl-row { margin-bottom: 16px; }
.upload-drop {
  border: 2px dashed #C9D2E4; border-radius: 8px;
  padding: 36px 20px; text-align: center; cursor: pointer;
  transition: all .2s; background: #FAFBFE;
}
.upload-drop:hover, .upload-drop.dragover {
  border-color: var(--primary); background: #F0F6FF;
}
.upload-drop-ico { font-size: 34px; color: var(--primary); margin-bottom: 8px; line-height: 1; }
.upload-drop-txt { font-size: 14px; color: var(--text-1); font-weight: 500; }
.upload-drop-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }


/* ================= Excel 解析 loading ================= */
.parse-loading-box {
  background: #fff; border-radius: 12px; padding: 36px 44px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 24px 70px rgba(10, 30, 80, .25);
  min-width: 320px; animation: promoIn .25s cubic-bezier(.22,.61,.36,1);
}
.parse-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid #E3EBFA; border-top-color: var(--primary);
  animation: parseSpin .9s linear infinite; margin-bottom: 18px;
}
@keyframes parseSpin { to { transform: rotate(360deg); } }
.parse-loading-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.parse-loading-stage { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; min-height: 18px; transition: opacity .2s; }
.parse-progress { width: 240px; height: 6px; background: #EEF2FA; border-radius: 3px; overflow: hidden; }
.parse-progress-bar {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #8AA9EE);
  transition: width .5s ease;
}


/* ================= 硬件分析表格 ================= */
.analyze-table { table-layout: fixed; width: 100%; }
.analyze-table th { white-space: nowrap; }
.analyze-table td { vertical-align: top; }
.analyze-table .col-brand {
  width: 92px; white-space: nowrap; font-weight: 500; color: var(--text-1);
}
.analyze-table .col-model {
  width: 168px; word-break: break-all;
  color: var(--primary); font-family: Consolas, monospace; font-size: 12.5px;
}
.analyze-table .col-params {
  word-break: break-word; font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.analyze-table .col-scenario {
  width: 190px; word-break: break-word; font-size: 12.5px; color: var(--text-3); line-height: 1.7;
}
.analyze-table .col-price {
  width: 200px; word-break: break-word; line-height: 1.7;
  white-space: normal;   /* 覆盖 price-cell 的 nowrap，防止横向溢出 */
}
/* 硬件分析弹窗内容不出现横向滚动条 */
.modal-box.modal-lg .modal-body-lg { overflow-x: hidden; }


/* ================= 硬件分析品牌页签 ================= */
.analyze-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.analyze-tab {
  padding: 7px 18px; border-radius: 0;
  border: 1px solid #D9DEE8; background: #fff;
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.analyze-tab:hover { border-color: var(--primary); color: var(--primary); }
.analyze-tab.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 10px rgba(74, 115, 224, .25);
}


/* ================= 硬件分析 loading ================= */
.analyze-loading {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 32px;
}


/* ================= 硬件分析产品勾选 ================= */
.analyze-table .col-sel { width: 36px; text-align: center; }
.analyze-table .col-sel input { cursor: pointer; width: 15px; height: 15px; accent-color: var(--primary); }
.analyze-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
}


/* ================= 顶栏推广链接按钮 ================= */
.invite-top-btn {
  height: 24px; padding: 0 10px; border-radius: 0; border: none;
  background: linear-gradient(120deg, #FF7A45, #D46B08);
  color: #fff; font-size: 12px; cursor: pointer;
  transition: all .2s; margin-right: 4px;
}
.invite-top-btn:hover {
  background: #B85600;
}


/* ================= 价格差异分析面板 ================= */
.diff-panel {
  margin-bottom: 16px; background: #F7F9FD; border: 1px solid #E8ECF3;
  border-radius: 8px; padding: 16px 18px;
  animation: paneIn .2s ease;
}
.diff-title {
  font-size: 13.5px; font-weight: 600; color: var(--text-1);
  padding-left: 9px; border-left: 3px solid var(--primary);
  margin-bottom: 10px;
}
.diff-summary { font-size: 13px; color: var(--text-1); line-height: 1.8; margin-bottom: 10px; }
.diff-reasons {
  margin: 0 0 12px; padding-left: 20px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.9;
}
.diff-reasons li { margin-bottom: 4px; }
.diff-suggestion {
  font-size: 12.5px; color: var(--text-2); line-height: 1.8;
  background: #EEF3FF; border: 1px solid #DBE8FF; border-radius: 6px;
  padding: 10px 14px;
}
.diff-suggestion b { color: var(--primary); }
.diff-loading {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--text-3); padding: 8px 0;
}
.diff-spinner {
  width: 24px !important; height: 24px !important;
  border-width: 3px !important; margin-bottom: 0 !important;
}
.diff-error { font-size: 12.5px; color: var(--danger); }


/* ================= 结果分析按钮与弹窗 ================= */
.suggest-panel .diffBtn { flex-shrink: 0; align-self: center; }
.diff-modal-body { padding: 20px 24px 24px; }
.diff-modal-body .diff-summary { font-size: 13.5px; }


/* ================= 差异分析弹窗美化 ================= */
.diff-summary-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(120deg, #FFF4E5, #FFE9D6);
  border: 1px solid #FFD9B3; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 18px;
}
.diff-summary-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #ED7B2F; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.diff-summary-text { font-size: 13.5px; color: #7A4A00; line-height: 1.8; font-weight: 500; }
.diff-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  padding-left: 9px; border-left: 3px solid var(--primary);
  margin-bottom: 10px;
}
.diff-reason-list { display: grid; gap: 8px; margin-bottom: 16px; }
.diff-reason-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: #F7F9FD; border: 1px solid #E8ECF3; border-radius: 6px;
  padding: 10px 12px;
}
.diff-reason-no {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.diff-reason-text { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.hl-price { color: #D54941; font-weight: 700; }
.diff-suggestion {
  background: #EEF3FF; border: 1px solid #C7DBFF; border-radius: 8px;
  padding: 12px 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.8;
}
.diff-suggestion-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.diff-suggestion .hl-price { color: #0052D9; }
