/* 用户中心 — 魔方财务风格升级版 */
: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);
  text-decoration: none; cursor: pointer; transition: color .2s, opacity .2s;
}
a.ucp-brand:hover { color: var(--ucp-primary); opacity: .92; }
.ucp-brand-img { display: block; height: 28px; width: auto; border-radius: 4px; }
.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; }
a.ucp-menu-item.ucp-menu-link {
  text-decoration: none; color: inherit; cursor: pointer;
}
a.ucp-menu-item.ucp-menu-link:hover { background: #f5f8fc; color: var(--ucp-primary); }
.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); }
.finance-bill-logo { margin-left: auto; }
.finance-bill-logo img { display: block; max-height: 32px; width: auto; }

/* 子视图切换 */
.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-home-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 12px; border-radius: 18px; font-size: 13px; font-weight: 500;
  color: var(--ucp-muted); text-decoration: none; border: 1px solid var(--ucp-border);
  background: #fafbfc; transition: all .2s;
}
.ucp-home-link:hover { color: var(--ucp-primary); border-color: var(--ucp-primary); background: var(--ucp-primary-light, #e6f7ff); }
.ucp-home-link-icon { font-size: 15px; line-height: 1; }
.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; }

.ucp-card.domain-order-panel {
  padding: 0 !important; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(165deg, #050810 0%, #0a1020 38%, #0c1424 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(56, 189, 248, 0.1) !important;
}
.domain-order-search {
  padding: 20px 24px 16px;
  background:
    linear-gradient(180deg, rgba(24, 144, 255, 0.06) 0%, transparent 55%),
    #080e1a;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  position: relative;
}
.domain-order-search::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}
.domain-order-search-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #f0f9ff;
  letter-spacing: 0.02em; text-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}
