/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f1f3f7; --card: #ffffff; --text: #1e2430; --muted: #6b7280;
  --border: #e6e9f0; --primary: #2f7df6; --primary-d: #1d63d0;
  --success: #22c55e; --warning: #f6b60d; --danger: #ef4444;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
html.dark {
  --bg: #12141c; --card: #1c1f2a; --text: #e7eaf0; --muted: #9aa3b2;
  --border: #2a2f3d; --shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
body { font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; }
img { max-width: 100%; }
/* flex / grid 子项允许收缩到内容宽度以下，防止长内容撑破手机视口 */
.quick-grid > *, .guide-grid > *, .stats-grid > *, .dash-grid > *, .form-grid > *, .site-footer-inner > * { min-width: 0; }
.input-row .input, .redeem-row .input { min-width: 0; }

/* ============ 品牌 ============ */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .5px; }
.brand-cloud { filter: drop-shadow(0 0 6px rgba(56, 209, 214, .6)); }
.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #38d1d6, #6ee7a0 55%, #f6d743);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #3a2c00; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-ghost   { background: transparent; border-color: currentColor; opacity: .85; }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 12px 26px; font-size: 16px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer; font-size: 15px; line-height: 1;
}
.icon-btn:hover { background: rgba(127, 127, 127, .12); }

