/* ============================================================
   前台样式（卡通青春风）
   ============================================================ */
:root {
  --pink: #ff6fa5;
  --purple: #9b6bff;
  --blue: #44bdff;
  --mint: #3ddc97;
  --orange: #ffb454;
  --ink: #4a3b6b;
  --muted: #9a8cc0;
  --grad: linear-gradient(135deg, #ff6fa5 0%, #9b6bff 55%, #7c5cff 100%);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(123, 92, 255, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); font-size: 14px; min-height: 100vh;
  background: linear-gradient(160deg, #ffe9f3 0%, #e9eeff 45%, #e3fbf0 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  display: flex; flex-direction: column;
}
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }

/* 漂浮泡泡 */
.bubble { position: fixed; border-radius: 50%; opacity: .5; z-index: 0; pointer-events: none; animation: bubble-float linear infinite; }
@keyframes bubble-float {
  0% { transform: translateY(110vh) scale(.6); }
  100% { transform: translateY(-15vh) scale(1.1); }
}
.star { position: fixed; z-index: 0; pointer-events: none; color: #ffd28a; opacity: .7; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.8) } 50% { opacity: 1; transform: scale(1.1) } }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px); border-bottom: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 18px rgba(123,92,255,.08);
}
.header-inner { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo .logo-ic { width: 40px; height: 40px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 16px rgba(155,107,255,.35); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link { padding: 8px 15px; border-radius: 12px; font-weight: 600; transition: .18s; }
.nav a.nav-link:hover { background: #f4ecff; color: #7c5cff; }
.nav a.nav-link.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(155,107,255,.35); }
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; font-weight: 700; transition: .18s; }
.nav-user:hover { background: #f4ecff; }
.nav-user.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(155,107,255,.35); }
.nav-user .nu-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-user .nu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user .nu-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .btn { margin-left: 6px; }

/* 移动端抽屉导航 */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: none; border-radius: 12px;
  background: #f4ecff; color: #7c5cff; font-size: 20px; cursor: pointer;
  flex: 0 0 auto; line-height: 1;
}
.nav-mask { display: none; }

/* 主容器 */
.container { max-width: 1180px; margin: 0 auto; padding: 30px 22px 60px; position: relative; z-index: 1; }

/* 英雄区 */
.hero {
  position: relative; border-radius: 28px; padding: 46px 42px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #ff6fa5 0%, #9b6bff 55%, #7c5cff 100%);
  box-shadow: 0 22px 50px rgba(124, 92, 255, .35); margin-bottom: 30px;
}
.hero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.15); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: 40px; bottom: -80px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; position: relative; z-index: 1; }
.hero p { font-size: 15px; opacity: .95; position: relative; z-index: 1; max-width: 640px; line-height: 1.7; }