.domain-order-search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35); color: #7dd3fc;
  box-shadow: 0 0 16px rgba(24, 144, 255, 0.2);
}
.domain-search-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; align-items: center;
}
.domain-search-bar input,
.domain-search-input {
  flex: 1; min-width: 220px; height: 42px; margin: 0;
  border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 8px; padding: 0 14px;
  background: rgba(0, 0, 0, 0.35); color: #e0f2fe; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.domain-search-bar input::placeholder,
.domain-search-input::placeholder { color: rgba(186, 230, 253, 0.38); }
.domain-search-bar input:focus,
.domain-search-input:focus {
  outline: none; border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.domain-search-bar select,
.domain-search-select {
  width: auto; margin: 0; height: 42px; min-width: 72px;
  border: 1px solid rgba(56, 189, 248, 0.28); border-radius: 8px; padding: 0 12px;
  background: rgba(0, 0, 0, 0.35); color: #bae6fd; font-size: 14px;
}
.domain-search-bar .btn-domain-query {
  height: 42px; padding: 0 22px; border: none; color: #fff; font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #1890ff 0%, #0284c7 55%, #22d3ee 100%);
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.domain-search-bar .btn-domain-query:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 55%, #67e8f9 100%);
  box-shadow: 0 6px 18px rgba(24, 144, 255, 0.45);
  transform: translateY(-1px);
}
.domain-search-bar .btn-domain-bulk {
  height: 42px; padding: 0 22px; border: none; color: #fff; font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
  box-shadow: 0 4px 14px rgba(114, 46, 209, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.domain-search-bar .btn-domain-bulk:hover {
  background: linear-gradient(135deg, #9254de 0%, #722ed1 100%);
  box-shadow: 0 6px 18px rgba(114, 46, 209, 0.45);
  transform: translateY(-1px);
}
.domain-hint {
  font-size: 13px; color: #7dd3fc; margin-bottom: 0; line-height: 1.7;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}
.domain-result { margin-top: 0; padding: 14px 16px 16px; background: #060b14; }
.domain-cart-toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-12px);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; color: #e0f2fe;
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 24px rgba(24, 144, 255, 0.2);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 1000;
}
.domain-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.domain-result-empty {
  padding: 32px 20px; text-align: center; color: #999; font-size: 13px;
  background: #141414; border-radius: 12px;
}
/* 订购域名 — 图2 深色卡片列表 */
.domain-order-list { display: flex; flex-direction: column; gap: 10px; }
.domain-order-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #1e1e1e; border-radius: 10px; padding: 14px 16px 14px 0;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color .2s, box-shadow .2s;
}
.domain-order-card.available:hover {
  border-color: rgba(24, 144, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.domain-order-card.selected {
  border-color: rgba(24, 144, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(24, 144, 255, 0.35), 0 4px 20px rgba(24, 144, 255, 0.15);
}
.domain-order-accent {
  width: 4px; align-self: stretch; flex-shrink: 0; min-height: 48px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #52c41a 0%, #13c2c2 100%);
}
.domain-order-card.unavailable .domain-order-accent {
  background: linear-gradient(180deg, #595959 0%, #434343 100%);
}
.domain-order-main { flex: 1; min-width: 180px; padding-left: 12px; }
.domain-order-name-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
}
.domain-order-name {
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.01em;
}
.domain-order-tld { font-weight: 600; color: #69b1ff; }
.domain-order-premium {
  padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 500;
  color: #faad14; background: rgba(250, 173, 20, 0.12); border: 1px solid rgba(250, 173, 20, 0.35);
}
.domain-order-status {
  padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.domain-order-status.is-avail {
  color: #52c41a; border: 1px solid #52c41a; background: rgba(82, 196, 26, 0.08);
}
.domain-order-status.is-taken {
  color: #ff7875; border: 1px solid rgba(255, 120, 117, 0.45); background: rgba(255, 77, 79, 0.08);
}
.domain-order-pricing {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  margin-left: auto;
}
.domain-order-price {
  font-size: 22px; font-weight: 700; color: #1890ff; line-height: 1.2;
  text-shadow: 0 0 20px rgba(24, 144, 255, 0.25);
}
.domain-order-unit { font-size: 14px; font-weight: 500; color: #69b1ff; margin-left: 1px; }
.domain-order-renew { font-size: 12px; color: #888; white-space: nowrap; }
.domain-order-renew.only { color: #aaa; font-size: 13px; }
.domain-order-cart-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 9px 18px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
  box-shadow: 0 2px 10px rgba(24, 144, 255, 0.35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.domain-order-cart-btn:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.45);
  transform: translateY(-1px);
}
.domain-order-card.in-cart {
  border-color: rgba(82, 196, 26, 0.35);
  box-shadow: 0 0 0 1px rgba(82, 196, 26, 0.2);
}
.domain-order-cart-btn.added {
  background: linear-gradient(135deg, #389e0d 0%, #52c41a 100%);
  box-shadow: 0 2px 10px rgba(82, 196, 26, 0.35);
  cursor: default;
}
.domain-order-foot {
  margin: 10px 2px 0; font-size: 12px; color: rgba(186, 230, 253, 0.45);
}
@media (max-width: 768px) {
  .domain-order-card { padding-right: 12px; }
  .domain-order-pricing { margin-left: 12px; width: 100%; }
  .domain-order-cart-btn { width: 100%; justify-content: center; margin-left: 12px; }
}
.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-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, .ucp-theme-wrap { position: relative; }
.ucp-theme-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: #555;
  border: 1px solid var(--ucp-border); background: #fff; transition: all .2s;
  user-select: none;
}
.ucp-theme-btn:hover { border-color: var(--ucp-primary); color: var(--ucp-primary); }
.ucp-theme-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ucp-primary); box-shadow: 0 0 8px rgba(24,144,255,.45);
}
.ucp-theme-dropdown { min-width: 168px; }
.ucp-theme-dropdown a.active { background: var(--ucp-primary-light, #e6f7ff); color: var(--ucp-primary); font-weight: 600; }
.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,
.ucp-theme-wrap.open .ucp-theme-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); }

/* 用户信息卡 v2（对标魔方财务用户中心） */
.dash-user-v2 { display: flex; flex-direction: column; gap: 0; }
.dash-user-head {
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ucp-border);
}
.dash-user-title { font-size: 14px; font-weight: 600; color: var(--ucp-text); margin: 0; }
.dash-welcome-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.dash-welcome-row h3 { font-size: 18px; font-weight: 600; margin: 0; color: var(--ucp-text); flex: 1; min-width: 0; }
.dash-level-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 7px 16px 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: #e0f2fe; white-space: nowrap;
  background: linear-gradient(135deg, #0c1929 0%, #0f2744 45%, #1e3a8a 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow:
    0 4px 18px rgba(14, 116, 178, 0.35),
    0 0 0 1px rgba(14, 165, 233, 0.08),
    inset 0 1px 0 rgba(186, 230, 253, 0.28),
    inset 0 -1px 0 rgba(2, 6, 23, 0.35);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dash-level-badge::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(186,230,253,.22) 0%, rgba(56,189,248,.06) 38%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(56,189,248,.04) 0 1px, transparent 1px 6px);
}
.dash-level-badge::after {
  content: ''; position: absolute; top: -50%; left: -35%; width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 28%, rgba(125,211,252,.35) 46%, transparent 64%);
  transform: rotate(14deg); pointer-events: none;
  animation: dash-badge-shine 4.5s ease-in-out infinite;
}
@keyframes dash-badge-shine {
  0%, 72%, 100% { left: -35%; opacity: 0; }
  78% { opacity: 1; }
  92% { left: 120%; opacity: 0; }
}
.dash-level-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.75);
  box-shadow:
    0 6px 24px rgba(14, 165, 233, 0.45),
    0 0 28px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(224, 242, 254, 0.35),
    inset 0 -1px 0 rgba(2, 6, 23, 0.4);
}
.dash-level-icon {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; color: #7dd3fc;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}
.dash-level-badge > :not(.dash-level-icon) { position: relative; z-index: 1; }
/* 普通用户 — 深空蓝 */
.dash-level-badge.level-0 {
  background: linear-gradient(135deg, #0b1220 0%, #132337 42%, #1e3a5f 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.45), 0 0 18px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(148,163,184,.2);
}
.dash-level-badge.level-0 .dash-level-icon { color: #94a3b8; filter: drop-shadow(0 0 4px rgba(148,163,184,.4)); }
/* 银牌用户 — 冰晶蓝 */
.dash-level-badge.level-1 {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 38%, #0284c7 72%, #38bdf8 100%);
  color: #f0f9ff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.42), 0 0 22px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(224,242,254,.32);
}
.dash-level-badge.level-1 .dash-level-icon { color: #e0f2fe; filter: drop-shadow(0 0 8px rgba(224,242,254,.55)); }
/* 金牌用户 — 电光青 */
.dash-level-badge.level-2 {
  background: linear-gradient(135deg, #064e63 0%, #0891b2 30%, #06b6d4 62%, #67e8f9 100%);
  color: #ecfeff;
  border-color: rgba(103, 232, 249, 0.55);
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.48), 0 0 26px rgba(34, 211, 238, 0.28), inset 0 1px 0 rgba(207,250,254,.38);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
}
.dash-level-badge.level-2 .dash-level-icon { color: #a5f3fc; filter: drop-shadow(0 0 10px rgba(165,243,252,.7)); }
/* 钻石用户 — 蓝钻极光 */
.dash-level-badge.level-3 {
  background: linear-gradient(135deg, #020617 0%, #1d4ed8 28%, #0284c7 58%, #22d3ee 100%);
  color: #fff;
  border-color: rgba(165, 243, 252, 0.7);
  box-shadow:
    0 4px 22px rgba(29, 78, 216, 0.5),
    0 0 32px rgba(34, 211, 238, 0.35),
    inset 0 1px 0 rgba(224, 242, 254, 0.42),
    inset 0 -1px 0 rgba(2, 6, 23, 0.35);
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.65);
  animation: dash-diamond-glow 3s ease-in-out infinite;
}
.dash-level-badge.level-3 .dash-level-icon { color: #fff; filter: drop-shadow(0 0 10px rgba(255,255,255,.75)); }
@keyframes dash-diamond-glow {
  0%, 100% { box-shadow: 0 4px 22px rgba(29,78,216,.5), 0 0 28px rgba(34,211,238,.28), inset 0 1px 0 rgba(224,242,254,.42); }
  50% { box-shadow: 0 4px 26px rgba(29,78,216,.62), 0 0 40px rgba(34,211,238,.48), inset 0 1px 0 rgba(224,242,254,.5); }
}
.dash-user-body { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.dash-avatar-lg { width: 64px !important; height: 64px !important; font-size: 26px !important; }
.dash-user-main { flex: 1; min-width: 0; }
.dash-user-main h3 span { color: var(--ucp-primary); }
.dash-user-v2 .dash-user-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ucp-muted); line-height: 1.6;
}
.dash-discount-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 6px 12px; border-radius: 6px; background: #fff7e6; border: 1px solid #ffd591;
  font-size: 12px; color: #ad6800;
}
.dash-discount-badge {
  padding: 2px 8px; border-radius: 4px; background: #fa8c16; color: #fff; font-weight: 500;
}
.dash-discount-text b { color: #d46b08; font-weight: 700; }
.dash-security-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--ucp-border); border-bottom: 1px solid var(--ucp-border);
}
@media (max-width: 600px) { .dash-security-row { grid-template-columns: repeat(2, 1fr); } }
.dash-sec-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px; border-radius: 8px; text-decoration: none; color: #bfbfbf;
  transition: background .15s, color .15s; cursor: pointer;
}
.dash-sec-item:hover { background: #f5f8fc; color: var(--ucp-muted); }
.dash-sec-item.ok { color: #52c41a; }
.dash-sec-item.ok .dash-sec-icon { background: #f6ffed; }
.dash-sec-icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; background: #f5f5f5;
}
.dash-sec-item span:last-child { font-size: 12px; }
.dash-login-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px;
  font-size: 12px; 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: 0;
  list-style: none;
}
.order-card-desc li { margin-bottom: 6px; line-height: 1.55; }
.order-card-desc li::marker { content: none; }
.order-card-desc .desc-k { color: #333; }
.order-card-desc .desc-v { font-weight: 600; }
.order-card-desc .order-desc-single { white-space: pre-wrap; word-break: break-word; }
.order-spec-extra { margin-top: 8px; color: #666; font-size: 13px; line-height: 1.6; list-style: none; padding-left: 0; }
.order-spec-extra li { margin: 2px 0; padding-left: 0; }
.order-spec-extra li::marker { content: none; }
.order-card-foot {
  padding: 14px 16px 16px;
  border-top: 1px solid #f5f5f5;
  background: #fafafa;
}
.order-card-cycle {
  display: none !important;
}
.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: #8c4a4a;
}
.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-buy-btn.disabled,
.order-buy-btn:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}
.order-buy-btn.disabled:hover,
.order-buy-btn:disabled:hover { background: #d9d9d9; }
.order-card-soldout { opacity: 0.92; }
.order-soldout-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 4px;
  vertical-align: middle;
}
.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;
    overflow: visible;
    min-height: 0;
  }
  .order-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--ucp-border);
    max-height: none;
    flex-shrink: 0;
  }
  .order-cat-tree {
    flex: none;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
  .order-content {
    flex: none;
    overflow: visible;
    padding: 16px;
  }
  .order-cat-label {
    white-space: normal;
    line-height: 1.35;
  }
  .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); }
/* 订购域名 — 覆盖全局 input 白底，保证深色可读 */
.ucp-card.domain-order-panel .domain-search-input,
.ucp-card.domain-order-panel .domain-search-select,
.ucp-card.domain-order-panel .domain-search-bar input,
.ucp-card.domain-order-panel .domain-search-bar select {
  width: auto; margin-bottom: 0;
  background: #0a1220 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #f0f9ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ucp-card.domain-order-panel .domain-search-input::placeholder,
.ucp-card.domain-order-panel .domain-search-bar input::placeholder {
  color: rgba(125, 211, 252, 0.55) !important;
}
.ucp-card.domain-order-panel .domain-search-input:focus,
.ucp-card.domain-order-panel .domain-search-select:focus,
.ucp-card.domain-order-panel .domain-search-bar input:focus,
.ucp-card.domain-order-panel .domain-search-bar select:focus {
  border-color: rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.ucp-card.domain-order-panel .domain-search-select option {
  background: #0f172a; color: #e0f2fe;
}
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-hero {
  padding: 20px 24px 22px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 55%);
}
.cfg-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cfg-hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(22,119,255,.1); color: var(--ucp-primary); font-size: 12px; font-weight: 600;
}
.cfg-hero-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #1f1f1f; line-height: 1.35; }
.cfg-hero-sub { margin: 0; font-size: 13px; color: #888; }
.cfg-back { color: var(--ucp-primary); font-size: 14px; white-space: nowrap; text-decoration: none; }
.cfg-back:hover { opacity: .85; }
.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-linkage-hint {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 18px; padding: 14px 16px;
  background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
  border: 1px solid #ffe58f; border-radius: 10px;
  font-size: 13px; line-height: 1.6; color: #614700;
}
.cfg-linkage-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cfg-linkage-text strong { display: block; margin-bottom: 4px; color: #ad6800; }
.cfg-linkage-text p { margin: 0; }
.cfg-linkage-text b { color: #d48806; }
.cfg-config-invalid {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 18px; padding: 14px 16px;
  background: linear-gradient(135deg, #fff2f0 0%, #fff7e6 100%);
  border: 1px solid #ffccc7; border-radius: 10px;
  font-size: 13px; line-height: 1.6; color: #820014;
}
.cfg-config-invalid-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; color: #cf1322; }
.cfg-config-invalid-text strong { display: block; margin-bottom: 4px; color: #cf1322; }
.cfg-config-invalid-text p { margin: 0; color: #595959; }
.cfg-pill.cfg-pill-invalid.active {
  border-color: #ff7875;
  background: #fff1f0;
  color: #cf1322;
  box-shadow: 0 0 0 1px #ff7875 inset;
}
.cfg-cart-btn.disabled,
.cfg-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.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, .cfg-os-scroll { 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-bar { flex-direction: column; align-items: stretch; gap: 8px; }
.cfg-foot-main { display: flex; align-items: center; gap: 16px; width: 100%; }
.cfg-foot-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfg-foot-lbl { font-size: 12px; color: #999; line-height: 1.2; }
.cfg-foot-price-val b { color: #ff4d4f; font-size: 24px; font-weight: 700; line-height: 1.2; }
.cfg-foot-price-val small.cfg-price-unit { font-size: 13px; font-weight: 500; color: #999; margin-left: 2px; }
.cfg-foot-price-val .order-price-discount { display: block; margin-top: 4px; font-size: 12px; color: #8c4a4a; line-height: 1.3; }
.cfg-foot-price, .cfg-foot-price-val .cfg-price-loading { font-size: 14px; }
.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; text-align: center; }
.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;
  white-space: nowrap; flex-shrink: 0;
}
.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.is-domain { border-color: rgba(24, 144, 255, 0.18); background: linear-gradient(180deg, #fafcff, #fff); }
.cart-domain-tag {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #1890ff; background: #e6f7ff; vertical-align: middle;
}
.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; }
  .ucp-home-link > span:last-child { display: none; }
  .ucp-home-link { min-width: 36px; padding: 6px 10px; justify-content: center; }
}
@media (max-width: 768px) {
  body.ucp-body { overflow-x: hidden; }
  .ucp-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .ucp-sidebar.open { transform: translateX(0); }
  .ucp-sidebar-backdrop {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.45);
  }
  .ucp-sidebar-backdrop.open { display: block; }
  .ucp-main { margin-left: 0; }
  .ucp-menu-toggle { display: block !important; flex-shrink: 0; }
  .ucp-topbar {
    padding: 0 8px; gap: 4px;
    overflow: visible;
    z-index: 500;
  }
  .ucp-top-icons {
    margin-left: 0; flex: 1; min-width: 0; flex-shrink: 1;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .ucp-home-link,
  .ucp-search,
  .ucp-theme-wrap,
  .ucp-lang-wrap { display: none !important; }
  .ucp-top-link { min-width: 36px; padding: 6px 4px; }
  .ucp-user-wrap { flex-shrink: 0; z-index: 510; }
  .ucp-user-wrap.open { z-index: 520; }
  .ucp-user-wrap.open .ucp-user-dropdown {
    position: fixed;
    top: calc(var(--ucp-topbar-h) + 6px);
    right: 12px;
    left: auto;
    min-width: 168px;
    z-index: 530;
  }
  .ucp-user-name { display: none; }
  .ucp-user { padding: 4px; }
  .ucp-content { padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .ucp-panel.active { animation: fadeInMobile .25s ease; }
  @keyframes fadeInMobile { from { opacity: 0; } to { opacity: 1; } }

  /* 订购产品 · 手机整页滚动（避免侧栏/商品区被 overflow:hidden 裁切） */
  #panel-products .ucp-page-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
  }
  #panel-products .ucp-breadcrumb {
    width: 100%;
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
  }
  .order-shop {
    border-radius: 12px;
    box-shadow: none;
    border: none;
  }
  .order-content-head h3 { font-size: 16px; }
  .order-card-desc { font-size: 13px; }

  /* 配置页 · 手机高级布局 */
  #configure-page .cfg-page {
    border: none; box-shadow: none; border-radius: 0; overflow: visible;
  }
  .cfg-hero {
    margin: -12px -12px 0;
    padding: 14px 16px 20px;
    border-bottom: none;
    background: linear-gradient(145deg, #0958d9 0%, #1677ff 42%, #4096ff 100%);
    color: #fff;
  }
  .cfg-hero-top { margin-bottom: 12px; }
  .cfg-hero .cfg-back {
    color: rgba(255,255,255,.95); font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .cfg-hero-badge {
    background: rgba(255,255,255,.18); color: #fff;
    border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px);
  }
  .cfg-hero-title { color: #fff; font-size: 21px; letter-spacing: -.02em; }
  .cfg-hero-sub { color: rgba(255,255,255,.82); font-size: 12px; }

  .cfg-body { padding: 14px 0 130px; }
  .cfg-stack { display: flex; flex-direction: column; gap: 12px; }
  .cfg-row,
  .cfg-field-card {
    flex-direction: column; gap: 12px; padding: 0; border-bottom: none;
  }
  .cfg-field-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 16px rgba(15,23,42,.05);
  }
  .cfg-linkage-hint {
    margin: 0; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(250,173,20,.12);
  }
  .cfg-label {
    width: auto; line-height: 1.3; font-size: 15px;
    display: flex; align-items: center; gap: 8px;
  }
  .cfg-label::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(180deg, #1677ff, #69b1ff); flex-shrink: 0;
  }

  .cfg-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .cfg-pills-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-pill {
    width: 100%; margin: 0; padding: 11px 8px;
    border-radius: 10px; font-size: 13px; text-align: center;
    border-color: #e8ecf0; background: #f8fafc;
  }
  .cfg-pill.active {
    border-color: #1677ff;
    background: linear-gradient(135deg, #1677ff, #4096ff);
    box-shadow: 0 4px 14px rgba(22,119,255,.28);
  }

  .cfg-os-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cfg-os-scroll::-webkit-scrollbar { display: none; }
  .cfg-os-scroll .cfg-os-card {
    flex: 0 0 132px; scroll-snap-align: start;
    border-radius: 14px; padding: 14px 10px; background: #f8fafc;
  }
  .cfg-os-scroll .cfg-os-card.active {
    background: #fff;
    box-shadow: 0 4px 16px rgba(22,119,255,.18);
  }

  .cfg-range-wrap { max-width: none; }
  .cfg-range { flex-direction: column; align-items: stretch; gap: 10px; }
  .cfg-range input[type=range] { width: 100%; height: 28px; }
  .cfg-range-stepper button { width: 36px; height: 36px; border-radius: 10px; }
  .cfg-range-num { height: 36px; border-radius: 10px; }

  .cfg-pwd-row { max-width: none; flex-direction: column; }
  .cfg-pwd-input, .cfg-pwd-gen { width: 100%; height: 42px; border-radius: 10px; }
  .cfg-pwd-gen { background: #f0f7ff; }

  .cfg-foot-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 -8px 32px rgba(15,23,42,.1);
  }
  .cfg-foot-main { gap: 12px; }
  .cfg-foot-left { flex: 1; }
  .cfg-foot-price-val b { font-size: 26px; }
  .cfg-foot-tip {
    min-width: 0; flex: none; margin: 6px 0 0; font-size: 11px; color: #aaa;
  }
  .cfg-cart-btn {
    margin-left: 0; padding: 14px 22px; border-radius: 999px;
    font-size: 15px; box-shadow: 0 6px 20px rgba(22,119,255,.35);
  }
  .cfg-no-fields { border-radius: 14px; }
}
.hide { display: none !important; }
