/* 代理 IP 商店 — 前端样式（参照发卡网 Shousuo / Query 的设计语言） */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --body: #3a3a3c;
  --sub: #6e6e73;
  --faint: #86868b;
  --line: #e5e5e5;
  --line-soft: #eeeeee;
  --black: #111111;
  --blue: #0b5fff;
  --blue-soft: #eef4ff;
  --red: #e60012;
  --green: #1a9e3f;
  --amber-bg: #fff8e6;
  --amber-text: #8a6d00;
  --green-soft: #e7f6ec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-decoration: none; }
a[href^="tel"] { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* 导航 */
.nav { max-width: 1000px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 980px; padding: 6px 14px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }
.nav .orders { display: inline-block; width: auto; margin: 0; }
.nav .orders .btn-front { padding: 8px 18px; font-size: 14px; white-space: nowrap; }

/* 两栏布局 */
.wrap { max-width: 1000px; margin: 6px auto 0; padding: 0 20px 32px; display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
@media (max-width: 820px) { .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* Hero */
.hero { padding: 18px 0 0; }
.hero h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.3px; }
.hero-sub { color: var(--sub); font-size: 15px; margin: 0 0 14px; line-height: 1.7; }
.hero-points { margin: 0 0 12px; padding: 0; list-style: none; }
.hero-points li { position: relative; padding-left: 24px; margin-bottom: 6px; font-size: 15px; color: var(--body); }
.hero-points li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.api-note { font-size: 12.5px; color: var(--sub); margin: 0; }

/* 区块 */
.section { margin-top: 32px; }
.section h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.3px; }
.section .sub { color: var(--sub); font-size: 14px; margin: 0 0 18px; }
.stack { display: grid; gap: 10px; }

/* 购买卡（右侧，桌面端吸顶） */
.card { background: var(--card); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 40px 32px 30px; position: sticky; top: 16px; }
@media (max-width: 820px) { .card { position: static; } }
.card h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.3px; }
.card .sub { color: var(--sub); font-size: 14px; margin: 0 0 18px; }