/* ============ 表单 ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, select.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px; outline: none; transition: border .15s;
}
.input:focus { border-color: var(--primary); }
.input[readonly] { opacity: .65; cursor: not-allowed; }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ============ 提示条 ============ */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); color: #16a34a; }
.alert-error   { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #dc2626; }
.alert-info    { background: rgba(47, 125, 246, .1); border-color: rgba(47, 125, 246, .35); color: #2563eb; }
.alert-warning { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #b45309; }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--border); padding: 24px; margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.card-head h1, .card-head h2 { font-size: 20px; }

/* ============ 表格 ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .mono { font-family: Consolas, monospace; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ============ 徽章 ============ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-active    { background: rgba(34, 197, 94, .15); color: #16a34a; }
.badge-suspended { background: rgba(239, 68, 68, .12); color: #dc2626; }

/* ============ 落地页（IDC 官网风格） ============ */
body.landing { background: #f5f7fa; color: #1f2937; }
.landing ::selection { background: rgba(14, 165, 233, .25); }

/* 顶部导航（深蓝） */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #0b1f3a, #123a5c);
  box-shadow: 0 2px 10px rgba(9, 30, 66, .25);
}
.site-nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.site-nav .brand { color: #fff; font-size: 18px; }
.site-nav .brand-text { color: #fff; }
.site-menu { display: flex; gap: 6px; }
.site-menu a {
  color: rgba(255, 255, 255, .78); font-size: 14px; padding: 7px 14px; border-radius: 6px; transition: .15s;
}
.site-menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-menu a.on { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 #34d399; border-radius: 6px 6px 0 0; }
.site-nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-btn {
  display: inline-block; font-size: 13.5px; font-weight: 600; padding: 7px 20px; border-radius: 999px; transition: .15s;
}
.nav-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.nav-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.nav-btn-primary {
  color: #06301f; background: linear-gradient(90deg, #34d399, #2dd4bf);
  box-shadow: 0 2px 10px rgba(45, 212, 191, .4);
}
.nav-btn-primary:hover { filter: brightness(1.06); color: #06301f; }
.nav-btn-primary.big { font-size: 15px; padding: 12px 38px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* 轮播横幅 */
.hero-slide { background: linear-gradient(180deg, #0b1f3a 0%, #10304f 70%, #16405f 100%); padding: 0 0 48px; }
.hero-slide-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 20px 0;
  display: flex; align-items: center; gap: 10px;
}
.slide-viewport { flex: 1; overflow: hidden; position: relative; min-height: 300px; }
.slide-item { display: none; align-items: center; gap: 40px; }
.slide-item.on { display: flex; animation: slideIn .5s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.slide-img { flex: 0 0 52%; }
.slide-img img { width: 100%; border-radius: 12px; display: block; }
.slide-img-empty {
  aspect-ratio: 16/9; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px dashed rgba(255, 255, 255, .25);
}
.slide-text { flex: 1; color: #fff; }
.slide-text h2 {
  font-size: 44px; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(90deg, #4ee6c2, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide-sub { font-size: 17px; color: #7dd3fc; margin-bottom: 14px; }
.slide-desc { font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 24px; line-height: 1.7; }
.slide-text .nav-btn-primary {
  color: #fff; font-size: 15px; padding: 12px 38px;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
  box-shadow: 0 6px 22px rgba(34, 211, 238, .45);
}
.slide-text .nav-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.slide-arrow {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: .15s;
}
.slide-arrow:hover { background: rgba(255, 255, 255, .18); }
.slide-dots { display: flex; justify-content: center; gap: 8px; padding: 18px 0 0; }
.slide-dots span { width: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); cursor: pointer; transition: .2s; }
.slide-dots span.on { width: 32px; background: #fff; }

/* 快捷入口（深色玻璃卡，内嵌横幅底部） */
.quick-wrap { max-width: 1180px; margin: 36px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 20px 22px; display: flex; align-items: center; gap: 14px;
  transition: .18s;
}
.quick-card:hover {
  background: rgba(255, 255, 255, .09); border-color: rgba(45, 212, 191, .55);
  transform: translateY(-3px); box-shadow: 0 10px 26px rgba(2, 12, 27, .35);
}
.quick-card .qico {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #2dd4bf, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(34, 211, 238, .35);
}
.quick-card .qtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-card b { font-size: 16px; font-weight: 700; color: #fff; }
.quick-card i { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 公告条 */
.notice-bar { max-width: 1180px; margin: 16px auto 0; padding: 0 20px; }
.notice-inner {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 8px; padding: 10px 16px;
  box-shadow: 0 3px 14px rgba(15, 42, 79, .07); overflow: hidden;
}
.notice-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #e11d48;
  background: rgba(225, 29, 72, .08); border: 1px solid rgba(225, 29, 72, .25); border-radius: 4px; padding: 2px 8px;
}
.notice-text { font-size: 13.5px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 通用区块 */
.sec { padding: 58px 0; }
.sec-alt { background: #fff; }
.sec-title { text-align: center; font-size: 26px; font-weight: 800; color: #0f2a4f; margin-bottom: 10px; }
.sec-sub { text-align: center; color: #64748b; font-size: 14px; margin-bottom: 36px; }

/* 数据统计（深蓝横幅） */
.stats-band {
  background:
    radial-gradient(1000px 240px at 80% 110%, rgba(45, 212, 191, .18), transparent 60%),
    linear-gradient(180deg, #0b1f3a, #123a5c);
  color: #fff; padding: 58px 0 30px; position: relative; overflow: hidden;
}
.stats-title { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.stats-sub { text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .55); margin-bottom: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-cell b { display: block; font-size: 34px; font-weight: 800; color: #4ee6c2; }
.stat-cell span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.stats-wave { display: block; width: 100%; height: 46px; margin-top: 26px; }

/* 功能引导（8 宫格） */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 22px 20px; transition: .15s;
}
.guide-card:hover { border-color: #99f6e4; box-shadow: 0 6px 20px rgba(15, 42, 79, .08); transform: translateY(-2px); }
.guide-card span { font-size: 24px; }
.guide-card b { display: block; font-size: 15px; color: #0f2a4f; margin: 10px 0 4px; }
.guide-card i { font-style: normal; font-size: 12.5px; color: #64748b; }

/* 页脚（深蓝多栏） */
.site-footer { background: linear-gradient(180deg, #0b1f3a, #081729); color: #fff; margin-top: 30px; }
.site-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 46px 20px 26px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 26px;
}
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer .brand-text { color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
.footer-col a:hover { color: #4ee6c2; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-badges span { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .4); padding: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ============ 登录/注册页 ============ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
body.auth { background: linear-gradient(180deg, #0a0a18, #131238); color: #e8e9f5; }
.auth-card {
  width: 100%; max-width: 400px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 34px; backdrop-filter: blur(8px);
}
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; font-size: 13px; color: #a6abc9; margin-bottom: 24px; }
.auth-card .field label { color: #a6abc9; }
.auth-card .input { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .15); color: #fff; }
.auth-foot { text-align: center; font-size: 13.5px; color: #a6abc9; margin-top: 18px; }
.auth-foot a { color: #9d8bff; font-weight: 600; }
.auth-brand { text-align: center; margin-bottom: 22px; }

/* ============ 用户后台 ============ */
.panel-topbar {
  height: 58px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.panel-topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-user { font-size: 14px; font-weight: 600; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.shell { display: flex; min-height: calc(100vh - 58px); }
.sidebar {
  flex: 0 0 240px; background: var(--card); border-right: 1px solid var(--border);
  padding: 18px 12px;
}
.side-label { font-size: 12px; color: var(--muted); padding: 8px 12px 4px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: linear-gradient(135deg, #38d1d6, #6ee7a0); color: #08302a;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.side-user-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text); margin-bottom: 2px;
}
.side-link .ico { width: 20px; text-align: center; }
.side-link:hover { background: rgba(47, 125, 246, .08); }
.side-link.active { background: var(--primary); color: #fff; font-weight: 600; }

.content { flex: 1; padding: 26px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }

/* 详情页信息栅格 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.info-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.info-item .k { color: var(--muted); flex: 0 0 auto; font-weight: 600; }
.info-item .v { text-align: right; word-break: break-all; min-width: 0; }
.mono { font-family: Consolas, monospace; }

/* 详情页右侧大按钮 */
.detail-cols { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.action-btns { display: flex; flex-direction: column; gap: 12px; }
.abtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 15px; transition: .15s;
  position: relative;
}
.abtn:hover { transform: translateY(-2px); opacity: .92; }
button.abtn { border: none; width: 100%; cursor: pointer; font-family: inherit; }
.abtn-green  { background: #22c55e; }
.abtn-blue   { background: #2f7df6; }
.abtn-yellow { background: #f6b60d; color: #3a2c00; }
.abtn-red    { background: #ef4444; }
.abtn .new {
  position: absolute; top: -7px; left: -7px; background: #ef4444; color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 6px 6px 6px 0; font-weight: 700;
}

/* 密码显示 */
.pw-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pw-wrap .pw { letter-spacing: 2px; word-break: break-all; }

/* 创建托管页 */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* 占位页 */
.placeholder-card { text-align: center; padding: 70px 24px; }
.placeholder-icon { font-size: 46px; margin-bottom: 12px; }
.placeholder-card p { color: var(--muted); margin: 10px 0 22px; }

/* 域名列表 */
.domain-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.domain-row:last-child { border-bottom: none; }
.domain-row .mono { word-break: break-all; text-align: right; }
.copy-btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }

/* 我的账户：名额与卡密兑换 */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quota-num { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.quota-num b { font-size: 30px; color: var(--text); }
.quota-num span { font-size: 13px; margin-left: 6px; }
.quota-bar { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.quota-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38d1d6, #2f7df6); transition: width .3s; }
.redeem-row { display: flex; gap: 10px; }
.redeem-row .input { flex: 1; }
.quota-tip { font-size: 14px; color: var(--muted); padding: 2px 0; }
.quota-tip b { color: var(--text); }

/* cPanel 登录弹窗 */
[hidden] { display: none !important; }
.modal-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 20, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); padding: 22px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; }
.modal-close { border: none; background: transparent; font-size: 15px; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--text); }

/* 知识文库 */
.kb-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.kb-item:last-child { border-bottom: none; }
.kb-item summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 0; }
.kb-item summary:hover { color: var(--primary); }
.kb-answer { font-size: 14px; color: var(--muted); padding: 4px 0 14px; line-height: 1.7; }
.kb-answer .kb-img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; border: 1px solid var(--border); }

/* 首页公告横幅 */
.index-notice {
  max-width: 1080px; margin: 18px auto -34px; padding: 10px 18px;
  border-radius: 10px; font-size: 14px; text-align: center;
  background: rgba(246, 182, 13, .14); border: 1px solid rgba(246, 182, 13, .4); color: #f6d743;
}

/* 管理后台 */
.mini-form { display: inline-flex; gap: 6px; }
.mini-form select { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 12px; }

/* 站点设置：轮播图片上传 */
.slide-img-field { display: flex; gap: 8px; align-items: center; }
.slide-img-field .s-img { flex: 1; }
.slide-upload-label { flex: 0 0 auto; cursor: pointer; white-space: nowrap; }
.s-preview {
  display: block; margin-top: 8px; max-width: 320px; max-height: 110px;
  border-radius: 8px; border: 1px solid var(--border); object-fit: cover; background: var(--bg);
}

/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .site-menu { display: none; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .slide-item.on { flex-direction: column; gap: 20px; text-align: center; }
  .slide-img { flex: none; width: 100%; }
  .slide-text h2 { font-size: 30px; }
  .detail-cols { grid-template-columns: 1fr; }
  .action-btns { flex-direction: row; }
  .form-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .sidebar { flex: 0 0 200px; }
  /* 后台表格在窄屏下允许横向滑动，不撑破布局 */
  .tbl { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .quick-grid, .guide-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .shell { flex-direction: column; }
  .sidebar { flex: none; border-right: none; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .side-user, .side-label { display: none; }
  .side-link { margin-bottom: 0; padding: 8px 12px; font-size: 13.5px; }

  /* 面板内容区 */
  .panel-topbar { padding: 0 14px; height: 52px; }
  .content { padding: 16px 12px; }
  .card { padding: 16px; border-radius: 12px; }
  .page-head h1 { font-size: 18px; }
  .card-head h1, .card-head h2 { font-size: 17px; }

  /* 托管详情：标签在上、值在下，密码圆点不再被挤成竖排 */
  .info-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; }
  .info-item .v { text-align: left; width: 100%; }
  .pw-wrap { justify-content: flex-start; }
  .action-btns { flex-direction: column; }

  /* 官网顶部导航 */
  .site-nav-inner { padding: 0 14px; height: 54px; gap: 10px; }
  .brand-text { font-size: 18px; }
  .nav-btn { padding: 6px 14px; font-size: 13px; }

  /* 轮播 */
  .hero-slide { padding-bottom: 30px; }
  .hero-slide-inner { padding: 24px 14px 0; gap: 4px; }
  .slide-viewport { min-height: 0; }
  .slide-item.on { gap: 14px; }
  .slide-text h2 { font-size: 25px; }
  .slide-sub { font-size: 14.5px; margin-bottom: 10px; }
  .slide-desc { font-size: 12.5px; margin-bottom: 16px; }
  .slide-arrow { width: 32px; height: 32px; flex: 0 0 32px; font-size: 18px; }
  .slide-text .nav-btn-primary { padding: 10px 30px; font-size: 14px; }

  /* 快捷入口卡片 */
  .quick-wrap { padding: 0 12px; margin-top: 24px; }
  .quick-grid { gap: 10px; }
  .quick-card { padding: 13px 12px; gap: 10px; border-radius: 10px; }
  .quick-card .qico { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
  .quick-card b { font-size: 14px; }
  .quick-card i { font-size: 11.5px; }

  /* 公告条 / 区块 */
  .notice-bar { padding: 0 12px; }
  .sec { padding: 38px 0; }
  .sec-title { font-size: 21px; }
  .sec-sub { margin-bottom: 26px; }
  .guide-grid, .quick-grid { gap: 10px; }
  .guide-card { padding: 16px 14px; }
  .stats-band { padding: 40px 0 24px; }
  .stats-title { font-size: 21px; }
  .stat-cell b { font-size: 26px; }

  /* 页脚 */
  .site-footer-inner { grid-template-columns: 1fr; gap: 18px; padding: 34px 16px 20px; }
  .footer-brand p { margin-top: 8px; }

  /* 登录/注册 */
  .auth-wrap { padding: 14px; align-items: flex-start; padding-top: 40px; }
  .auth-card { padding: 24px 18px; border-radius: 14px; }

  /* 弹窗 */
  .modal-mask { padding: 14px; align-items: flex-start; padding-top: 60px; }
  .modal { padding: 18px; }

  /* 卡密兑换等行内表单 */
  .redeem-row { flex-wrap: wrap; }
  .redeem-row .btn { width: 100%; }
  .input-row { flex-wrap: wrap; }
  .input-row .btn { width: 100%; }

  /* 后台轮播设置：上传按钮换行 */
  .slide-img-field { flex-wrap: wrap; }
  .slide-upload-label { width: 100%; text-align: center; }

  .quota-num b { font-size: 25px; }
  .placeholder-card { padding: 44px 18px; }
}
