/* ===== 前端样式 - 参考tz.jujiao.net科技商务风 ===== */
:root {
  --primary: #1268ff;
  --primary-light: #4d94ff;
  --primary-dark: #0d4ed8;
  --accent: #32d8d0;
  --bg: #f7f9fc;
  --bg-2: #eef2f8;
  --panel: #ffffff;
  --ink: #0b1220;
  --text: #263447;
  --muted: #526173;
  --faint: #e5ebf3;
  --line: rgba(15,23,42,.08);
  --border: rgba(15,23,42,.10);
  --soft-line: rgba(15,23,42,.05);
  --dark: #0b1220;
  --dark-2: #111a2e;
  --dark-surface: #1a2340;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 18px;
  --radius-sm: 10px;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; align-items: center; gap: 24px;
  padding: 10px 24px; border-radius: 999px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 4px 24px rgba(11,18,32,.06);
  width: max-content;
  max-width: 96vw;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 900; color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.navbar-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.navbar-brand .brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text); transition: all .15s;
}
.navbar-links a:hover { background: rgba(18,104,255,.08); color: var(--primary); }
.navbar-links a.active { background: var(--primary); color: #fff; }
.navbar-actions { display: flex; align-items: center; gap: 8px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(18,104,255,.25); }
.btn-blue {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(18,104,255,.25);
}
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink); background: var(--faint); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.user-nav-profile{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:13px;white-space:nowrap;}
.user-nav-profile img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:1px solid rgba(18,104,255,.16);box-shadow:0 3px 12px rgba(18,104,255,.12);}

/* ===== Hero 区域 ===== */
.hero {
  min-height: 88vh; padding: 120px 20px 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(18,104,255,.06), transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(50,216,208,.04), transparent 50%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.02) 1px, transparent 1px);
  background-size: 72px 72px; pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(18,104,255,.08); color: var(--primary);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.1;
  color: var(--ink); margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero-title .highlight { color: var(--primary); }
.hero-subtitle {
  font-size: 17px; color: var(--muted); margin-bottom: 32px;
  max-width: 480px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 32px; }
.trust-item { text-align: left; }
.trust-item .trust-num { font-size: 28px; font-weight: 800; color: var(--ink); }
.trust-item .trust-label { font-size: 13px; color: var(--muted); }


/* ===== 首页登录/注册区域 ===== */
.hero-login-panel{
  width:100%;
  max-width:520px;
  margin:0 0 30px;
}
.hero-login-title{
  margin:0 0 13px;
  color:var(--ink);
  font-size:32px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.01em;
}
.hero-login-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
}
.hero-login-btn{
  min-width:150px;
  min-height:50px;
  text-align:center;
  box-sizing:border-box;
  visibility:visible !important;
  opacity:1 !important;
}
.hero-register-btn{
  color:var(--ink) !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,.12) !important;
  box-shadow:0 8px 25px rgba(15,23,42,.07);
}
.hero-register-btn:hover{
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.2) !important;
}