/* 选项行（地区 / 套餐 / 已选套餐） */
.spec { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px; }
button.spec { width: 100%; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
button.spec:hover { border-color: var(--blue); }
.spec.selected { border-color: var(--blue); background: var(--blue-soft); }
.spec .check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; line-height: 22px; text-align: center; flex: 0 0 auto; }
.spec .check.off { background: #fff; border: 1.5px solid var(--line); }
.spec-main { min-width: 0; flex: 1 1 auto; }
.spec .name { font-weight: 700; font-size: 15px; }
.spec .desc { color: var(--sub); font-size: 12.5px; margin-top: 2px; text-wrap: balance; overflow-wrap: break-word; }
.spec .price { margin-left: auto; text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; }
.spec .price .cur { font-size: 11px; font-weight: 700; margin-right: 2px; }
.spec .price small { display: block; font-weight: 600; font-size: 12px; color: var(--red); }
.spec .code { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--sub); flex: 0 0 auto; }
.spec .side { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.spec .side .price { margin-left: 0; }
.plan-spec { cursor: pointer; }
.plan-spec:hover { border-color: var(--blue); }

/* 价格待定 */
.tbd-card { background: var(--card); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 28px; }
.tbd-card h3 { margin: 0 0 6px; font-size: 18px; }
.tbd-card p { margin: 6px 0; color: var(--sub); font-size: 14px; line-height: 1.7; }
.tbd-badge { display: inline-block; background: var(--amber-bg); color: var(--amber-text); border-radius: 980px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }

/* 表单 */
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.input { width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px 14px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; }
.input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(11,95,255,.12); }
.input::placeholder { color: #aeaeb2; }
textarea.input { resize: vertical; }
.radio-row { display: flex; gap: 10px; }
.radio-row .opt { flex: 1; display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.radio-row .opt input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row .opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio-row .opt:has(input:checked)::after { content: "\2713"; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; line-height: 20px; text-align: center; flex: 0 0 auto; }
.hint { font-size: 12.5px; color: var(--sub); margin-top: 6px; }
.form-error { display: none; margin-top: 12px; background: #fff5f5; border: 1px solid #f3c2c2; color: #c81e1e; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; }
.form-error:not(.hidden) { display: block; }
.divider { border: none; border-top: 1px solid var(--line-soft); margin: 20px 0 14px; }
.total { display: flex; align-items: baseline; justify-content: space-between; }
.total .t { font-size: 13px; color: var(--sub); }
.total .v { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.total .v .cur { font-size: 14px; font-weight: 700; margin-right: 4px; letter-spacing: 0; }
.fine { font-size: 12.5px; color: var(--sub); line-height: 1.7; text-align: center; margin: 12px 0 0; }

/* 3D 按钮（发卡网同款） */
.btn { display: block; position: relative; width: 100%; margin: 16px 0 0; border: none; background: transparent; padding: 0; cursor: pointer; outline-offset: 4px; transition: filter 250ms; font-family: inherit; }
.btn-shadow { position: absolute; top: 5px; left: 0; width: 100%; height: 100%; border-radius: 12px; background: hsl(0deg 0% 0% / .25); will-change: transform; transform: translateY(2px); transition: transform 600ms cubic-bezier(.3,.7,.4,1); }
.btn-edge { position: absolute; top: 3px; left: 0; width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(to left, #131416 0%, #1e1f22 8%, #1e1f22 92%, #131416 100%); }
.btn-front { display: block; position: relative; padding: 12px 0; border-radius: 12px; font-size: 14.5px; font-weight: 700; letter-spacing: .5px; text-align: center; color: #fff; background: #292c33; will-change: transform; transform: translateY(-4px); transition: transform 600ms cubic-bezier(.3,.7,.4,1); }
.btn:hover { filter: brightness(110%); }
.btn:hover .btn-front { transform: translateY(-6px); transition: transform 250ms cubic-bezier(.3,.7,.4,1.5); }
.btn:active .btn-front { transform: translateY(-2px); transition: transform 34ms; }
.btn:hover .btn-shadow { transform: translateY(4px); transition: transform 250ms cubic-bezier(.3,.7,.4,1.5); }
.btn:active .btn-shadow { transform: translateY(0); transition: transform 34ms; }
.btn:focus:not(:focus-visible) { outline: none; }
.btn:disabled { cursor: default; filter: none; }
.btn:disabled .btn-shadow, .btn:disabled .btn-edge { display: none; }
.btn:disabled .btn-front { background: #c7c7cc; transform: translateY(0); }
.btn:disabled:hover .btn-front { transform: translateY(0); }
.btn:disabled:hover { filter: none; }
.btn-compact { display: inline-block; width: auto; margin: 0; flex: 0 0 auto; }
.btn-compact .btn-front { padding: 8px 16px; font-size: 13.5px; white-space: nowrap; }

/* 下单空状态 */
#orderEmpty { background: var(--bg); border-radius: 12px; padding: 18px; }
.empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.empty-text { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.7; }

/* 下单成功 */
.order-success { background: var(--green-soft); border-radius: 16px; padding: 20px; margin-top: 14px; }
.order-success h3 { margin: 0 0 8px; color: var(--green); font-size: 18px; }
.order-code { font-size: 28px; font-weight: 800; letter-spacing: 2px; margin: 6px 0; word-break: break-all; }
.order-success p { margin: 6px 0; font-size: 14px; line-height: 1.7; }

/* 查单页（Query 同款窄栏） */
.q-page { max-width: 720px; margin: 0 auto; padding: 28px 20px 40px; }
.q-card { background: #fff; border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 32px 28px 28px; }
.q-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.q-sub { color: var(--sub); font-size: 14px; margin: 0 0 20px; }
.q-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.q-search { display: flex; gap: 10px; margin-bottom: 16px; }
.q-input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px 14px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; }
.q-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(11,95,255,.12); }
.q-input::placeholder { color: #aeaeb2; }
.q-card form > .q-input { margin-bottom: 12px; }
.q-search .btn { width: 132px; flex: 0 0 auto; margin: 0; }

/* 查单结果 */
.order-item { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 24px 24px 20px; margin-top: 16px; }
.order-header { display: flex; justify-content: space-between; gap: 16px; }
.order-basic { font-size: 13.5px; line-height: 1.8; color: var(--body); min-width: 0; }
.order-no { font-weight: 700; font-size: 15px; color: var(--ink); word-break: break-all; }
.order-time { color: var(--sub); font-size: 13px; }
.order-status { flex: 0 0 auto; padding-top: 2px; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 980px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-pending { background: var(--amber-bg); color: var(--amber-text); }
.status-waiting-shipment { background: var(--amber-bg); color: var(--amber-text); }
.status-paid { background: var(--green-soft); color: var(--green); }
.status-shipped { background: var(--blue-soft); color: var(--blue); }
.status-cancelled { background: #fff5f5; color: #c81e1e; }
.order-rows { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.order-rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.order-rows .row span:first-child { color: var(--sub); }

/* 页脚 */
.site-footer { max-width: 1000px; margin: 0 auto; padding: 0 20px 28px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; }
.site-footer .fine { text-align: center; }

@media (max-width: 640px) {
  .q-page { padding: 20px 16px 32px; }
  .q-card { padding: 24px 20px; }
  .q-search { flex-direction: column; }
  .q-search .btn { width: 100%; }
  .card { padding: 28px 20px 24px; }
  .order-item { padding: 20px 18px 16px; }
  .order-header { flex-direction: column; gap: 8px; }
  .spec { flex-wrap: wrap; }
  .spec .side { margin-left: 0; width: 100%; justify-content: space-between; }
  .spec .side .btn-compact { flex: 1; }
}

/* ---------------- 客户中心 ---------------- */
.nav-link { font-size: 14.5px; font-weight: 700; color: var(--body); white-space: nowrap; }
.nav-link:hover { color: var(--blue); }

/* 仪表盘（Query 同款窄栏） */
.dash-page { max-width: 1000px; margin: 0 auto; padding: 28px 20px 40px; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dash-head h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.link-btn { border: none; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.dash-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.dash-sec-head h2 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.dash-sec-head .btn { width: auto; margin: 0; flex: 0 0 auto; }
.dash-sec-head .btn .btn-front { padding: 8px 16px; font-size: 13.5px; white-space: nowrap; }
.dash-page .sub { color: var(--sub); font-size: 14px; margin: 6px 0 18px; }
.dash-page .order-item { margin-top: 16px; }
.dash-actions { margin-top: 28px; }
.dash-actions .btn { margin: 0; }

/* 购买区标题 */
.shop-head { max-width: 1000px; margin: 0 auto; padding: 28px 20px 0; }
.shop-head h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
.shop-head .sub { color: var(--sub); font-size: 14px; margin: 0 0 6px; }

/* ---------------- IP 卡片 ---------------- */
.ip-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 20px 22px 16px; }
.ip-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ip-region { font-weight: 800; font-size: 15px; }
.ip-proto { display: inline-block; background: var(--blue-soft); color: var(--blue); border-radius: 980px; padding: 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.ip-online { background: var(--green-soft); color: var(--green); }
.ip-offline { background: #fff5f5; color: #c81e1e; }
.ip-checking { background: var(--amber-bg); color: var(--amber-text); }
.ip-fields { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.ip-field { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ip-field:last-child { border-bottom: none; }
.ip-label { flex: 0 0 64px; font-size: 13px; font-weight: 700; color: var(--sub); }
.ip-value { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--ink); word-break: break-all; }
.ip-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.mini-btn { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 980px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.mini-btn:hover { border-color: var(--blue); color: var(--blue); }
.ip-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--sub); }
.ip-meta b { color: var(--body); font-weight: 700; }

@media (max-width: 640px) {
  .dash-page { padding: 20px 16px 32px; }
  .ip-card { padding: 18px 16px 14px; }
  .ip-label { flex-basis: 56px; }
  .ip-field { flex-wrap: wrap; }
  .ip-field .mini-btn { margin-left: auto; }
}

/* ---------------- 用量统计 ---------------- */
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 20px 22px 16px; }
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stat-label { font-size: 15px; font-weight: 800; }
.stat-value { font-size: 15px; font-weight: 700; }
.stat-bar { height: 8px; border-radius: 980px; background: var(--line-soft); margin-top: 12px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 980px; background: var(--blue); }
.stat-sub { margin-top: 8px; font-size: 13px; color: var(--sub); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.stat-cell { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.stat-cap { font-size: 12.5px; color: var(--sub); }
.stat-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--sub); }
.stat-meta b { color: var(--body); font-weight: 700; }
.stat-errs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.stat-err-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--body); }
.stat-err-row span:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.stat-updated { margin-top: 12px; font-size: 12px; color: var(--faint); }
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 用量图表 ---------------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 20px 22px 16px; margin-top: 10px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head h3 { margin: 0; font-size: 18px; }
.chart-tabs { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.chart-tab { border: none; background: #fff; color: var(--body); padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.chart-tab.active { background: var(--blue); color: #fff; }
.chart-kpis { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 12px 0 4px; font-size: 14px; color: var(--sub); }
.chart-kpis b { color: var(--ink); }
.chart-svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: 13.5px; color: var(--sub); }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-empty { color: var(--sub); font-size: 14px; line-height: 1.7; margin: 10px 0 4px; }
.proto-list { display: grid; gap: 10px; margin-top: 14px; }
.proto-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 16px; }
.proto-row .ring { width: 64px; height: 64px; flex: 0 0 auto; }
.proto-info { display: flex; flex-direction: column; gap: 2px; }
.proto-name { font-size: 14px; font-weight: 700; color: var(--sub); }
.proto-count { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }

/* ---------------- IP 紧凑表格（Webshare 样式） ---------------- */
.ip-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 16px 18px; overflow: hidden; }
.ip-table-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ip-select-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.ip-total { margin-left: auto; font-size: 13px; color: var(--sub); }
.ip-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ip-scroll-top { overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 8px; }
.ip-scroll-top-inner { height: 1px; }
.ip-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ip-table th, .ip-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; vertical-align: middle; }
.ip-table thead th { font-size: 12px; font-weight: 800; color: var(--sub); background: var(--bg); }
.ip-table tbody tr:last-child td { border-bottom: none; }
.ip-addr { font-weight: 700; font-size: 14px; }
.ip-sub { font-size: 11px; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.ip-pw { font-size: 14px; }
.ip-table-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; font-size: 13px; color: var(--sub); flex-wrap: wrap; }
.ip-pagesize { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); margin-right: auto; }
.ip-pagesize select { padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink); font-family: inherit; cursor: pointer; }
.ip-range { font-weight: 700; }
.ip-table-foot .btn-compact .btn-front { padding: 6px 14px; font-size: 15px; }
.ip-table .mini-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .ip-table-wrap { padding: 14px 12px; border-radius: 18px; }
  .ip-table th, .ip-table td { padding: 8px 8px; font-size: 13px; }
}

/* ---------------- 订单详情 ---------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.05); padding: 18px 20px 14px; }
.detail-wide { grid-column: 1 / -1; }
.detail-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.dt-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.dt-kv:last-child { border-bottom: none; }
.dt-k { color: var(--sub); font-weight: 700; flex: 0 0 auto; }
.dt-v { color: var(--ink); font-weight: 700; text-align: right; word-break: break-all; }
.dt-empty { color: var(--sub); font-size: 14px; margin: 4px 0; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; }
.dt-chip { display: inline-block; background: var(--blue-soft); color: var(--blue); border-radius: 980px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.dt-sub { font-size: 13px; font-weight: 800; color: var(--sub); margin: 12px 0 8px; }
.dt-bars { display: flex; flex-direction: column; gap: 7px; }
.dt-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dt-bar-dom { flex: 0 0 170px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-bar-track { flex: 1 1 auto; height: 8px; border-radius: 980px; background: var(--line-soft); overflow: hidden; }
.dt-bar-fill { display: block; height: 100%; border-radius: 980px; background: var(--blue); }
.dt-bar-num { flex: 0 0 auto; color: var(--sub); font-weight: 700; white-space: nowrap; }
.dt-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--body); }
.dt-list li { padding: 4px 0; }
.dt-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dt-table th, .dt-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.dt-table thead th { font-size: 12px; color: var(--sub); }
.dt-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 16px 16px 12px; border-radius: 18px; }
  .dt-bar-dom { flex-basis: 120px; }
}
