/* 用户中心 — 魔方财务风格升级版 */
:root {
  --ucp-primary: #1890ff;
  --ucp-primary-light: #e6f7ff;
  --ucp-sidebar: #fff;
  --ucp-sidebar-w: 240px;
  --ucp-sub-bg: #f7fbff;
  --ucp-topbar-h: 56px;
  --ucp-bg: #f0f2f5;
  --ucp-gold: #faad14;
  --ucp-orange: #ff7a45;
  --ucp-text: #333;
  --ucp-muted: #999;
  --ucp-border: #f0f0f0;
  --ucp-shadow: 0 2px 12px rgba(0,0,0,.06);
  --ucp-radius: 10px;
}

* { box-sizing: border-box; }
body.ucp-body {
  margin: 0; font-family: "PingFang SC","Microsoft YaHei",-apple-system,sans-serif;
  background: var(--ucp-bg); color: var(--ucp-text); font-size: 14px;
}

/* Layout */
.ucp-layout { display: flex; min-height: 100vh; }
.ucp-sidebar {
  width: var(--ucp-sidebar-w); background: var(--ucp-sidebar);
  border-right: 1px solid var(--ucp-border); flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: column; overflow-y: auto;
}
.ucp-brand {
  height: var(--ucp-topbar-h); display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid var(--ucp-border);
  font-size: 17px; font-weight: 700; color: var(--ucp-text);
}
.ucp-brand-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #1890ff, #36cfc9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.ucp-menu { padding: 8px 0 24px; flex: 1; }
.ucp-menu-group { margin: 2px 0; }
.ucp-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  color: #555; cursor: pointer; transition: all .25s cubic-bezier(.4,0,.2,1);
  font-size: 14px; user-select: none; position: relative;
}
.ucp-menu-item:hover { background: #f5f8fc; color: var(--ucp-primary); }
.ucp-menu-item.active {
  background: linear-gradient(90deg, var(--ucp-primary) 0%, #40a9ff 100%);
  color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(24,144,255,.25);
}
.ucp-menu-item.active .icon { opacity: 1; }
.ucp-menu-item.active .ucp-chevron { color: rgba(255,255,255,.8); }
.ucp-menu-group.expanded > .ucp-menu-item:not(.active) {
  background: var(--ucp-sub-bg); color: var(--ucp-primary); font-weight: 500;
}
.ucp-menu-item .icon { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.ucp-chevron {
  margin-left: auto; font-size: 12px; color: #bbb; transition: transform .25s;
  transform: rotate(0deg); font-weight: 700;
}
.ucp-menu-group.expanded .ucp-chevron { transform: rotate(90deg); color: var(--ucp-primary); }

.ucp-submenu {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s;
  opacity: 0; background: var(--ucp-sub-bg);
  border-left: 3px solid rgba(24,144,255,.15); margin-left: 18px;
}
.ucp-menu-group.expanded .ucp-submenu { max-height: 480px; opacity: 1; }
.ucp-submenu a {
  display: block; padding: 10px 16px 10px 20px; font-size: 13px; color: #666;
  cursor: pointer; transition: all .2s; position: relative; text-decoration: none;
}
.ucp-submenu a::before {
  content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #d9d9d9; transition: all .2s;
}
.ucp-submenu a:hover { color: var(--ucp-primary); background: rgba(24,144,255,.06); padding-left: 24px; }
.ucp-submenu a:hover::before { background: var(--ucp-primary); }
.ucp-submenu a.active {
  color: var(--ucp-primary); font-weight: 600; background: rgba(24,144,255,.1);
}
.ucp-submenu a.active::before { background: var(--ucp-primary); width: 6px; height: 6px; }

/* 页面顶栏面包屑 */
.ucp-page-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--ucp-border);
  padding: 14px 24px; margin: -20px -24px 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.ucp-page-bar h2 { font-size: 16px; font-weight: 600; margin: 0; color: var(--ucp-text); }
.ucp-breadcrumb { font-size: 12px; color: var(--ucp-muted); }
.ucp-breadcrumb a { color: var(--ucp-muted); }
.ucp-breadcrumb a:hover { color: var(--ucp-primary); }

/* 子视图切换 */
.ucp-subview { display: none; animation: subFade .25s ease; }
.ucp-subview.active { display: block; }
@keyframes subFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 推介计划申请页 */
.aff-hero { text-align: center; padding: 48px 24px; }
.aff-hero h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.aff-hero p { color: var(--ucp-muted); max-width: 520px; margin: 0 auto 36px; line-height: 1.8; }
.aff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 720px; margin: 0 auto 32px; }
@media (max-width: 700px) { .aff-steps { grid-template-columns: 1fr; } }
.aff-step { text-align: center; padding: 20px; }
.aff-step-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.aff-step-icon.blue { background: linear-gradient(135deg, #e6f7ff, #bae7ff); }
.aff-step-icon.orange { background: linear-gradient(135deg, #fff7e6, #ffd591); }
.aff-step-icon.red { background: linear-gradient(135deg, #fff1f0, #ffccc7); }
.aff-step h4 { font-size: 15px; margin-bottom: 8px; }
.aff-step p { font-size: 12px; color: var(--ucp-muted); line-height: 1.6; }
.aff-apply-btn {
  padding: 12px 48px; font-size: 16px; border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--ucp-primary), #40a9ff);
  color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(24,144,255,.35);
  transition: all .25s;
}
.aff-apply-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(24,144,255,.45); }

.sec-card { background: #fafbfc; border-radius: 8px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--ucp-border); }
.sec-card h4 { font-size: 14px; margin-bottom: 8px; color: var(--ucp-text); }

.ucp-main { flex: 1; margin-left: var(--ucp-sidebar-w); min-width: 0; }
.ucp-topbar {
  height: var(--ucp-topbar-h); background: #fff; border-bottom: 1px solid var(--ucp-border);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.ucp-search {
  flex: 1; max-width: 360px; position: relative;
}
.ucp-search input {
  width: 100%; height: 36px; padding: 0 14px 0 36px;
  border: 1px solid var(--ucp-border); border-radius: 18px;
  background: #fafafa; font-size: 13px; outline: none; transition: all .2s;
}
.ucp-search input:focus { border-color: var(--ucp-primary); background: #fff; box-shadow: 0 0 0 2px rgba(24,144,255,.1); }
.ucp-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .45; font-size: 14px; }
.ucp-search-drop {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--ucp-border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 360px; overflow-y: auto; z-index: 200;
}
.ucp-search-drop.open { display: block; }
.ucp-search-drop .search-group-title {
  padding: 8px 14px 4px; font-size: 11px; color: #999; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
}
.ucp-search-drop .search-result-item {
  display: block; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f5f5f5;
  text-decoration: none; color: inherit;
}
.ucp-search-drop .search-result-item:hover { background: #f0f7ff; }
.ucp-search-drop .search-result-item strong { display: block; font-size: 13px; color: #333; }
.ucp-search-drop .search-result-item span { font-size: 12px; color: #888; }
.ucp-search-drop .search-empty { padding: 20px; text-align: center; color: #999; font-size: 13px; }

.domain-search-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center;
}
.domain-search-bar input {
  flex: 1; min-width: 220px; height: 38px; margin: 0;
  border: 1px solid var(--ucp-border); border-radius: 6px; padding: 0 12px;
}
.domain-search-bar select { width: auto; margin: 0; height: 38px; }
.domain-hint { font-size: 13px; color: #999; margin-bottom: 8px; }
.domain-result { margin-top: 4px; }
.domain-result-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.domain-result-table th, .domain-result-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0;
}
.domain-result-table th { background: #fafafa; color: #666; font-weight: 500; }
.domain-avail { color: #52c41a; font-weight: 600; }
.domain-taken { color: #ff4d4f; }
.domain-result-empty { padding: 24px; text-align: center; color: #999; font-size: 13px; }
.domain-premium-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; color: #d48806; background: #fff7e6; border-radius: 4px; }
.ucp-top-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ucp-top-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer; position: relative;
  color: #666; transition: all .2s; min-width: 52px;
}
.ucp-top-link:hover { background: #f5f8fc; color: var(--ucp-primary); }
.ucp-top-link-icon { font-size: 18px; line-height: 1; }
.ucp-top-link > span:nth-child(2) { font-size: 11px; white-space: nowrap; }
.ucp-top-link .badge-dot {
  position: absolute; top: 4px; right: 8px; width: 8px; height: 8px;
  background: #ff4d4f; border-radius: 50%; border: 2px solid #fff;
}
.ucp-top-link .badge-num {
  position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px;
  background: #ff4d4f; color: #fff; border-radius: 8px; font-size: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid #fff; font-weight: 600;
}
.ucp-top-link .badge-num.hide, .ucp-top-link .badge-dot.hide { display: none; }

/* 语言选择 */
.ucp-lang-wrap, .ucp-user-wrap { position: relative; }
.ucp-lang {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: #555;
  transition: background .15s; white-space: nowrap;
}
.ucp-lang:hover, .ucp-user:hover { background: #f5f8fc; }
.ucp-lang-flag { font-size: 16px; }
.ucp-chevron-sm { font-size: 10px; color: #bbb; margin-left: 2px; }

/* 用户头像区 */
.ucp-user {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border-radius: 20px; cursor: pointer; transition: background .15s;
}
.ucp-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ucp-primary), #36cfc9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.ucp-user-name { font-size: 13px; font-weight: 500; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 下拉菜单 */
.ucp-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border: 1px solid var(--ucp-border); padding: 6px 0; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.ucp-lang-wrap.open .ucp-lang-dropdown,
.ucp-user-wrap.open .ucp-user-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ucp-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: 13px; color: #555; cursor: pointer; transition: all .15s; text-decoration: none;
}
.ucp-dropdown a span:first-child { width: 18px; text-align: center; font-size: 14px; }
.ucp-dropdown a:hover { background: #f5f8fc; color: var(--ucp-primary); }
.ucp-dropdown a.danger:hover { background: #fff1f0; color: #ff4d4f; }
.ucp-dropdown-divider { height: 1px; background: var(--ucp-border); margin: 4px 0; }
.ucp-lang-dropdown { min-width: 140px; }

/* 购物车抽屉 */
.ucp-cart-drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.ucp-cart-drawer.open { pointer-events: auto; }
.ucp-cart-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0;
  transition: opacity .25s;
}
.ucp-cart-drawer.open .ucp-cart-mask { opacity: 1; }
.ucp-cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 360px; max-width: 90vw;
  background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.1);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.ucp-cart-drawer.open .ucp-cart-panel { transform: translateX(0); }
.ucp-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--ucp-border);
}
.ucp-cart-head h3 { margin: 0; font-size: 16px; }
.ucp-cart-close {
  width: 32px; height: 32px; border: none; background: #f5f5f5; border-radius: 8px;
  cursor: pointer; font-size: 14px; transition: background .15s;
}
.ucp-cart-close:hover { background: #eee; }
.ucp-cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ucp-cart-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ucp-border);
}
.ucp-cart-item h4 { font-size: 14px; margin: 0 0 4px; }
.ucp-cart-item p { font-size: 12px; color: var(--ucp-muted); margin: 0; }
.ucp-cart-item .price { color: var(--ucp-orange); font-weight: 700; margin-left: auto; white-space: nowrap; }
.ucp-cart-item .remove { color: #ccc; cursor: pointer; font-size: 12px; margin-top: 4px; }
.ucp-cart-item .remove:hover { color: #ff4d4f; }
.ucp-cart-foot {
  padding: 16px 20px; border-top: 1px solid var(--ucp-border);
  display: flex; align-items: center; justify-content: space-between;
}
.ucp-cart-total b { color: var(--ucp-orange); font-size: 18px; }

.ucp-content { padding: 20px 24px 40px; }

/* Panels */
.ucp-panel { display: none; animation: fadeIn .25s ease; }
.ucp-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Dashboard top cards */
.dash-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .dash-top { grid-template-columns: 1fr; } }
.dash-card {
  background: #fff; border-radius: var(--ucp-radius); padding: 20px 22px;
  box-shadow: var(--ucp-shadow); border: 1px solid var(--ucp-border);
}
.dash-user { display: flex; gap: 16px; }
.dash-user .ucp-avatar { width: 56px; height: 56px; font-size: 22px; flex-shrink: 0; }
.dash-user h3 { font-size: 16px; margin-bottom: 6px; }
.dash-user h3 span { color: var(--ucp-primary); }
.dash-user-meta { font-size: 12px; color: var(--ucp-muted); line-height: 1.8; }
.dash-verify { display: flex; gap: 12px; margin-top: 12px; }
.dash-verify span {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 14px; background: #f5f5f5; color: #ccc;
}
.dash-verify span.ok { background: #f6ffed; color: #52c41a; }
.dash-login-tip { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ucp-border); font-size: 11px; color: var(--ucp-muted); }

.dash-balance-label { font-size: 13px; color: var(--ucp-muted); margin-bottom: 4px; }
.dash-balance-num { font-size: 32px; font-weight: 800; color: var(--ucp-orange); margin-bottom: 12px; }
.dash-balance-num small { font-size: 16px; font-weight: 400; }
.btn-recharge {
  display: inline-block; padding: 8px 28px; background: var(--ucp-primary);
  color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer;
  margin-bottom: 14px; transition: all .2s;
}
.btn-recharge:hover { background: #40a9ff; box-shadow: 0 4px 12px rgba(24,144,255,.3); }
.dash-finance-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dash-finance-links a { font-size: 12px; color: var(--ucp-muted); cursor: pointer; }
.dash-finance-links a:hover { color: var(--ucp-primary); }

.dash-chart-wrap { display: flex; align-items: center; gap: 16px; }
.dash-donut {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ucp-primary) 0% 65%, #f0f0f0 65% 100%);
  position: relative;
}
.dash-donut::after {
  content: ''; position: absolute; inset: 14px; background: #fff; border-radius: 50%;
}
.dash-chart-info p { font-size: 12px; color: var(--ucp-muted); margin-bottom: 4px; }
.dash-chart-info b { font-size: 15px; color: var(--ucp-text); }

/* Todo strip */
.dash-todo {
  background: #fff; border-radius: var(--ucp-radius); padding: 20px 24px;
  box-shadow: var(--ucp-shadow); border: 1px solid var(--ucp-border); margin-bottom: 16px;
}
.dash-todo h4 { font-size: 14px; color: var(--ucp-muted); margin-bottom: 16px; font-weight: 500; }
.dash-todo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
@media (max-width: 900px) { .dash-todo-grid { grid-template-columns: repeat(3, 1fr); } }
.dash-todo-item { cursor: pointer; padding: 8px; border-radius: 8px; transition: background .15s; }
.dash-todo-item:hover { background: #fafafa; }
.dash-todo-num { font-size: 28px; font-weight: 800; color: var(--ucp-gold); line-height: 1.2; }
.dash-todo-label { font-size: 12px; color: var(--ucp-muted); margin-top: 4px; }
.dash-todo-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ucp-border); font-size: 13px; color: var(--ucp-muted); }
.dash-todo-footer b { color: var(--ucp-orange); }

/* Bottom grid */
.dash-bottom { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
@media (max-width: 900px) { .dash-bottom { grid-template-columns: 1fr; } }
.dash-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-head h3 { font-size: 15px; font-weight: 600; }
.dash-section-head a { font-size: 12px; color: var(--ucp-primary); cursor: pointer; }

.ucp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ucp-table th { background: #fafafa; padding: 10px 12px; text-align: left; font-weight: 600; color: var(--ucp-muted); border-bottom: 1px solid var(--ucp-border); }
.ucp-table td { padding: 12px; border-bottom: 1px solid var(--ucp-border); }
.ucp-table tr:hover td { background: #fafcff; }
.ucp-empty { text-align: center; padding: 40px; color: var(--ucp-muted); }

.ann-list { }
.ann-item { padding: 12px 0; border-bottom: 1px solid var(--ucp-border); }
.ann-item:last-child { border-bottom: none; }
.ann-item b { display: block; font-size: 13px; margin-bottom: 4px; }
.ann-item span { font-size: 12px; color: var(--ucp-muted); line-height: 1.5; }

/* Inner panels */
.ucp-page-head { margin-bottom: 20px; }
.ucp-page-head h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ucp-page-head p { font-size: 13px; color: var(--ucp-muted); }
.ucp-card {
  background: #fff; border-radius: var(--ucp-radius); padding: 22px;
  box-shadow: var(--ucp-shadow); border: 1px solid var(--ucp-border); margin-bottom: 16px;
}
.ucp-card h3 { font-size: 15px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ucp-border); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.p-card {
  border: 1px solid var(--ucp-border); border-radius: var(--ucp-radius); padding: 18px;
  transition: all .25s;
}
.p-card:hover { box-shadow: var(--ucp-shadow); border-color: var(--ucp-primary); transform: translateY(-2px); }
.p-card h4 { font-size: 15px; margin-bottom: 8px; }
.p-card .p-months { margin-bottom: 10px; font-size: 13px; }
.p-card .price-display { font-size: 24px; font-weight: 800; color: var(--ucp-orange); margin: 8px 0; }
.p-card .spec { font-size: 12px; color: var(--ucp-muted); margin-bottom: 12px; }
.p-card-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== 订购产品（茄子/魔方风格） ===== */
.order-shop {
  display: flex;
  gap: 0;
  min-height: 520px;
  background: #fff;
  border-radius: var(--ucp-radius);
  border: 1px solid var(--ucp-border);
  box-shadow: var(--ucp-shadow);
  overflow: hidden;
}
.order-sidebar {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--ucp-border);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
}
.order-search-box {
  position: relative;
  padding: 14px 12px;
  border-bottom: 1px solid var(--ucp-border);
}
.order-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  margin: 0;
}
.order-search-box input:focus { border-color: var(--ucp-primary); }
.order-search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .45;
  pointer-events: none;
}
.order-cat-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}
.order-cat-group { margin-bottom: 2px; }
.order-cat-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  user-select: none;
  transition: background .15s;
}
.order-cat-parent-name { flex: 1; cursor: pointer; }
.order-cat-parent-name:hover { color: var(--ucp-primary); }
.order-cat-parent .arrow {
  font-size: 10px;
  color: #999;
  cursor: pointer;
  padding: 4px 6px;
  transition: transform .2s;
}
.order-cat-group.open .order-cat-parent .arrow { transform: rotate(90deg); }
.order-cat-children { display: none; }
.order-cat-group.open .order-cat-children { display: block; }
.order-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 28px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.order-cat-item:hover { background: #eef5ff; color: var(--ucp-primary); }
.order-cat-item.active {
  background: #e6f4ff;
  color: var(--ucp-primary);
  border-left-color: var(--ucp-primary);
  font-weight: 600;
}
.order-cat-flag { font-size: 16px; line-height: 1; flex-shrink: 0; }
.order-cat-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-cat-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 3px;
  background: #ff4d4f;
  color: #fff;
  font-weight: 600;
}
.order-cat-badge.rec { background: #fa8c16; }
.order-cat-badge.new { background: var(--ucp-primary); }
.order-content {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 28px;
  background: #fff;
}
.order-content-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.order-content-head h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.order-content-head p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}
.order-content-head .order-coupon {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.order-content-head .order-coupon input {
  max-width: 200px;
  height: 32px;
  margin: 0;
  font-size: 13px;
}
.order-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.order-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.order-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-color: #d0e4ff;
}
.order-card-title {
  font-size: 15px;
  font-weight: 700;
  padding: 16px 16px 10px;
  color: #222;
  line-height: 1.4;
  border-bottom: 1px solid #f5f5f5;
}
.order-card-desc {
  flex: 1;
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.7;
}
.order-card-desc ul {
  margin: 0;
  padding-left: 16px;
}
.order-card-desc li { margin-bottom: 4px; }
.order-card-desc li::marker { color: var(--ucp-primary); }
.order-card-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid #f5f5f5;
  background: #fafafa;
}
.order-card-cycle {
  width: 100%;
  margin-bottom: 10px;
  font-size: 12px;
  height: 32px;
}
.order-card-price { margin-bottom: 12px; }
.order-price-main {
  font-size: 26px;
  font-weight: 800;
  color: #ff4d4f;
  line-height: 1.2;
}
.order-price-main small {
  font-size: 13px;
  font-weight: 500;
  color: #999;
}
.order-price-discount {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #ff4d4f;
}
.order-price-discount s { color: #bbb; margin-left: 4px; }
.order-buy-btn {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--ucp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.order-buy-btn:hover { background: #40a9ff; }
.order-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 900px) {
  .order-shop { flex-direction: column; }
  .order-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--ucp-border); max-height: 280px; }
  .order-cards { grid-template-columns: 1fr; }
}

/* Tags & buttons reuse */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #f6ffed; color: #52c41a; }
.tag-orange { background: #fff7e6; color: #fa8c16; }
.tag-gray { background: #f5f5f5; color: #999; }
.tag-red { background: #fff2f0; color: #ff4d4f; }
.tag-blue { background: #e6f4ff; color: #1890ff; }
.btn { display: inline-block; padding: 7px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; font-family: inherit; transition: all .15s; }
.btn-primary { background: var(--ucp-primary); color: #fff; }
.btn-primary:hover { background: #40a9ff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-outline { background: #fff; border: 1px solid var(--ucp-border); color: var(--ucp-text); }
input, select, textarea {
  padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px;
  width: 100%; font-size: 13px; font-family: inherit; margin-bottom: 10px;
}
input:focus, select:focus { outline: none; border-color: var(--ucp-primary); box-shadow: 0 0 0 2px rgba(24,144,255,.1); }
label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--ucp-muted); }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.msg-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.msg-ok { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }

/* 通用弹窗 */
.ucp-modal { display: none; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; }
.ucp-modal.show { display: flex; }
.ucp-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ucp-modal-box {
  position: relative; background: #fff; border-radius: 12px; width: 92%; max-width: 520px;
  max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.ucp-modal-lg { max-width: 680px; }
.ucp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--ucp-border);
}
.ucp-modal-head h3 { margin: 0; font-size: 16px; }
.ucp-modal-close {
  width: 32px; height: 32px; border: none; background: #f5f5f5; border-radius: 8px; cursor: pointer;
}
.ucp-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.ucp-modal-foot { padding: 12px 20px 16px; border-top: 1px solid var(--ucp-border); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.detail-grid .label { color: var(--ucp-muted); font-size: 12px; margin-bottom: 4px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ticket-thread { max-height: 360px; overflow-y: auto; }
.ticket-msg {
  padding: 12px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 13px; line-height: 1.6;
}
.ticket-msg.user { background: #f5f8fc; border-left: 3px solid var(--ucp-primary); }
.ticket-msg.admin { background: #fff7e6; border-left: 3px solid #faad14; }
.ticket-msg .meta { font-size: 11px; color: #aaa; margin-bottom: 6px; }

/* 帮助中心 */
.help-layout { display: grid; grid-template-columns: 180px 1fr; gap: 20px; min-height: 360px; }
@media (max-width: 700px) { .help-layout { grid-template-columns: 1fr; } }
.help-sidebar { border-right: 1px solid var(--ucp-border); padding-right: 12px; }
.help-cat-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
  color: #666; margin-bottom: 4px; transition: all .15s;
}
.help-cat-item:hover, .help-cat-item.active { background: var(--ucp-primary-light); color: var(--ucp-primary); font-weight: 500; }
.help-article-item {
  padding: 14px 0; border-bottom: 1px solid var(--ucp-border); cursor: pointer;
}
.help-article-item:hover h4 { color: var(--ucp-primary); }
.help-article-item h4 { font-size: 14px; margin: 0 0 6px; transition: color .15s; }
.help-article-item p { font-size: 12px; color: var(--ucp-muted); margin: 0; line-height: 1.6; }
.help-detail h3 { font-size: 18px; margin-bottom: 12px; }
.help-detail-body { font-size: 14px; line-height: 1.8; color: #555; white-space: pre-wrap; }

/* 推介计划 Tab */
.aff-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--ucp-border); padding-bottom: 12px; }
.aff-tab {
  padding: 8px 16px; border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: #666; border-radius: 8px; transition: all .15s;
}
.aff-tab:hover { background: #f5f8fc; color: var(--ucp-primary); }
.aff-tab.active { background: var(--ucp-primary-light); color: var(--ucp-primary); font-weight: 600; }
.aff-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 800px) { .aff-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.aff-stat { background: #fafbfc; border-radius: 8px; padding: 16px; text-align: center; border: 1px solid var(--ucp-border); }
.aff-stat b { display: block; font-size: 22px; color: var(--ucp-orange); margin-bottom: 4px; }
.aff-stat span { font-size: 12px; color: var(--ucp-muted); }

/* Pay page — 仿支付宝扫码收款样式 */
.pay-modal { display: none; position: fixed; inset: 0; z-index: 999; background: #eef1f6; }
.pay-modal.show { display: block; }
.pay-page { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 48px; }
.pay-page-card {
  width: 100%; max-width: 920px; background: #fff; border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); position: relative;
}
.pay-page-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid #f0f0f0; background: #fafafa;
}
.pay-trade-tag { font-size: 12px; color: #8c8c8c; }
.pay-close {
  border: none; background: none; font-size: 22px; line-height: 1; color: #999;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.pay-close:hover { color: #333; background: #f5f5f5; }
.pay-page-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 28px 8px; border-bottom: 1px solid #f5f5f5;
}
.pay-page-head h2 { font-size: 18px; font-weight: 600; color: #333; margin: 0; }
.pay-payee { font-size: 13px; color: #8c8c8c; }
.pay-payee b { color: #595959; font-weight: 500; }
.pay-page-body {
  display: flex; align-items: flex-start; justify-content: center; gap: 40px;
  padding: 28px 28px 36px;
}
.pay-page-main { flex: 0 1 420px; text-align: center; }
.pay-scan-hint {
  margin-top: 8px; font-size: 12px; color: #fa8c16; line-height: 1.5;
}
.pay-modal.pay-wechat .pay-scan-hint { color: #389e0d; }
.pay-amount {
  font-size: 42px; font-weight: 700; line-height: 1.1; margin-bottom: 20px;
  color: #ff6600; font-family: Arial, "Helvetica Neue", sans-serif;
}
.pay-modal.pay-wechat .pay-amount { color: #09bb07; }
.pay-qr-panel { display: inline-block; text-align: center; }
.pay-qr-box {
  width: 240px; height: 240px; margin: 0 auto;
  border: 1px solid #e8e8e8; background: #fff; padding: 8px; box-sizing: border-box;
}
.pay-qr-box img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pay-qr-brand {
  margin: 10px auto 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 28px; padding: 0 12px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}
.pay-modal.pay-alipay .pay-qr-brand { background: #1677ff; color: #fff; }
.pay-modal.pay-wechat .pay-qr-brand { background: #09bb07; color: #fff; }
.pay-qr-badge {
  display: none;
}
.pay-qr-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 13px; color: #595959;
}
.pay-scan-icon {
  width: 18px; height: 18px; border: 2px solid #ff6600; border-radius: 3px;
  position: relative; flex-shrink: 0;
}
.pay-modal.pay-wechat .pay-scan-icon { border-color: #09bb07; }
.pay-scan-icon::before {
  content: ''; position: absolute; left: 2px; top: 2px; width: 5px; height: 5px;
  border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  color: inherit;
}
.pay-modal.pay-alipay .pay-scan-icon { color: #ff6600; }
.pay-modal.pay-wechat .pay-scan-icon { color: #09bb07; }
.pay-download {
  display: inline-block; margin-top: 14px; font-size: 12px; color: #1677ff; text-decoration: none;
}
.pay-modal.pay-wechat .pay-download { color: #09bb07; }
.pay-download:hover { text-decoration: underline; }
.pay-waiting {
  margin: 18px 0 0; font-size: 12px; color: #8c8c8c; display: flex;
  align-items: center; justify-content: center; gap: 6px;
}
.pay-waiting-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ff6600;
  animation: pay-pulse 1.2s ease-in-out infinite;
}
.pay-modal.pay-wechat .pay-waiting-dot { background: #09bb07; }
@keyframes pay-pulse {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.pay-page-side { flex: 0 0 200px; padding-top: 24px; }
.pay-phone-guide { position: relative; width: 180px; margin: 0 auto; }
.pay-phone-screen {
  width: 140px; height: 240px; margin: 0 auto; border: 3px solid #333; border-radius: 22px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%); position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.pay-phone-screen::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; background: #333; border-radius: 2px;
}
.pay-phone-scan-ui {
  position: absolute; left: 16px; right: 16px; top: 48px; bottom: 48px;
  border: 2px dashed rgba(22,119,255,.45); border-radius: 8px;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 6px, rgba(22,119,255,.04) 6px, rgba(22,119,255,.04) 12px
  );
}
.pay-modal.pay-wechat .pay-phone-scan-ui {
  border-color: rgba(9,187,7,.45);
  background: repeating-linear-gradient(
    45deg, transparent, transparent 6px, rgba(9,187,7,.05) 6px, rgba(9,187,7,.05) 12px
  );
}
.pay-guide-bubble {
  position: absolute; right: -8px; top: 72px; padding: 8px 14px;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 20px;
  font-size: 13px; color: #595959; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.pay-guide-bubble::before {
  content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px; background: #fff; border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;
}
@media (max-width: 768px) {
  .pay-page-body { flex-direction: column; align-items: center; padding: 20px 16px 28px; }
  .pay-page-side { display: none; }
  .pay-page-head { padding: 16px 16px 8px; }
  .pay-amount { font-size: 36px; }
}
.pay-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ===== 配置 / 购物车 / 结算 ===== */
.cfg-page, .cart-page, .checkout-page {
  background: #fff; border-radius: var(--ucp-radius); border: 1px solid var(--ucp-border);
  box-shadow: var(--ucp-shadow); overflow: hidden;
}
.cfg-head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #f0f0f0; }
.cfg-back { color: var(--ucp-primary); font-size: 14px; white-space: nowrap; margin-top: 4px; }
.cfg-head h3 { font-size: 18px; margin: 0 0 4px; }
.cfg-sub { font-size: 13px; color: #888; margin: 0; }
.cfg-body { padding: 24px 28px; }
.cfg-product-title { font-size: 16px; font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.cfg-row {
  display: flex; align-items: flex-start; gap: 24px; padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-label {
  width: 88px; flex-shrink: 0; font-size: 14px; font-weight: 600; color: #333;
  line-height: 36px;
}
.cfg-controls { flex: 1; min-width: 0; }
.cfg-section { margin-bottom: 22px; }
.cfg-section > label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 10px; }
.cfg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-pill {
  padding: 8px 18px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff;
  font-size: 13px; cursor: pointer; transition: all .15s; color: #333; line-height: 1.4;
}
.cfg-pill.active {
  border-color: var(--ucp-primary); color: var(--ucp-primary);
  background: var(--ucp-primary); color: #fff;
}
.cfg-pill.disabled,
.cfg-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #e8e8e8;
  color: #bfbfbf;
  pointer-events: none;
}
.cfg-pill.disabled.active,
.cfg-pill:disabled.active {
  background: #d9d9d9;
  border-color: #d9d9d9;
  color: #fff;
}
.cfg-pill:hover:not(.active):not(.disabled):not(:disabled) { border-color: var(--ucp-primary); color: var(--ucp-primary); }
.cfg-os-row .cfg-controls { overflow: hidden; }
.cfg-os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cfg-os-card {
  border: 1px solid #eee; border-radius: 10px; padding: 16px 12px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.cfg-os-card.active { border-color: var(--ucp-primary); box-shadow: 0 0 0 2px rgba(24,144,255,.15); }
.cfg-os-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.cfg-os-img { width: 36px; height: 36px; display: block; margin: 0 auto 8px; object-fit: contain; }
.cfg-os-name { display: block; font-size: 13px; font-weight: 600; color: #333; }
.cfg-os-ver { width: 100%; margin-top: 10px; font-size: 12px; height: 30px; }
.cfg-os-ver-ph { margin-top: 10px; font-size: 12px; color: #999; height: 30px; line-height: 30px; }
.cfg-range-wrap { max-width: 520px; }
.cfg-range-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-bottom: 6px; }
.cfg-range { display: flex; align-items: center; gap: 12px; }
.cfg-range input[type=range] { flex: 1; accent-color: var(--ucp-primary); }
.cfg-range-stepper { display: flex; align-items: center; gap: 4px; }
.cfg-range-stepper button {
  width: 28px; height: 28px; border: 1px solid #d9d9d9; border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 16px; line-height: 1;
}
.cfg-range-fixed input[type=range],
.cfg-range-fixed .cfg-range-num,
.cfg-range-fixed .cfg-range-stepper button {
  opacity: 0.45;
  cursor: not-allowed;
}
.cfg-range-fixed .cfg-range-meta { color: #bbb; }
.cfg-pwd-row { display: flex; gap: 8px; max-width: 420px; }
.cfg-pwd-input { flex: 1; height: 36px; font-family: monospace; }
.cfg-pwd-gen {
  padding: 0 16px; height: 36px; border: 1px solid var(--ucp-primary);
  border-radius: 4px; background: #fff; color: var(--ucp-primary); font-size: 13px; cursor: pointer;
}
.cfg-pwd-gen:hover { background: #e6f4ff; }
.cfg-cycle { max-width: 280px; height: 36px; }
.cfg-foot {
  position: sticky; bottom: 0; background: #fafafa; border-top: 1px solid #eee;
  padding: 16px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.cfg-foot-price b { color: #ff4d4f; font-size: 24px; }
.cfg-price-loading { color: #666; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.cfg-price-fixed { color: #888; font-size: 12px; margin-left: 4px; }
.cfg-spinner {
  width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: var(--ucp-primary);
  border-radius: 50%; animation: cfg-spin .8s linear infinite; display: inline-block;
}
@keyframes cfg-spin { to { transform: rotate(360deg); } }
.cfg-no-fields {
  margin: 12px 0 20px; padding: 14px 18px; background: #f6ffed; border: 1px solid #b7eb8f;
  border-radius: 8px; color: #389e0d; font-size: 14px;
}
.cfg-no-fields p { margin: 0; }
.cfg-foot-tip { font-size: 12px; color: #999; margin: 0; flex: 1; min-width: 200px; }
.cfg-cart-btn {
  margin-left: auto; padding: 12px 32px; border: none; border-radius: 6px;
  background: var(--ucp-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.cfg-cart-btn:hover { background: #40a9ff; }
.shop-loading, .shop-empty, .cart-page-empty { padding: 60px; text-align: center; color: #999; }

.cart-page-head { padding: 20px 24px; border-bottom: 1px solid #f0f0f0; }
.cart-page-head h3 { margin: 0; font-size: 18px; }
.cart-page-list { padding: 16px 24px; display: grid; gap: 16px; }
.cart-page-item { border: 1px solid #eee; border-radius: 10px; padding: 16px 20px; }
.cart-page-item-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-page-specs { margin: 0 0 12px; padding-left: 18px; font-size: 12px; color: #666; line-height: 1.8; }
.cart-page-item-foot { display: flex; justify-content: space-between; align-items: center; }
.cart-page-price { color: #ff4d4f; font-size: 20px; font-weight: 700; }
.cart-page-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 16px 24px; background: #fafafa; border-top: 1px solid #eee;
}
.cart-page-total b { color: #ff4d4f; font-size: 22px; }
.cart-page-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-pay-btn { padding: 10px 28px; }

.checkout-page { padding-bottom: 0; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f0f0f0; }
.checkout-summary { padding: 20px 24px; border-bottom: 1px solid #f5f5f5; }
.checkout-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.checkout-section { padding: 20px 24px; border-bottom: 1px solid #f5f5f5; }
.checkout-section label { display: block; font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.checkout-section textarea { width: 100%; min-height: 60px; resize: vertical; }
.pay-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pay-method-card {
  position: relative; border: 2px solid #eee; border-radius: 10px; padding: 20px 14px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.pay-method-card.active { border-color: var(--ucp-primary); background: #f0f7ff; }
.pay-method-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.pay-method-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.pay-method-card small { color: #888; font-size: 11px; }
.pay-check { position: absolute; right: 8px; bottom: 8px; color: var(--ucp-primary); font-weight: 700; }
.checkout-agree { display: block; padding: 12px 24px; font-size: 13px; }
.checkout-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 16px 24px; background: #fafafa; border-top: 1px solid #eee;
}
.checkout-total b { color: #ff4d4f; font-size: 22px; }
.checkout-submit { margin-left: auto; padding: 10px 28px; background: #52c41a; border-color: #52c41a; }
.checkout-submit:hover { background: #73d13d; }
.usdt-pay-box {
  margin: 16px 24px; padding: 20px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 10px;
}
.usdt-address {
  font-family: monospace; font-size: 14px; padding: 12px; background: #fff;
  border: 1px dashed #d48806; border-radius: 6px; word-break: break-all; margin: 12px 0;
}
.usdt-tip { font-size: 12px; color: #888; }

@media (max-width: 1100px) {
  .ucp-top-link > span:nth-child(2) { display: none; }
  .ucp-top-link { min-width: 40px; padding: 6px 8px; }
  .ucp-lang #lang-label { display: none; }
}
@media (max-width: 768px) {
  .ucp-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .ucp-sidebar.open { transform: translateX(0); }
  .ucp-main { margin-left: 0; }
  .ucp-menu-toggle { display: block !important; }
  .ucp-search { max-width: 180px; }
}
.hide { display: none !important; }