/* Hero 右侧展示 */
.hero-visual {
  position: relative; perspective: 1200px;
}
.hero-card-3d {
  transform: rotateX(8deg) rotateY(-12deg);
  transition: transform .3s ease;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 80px rgba(11,18,32,.15), 0 0 0 1px rgba(255,255,255,.5);
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 28px; min-height: 420px;
}
.hero-card-3d .card-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-card-3d .card-title-dark { color: #fff; font-size: 16px; font-weight: 700; }
.hero-card-3d .stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.hero-card-3d .stat-box {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 16px;
}
.hero-card-3d .stat-box .label { color: rgba(255,255,255,.4); font-size: 12px; }
.hero-card-3d .stat-box .value { color: #fff; font-size: 24px; font-weight: 800; margin-top: 4px; }
.hero-card-3d .stat-box .value.blue { color: var(--primary-light); }
.hero-card-3d .stat-box .value.aqua { color: var(--accent); }

/* ===== 通用区域 ===== */
.section { padding: 80px 20px; position: relative; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--ink);
  margin-bottom: 12px; text-align: center; letter-spacing: -0.01em;
}
.section-desc { font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 48px; max-width: 600px; margin-left:auto; margin-right:auto; }

/* 特性区 */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .2s; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(11,18,32,.06); border-color: rgba(18,104,255,.20); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(18,104,255,.08), rgba(50,216,208,.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 暗色区域 */
.section-dark {
  background: var(--dark); color: #eef2f8;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,.5); }

/* CTA区域 */
.cta-section {
  padding: 60px 20px;
}
.cta-card {
  max-width: var(--max-w); margin: 0 auto; text-align: center;
  background: var(--panel); border-radius: var(--radius);
  padding: 48px; box-shadow: 0 12px 40px rgba(11,18,32,.06);
  border: 1px solid var(--border);
}
.cta-card h2 { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.cta-card p { color: var(--muted); margin-bottom: 24px; }

/* 页脚 */
.footer {
  background: var(--dark); color: rgba(255,255,255,.4);
  padding: 40px 20px 20px; text-align: center;
}
.footer-content { max-width: var(--max-w); margin: 0 auto; }
.footer p { font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ===== 登录/注册页 ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark) 100%);
  position: relative; overflow: hidden; padding: 20px;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(18,104,255,.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(50,216,208,.10), transparent 40%);
}
.auth-card {
  position: relative; z-index: 1; width: 420px; max-width: 92vw;
  background: rgba(255,255,255,.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 24px; padding: 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: authIn .4s ease;
}
@keyframes authIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.auth-logo {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff;
  box-shadow: 0 8px 32px rgba(18,104,255,.35);
}
.auth-logo img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.auth-title { text-align: center; color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 28px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-label { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; margin-bottom: 8px; display: block; }
.auth-form .form-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px; color: #fff; font-size: 14px; transition: all .2s; font-family: inherit;
}
.auth-form .form-input::placeholder { color: rgba(255,255,255,.30); }
.auth-form .form-input:focus {
  outline: none; border-color: var(--primary-light);
  background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(18,104,255,.20);
}
.auth-form .btn-primary {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.auth-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(18,104,255,.4); }
.auth-alert {
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.auth-alert.error { background: rgba(239,68,68,.10); color: #fca5a5; border: 1px solid rgba(239,68,68,.20); }
.auth-alert.success { background: rgba(34,197,94,.10); color: #86efac; border: 1px solid rgba(34,197,94,.20); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: rgba(255,255,255,.3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; }
.auth-links a { color: rgba(255,255,255,.5); transition: color .15s; }
.auth-links a:hover { color: var(--primary-light); }
.auth-footer { text-align: center; color: rgba(255,255,255,.25); font-size: 12px; margin-top: 24px; }

/* ===== 用户仪表盘 ===== */
.dashboard-page { min-height: 100vh; background: var(--bg); padding-top: 80px; }
.dashboard-nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(255,255,255,.80); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 4px 24px rgba(11,18,32,.06);
  width: max-content;
  max-width: 96vw;
}
.dashboard-content { max-width: var(--max-w); margin: 0 auto; padding: 20px; }

.welcome-banner {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  border-radius: var(--radius); padding: 32px; color: #fff;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(18,104,255,.20), transparent 70%); pointer-events: none;
}
.welcome-banner h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; position: relative; }
.welcome-banner p { color: rgba(255,255,255,.6); font-size: 14px; position: relative; }

/* 统计卡片 */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden; transition: all .2s;
}
.dash-stat-card:hover { box-shadow: 0 8px 32px rgba(11,18,32,.06); }
.dash-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.dash-stat-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px;
  background: rgba(18,104,255,.08); color: var(--primary);
}
.dash-stat-card .label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dash-stat-card .value { font-size: 32px; font-weight: 800; color: var(--ink); }

/* 内容卡片 */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.dash-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; overflow: hidden;
}
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-card-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.dash-card-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 机器人列表 */
.bot-list { display: flex; flex-direction: column; gap: 12px; }
.bot-item {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--bg-2); border-radius: var(--radius-sm); border: 1px solid var(--border);
  transition: all .15s;
}
.bot-item:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(18,104,255,.06); }
.bot-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.bot-info { flex: 1; min-width: 0; }
.bot-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.bot-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bot-meta { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* 黑名单列表 */
.blacklist-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-2); border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid var(--border);
}
.blacklist-item .qq-num { font-weight: 600; color: var(--ink); font-size: 14px; }
.blacklist-item .reason { color: var(--muted); font-size: 13px; flex: 1; }
.blacklist-item .time { color: var(--muted); font-size: 12px; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--faint); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: rgba(34,197,94,.10); color: #16a34a; }
.badge-warning { background: rgba(245,158,11,.10); color: #d97706; }
.badge-danger { background: rgba(239,68,68,.10); color: #dc2626; }
.badge-info { background: rgba(18,104,255,.10); color: #2563eb; }
.badge-muted { background: rgba(100,116,139,.10); color: #64748b; }

/* 空状态 */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .3; }
.empty-state .text { font-size: 14px; }

/* Toast */
.toast { position: fixed; top: 80px; right: 24px; z-index: 9999; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,.15); transform: translateX(120%); transition: transform .3s ease; }
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--error); color: #fff; }

/* 公告 */
.announcement-bar {
  background: rgba(18,104,255,.06); border: 1px solid rgba(18,104,255,.15);
  border-radius: var(--radius-sm); padding: 12px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--primary);
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hero { min-height: auto; padding: 100px 20px 40px; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}

/* QQ avatar */
.qq-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;box-shadow:0 8px 25px rgba(18,104,255,.16);}
.verify-row{display:flex;gap:10px}.verify-row .form-input{flex:1}

