/* ==========================================================================
   YSE EXPRESS 会员中心样式（浅色 · 品牌金点缀 · 全中文）
   ========================================================================== */
:root {
  --bg: #F4F6F9;
  --panel: #FFFFFF;
  --line: #E3E7ED;
  --line-2: #EDF0F4;
  --ink: #1A2230;
  --ink-2: #4A5568;
  --ink-3: #8B94A3;
  --brand: #0B0E12;
  --brand-2: #1D242F;
  --gold: #E8860C;
  --gold-soft: rgba(232, 134, 12, .12);
  --blue: #2D6CDF;
  --blue-soft: rgba(45, 108, 223, .1);
  --violet: #7C4DCC;
  --violet-soft: rgba(124, 77, 204, .1);
  --green: #1F9D63;
  --green-soft: rgba(31, 157, 99, .1);
  --amber: #C77E12;
  --amber-soft: rgba(199, 126, 18, .12);
  --red: #D64545;
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 70px rgba(16, 24, 40, .22);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; }
.flex-sp { flex: 1; }
.link { color: var(--blue); cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; }

/* 按钮 / 表单 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.full { width: 100%; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-outline:hover { border-color: #C6CEDA; color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: #EBEFF4; }
.btn-sm { height: 31px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }

.ipt { width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
.ipt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 108, 223, .12); }
textarea.ipt { height: auto; min-height: 60px; padding: 8px 12px; resize: vertical; line-height: 1.55; }
select.ipt { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B94A3' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

.field { display: block; margin-bottom: 14px; }
.field-label { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.field-label em { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-tip { font-size: 12.5px; color: var(--ink-2); background: var(--gold-soft); border: 1px solid rgba(232, 134, 12, .25); border-radius: 8px; padding: 9px 12px; margin: 12px 0 0; }
.ck { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ck input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ============ 认证页 ============ */
.auth-view { min-height: 100dvh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; background: var(--brand); }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 15%, rgba(201, 162, 39, .18), transparent 60%), radial-gradient(50% 40% at 20% 85%, rgba(45, 108, 223, .12), transparent 60%), linear-gradient(160deg, #12161D, #0B0E12); }
.auth-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.auth-card { position: relative; width: min(100%, 420px); background: #fff; border-radius: 18px; padding: 32px 30px 24px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-mark { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, #EBD07A, var(--gold) 45%, #8C6E12); color: #120E00; font-weight: 800; font-size: 14px; font-family: Georgia, serif; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .1em; }
.auth-brand small { font-size: 11px; color: var(--ink-3); letter-spacing: .18em; }
.auth-title { font-size: 19px; margin-bottom: 16px; }
.auth-err { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 4px; }
.auth-tip { font-size: 12.5px; color: var(--ink-2); background: var(--line-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
/* 找回方式切换（邮箱验证码 / 手机·站内消息） */
.fp-method { display: flex; gap: 8px; margin-bottom: 14px; }
.fp-method-btn {
  flex: 1; padding: 9px 10px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .15s;
}
.fp-method-btn:hover { border-color: var(--blue); color: var(--blue); }
.fp-method-btn.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 14px; }
.auth-alt { margin-top: 16px; font-size: 13px; color: var(--ink-2); text-align: center; }
.auth-card .btn { margin-top: 4px; height: 44px; font-size: 15px; }
.auth-home { display: block; margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.auth-home:hover { color: var(--blue); }

/* ============ 主布局 ============ */
.app { display: flex; min-height: 100dvh; }
.sidebar { width: 224px; flex: none; background: var(--brand); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand strong { display: block; font-size: 14px; letter-spacing: .1em; }
.side-brand small { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .18em; }
.side-menu { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,.62); font-size: 13.5px; text-align: left; transition: background .15s, color .15s; }
.side-item svg { width: 17px; height: 17px; flex: none; }
.side-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-item.active { background: var(--gold); color: #161100; font-weight: 600; }
.side-badge { font-style: normal; margin-left: auto; background: var(--red); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user { padding: 0 4px 10px; }
.side-user strong { display: block; font-size: 13.5px; }
.side-user small { font-size: 11px; color: rgba(255,255,255,.45); }
.side-act { display: block; width: 100%; text-align: center; padding: 8px; margin-top: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.side-act:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-act.danger:hover { border-color: rgba(255, 120, 120, .5); color: #FF9C9C; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 24px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.burger2 { display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); }
.burger2 span { display: block; width: 15px; height: 1.6px; background: var(--ink-2); margin: 3.2px auto; }
.page-title { font-size: 16.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .btn { margin-left: auto; }
.pages { padding: 20px 24px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page[hidden] { display: none !important; }
[hidden] { display: none !important; }
.loading { padding: 60px 0; text-align: center; color: var(--ink-3); }
.empty { padding: 60px 20px; text-align: center; color: var(--ink-3); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 欢迎卡 / 统计 */
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, #171D27, #232C3B); color: #fff; border-radius: 16px; padding: 26px 28px; margin-bottom: 18px; }
.welcome-card h2 { font-size: 20px; }
.welcome-card p { margin-top: 6px; color: rgba(255,255,255,.65); font-size: 13.5px; }
.welcome-card .btn { background: var(--gold); color: #161100; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.stat-value { font-size: 24px; font-weight: 700; }
.sv-pending { color: var(--amber); } .sv-ready { color: var(--blue); } .sv-shipped { color: var(--violet); } .sv-delivered { color: var(--green); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; margin-bottom: 16px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel-grid .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { font-size: 14.5px; }
.link-btn { color: var(--blue); font-size: 12.5px; }

/* 渠道卡片 */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ch-card { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.ch-card input { position: absolute; opacity: 0; pointer-events: none; }
.ch-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.ch-card:has(input:checked)::after { content: "✓"; position: absolute; right: 12px; top: 10px; width: 20px; height: 20px; background: var(--gold); color: #161100; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ch-type { font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }
.ch-card strong { font-size: 14.5px; }
.ch-card small { color: var(--ink-3); font-size: 12px; }

.addr-pick { width: auto; min-width: 220px; }
.submit-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.submit-bar .btn { height: 42px; padding: 0 28px; }

/* 工具栏 / 选项卡 */
.toolbar { margin-bottom: 14px; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .ipt { width: auto; }
.toolbar .search { min-width: 210px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 7px 14px; border-radius: 9px; font-size: 13px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }

/* 表格 */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); background: #FAFBFC; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #FAFBFD; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .ops { white-space: nowrap; text-align: right; }
.op-btn { font-size: 12px; padding: 4px 10px; border-radius: 7px; color: var(--ink-2); border: 1px solid var(--line); background: #fff; margin-left: 4px; }
.op-btn:hover { border-color: var(--blue); color: var(--blue); }
.op-btn.danger:hover { border-color: var(--red); color: var(--red); }

.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-violet { background: var(--violet-soft); color: var(--violet); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-gray { background: #EEF0F3; color: var(--ink-3); }

/* 地址卡 */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.addr-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.addr-card.default { border-color: rgba(201, 162, 39, .5); background: linear-gradient(180deg, #FFFBEE, #fff); }
.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.addr-head strong { font-size: 14.5px; }
.addr-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; word-break: break-all; }
.addr-ops { margin-top: 10px; display: flex; gap: 4px; }

/* 消息 */
.msg-list { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.msg-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; cursor: default; }
.msg-item.unread { border-color: rgba(201, 162, 39, .5); background: #FFFBEE; cursor: pointer; }
.msg-item strong { font-size: 13.5px; display: block; }
.msg-item time { font-size: 11px; color: var(--ink-3); }
.msg-item p { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); word-break: break-word; }
.notice-panel h3 { margin-bottom: 12px; }
.notice-list { display: grid; gap: 10px; }
.notice-item { border-left: 3px solid var(--gold); background: var(--line-2); border-radius: 8px; padding: 12px 14px; }
.notice-item strong { font-size: 13.5px; }
.notice-item time { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.notice-item p { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

/* 详情弹窗内容 */
.detail-wrap { min-width: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.detail-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.detail-row span { color: var(--ink-3); }
.detail-row strong { font-weight: 500; word-break: break-all; }
.detail-sub { font-size: 13.5px; margin: 16px 0 10px; color: var(--ink-2); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.timeline li:first-child::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.timeline strong { font-size: 13.5px; }
.timeline .loc { color: var(--blue); font-size: 12.5px; }
.timeline time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.timeline p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 20, .5); display: none; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-card { width: min(100%, 560px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .8, .3, 1.1); max-height: 90vh; display: flex; flex-direction: column; }
.modal-card.wide { width: min(100%, 820px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; color: var(--ink-3); font-size: 14px; }
.modal-close:hover { background: var(--line-2); color: var(--ink); }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-foot { padding: 4px 22px 18px; display: flex; justify-content: flex-end; }
.modal-foot-inner { display: flex; gap: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px); background: var(--brand); color: #fff; padding: 11px 20px; border-radius: 99px; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .28s; z-index: 120; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* 响应式 */
@media (max-width: 1080px) { .panel-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .sidebar { position: fixed; z-index: 80; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .burger2 { display: block; }
  .pages { padding: 14px 14px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .welcome-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .toolbar .search { min-width: 0; flex: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 14px; }
}

/* ---------- 美化对齐：焦点/选中/滚动条 ---------- */
::selection { background: rgba(232, 134, 12, .25); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C6CDD8; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #AEB7C4; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 可搜索地址选择器 + 下单布局 ============ */
.apicker { position: relative; flex: 1; max-width: 420px; }
.panel-head .apicker { margin-left: auto; }
.apicker .ap-input { width: 100%; }
.ap-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.ap-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.ap-item:last-child { border-bottom: 0; }
.ap-item:hover, .ap-item.on { background: #F5F8FD; }
.ap-item.on { box-shadow: inset 3px 0 0 var(--blue, #2563eb); }
.ap-item strong { display: block; font-size: 12.5px; }
.ap-item small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.form-grid .grid3 > .field { min-width: 0; }
.form-grid .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .full textarea { width: 100%; }
.save-addr { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; cursor: pointer; }
/* ===== 申报信息子分组与申报价值汇总行（下单页 / 编辑弹窗） ===== */
.sub-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 8px 0 4px; padding: 9px 12px; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sub-head small { font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.declare-sum { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -2px 0 12px; padding: 10px 14px; background: var(--line-2); border: 1px dashed var(--line); border-radius: 10px; }
.declare-sum span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.declare-sum strong { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.declare-sum em { font-style: normal; margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 640px) { .declare-sum em { margin-left: 0; flex-basis: 100%; } }

@media (max-width: 640px) {
  .form-grid .grid3 { grid-template-columns: 1fr; }
}

/* 下单页：国家 → 线路 → 自定义单号 级联选择（宽屏三列同行；中屏两列，单号换行；窄屏单列） */
.ch-cascade { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 20px; margin-bottom: 10px; }
.ch-cascade .field-label em { font-style: normal; color: var(--ink-3); font-size: 12px; }
@media (max-width: 960px) {
  .ch-cascade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ch-cascade { grid-template-columns: 1fr; }
}

/* ==========================================================================
   二次美化：深墨蓝 + 暖金（高端国际化视觉层）
   ========================================================================== */
:root {
  --bg: #F2F4F8;
  --brand: #0C1A2B;
  --brand-2: #13263D;
  --gold: #C8A45C;
  --gold-soft: rgba(200, 164, 92, .14);
  --ink: #16202E;
  --blue: #2E6BC4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 26, 43, .05), 0 2px 6px rgba(12, 26, 43, .05);
  --shadow-lg: 0 24px 70px rgba(12, 26, 43, .25);
}

/* ---- 侧栏：深墨蓝渐变 + 金色描边 ---- */
.sidebar { background: linear-gradient(175deg, #0E1E33 0%, #0C1A2B 55%, #0A1626 100%); }
.sidebar::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(200,164,92,.5), rgba(200,164,92,.06) 40%, transparent);
  pointer-events: none;
}
.side-item { position: relative; }
.side-item.active {
  background: linear-gradient(135deg, #D9B878, var(--gold) 60%, #AE8A45);
  color: #171102;
}
.side-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: var(--gold);
}

/* ---- 认证页：深墨蓝底 + 暖金光晕 ---- */
.auth-bg {
  background:
    radial-gradient(55% 45% at 78% 12%, rgba(200, 164, 92, .22), transparent 60%),
    radial-gradient(45% 40% at 15% 88%, rgba(46, 107, 196, .16), transparent 62%),
    linear-gradient(160deg, #10233B, #0C1A2B 60%, #081220);
}
.auth-mark { background: linear-gradient(145deg, #EBD49A, var(--gold) 45%, #96762F); }

/* ---- 顶栏 / 卡片质感 ---- */
.topbar { background: rgba(248, 249, 252, .88); }
.btn-dark { background: var(--brand); }
.btn-dark:hover { background: var(--brand-2); }
.panel, .stat-card, .card { box-shadow: var(--shadow); }
.stat-value { font-variant-numeric: tabular-nums; }
.tbl th { background: #F7F8FB; letter-spacing: .02em; }
::-webkit-scrollbar-thumb { background: #C2CAD6; }
.toast { background: var(--brand); }

/* 欢迎横幅对齐深墨蓝 */
.welcome-card { background: linear-gradient(120deg, #0E1E33, #16304F 75%, #1B3A5E); position: relative; overflow: hidden; }
.welcome-card::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .35); pointer-events: none;
}
.welcome-card::before {
  content: ""; position: absolute; right: 30px; top: -20px; width: 120px; height: 120px;
  border-radius: 50%; border: 1px solid rgba(200, 164, 92, .22); pointer-events: none;
}

/* ------------------------------------------------------------------
   国家可搜索选择器（会员端下单：目的国家）
   ------------------------------------------------------------------ */
.cpick { position: relative; }
.cpick-box {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  min-height: 40px; padding: 7px 12px; border: 1px solid #d9d4c6; border-radius: 8px;
  background: #fff; cursor: pointer; user-select: none;
}
.cpick-box:hover { border-color: #b9ad8d; }
.cpick-box .cpick-ph { color: #a49e8d; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-box .cpick-val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-box .cpick-val b { font-weight: 600; margin-right: 6px; }
.cpick-box .cpick-val small { color: #96907e; margin-left: 6px; }
.cpick-box .cpick-arrow { color: #a49e8d; font-size: 10px; transition: transform .15s; }
.cpick.open .cpick-arrow { transform: rotate(180deg); }
.cpick-menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 100%;
  min-width: 260px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2dcc9; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(64, 55, 28, .18); overflow: hidden;
}
.cpick-search { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #f1ecdd; }
.cpick-search input { flex: 1; border: 1px solid #d9d4c6; border-radius: 6px; padding: 6px 10px; font-size: 13px; outline: none; min-width: 0; }
.cpick-search input:focus { border-color: #b08d3e; }
.cpick-search .cpick-mag { color: #a49e8d; font-size: 13px; }
.cpick-list { overflow-y: auto; max-height: 260px; }
.cpick-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.cpick-item:hover, .cpick-item.hl { background: #faf5e6; }
.cpick-item.on { background: #b08d3e; color: #fff; }
.cpick-item .c-code { flex: 0 0 34px; font-weight: 600; font-size: 12px; }
.cpick-item .c-zh { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item .c-en { color: #96907e; font-size: 12px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpick-item.on .c-en, .cpick-item.on .c-code { color: rgba(255,255,255,.85); }
.cpick-item .c-tag {
  flex: 0 0 auto; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 4px;
  background: #e8f3ee; color: #1d7a4f; font-weight: 600;
}
.cpick-item.on .c-tag { background: rgba(255,255,255,.2); color: #fff; }
/* 分组标题（自有专线 / 其他国家，滚动时吸附在列表顶部） */
.cpick-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 11px; font-weight: 600; color: #a49e8d; letter-spacing: .05em;
  background: #faf7ef; border-bottom: 1px solid #f1ecdd;
}
.cpick-head i { font-style: normal; font-weight: 500; color: #c0b9a4; margin-left: auto; }
/* 搜索命中片段高亮 */
.cpick-item mark { background: transparent; padding: 0; color: #b08d3e; font-weight: 700; }
.cpick-item.on mark { color: #fff; text-decoration: underline; }
/* 选中项 ✓（行尾） */
.cpick-item .c-check { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #b08d3e; visibility: hidden; }
.cpick-item.on .c-check { visibility: visible; color: #fff; }
/* 底部统计栏 */
.cpick-foot {
  padding: 6px 12px; font-size: 11px; color: #a49e8d;
  border-top: 1px solid #f1ecdd; background: #faf7ef; flex: 0 0 auto;
}
/* 已选中时的「×」清空按钮 */
.cpick-clear {
  display: none; flex: 0 0 auto; width: 18px; height: 18px; margin-left: 2px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: #efe9d9; color: #7c7663; font-size: 13px; line-height: 1; cursor: pointer;
}
.cpick-clear:hover { background: #e2dabf; color: #4d4634; }
.cpick.picked .cpick-clear { display: inline-flex; }
/* 向上展开（页面底部空间不足时） */
.cpick-menu.up { top: auto; bottom: calc(100% + 6px); }
/* 列表滚动条 */
.cpick-list::-webkit-scrollbar { width: 8px; }
.cpick-list::-webkit-scrollbar-thumb { background: #ded7c2; border-radius: 4px; }
.cpick-list::-webkit-scrollbar-thumb:hover { background: #c9c0a5; }
.cpick-empty { padding: 18px 12px; text-align: center; color: #a49e8d; font-size: 13px; }