/* 卡片 */
.card {
  background: rgba(255,255,255,.94); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.95); padding: 24px; margin-bottom: 22px;
  transition: .2s; position: relative;
}
.card:hover { box-shadow: 0 16px 40px rgba(123,92,255,.2); transform: translateY(-3px); }
.card .card-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* 应用卡片网格 */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.app-card { position: relative; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); transition: .2s; border: 1px solid rgba(255,255,255,.9); display: flex; flex-direction: column; }
.app-card:hover { transform: translateY(-5px) rotate(.4deg); box-shadow: 0 20px 44px rgba(123,92,255,.25); }
.app-card .app-head { height: 92px; background: linear-gradient(135deg, #ffb454, #ff6fa5); position: relative; }
.app-card:nth-child(4n+2) .app-head { background: linear-gradient(135deg, #44bdff, #9b6bff); }
.app-card:nth-child(4n+3) .app-head { background: linear-gradient(135deg, #3ddc97, #44bdff); }
.app-card:nth-child(4n+4) .app-head { background: linear-gradient(135deg, #9b6bff, #ff6fa5); }
.app-card .app-avatar {
  position: absolute; left: 20px; top: 56px; width: 62px; height: 62px; border-radius: 18px;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 8px 20px rgba(74,59,107,.18); border: 3px solid #fff;
}
.app-card .app-body { padding: 30px 20px 20px; flex: 1; }
.app-card .app-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.app-card .app-desc { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.6; min-height: 40px; }
.app-card .app-price { margin: 14px 0; font-size: 13px; color: #6b5a95; }
.app-card .app-price b { font-size: 19px; color: #ff5f9e; }
.app-card .app-foot { padding: 0 20px 20px; display: flex; gap: 10px; }

/* 查询盒子 */
#query .card-title { font-size: 22px; margin-bottom: 22px; }
.query-box { display: flex; gap: 18px; flex-wrap: wrap; align-items: stretch; }
.query-box select, .query-box input {
  padding: 20px 26px; border: 2px solid #e8e0f7; border-radius: 18px; background: #fff;
  font-size: 18px; outline: none; flex: 1; min-width: 220px; transition: .2s; font-weight: 600;
}
.query-box select:focus, .query-box input:focus { border-color: #9b6bff; box-shadow: 0 0 0 5px rgba(155,107,255,.12); }
.query-box .btn { padding: 20px 42px; font-size: 18px; border-radius: 18px; font-weight: 800; }

/* 授权结果 */
.query-result { border-radius: 22px; padding: 34px 40px; margin-top: 26px; border: 2px dashed; display: none; }
.query-result.show { display: block; }
.qr-ok { background: #e9fbf2; border-color: #8be0b5; }
.qr-no { background: #fff0f0; border-color: #ffb9b9; }
.query-result .qr-icon { font-size: 46px; }
.query-result .qr-title { font-weight: 800; font-size: 24px; margin: 12px 0; }
.query-result table { margin-top: 18px; font-size: 17px; border-collapse: collapse; width: 100%; }
.query-result table td { padding: 10px 12px; border-bottom: 1px dashed #e3d9fb; }
.query-result table tr:last-child td { border-bottom: none; }
.query-result table td:first-child { color: var(--muted); width: 130px; font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: 14px; border: none; cursor: pointer; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(155,107,255,.3); transition: .18s; line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(155,107,255,.4); }
.btn.pink { background: linear-gradient(135deg, #ff6fa5, #ff8fc0); }
.btn.blue { background: linear-gradient(135deg, #44bdff, #4de3ff); box-shadow: 0 8px 20px rgba(68,189,255,.3); }
.btn.mint { background: linear-gradient(135deg, #3ddc97, #6bf0b8); box-shadow: 0 8px 20px rgba(61,220,151,.3); }
.btn.orange { background: linear-gradient(135deg, #ffb454, #ffd28a); box-shadow: 0 8px 20px rgba(255,180,84,.3); }
.btn.ghost { background: #f4ecff; color: #7a5cf0; box-shadow: none; }
.btn.ghost:hover { background: #e9dcff; }
.btn.red { background: linear-gradient(135deg, #ff6b6b, #ff8f8f); box-shadow: 0 8px 20px rgba(255,107,107,.3); }
.btn.gray { background: linear-gradient(135deg, #c9c3d6, #dcd7e6); box-shadow: 0 8px 20px rgba(150,140,170,.2); cursor: not-allowed; }
.btn.gray:hover { transform: none; box-shadow: 0 8px 20px rgba(150,140,170,.2); }
.btn.sm { padding: 8px 15px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }

/* 表单 */
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: #5a4a80; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e8e0f7; border-radius: 14px; font-size: 14px;
  outline: none; background: #fbfaff; transition: .2s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: #9b6bff; box-shadow: 0 0 0 4px rgba(155,107,255,.1); background: #fff; }
.form-item .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.method-box { padding: 12px 16px; border: 2px solid #e8e0f7; border-radius: 14px; font-size: 14px; background: #fbfaff; color: #3b2f5e; }

/* 提现金额输入框 */
.amount-input-wrap { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#fff,#fbfaff); border: 2px solid #e8e0f7; border-radius: 16px; padding: 6px 18px; transition: .2s; }
.amount-input-wrap:focus-within { border-color: #ff5f9e; box-shadow: 0 0 0 4px rgba(255,95,158,.12); background: #fff; }
.amount-input-ico { font-size: 22px; font-weight: 800; color: #ff5f9e; flex-shrink: 0; }
.amount-input-wrap input { flex: 1; border: none; outline: none; background: transparent; padding: 12px 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.amount-input-wrap input::placeholder { color: #c9bfdf; font-weight: 400; font-size: 16px; }
.wd-balance-tip { font-size: 12px; color: var(--muted); margin-top: 7px; }
.wd-balance-tip b { color: #0e9f6e; }
.wd-balance-tip.wd-insuff { color: #ff5f9e; font-weight: 600; }
.wd-balance-tip.wd-insuff b { color: #ff5f9e; }
.transfer-mini { padding: 20px 22px; }
.transfer-mini .tm-head { display: flex; align-items: center; gap: 12px; }
.transfer-mini .tm-ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#3ddc97,#6bf0b8); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(61,220,151,.3); }
.transfer-mini .tm-info { flex: 1; min-width: 0; }
.transfer-mini .tm-title { font-weight: 800; font-size: 15px; color: #2c1e4a; }
.transfer-mini .tm-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.transfer-mini .tm-balance { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.transfer-mini .tm-balance b { color: #0e9f6e; font-size: 17px; }
.transfer-mini .tm-form { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.transfer-mini .tm-input { flex: 1; min-width: 200px; }
.transfer-mini .tm-input input { padding: 10px 0; font-size: 18px; }
.transfer-mini .tm-all { flex-shrink: 0; }
.transfer-mini .tm-go { flex-shrink: 0; }
.transfer-mini .tm-tip { margin-top: 8px; }

/* 复用收款码 */
.wd-reuse-item { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; background: #fbfaff; border: 1px dashed #d9cdf0; border-radius: 12px; }
.wd-reuse-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid #e5ddf2; }
.wd-reuse-item > div { flex: 1; min-width: 0; }
.wd-reuse-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; background: #f2fdf7; border: 1px dashed #9fe3c4; border-radius: 12px; }
.wd-reuse-preview img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid #e5ddf2; }
.wd-reuse-preview > div { flex: 1; min-width: 0; }

/* 顶级域名关联 www 提示 */
.www-tip { width: 100%; font-size: 12.5px; color: #9b6bff; background: #f4eeff; border: 1px dashed #cdbbf4; border-radius: 10px; padding: 8px 12px; margin-top: 6px; }

/* 授权对象输入框 */
.auth-input { display: flex; align-items: center; gap: 10px; background: #fbfaff; border: 2px solid #e8e0f7; border-radius: 16px; padding: 6px 16px; transition: .2s; }
.auth-input:focus-within { border-color: #9b6bff; box-shadow: 0 0 0 4px rgba(155,107,255,.1); background: #fff; }
.auth-input .ai-ic { font-size: 18px; flex-shrink: 0; }
.auth-input input { flex: 1; border: none; outline: none; background: transparent; padding: 12px 0; font-size: 14px; color: var(--ink); }
.auth-input input::placeholder { color: #b6a9d4; }
.ai-or { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 2px; align-self: center; }

/* 时长价格选项 */
.duration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.duration-opt {
  border: 2px solid #ece4fb; border-radius: 16px; padding: 14px; text-align: center; cursor: pointer; transition: .18s; background: #fff;
}
.duration-opt:hover { border-color: #9b6bff; transform: translateY(-2px); }
.duration-opt.active { border-color: #9b6bff; background: linear-gradient(135deg, #f4ecff, #ffe9f3); box-shadow: 0 8px 18px rgba(155,107,255,.18); }
.duration-opt .d-name { font-weight: 700; font-size: 14px; }
.duration-opt .d-price { color: #ff5f9e; font-weight: 800; font-size: 16px; margin-top: 6px; }
.duration-opt .d-price small { font-size: 11px; color: var(--muted); font-weight: 400; }
.duration-opt .d-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* 支付方式 */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pay-opt {
  border: 2px solid #ece4fb; border-radius: 16px; padding: 14px; text-align: center; cursor: pointer; transition: .18s; background: #fff;
}
.pay-opt:hover { border-color: #9b6bff; transform: translateY(-2px); }
.pay-opt.active { border-color: #9b6bff; background: #f4ecff; box-shadow: 0 8px 18px rgba(155,107,255,.18); }
.pay-opt .p-ic { font-size: 30px; margin-bottom: 6px; }
.pay-opt .p-name { font-weight: 700; font-size: 13.5px; }
.pay-opt .p-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(74,59,107,.4); z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 20px; max-width: 520px; width: 100%; padding: 26px; box-shadow: 0 24px 60px rgba(74,59,107,.35); max-height: 88vh; overflow-y: auto; animation: pop .25s; }
@keyframes pop { from { transform: scale(.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal h3 { margin-bottom: 16px; font-size: 17px; }
.modal .close-x { float: right; cursor: pointer; color: var(--muted); font-size: 18px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; padding: 11px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid #f0e8ff; white-space: nowrap; }
table.tbl td { padding: 12px; border-bottom: 1px dashed #f2ecff; vertical-align: middle; }
table.tbl tr:hover td { background: #faf7ff; }
.mono { font-family: "SF Mono", Consolas, monospace; font-size: 12px; background: #f4efff; padding: 3px 8px; border-radius: 8px; word-break: break-all; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.green { background: #d7f7e7; color: #0e9f6e; }
.badge.red { background: #ffe3e3; color: #e03131; }
.badge.orange { background: #fff1d6; color: #e08e00; }
.badge.gray { background: #f0eef8; color: #7a6f9e; }
.badge.blue { background: #ddf1ff; color: #1c8fd6; }
.badge.purple { background: #eee4ff; color: #7a3ff5; }

/* 用户中心布局 */
.uc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 22px 60px; position: relative; z-index: 1; }
.uc-main { min-width: 0; }
.uc-side { position: sticky; top: 84px; }
.uc-menu { display: flex; flex-direction: column; gap: 4px; }
.uc-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 600; transition: .18s; }
.uc-menu a:hover { background: #f4ecff; }
.uc-menu a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(155,107,255,.3); }
.uc-profile { text-align: center; padding: 22px 16px; }
.uc-profile .avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; box-shadow: 0 8px 22px rgba(155,107,255,.35); overflow: hidden; }
.uc-profile .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-upload { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avatar-upload .au-preview { width: 92px; height: 92px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 36px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; box-shadow: 0 8px 22px rgba(155,107,255,.35); }
.avatar-upload .au-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload .au-controls { font-size: 13px; text-align: center; }
.avatar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 26px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 800;
  color: #7c5cff; background: #fff; border: 3px solid #d9c9ff;
  box-shadow: 0 4px 0 #c3a9ff, 0 8px 16px rgba(155,107,255,.18); transition: .15s; line-height: 1.4;
}
.avatar-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #c3a9ff, 0 12px 20px rgba(155,107,255,.28); }
.avatar-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #c3a9ff, 0 4px 8px rgba(155,107,255,.18); }
.avatar-remove {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 10px; padding: 8px 20px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #ff6b6b; background: #fff;
  border: 3px solid #ffd0d0; box-shadow: 0 4px 0 #ffb3b3, 0 6px 12px rgba(255,107,107,.15);
  transition: .15s; line-height: 1.4;
}
.avatar-remove:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #ffb3b3, 0 10px 16px rgba(255,107,107,.22); }
.avatar-remove:active { transform: translateY(2px); box-shadow: 0 2px 0 #ffb3b3, 0 3px 6px rgba(255,107,107,.15); }
.balance-chip { background: linear-gradient(135deg, #fff4e0, #ffe9f3); border: 2px dashed #ffc98a; border-radius: 14px; padding: 12px; margin-top: 14px; }
.balance-chip b { font-size: 20px; color: #ff7a00; }

/* 折叠授权详情 */
.lic-detail { display: none; background: #faf8ff; border-radius: 14px; padding: 14px 18px; margin-top: 8px; border: 1px dashed #e3d9fb; }
.lic-detail.show { display: block; }
.lic-detail .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 13px; }
.lic-detail .kv .k { color: var(--muted); }
.lic-detail .kv .v { font-weight: 600; word-break: break-all; }

/* 提示条 */
.notice-bar { background: linear-gradient(135deg, #fff6e8, #ffeaf3); border: 2px dashed #ffd28a; border-radius: 16px; padding: 14px 18px; margin-bottom: 22px; font-size: 13.5px; line-height: 1.8; }
.notice-warn { background: linear-gradient(135deg, #fff0f0, #ffeaf3); border-color: #ffb3c1; color: #a33a54; }

/* 底部 */
.site-footer { background: rgba(255,255,255,.85); border-top: 2px solid rgba(255,255,255,.9); padding: 24px; text-align: center; color: var(--muted); font-size: 13px; position: relative; z-index: 1; margin-top: auto; }
.site-footer a { color: #7c5cff; }

/* 空状态 */
.empty { text-align: center; padding: 46px 0; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 12px; }

/* 通用 */
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mt22 { margin-top: 22px; }
.mb16 { margin-bottom: 16px; }
.text-muted { color: var(--muted); } .text-small { font-size: 12px; }
.text-green { color: #0e9f6e; } .text-red { color: #e03131; } .text-orange { color: #e08e00; }
.text-center { text-align: center; }
.alert { padding: 12px 16px; border-radius: 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert.success { background: #e2fbef; color: #0e9f6e; border: 1px solid #bfeed7; }
.alert.error { background: #ffe3e3; color: #e03131; border: 1px solid #ffc4c4; }
.alert.info { background: #e7f4ff; color: #1c8fd6; border: 1px solid #c4e6ff; }

/* 授权查询结果卡片 */
.result-card { border-radius: 22px; padding: 34px 40px; margin-top: 26px; border: 2px dashed; display: none; }
.result-card.show { display: block; }
.result-card .qr-icon { font-size: 46px; }
.result-card .qr-title { font-weight: 800; font-size: 24px; margin: 12px 0; }
.result-card table { margin-top: 18px; font-size: 17px; border-collapse: collapse; width: 100%; }
.result-card table td { padding: 10px 12px; border-bottom: 1px dashed #e3d9fb; }
.result-card table tr:last-child td { border-bottom: none; }
.result-card table td:first-child { color: var(--muted); width: 130px; font-weight: 600; }
.result-card .text-small { font-size: 15px; }
.rc-ok { background: #e9fbf2; border-color: #8be0b5; }
.rc-no { background: #fff0f0; border-color: #ffb9b9; }

/* 响应式 */
@media (max-width: 900px) {
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 22px; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-mask {
    display: block; position: fixed; inset: 0; background: rgba(40,25,70,.55);
    z-index: 15; opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-mask.show { opacity: 1; visibility: visible; }
  .header-inner { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .nav {
    position: fixed; top: 62px; left: 10px; right: 10px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 18px 44px rgba(74,59,107,.3);
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .22s ease, visibility .22s;
    z-index: 1000; max-height: calc(100vh - 80px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a.nav-link { padding: 13px 16px; font-size: 14px; white-space: nowrap; }
  .nav a.nav-link.active { box-shadow: none; }
  .nav .btn { margin: 8px 0 0; width: 100%; }
  .logo { font-size: 15px; }
  .logo .logo-ic { width: 34px; height: 34px; font-size: 17px; }
  .container, .uc-layout { padding: 20px 14px 40px; }
  .hero { padding: 26px 20px; border-radius: 22px; }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 13px; }
  .card { padding: 18px; }
  .query-box { flex-direction: column; gap: 12px; }
  .query-box select, .query-box input { min-width: 0; width: 100%; padding: 14px 18px; font-size: 15px; }
  .query-box .btn { width: 100%; }
  .query-result, .result-card { padding: 24px 20px; }
  .query-result .qr-title, .result-card .qr-title { font-size: 20px; }
  .query-result table td:first-child, .result-card table td:first-child { width: auto; }
  .duration-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .pay-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .lic-detail .kv { grid-template-columns: 1fr; }
  .app-card .app-head { height: 76px; }
  .app-card .app-avatar { left: 16px; top: 48px; width: 52px; height: 52px; font-size: 24px; }
  .app-card .app-body { padding: 26px 16px 16px; }
  .app-card .app-foot { padding: 0 16px 16px; }
  .notice-bar { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .header-inner { flex-direction: row; align-items: center; }
  .logo { justify-content: flex-start; }
  .hero { padding: 22px 16px; }
  .hero h1 { font-size: 17px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card .app-head { height: 90px; }
  .app-card .app-avatar { left: 18px; top: 54px; width: 58px; height: 58px; font-size: 26px; }
  .card-title { font-size: 16px; }
  .btn { padding: 10px 16px; }
  .uc-profile { padding: 16px 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-card .s-icon { width: 42px; height: 42px; font-size: 19px; }
  .stat-card .s-val { font-size: 19px; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .duration-grid { grid-template-columns: 1fr 1fr; }
}

/* 统计卡片（用户中心） */
.stat-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); display: flex; gap: 14px; align-items: center;
  transition: .2s; position: relative; overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.5); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card .s-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; }
.stat-card .s-val { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-card .s-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sc-pink .s-icon { background: linear-gradient(135deg, #ff6fa5, #ff8fc0); }
.sc-purple .s-icon { background: linear-gradient(135deg, #9b6bff, #7c5cff); }
.sc-blue .s-icon { background: linear-gradient(135deg, #44bdff, #4de3ff); }
.sc-mint .s-icon { background: linear-gradient(135deg, #3ddc97, #6bf0b8); }
.sc-orange .s-icon { background: linear-gradient(135deg, #ffb454, #ffd28a); }

/* 购买页模式切换 */
.buy-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.buy-tab { padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #8a7bb0; background: #f3f0fa; text-decoration: none; transition: .2s; }
.buy-tab.active { color: #fff; background: linear-gradient(135deg, #ff6fa5, #ff8fc0); box-shadow: 0 8px 20px rgba(255,122,184,.35); }
.buy-tab:hover { transform: translateY(-1px); }

/* 邀请中心 */
.invite-box { text-align: center; padding: 6px 0 2px; }
.invite-code { font-size: 28px; font-weight: 800; letter-spacing: 6px; color: #9b6bff; background: linear-gradient(135deg, #f4ecff, #ffe9f3); border: 2px dashed #d9c6ff; border-radius: 16px; padding: 12px 26px; display: inline-block; }
.invite-link { font-size: 13px; color: #7c5cff; word-break: break-all; background: #faf7ff; border-radius: 10px; padding: 8px 12px; display: inline-block; max-width: 100%; margin-bottom: 10px; }

/* 邀请中心：复制按钮排布 */
.invite-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.invite-transfer-form { display: flex; gap: 8px; align-items: center; }
.invite-transfer-input { width: 120px; padding: 7px 10px; border: 1px solid #e5ddf2; border-radius: 10px; font-size: 13px; }

/* 登录 / 注册页 */
.auth-wrap { max-width: 720px; width: 100%; margin: 0 auto; }
.auth-card { padding: 42px 50px 36px; border-radius: 22px; }
.auth-card.auth-register .form-item { margin-bottom: 18px; }
@media (min-width: 768px) {
  .auth-card.auth-register .form-item { display: flex; align-items: flex-start; gap: 16px; }
  .auth-card.auth-register .form-item > label { flex: 0 0 130px; padding-top: 13px; margin-bottom: 0; text-align: right; }
  .auth-card.auth-register .form-item > input,
  .auth-card.auth-register .form-item > .flex { flex: 1; min-width: 0; }
  .auth-card.auth-register .form-item .help { margin-top: 7px; }
}
.auth-card:hover { transform: none; }
.auth-card .auth-head { text-align: center; margin-bottom: 24px; }
.auth-card .auth-ic { width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, #ff6fa5, #9b6bff); box-shadow: 0 12px 26px rgba(155,107,255,.35); }
.auth-card .auth-ic svg { width: 34px; height: 34px; display: block; }
.auth-card .auth-title { font-size: 21px; font-weight: 800; color: #3b2f5e; letter-spacing: 1px; }
.auth-card .auth-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-card .form-item { margin-bottom: 20px; }
.auth-card .form-item label { font-size: 14px; margin-bottom: 9px; }
.auth-card .form-item input { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.auth-card .form-item .help { margin-top: 7px; }
.auth-card .btn.block { padding: 13px; font-size: 15.5px; font-weight: 800; letter-spacing: 4px; border-radius: 12px; margin-top: 4px; }
.auth-card .auth-foot { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px dashed #efe9f8; font-size: 13.5px; }
@media (max-width: 480px) {
  .auth-card { padding: 26px 20px 24px; }
  .auth-wrap { padding-top: 14px; }
}

/* 购买页分步卡片布局 */
.buy-wrap { max-width: 920px; width: 100%; }
.step-card { padding: 26px 28px; }
.step-card + .step-card { margin-top: 20px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-num { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #ff6fa5, #9b6bff); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 6px 14px rgba(155,107,255,.3); flex-shrink: 0; }
.step-title { font-size: 16px; font-weight: 800; color: #3b2f5e; }
.step-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-card .duration-grid { gap: 14px; }
.step-card .duration-opt, .step-card .pay-opt { padding: 18px 14px; border-radius: 16px; }
.step-card .duration-opt .d-price { margin-top: 8px; font-size: 17px; }
.step-card .pay-opt .p-ic { font-size: 34px; margin-bottom: 8px; }
.step-card .notice-bar { margin-bottom: 0; }
.buy-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #efe9f8; }
.buy-summary .bs-label { font-size: 13px; color: var(--muted); }
.buy-summary .bs-price { font-size: 28px; font-weight: 800; color: #ff5f9e; line-height: 1; }
.buy-summary .bs-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.buy-summary .bs-btn { flex: 0 0 auto; }
.buy-summary .btn { padding: 13px 34px; font-size: 15px; font-weight: 800; letter-spacing: 2px; border-radius: 12px; }
.buy-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.buy-topbar .buy-title { font-size: 20px; font-weight: 800; color: #3b2f5e; }
@media (max-width: 480px) {
  .step-card { padding: 20px 16px; }
  .buy-summary { flex-direction: column; align-items: stretch; }
  .buy-summary .bs-btn { width: 100%; }
  .buy-summary .bs-btn .btn { width: 100%; }
}

/* 选择应用卡片 */
.app-sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.app-sel-card { border: 2px solid #ece4fb; border-radius: 16px; padding: 18px 12px 14px; text-align: center; cursor: pointer; transition: .18s; background: #fff; position: relative; }
.app-sel-card:hover { border-color: #9b6bff; transform: translateY(-2px); }
.app-sel-card.active { border-color: #9b6bff; background: linear-gradient(135deg, #f4ecff, #ffe9f3); box-shadow: 0 8px 18px rgba(155,107,255,.18); }
.app-sel-card .as-avatar { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #ff6fa5, #9b6bff); box-shadow: 0 6px 14px rgba(155,107,255,.3); }
.app-sel-card:nth-child(3n+2) .as-avatar { background: linear-gradient(135deg, #44bdff, #5a8cff); box-shadow: 0 6px 14px rgba(68,189,255,.3); }
.app-sel-card:nth-child(3n+3) .as-avatar { background: linear-gradient(135deg, #3ddc97, #27c48a); box-shadow: 0 6px 14px rgba(61,220,151,.3); }
.app-sel-card .as-name { font-weight: 700; font-size: 14px; color: #4a3a70; }
.app-sel-card .as-price { font-size: 12px; color: #ff5f9e; font-weight: 700; margin-top: 6px; }
.app-sel-card .as-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d9c6ff; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; transition: .18s; }
.app-sel-card.active .as-check { background: linear-gradient(135deg, #9b6bff, #7c5cff); border-color: transparent; }
.app-sel-card.active .as-check::after { content: '✓'; }
@media (max-width: 480px) {
  .app-sel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 代理中心：可购买区块 */
.buy-section { background: #fff; border: 1px solid #f0e8fb; border-radius: 20px; padding: 22px 24px; margin-top: 30px; box-shadow: 0 8px 22px rgba(123,92,255,.08); }
.buy-section .bsh { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px dashed #f0e8fb; }
.buy-section .bsh-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; box-shadow: 0 6px 14px rgba(0,0,0,.1); }
.buy-section .bsh-title { font-size: 16px; font-weight: 800; color: #3b2f5e; }
.buy-section .bsh-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.buy-section .bsh-actions { margin-left: auto; }
.buy-section .app-grid { margin: 0; }
@media (max-width: 480px) {
  .buy-section { padding: 18px 14px; margin-top: 22px; }
  .buy-section .bsh-actions { width: 100%; }
  .buy-section .bsh-actions .btn { width: 100%; }
}

/* 快捷登录 */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: #b0a5cd; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px dashed #efe9f8; }
.social-login-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-text-btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: 18px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 3px 10px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .18s, box-shadow .18s; }
.social-text-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0,0,0,.22); text-decoration: none; }
@media (max-width: 480px) {
  .social-login-row { gap: 6px; }
  .social-text-btn { padding: 5px 10px; font-size: 12px; border-radius: 14px; }
}
.social-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.16); }
.social-badge svg { width: 18px; height: 18px; display: block; }
/* 绑定页 Tab */
.bind-tabs { display: flex; gap: 10px; margin-bottom: 22px; background: #f4effc; border-radius: 14px; padding: 5px; }
.bind-tab { flex: 1; padding: 11px 8px; border: none; border-radius: 11px; background: transparent; color: #7a6f9e; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; }
.bind-tab.active { background: linear-gradient(135deg, #ff6fa5, #9b6bff); color: #fff; box-shadow: 0 6px 16px rgba(155,107,255,.32); }
