/* ===================== 会员/后台/通知 公共样式 ===================== */

.auth-card.wide { max-width: 1180px; }

/* ---------- 升级方案 ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.plan-card { cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; }
.plan-inner { border: 2px solid #eee; border-radius: 14px; padding: 18px 16px; text-align: center; transition: .2s; background: #fff; }
.plan-card input:checked + .plan-inner { border-color: #FFB800; background: #fffaf0; box-shadow: 0 8px 20px rgba(255,184,0,.18); }
.plan-inner h3 { margin: 0 0 8px; font-size: 18px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.plan-price .now { font-size: 26px; font-weight: 800; color: #111827; }
.plan-price .was { font-size: 15px; color: #bbb; text-decoration: line-through; }
.plan-inner small { color: #e6a200; font-weight: 700; }

/* ---------- VIP 专区 ---------- */
.vip-chip { background: #111827; color: #FFB800; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.section-h { margin: 24px 0 12px; font-size: 17px; border-left: 4px solid #FFB800; padding-left: 10px; }
.vip-resources { display: grid; gap: 12px; }
.vip-res { display: flex; gap: 14px; align-items: center; background: #fffaf0; border: 1px solid #ffe9a8; border-radius: 12px; padding: 14px 16px; }
.vip-res span:first-child { font-size: 26px; }
.vip-res h3 { margin: 0 0 2px; font-size: 15px; }
.vip-res p { margin: 0; color: #777; font-size: 13px; }

/* ---------- 后台表格 ---------- */
.form-message.ok { background: #e7f7ec; color: #1a8a3f; border-color: #b6e6c4; }
.admin-table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.admin-table th { background: #fafafa; color: #555; font-weight: 600; }
.admin-table td.ops { width: 1%; white-space: nowrap; }
.op-form { display: inline-flex; gap: 6px; margin: 4px 0; align-items: center; }
.mini { border: none; border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; background: #f1f1f1; color: #333; }
.mini:hover { background: #FFB800; color: #111827; }
.mini.danger { background: #fdecec; color: #d33; }
.mini.danger:hover { background: #d33; color: #fff; }
.mini.warn { background: #fff4e0; color: #c47c00; }
.mini.warn:hover { background: #c47c00; color: #fff; }
.mini.ok { background: #e7f7ec; color: #1a8a3f; }
.mini.ok:hover { background: #1a8a3f; color: #fff; }
.mini.ghost { background: #f0f0f0; color: #888; }
.mini-input { border: 1px solid #eee; border-radius: 8px; padding: 5px 10px; font-size: 13px; width: 110px; }
.mini:disabled { opacity: .4; cursor: not-allowed; }
.vip-tag { color: #e6a200; font-weight: 700; }
.muted { color: #aaa; }
.status-active { color: #1a8a3f; }
.status-banned { color: #d33; font-weight: 700; }
.status-blackroom { color: #c47c00; font-weight: 700; }

/* ===================== 顶部滚动公告 ===================== */
.announce-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 36px; background: #111827; color: #FFB800; overflow: hidden; font-size: 14px; }
.announce-bar .label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 16px; background: #FFB800; color: #111827; font-weight: 800; }
.announce-bar .label .horn { margin-right: 4px; }
.announce-track { display: inline-block; white-space: nowrap; padding-left: 100%; line-height: 36px; animation: marquee 60s linear infinite; }
.announce-track span { margin: 0 28px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (max-width: 768px) { .announce-track { animation-duration: 45s; } }

/* ===================== 通知铃铛（聊天风格） ===================== */
.notif-wrap { position: relative; }
.notif-bell { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 18px; transition: .2s; }
.notif-bell:hover { background: #FFB800; }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; }
.notif-badge.hide { display: none; }
.notif-panel { position: absolute; top: 46px; right: 0; width: 320px; max-height: 420px; overflow: hidden; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); display: none; flex-direction: column; z-index: 60; }
.notif-panel.show { display: flex; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; background: #fffaf0; }
.notif-head strong { font-size: 14px; }
.notif-head a { font-size: 12px; color: #e6a200; text-decoration: none; }
.notif-list { overflow-y: auto; padding: 6px 0; flex: 1; }
.notif-item { display: flex; flex-direction: column; padding: 10px 16px; gap: 4px; border-bottom: 1px solid #f7f7f7; }
.notif-item.unread { background: #fffaf0; }
.notif-item .avatar-dot { width: 30px; height: 30px; border-radius: 50%; background: #FFB800; color: #111827; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.notif-item .top { display: flex; gap: 10px; align-items: flex-start; }
.notif-item .body { flex: 1; }
.notif-item .msg { font-size: 13px; color: #333; line-height: 1.5; }
.notif-item .meta { font-size: 11px; color: #aaa; }
.notif-item .sys-tag { display: inline-block; background: #f0f0f0; color: #888; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.notif-item.vip .sys-tag { background: #fff0cc; color: #c47c00; }
.notif-empty { text-align: center; color: #bbb; padding: 40px 16px; font-size: 13px; }
@media (max-width: 768px) { .notif-panel { width: 280px; } }

/* 首页头部 user-box 下增加铃铛 */
.user-box { gap: 10px; }

/* 公告栏下移 header（让 fixed header 不被遮挡）+ 首屏留白 */
header { top: 36px; }
.hero { padding-top: 170px; }

/* ===================== 支付页 ===================== */
.pay-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; margin-top: 18px; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-summary { background: #fffaf0; border: 1px solid #ffe9a8; border-radius: 14px; padding: 18px; }
.pay-summary h3 { margin: 0 0 12px; font-size: 15px; }
.pay-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0e0b0; font-size: 14px; color: #555; }
.pay-row.big { font-size: 18px; border: none; margin-top: 8px; }
.pay-row .amt { color: #e6a200; font-size: 26px; font-weight: 800; }
.pay-methods h3 { margin: 0 0 12px; font-size: 15px; }
.pay-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.pay-tab { flex: 1; text-align: center; padding: 10px 12px; border: 2px solid #eee; border-radius: 10px; color: #555; text-decoration: none; font-weight: 600; transition: .2s; }
.pay-tab:hover { border-color: #FFB800; }
.pay-tab.on { border-color: #FFB800; background: #fffaf0; color: #111827; box-shadow: 0 6px 16px rgba(255,184,0,.18); }
.pay-qr { display: flex; justify-content: center; margin: 10px 0 18px; }
.qr-box { text-align: center; padding: 16px; background: #fff; border: 1px solid #eee; border-radius: 14px; }
.qr-img { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.qr-img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.qr-cap { margin-top: 10px; font-size: 13px; color: #555; }
.qr-cap strong { color: #e6a200; font-size: 18px; }
.pay-confirm .btn-submit { width: 100%; }
.pay-confirm .btn-submit:hover { background: #1a8a3f; }

/* ===================== 个人中心（普通 vs VIP） ===================== */
.vip-card { background: linear-gradient(135deg, #fffaf0 0%, #fff4d6 100%); border: 2px solid #FFB800; position: relative; }
.vip-card::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 16px 40px rgba(255,184,0,.25); pointer-events: none; }
.vip-crown { font-size: 56px; text-align: center; margin: 6px 0 4px; filter: drop-shadow(0 4px 12px rgba(255,184,0,.5)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.vip-title { background: linear-gradient(90deg, #FFB800 0%, #e6a200 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 28px; font-weight: 800; }
.vip-sub { color: #c47c00 !important; font-weight: 500; }
.vip-row { background: linear-gradient(90deg, #fff7e0, transparent); border-left: 3px solid #FFB800; padding-left: 10px !important; }
.vip-strong { color: #c47c00 !important; font-weight: 700; }
.muted-strong { color: #888; font-weight: 600; }
.banned-strong { color: #d33; font-weight: 700; }
.vip-btn { background: linear-gradient(90deg, #FFB800, #e6a200) !important; color: #111 !important; box-shadow: 0 8px 20px rgba(255,184,0,.35); }
.vip-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,184,0,.45) !important; }
.btn-link { display: block; text-align: center; margin-top: 12px; color: #888; text-decoration: none; font-size: 14px; }
.btn-link:hover { color: #FFB800; }

/* ===================== 找回密码（登录/注册页右下角） ===================== */
.auth-foot-right { text-align: right; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #f0f0f0; }
.auth-foot-right a { color: #e6a200; text-decoration: none; font-size: 13px; font-weight: 600; }
.auth-foot-right a:hover { color: #c47c00; text-decoration: underline; }

/* ===================== 资源专区入口（首页） ===================== */
.zone-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
@media (max-width: 720px) { .zone-buttons { grid-template-columns: 1fr; } }
.zone-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 38px 24px; border-radius: 20px; text-decoration: none; font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.zone-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.6), transparent 60%);
  pointer-events: none;
}
.zone-btn .zone-ico { font-size: 52px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.zone-btn .zone-name { font-size: 22px; color: #111827; letter-spacing: .5px; }
.zone-btn small { font-weight: 400; color: #777; font-size: 13px; }
.zone-btn.free {
  background: linear-gradient(145deg, #f4f8ff 0%, #e8f0fe 100%);
  border: 2px solid #c5d8ff;
  color: #2563eb;
  box-shadow: 0 4px 18px rgba(37,99,235,.12), inset 0 1px 0 rgba(255,255,255,.8);
}
.zone-btn.free:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(37,99,235,.28), inset 0 1px 0 rgba(255,255,255,.9);
  border-color: #2563eb;
}
.zone-btn.free .zone-name { color: #1d4ed8; }
.zone-btn.vip {
  background: linear-gradient(145deg, #fffaf0 0%, #ffeaa8 100%);
  border: 2px solid #FFB800;
  color: #b45309;
  box-shadow: 0 4px 18px rgba(255,184,0,.22), inset 0 1px 0 rgba(255,255,255,.9);
}
.zone-btn.vip:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(255,184,0,.4), inset 0 1px 0 rgba(255,255,255,.95);
  border-color: #e6a200;
}
.zone-btn.vip .zone-name { color: #b45309; }

/* ===================== 后台订单审核 ===================== */
.admin-sec { text-align: left; font-size: 18px; margin: 28px 0 4px; padding-bottom: 8px; border-bottom: 2px solid #FFB800; }
.admin-table code { background: #f6f6f6; padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ===================== 用户管理：搜索 + 分页 ===================== */
.user-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.user-search { display: flex; gap: 8px; align-items: center; flex: 1 1 280px; }
.user-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line, #e5e7eb); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; background: #fff; color: #111827; }
.user-search input:focus { border-color: #FFB800; box-shadow: 0 0 0 3px rgba(255,184,0,.18); }
.user-count { font-size: 13px; color: var(--gray, #6b7280); white-space: nowrap; }
.user-toolbar .mini { text-decoration: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pager .mini { text-decoration: none; }
.pager .mini:hover { background: #FFB800; color: #111827; }
.page-info { font-size: 13px; color: var(--gray, #6b7280); }

/* ===================== 后台审计日志 ===================== */
.audit-panel { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 14px; padding: 16px 18px; margin: 0 0 8px; }
.audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.audit-search { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; }
.audit-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--line, #e5e7eb); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; background: #fff; color: #111827; }
.audit-search input:focus { border-color: #FFB800; box-shadow: 0 0 0 3px rgba(255,184,0,.18); }
.audit-count { font-size: 13px; color: var(--gray, #6b7280); white-space: nowrap; }
.audit-note { margin: 0 0 10px; color: #475569; font-size: 12px; }
.audit-empty { margin: 0; color: #6b7280; font-size: 13px; }
.audit-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th, .audit-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: top; }
.audit-table th { color: #475569; background: #f8fafc; font-weight: 600; }
.audit-table tr:last-child td { border-bottom: none; }
.audit-table td { color: #334155; }
.audit-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eef2f7; font-size: 12px; color: #334155; }


/* ===================== 移动端优化 ===================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, canvas { max-width: 100%; height: auto; }
@media (max-width: 640px) {
    .auth-card.wide { max-width: 100% !important; }
    .user-toolbar { flex-direction: column; align-items: stretch; }
    .user-count { order: -1; text-align: left; }
    .plan-grid { grid-template-columns: 1fr; }
    .admin-table { font-size: 13px; }
    .admin-table th, .admin-table td { padding: 8px 9px; white-space: nowrap; }
    .op-form { flex-wrap: wrap; }
    .mini { padding: 5px 9px; font-size: 12px; }
    .zone-bar { flex-wrap: wrap; }
}

/* =========================================================
   全局深色模式（html[data-theme="dark"]）
   ========================================================= */
html[data-theme="dark"] {
    color-scheme: dark;
    background-color: #0f1620;
}
html[data-theme="dark"] body {
    background: #0f1620;
    color: #e6edf3;
}
html[data-theme="dark"] .auth-card.wide { background: #141d28; border-color: #2a3949; }
html[data-theme="dark"] .plan-inner { border-color: #2c3a4a; background: #141d28; }
html[data-theme="dark"] .plan-inner h3, html[data-theme="dark"] .plan-price .now { color: #e6edf3; }
html[data-theme="dark"] .plan-card input:checked + .plan-inner { border-color: #FFB800; background: #1c2733; box-shadow: 0 8px 20px rgba(255,184,0,.15); }
html[data-theme="dark"] .vip-chip { background: #243244; color: #FFB800; }
html[data-theme="dark"] .vip-res { background: #17212d; border-color: #3a4a2a; }
html[data-theme="dark"] .vip-res h3 { color: #e6edf3; }
html[data-theme="dark"] .vip-res p { color: #9aa8b8; }

/* 后台表格 */
html[data-theme="dark"] .admin-table th { background: #1b2531; color: #c6d2de; }
html[data-theme="dark"] .admin-table td, html[data-theme="dark"] .admin-table th { border-bottom: 1px solid #253141; }
html[data-theme="dark"] .admin-table td { color: #dfe7ef; }
html[data-theme="dark"] .admin-table code { background: #223041; color: #d5dce4; }
html[data-theme="dark"] .mini { background: #26303d; color: #dce5ee; }
html[data-theme="dark"] .mini:hover { background: #FFB800; color: #111827; }
html[data-theme="dark"] .mini.danger { background: #3a2323; color: #ff9b9b; }
html[data-theme="dark"] .mini.danger:hover { background: #d33; color: #fff; }
html[data-theme="dark"] .mini.warn { background: #3a2f18; color: #ffd08a; }
html[data-theme="dark"] .mini.warn:hover { background: #c47c00; color: #fff; }
html[data-theme="dark"] .mini.ok { background: #1c3027; color: #7ee2a9; }
html[data-theme="dark"] .mini.ok:hover { background: #1a8a3f; color: #fff; }
html[data-theme="dark"] .mini.ghost { background: #28303b; color: #aab6c2; }
html[data-theme="dark"] .mini-input, html[data-theme="dark"] .user-search input { background: #1a2430; border-color: #33404f; color: #e6edf3; }
html[data-theme="dark"] .user-search input::placeholder { color: #6b7a8a; }
html[data-theme="dark"] .user-count, html[data-theme="dark"] .page-info { color: #8fa0b1; }
html[data-theme="dark"] .muted { color: #76879a; }

/* 公告 */
html[data-theme="dark"] .announce-bar { background: #1a232f; }
/* 通知 */
html[data-theme="dark"] .notif-bell { background: #1c2733; }
html[data-theme="dark"] .notif-panel { background: #141d28; border: 1px solid #2a3949; }
html[data-theme="dark"] .notif-head { background: #1b2531; border-bottom-color: #2c3a4a; }
html[data-theme="dark"] .notif-item { border-bottom-color: #202b37; }
html[data-theme="dark"] .notif-item.unread { background: #1d2733; }
html[data-theme="dark"] .notif-item .msg { color: #dfe7ef; }
html[data-theme="dark"] .notif-item .sys-tag { background: #2a3542; color: #aebac7; }
html[data-theme="dark"] .notif-item.vip .sys-tag { background: #3a2f18; color: #ffd08a; }
html[data-theme="dark"] .notif-empty { color: #76879a; }
html[data-theme="dark"] .notif-badge { border-color: #141d28; }

/* 支付 */
html[data-theme="dark"] .pay-summary { background: #1b2531; border-color: #3a4428; }
html[data-theme="dark"] .pay-summary h3, html[data-theme="dark"] .pay-methods h3 { color: #e6edf3; }
html[data-theme="dark"] .pay-row { border-bottom-color: #2c3831; color: #cbd6e1; }
html[data-theme="dark"] .pay-tab { border-color: #2c3a4a; color: #cbd6e1; }
html[data-theme="dark"] .pay-tab.on { border-color: #FFB800; background: #1c2733; color: #FFB800; }
html[data-theme="dark"] .qr-box { background: #141d28; border-color: #2c3a4a; }

/* VIP 卡片 / 专区 */
html[data-theme="dark"] .vip-card { background: linear-gradient(135deg, #2a2410 0%, #241c08 100%); border-color: #8a6d1c; }
html[data-theme="dark"] .vip-sub, html[data-theme="dark"] .vip-strong { color: #ffcf61 !important; }
html[data-theme="dark"] .vip-row { background: linear-gradient(90deg, #3a2f16, transparent); }
html[data-theme="dark"] .zone-btn.free { background: #162130; border-color: #27415e; color: #7ab6ff; }
html[data-theme="dark"] .zone-btn.free .zone-name { color: #7ab6ff; }
html[data-theme="dark"] .zone-btn.free small, html[data-theme="dark"] .zone-btn.vip small, html[data-theme="dark"] .zone-btn.vip .zone-name { color: #c8a03c; }
html[data-theme="dark"] .zone-btn.vip { background: linear-gradient(135deg, #2a2410 0%, #241c08 100%); border-color: #8a6d1c; }
html[data-theme="dark"] .btn-link { color: #9aa8b8; }
html[data-theme="dark"] .auth-foot-right a, html[data-theme="dark"] .btn-link:hover, html[data-theme="dark"] .vip-tag { color: #ffcf61; }

/* ===================== 首页黑金主题：资源专区卡片 ===================== */
body.gold-dark .zone-btn.free {
    background: linear-gradient(145deg, #141d28, #0e1620);
    border: 2px solid #27415e;
    color: #7ab6ff;
    box-shadow: 0 4px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
body.gold-dark .zone-btn.free:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37,99,235,.25), inset 0 1px 0 rgba(255,255,255,.08);
    border-color: #7ab6ff;
}
body.gold-dark .zone-btn.free .zone-name { color: #9cc5ff; }
body.gold-dark .zone-btn.free small { color: #6b87a8; }

body.gold-dark .zone-btn.vip {
    background: linear-gradient(145deg, #1e1a0c, #141106);
    border: 2px solid #8a6d1c;
    color: #ffcf61;
    box-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 40px rgba(255,184,0,.08), inset 0 1px 0 rgba(255,255,255,.04);
}
body.gold-dark .zone-btn.vip:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(255,184,0,.3), 0 0 60px rgba(255,184,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
    border-color: #FFB800;
}
body.gold-dark .zone-btn.vip .zone-name { color: #ffd166; }
body.gold-dark .zone-btn.vip small { color: #c8a03c; }

/* ===================== 全局美化升级 ===================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 资源专区入口卡片升级（液态玻璃质感） */
.zone-buttons {
    gap: 28px;
    margin-top: 18px;
}
.zone-btn {
    border-radius: 22px;
    padding: 36px 30px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.zone-btn .zone-ico {
    font-size: 52px;
    margin-bottom: 18px;
}
.zone-btn .zone-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.zone-btn small {
    font-size: 13.5px;
    line-height: 1.6;
}

/* 支付/升级页卡片优化 */
.plan-card {
    border-radius: 20px;
    padding: 36px 30px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
}
.plan-card.featured {
    border: 2px solid var(--main-color);
    box-shadow: 0 12px 36px rgba(255, 184, 0, .2);
}

/* 移动端 */
@media (max-width: 640px) {
    .zone-buttons { gap: 18px; }
    .zone-btn { padding: 28px 22px; }
    .zone-btn .zone-ico { font-size: 44px; margin-bottom: 14px; }
    .zone-btn .zone-name { font-size: 18px; }
}

/* ===================== 设备面板（个人中心 + 后台，明暗双主题） ===================== */
.device-panel { margin-top: 18px; padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 12px; text-align: left; background: #fafafa; }
.device-panel h2 { font-size: 17px; margin: 0 0 6px; color: #1f2937; }
.device-panel .device-hint { font-size: 12px; color: #6b7280; margin: 0 0 12px; line-height: 1.6; }
.device-panel .device-hint strong { color: #c47c00; }
.device-panel .device-empty { font-size: 13px; color: #6b7280; margin: 0; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #eceff3; }
.device-row:first-of-type { border-top: none; }
.device-meta { min-width: 0; font-size: 13px; line-height: 1.65; }
.device-meta .device-ua { color: #1f2937; font-weight: 600; }
.device-meta .device-info { color: #6b7280; }
.device-current { color: #16803c; font-size: 12px; }
.device-revoke-form { flex: 0 0 auto; }

/* 后台设备弹层 */
.device-admin-panel { display: none; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #cbd5e1; border-radius: 14px; background: #f8fafc; text-align: left; }
.device-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.device-admin-head h2 { font-size: 17px; margin: 0; color: #1f2937; }
.device-admin-body { font-size: 13px; color: #475569; }
.device-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e2e8f0; }
.device-admin-row:first-of-type { border-top: none; }
.device-admin-meta { min-width: 0; line-height: 1.65; }
.device-admin-meta strong { display: block; color: #1f2937; font-size: 13px; }
.device-admin-meta .device-admin-sub { color: #64748b; }

/* 解绑确认弹窗 */
.revoke-modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); align-items: center; justify-content: center; padding: 16px; }
.revoke-modal-box { background: #fff; border-radius: 16px; max-width: 440px; width: 100%; padding: 26px 24px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.revoke-modal-title { font-size: 18px; font-weight: 800; color: #d33; margin-bottom: 10px; }
.revoke-modal-msg { font-size: 13.5px; line-height: 1.8; color: #444; margin: 0 0 18px; white-space: pre-line; }
.revoke-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.revoke-modal-actions .mini { padding: 8px 22px; font-size: 14px; }

/* 暗黑模式：设备面板 */
html[data-theme="dark"] .device-panel { background: #141d28; border-color: #2c3a4a; }
html[data-theme="dark"] .device-panel h2 { color: #e6edf3; }
html[data-theme="dark"] .device-panel .device-hint { color: #8fa0b1; }
html[data-theme="dark"] .device-panel .device-hint strong { color: #ffcf61; }
html[data-theme="dark"] .device-panel .device-empty { color: #8fa0b1; }
html[data-theme="dark"] .device-row { border-top-color: #223041; }
html[data-theme="dark"] .device-meta .device-ua { color: #e6edf3; }
html[data-theme="dark"] .device-meta .device-info { color: #8fa0b1; }
html[data-theme="dark"] .device-current { color: #7ee2a9; }

/* 暗黑模式：后台设备弹层 */
html[data-theme="dark"] .device-admin-panel { background: #141d28; border-color: #2c3a4a; }
html[data-theme="dark"] .device-admin-head h2 { color: #e6edf3; }
html[data-theme="dark"] .device-admin-body { color: #cbd6e1; }
html[data-theme="dark"] .device-admin-row { border-top-color: #223041; }
html[data-theme="dark"] .device-admin-meta strong { color: #e6edf3; }
html[data-theme="dark"] .device-admin-meta .device-admin-sub { color: #8fa0b1; }

/* 暗黑模式：解绑确认弹窗 */
html[data-theme="dark"] .revoke-modal-box { background: #141d28; border: 1px solid #2c3a4a; }
html[data-theme="dark"] .revoke-modal-title { color: #ff9b9b; }
html[data-theme="dark"] .revoke-modal-msg { color: #d5dce4; }

@media (max-width: 640px) {
    .device-row { flex-direction: column; align-items: stretch; }
    .device-revoke-form { align-self: flex-end; }
    .device-admin-row { flex-direction: column; align-items: stretch; }
}