/* ===== 手机端全面适配 ===== */
@media (max-width: 768px) {
  html, body { width: 100%; min-width: 0; overflow-x: hidden; }
  body { font-size: 14px; background-attachment: scroll !important; }

  /* 顶部导航：手机改成两行，避免按钮挤出屏幕 */
  .navbar,
  .dashboard-nav {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    transform: none;
    padding: 8px 10px;
    border-radius: 18px;
    gap: 6px 10px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .navbar-brand {
    min-width: 0;
    max-width: 70%;
    gap: 7px;
    font-size: 14px;
    flex: 0 1 auto;
  }
  .navbar-brand img,
  .navbar-brand .brand-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .navbar-brand span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  /* 不再在手机端直接 display:none 导航，否则未登录时登录/注册也会消失 */
  .navbar-links {
    display: flex;
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
    gap: 3px;
    white-space: nowrap;
  }
  .navbar-links::-webkit-scrollbar { display: none; }
  .navbar-links a {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 13px;
  }
  .navbar-actions {
    min-width: 0;
    max-width: 38%;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .navbar-actions::-webkit-scrollbar { display: none; }
  .navbar-actions .btn {
    padding: 7px 11px;
    font-size: 12px;
  }
  .user-nav-profile { max-width: 120px; }
  .user-nav-profile span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 首页 Hero */
  .hero { padding: 145px 15px 42px; }
  .hero-inner { gap: 28px; }
  .hero-badge { margin-bottom: 15px; padding: 5px 12px; font-size: 12px; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); margin-bottom: 15px; }
  .hero-subtitle { font-size: 14px; line-height: 1.7; margin-bottom: 23px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { justify-content: space-between; gap: 10px; }
  .trust-item { min-width: 0; }
  .trust-item .trust-num { font-size: 22px; }
  .trust-item .trust-label { font-size: 11px; white-space: nowrap; }

  .section { padding: 48px 15px; }
  .section-title { font-size: 27px; }
  .section-desc { font-size: 14px; margin-bottom: 28px; }
  .features-grid { gap: 14px; }
  .feature-card { padding: 20px; border-radius: 16px; }
  .feature-title { font-size: 17px; }
  .cta-section { padding: 42px 15px; }
  .cta-card { padding: 30px 20px; }
  .footer { padding: 30px 15px 18px; }

  /* 登录/注册 */
  .auth-page { padding: 15px; align-items: flex-start; padding-top: 32px; overflow-y: auto; }
  .auth-card { width: 100%; max-width: 430px; padding: 28px 20px; border-radius: 20px; }
  .auth-title { font-size: 22px; }
  .auth-form .form-input { min-height: 44px; }
  .verify-row { gap: 7px; }
  .verify-row .btn { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }

  /* 用户控制台 */
  .dashboard-page { padding-top: 128px; }
  .dashboard-content { padding: 12px 15px 30px; }
  .dashboard-nav { gap: 6px 8px; }
  .dashboard-nav .navbar-links { order: 3; }
  .dashboard-nav .navbar-actions { order: 2; }
  .welcome-banner { padding: 23px 20px; border-radius: 18px; margin-bottom: 15px; }
  .welcome-banner h1 { font-size: 21px; }
  .welcome-banner p { font-size: 12px; line-height: 1.7; word-break: break-word; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
  .dash-stat-card { padding: 17px 15px; border-radius: 16px; }
  .dash-stat-icon { width: 38px; height: 38px; font-size: 17px; margin-bottom: 9px; }
  .dash-stat-card .label { font-size: 12px; }
  .dash-stat-card .value { font-size: 25px; }
  .dash-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 15px; }
  .dash-card { padding: 17px 15px; border-radius: 17px; }
  .dash-card-header { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .dash-card-title { font-size: 16px; }
  .dash-card-desc { font-size: 12px; }
  .bot-item { gap: 10px; padding: 12px; align-items: center; }
  .bot-avatar { width: 42px; height: 42px; border-radius: 11px; font-size: 17px; }
  .bot-name { font-size: 14px; }
  .bot-detail { font-size: 11px; line-height: 1.5; word-break: break-all; }
  .bot-meta { margin-left: auto; }
  .blacklist-item { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .blacklist-item .reason { min-width: 100%; order: 3; }

  /* 手机表格横向滑动，而不是撑破页面 */
  .data-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .announcement-bar { padding: 10px 12px; font-size: 12px; line-height: 1.6; align-items: flex-start; }
  .empty-state { padding: 35px 15px; }
}

@media (max-width: 480px) {
  .navbar, .dashboard-nav { left: 7px; right: 7px; top: 7px; }
  .navbar-actions { max-width: 42%; }
  .navbar-actions .btn { padding: 6px 9px; }
  .dashboard-page { padding-top: 128px; }
  .dashboard-content { padding-left: 10px; padding-right: 10px; }
  .dash-stats { gap: 8px; }
  .dash-stat-card { padding: 14px 12px; }
  .dash-stat-card .value { font-size: 23px; }
  .bot-item { align-items: flex-start; }
  .bot-meta { align-self: center; }
  .auth-card { padding: 25px 17px; }
  .auth-logo { width: 50px; height: 50px; }
  .auth-title { font-size: 20px; }
  .hero { padding-left: 12px; padding-right: 12px; }
}


/* ===== 最终手机端修复：覆盖旧版响应式规则 ===== */
@media (max-width: 768px) {
  html, body { width:100% !important; max-width:100% !important; overflow-x:hidden !important; }

  /* 用户控制台顶部：手机保持一行，不再把品牌/头像/退出挤乱 */
  .dashboard-nav {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    left: 10px !important;
    right: 10px !important;
    top: 8px !important;
    transform: none !important;
    min-height: 52px !important;
    padding: 7px 10px !important;
    border-radius: 18px !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
  }
  .dashboard-nav .navbar-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .dashboard-nav .navbar-brand span {
    max-width: 145px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .dashboard-nav .navbar-links {
    display: none !important;
  }
  .dashboard-nav .navbar-actions {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    gap: 5px !important;
  }
  .dashboard-nav .user-nav-profile {
    max-width: 105px !important;
    gap: 5px !important;
    overflow: hidden !important;
  }
  .dashboard-nav .user-nav-profile img {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }
  .dashboard-nav .user-nav-profile span {
    display: block !important;
    max-width: 48px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .dashboard-nav .navbar-actions .btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
  .dashboard-page { padding-top: 78px !important; }
  .dashboard-content { width:100% !important; max-width:1180px !important; padding: 10px 12px 28px !important; }

  /* 欢迎卡片 */
  .welcome-banner {
    width:100% !important;
    padding:20px 18px !important;
    margin-bottom:12px !important;
    border-radius:18px !important;
  }
  .welcome-banner h1 { font-size:22px !important; line-height:1.35 !important; }
  .welcome-banner p { font-size:12px !important; line-height:1.7 !important; }

  /* 重点：四个统计卡片手机固定 2×2，不再一张占满整屏 */
  .dash-stats {
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    width:100% !important;
    gap:10px !important;
    margin-bottom:12px !important;
  }
  .dash-stat-card {
    min-width:0 !important;
    width:100% !important;
    padding:15px 13px !important;
    border-radius:16px !important;
  }
  .dash-stat-icon { width:36px !important; height:36px !important; font-size:17px !important; margin-bottom:8px !important; }
  .dash-stat-card .label { font-size:12px !important; white-space:nowrap !important; }
  .dash-stat-card .value { font-size:24px !important; line-height:1.2 !important; }

  /* 内容区域：机器人和黑名单在手机上下排列 */
  .dash-grid {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;
    gap:12px !important;
    margin-bottom:12px !important;
  }
  .dash-card { width:100% !important; min-width:0 !important; padding:16px 14px !important; border-radius:17px !important; }
  .dash-card-header { min-width:0 !important; }
  .dash-card-header > div:first-child { min-width:0 !important; }
  .dash-card-title { font-size:16px !important; }
  .dash-card-desc { font-size:12px !important; }

  .bot-item { width:100% !important; min-width:0 !important; padding:11px !important; gap:9px !important; }
  .bot-info { min-width:0 !important; overflow:hidden !important; }
  .bot-name { overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
  .bot-detail { overflow-wrap:anywhere !important; word-break:break-word !important; }

  .blacklist-item { width:100% !important; min-width:0 !important; }

  /* 公告不允许撑宽页面，文字始终清晰 */
  .announcement-bar {
    width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
    color:#1268ff !important;
    background:rgba(18,104,255,.07) !important;
    line-height:1.65 !important;
    align-items:flex-start !important;
  }
  .announcement-bar > span:last-child,
  .announcement-bar > strong { overflow-wrap:anywhere !important; word-break:break-word !important; }

  /* 账户表格：手机横向滚动，不撑破网页 */
  .data-table { display:block !important; width:100% !important; overflow-x:auto !important; -webkit-overflow-scrolling:touch !important; }
}

@media (max-width: 420px) {
  .dashboard-nav { width:calc(100% - 14px) !important; left:7px !important; right:7px !important; padding-left:8px !important; padding-right:8px !important; }
  .dashboard-nav .navbar-brand span { max-width:165px !important; overflow:visible !important; text-overflow:clip !important; white-space:normal !important; }
  .dashboard-nav .user-nav-profile { max-width:82px !important; }
  .dashboard-nav .user-nav-profile span { max-width:38px !important; }
  .dashboard-nav .navbar-actions .btn { padding:6px 9px !important; }
  .dashboard-content { padding-left:10px !important; padding-right:10px !important; }
  .dash-stats { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .dash-stat-card { padding:13px 11px !important; }
  .dash-stat-card .value { font-size:22px !important; }
}


/* ===== 登录/注册按钮最终响应式修复 ===== */
@media (max-width:768px){
  .hero-login-panel{max-width:none;margin-bottom:24px;}
  .hero-login-title{font-size:25px;margin-bottom:12px;}
  .hero-login-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;}
  .hero-login-btn{width:100% !important;min-width:0;min-height:46px;padding:11px 14px !important;font-size:14px !important;}
}
@media (max-width:430px){
  .hero-login-title{font-size:22px;}
  .hero-login-actions{gap:8px;}
  .hero-login-btn{min-height:44px;font-size:13px !important;}
}

/* 用户身份统计卡：身份文字比普通数字更长，保持完整显示 */
.dash-stat-card .dash-identity-value{font-size:24px;line-height:1.35;word-break:break-all;white-space:normal;min-height:34px;}
@media (max-width: 768px){.dash-stat-card .dash-identity-value{font-size:19px;}}
