/* 狗蛋APP管理系统 - 主样式
   蓝白主题 · 10px 圆角 · 简洁清爽 · 移动端优先 */

:root {
  --c-primary: #1e40af;
  --c-primary-hover: #1e3a8a;
  --c-primary-light: #dbeafe;
  --c-success: #0f766e;
  --c-warning: #f97316;
  --c-danger: #dc2626;
  --c-bg: #f5f7fa;
  --c-card: #ffffff;
  --c-text: #1f2937;
  --c-text-light: #6b7280;
  --c-border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(30,64,175,0.08);
  --max-w: 1100px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============ 顶部导航 ============ */
.topbar {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-size: 18px; font-weight: 700;
  color: var(--c-primary);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.brand .logo-img {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--c-primary);
}
.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-menu a {
  padding: 6px 14px;
  color: var(--c-text);
  border-radius: var(--radius);
  font-size: 14px;
}
.nav-menu a:hover { background: var(--c-primary-light); color: var(--c-primary); text-decoration: none; }
.nav-menu a.active { background: var(--c-primary); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user .quota { font-size: 12px; color: var(--c-text-light); }
.nav-user .quota b { color: var(--c-warning); font-size: 14px; }

/* 汉堡菜单按钮（移动端） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 容器 ============ */
.container {
  max-width: var(--max-w);
  margin: 24px auto;
  padding: 0 20px;
}
.container-sm { max-width: 460px; margin: 40px auto; padding: 0 20px; }

/* ============ 卡片 ============ */
.card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 16px; font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.card-title .actions a { font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  background: var(--c-card);
  color: var(--c-text);
  border-color: var(--c-border);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; border-color: var(--c-success); }
.btn-warning { background: var(--c-warning); color: #fff; border-color: var(--c-warning); }
.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn-round { border-radius: 50px; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 500;
  margin-bottom: 6px;
  color: var(--c-text);
}
.form-group label .req { color: var(--c-danger); }
.form-group .hint { font-size: 12px; color: var(--c-text-light); margin-top: 4px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 16px; /* >=16px 防止 iOS 自动缩放 */
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  color: var(--c-text);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--c-primary); }

/* 文件上传 */
.upload-box {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: #fafbfc;
}
.upload-box:hover { border-color: var(--c-primary); background: var(--c-primary-light); }
.upload-box input { display: none; }
.upload-box .preview {
  width: 96px; height: 96px;
  margin: 0 auto 8px;
  border-radius: 22%;
  background: var(--c-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--c-primary);
  overflow: hidden;
}
.upload-box .preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .tip { font-size: 12px; color: var(--c-text-light); }

/* 截图上传 */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shot-item {
  aspect-ratio: 9/16;
  background: #fafbfc;
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  position: relative;
}
.shot-item:hover { border-color: var(--c-primary); }
.shot-item img { width: 100%; height: 100%; object-fit: cover; }
.shot-item .plus { font-size: 24px; color: var(--c-text-light); }
.shot-item input { display: none; }

/* ============ 提示 ============ */
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-info { background: var(--c-primary-light); color: var(--c-primary-hover); }

/* ============ 兑换表单 ============ */
.redeem-form { display: flex; gap: 10px; }
.redeem-form .form-control { flex: 1; }
.redeem-form .btn { flex-shrink: 0; }

/* ============ 表单操作按钮 ============ */
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions .btn { flex: 1; }

/* ============ 套餐卡片 ============ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.plan-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow .2s, transform .15s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.plan-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.plan-price { margin-bottom: 12px; }
.price-now { font-size: 28px; color: var(--c-warning); font-weight: 700; }
.price-old { text-decoration: line-through; color: var(--c-text-light); margin-left: 8px; font-size: 14px; }
.plan-desc { font-size: 13px; color: var(--c-text-light); margin-bottom: 16px; min-height: 40px; line-height: 1.6; }
.plan-tags { margin-bottom: 16px; display: flex; gap: 4px; flex-wrap: wrap; }

/* ============ 卡密生成表单 ============ */
.cards-gen-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cards-gen-form .form-control { width: auto; min-width: 120px; }
.cards-gen-form select.form-control { max-width: 200px; }
.cards-gen-form input.form-control { max-width: 120px; }

/* ============ 表格 → 移动端卡片 ============ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border); }
.table th { background: #f9fafb; font-weight: 600; color: var(--c-text-light); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:hover td { background: #f9fafb; }

/* URL 单元格：PC 端截断，移动端在 768px 断点放开换行 */
.table td.url-cell { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 详情表格（th+td 同行的属性列表）*/
.detail-table th { width: 120px; white-space: nowrap; vertical-align: middle; }
.detail-table td { vertical-align: middle; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: #ffedd5; color: #9a3412; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: var(--c-primary-light); color: var(--c-primary-hover); }
.tag-gray { background: #f3f4f6; color: var(--c-text-light); }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 40px 20px; color: var(--c-text-light); }
.empty .icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }

/* ============ 分页 ============ */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
  padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; background: #fff;
}
.pagination a:hover { background: var(--c-primary-light); border-color: var(--c-primary); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ============ 首页 hero ============ */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 24px;
}
.hero h1 { font-size: 32px; color: var(--c-primary); margin-bottom: 12px; }
.hero p { color: var(--c-text-light); margin-bottom: 24px; font-size: 15px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--c-primary-light); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--c-text-light); }

/* ============ 下载页（参考 2xcy）============ */
.dl-wrap { max-width: 720px; margin: 24px auto; padding: 0 16px; }
.dl-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.dl-icon {
  width: 100px; height: 100px;
  border-radius: 22%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--c-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.dl-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-icon .ph { font-size: 40px; color: var(--c-primary); }
.dl-icon .ph-logo { width: 60%; height: 60%; object-fit: contain; }
.dl-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.dl-meta { color: var(--c-text-light); font-size: 13px; margin-bottom: 24px; }
.dl-meta span { margin: 0 8px; }
.dl-meta .sep { color: var(--c-border); }
.dl-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  color: #fff;
  border: none; cursor: pointer;
}
.dl-btn-android { background: var(--c-success); }
.dl-btn-android:hover { background: #0b5e57; }
.dl-btn-ios { background: var(--c-text); }
.dl-btn-ios:hover { background: #111827; }
.dl-btn-disabled { background: #d1d5db !important; color: #9ca3af !important; cursor: not-allowed; }
.dl-status {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary-hover);
  font-size: 13px;
}
.dl-section {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.dl-section h3 {
  font-size: 16px; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--c-primary-light);
}
.dl-shots {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.dl-shots img {
  width: 180px; height: 320px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .15s;
}
.dl-shots img:hover { transform: scale(1.02); }
.dl-desc { font-size: 14px; line-height: 1.8; color: var(--c-text); white-space: pre-wrap; }
.dl-stats {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 16px; font-size: 12px; color: var(--c-text-light);
}

/* ============ 后台 ============ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; max-width: var(--max-w); margin: 16px auto; padding: 0 20px; }
.admin-side {
  background: #fff; border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow); height: fit-content;
  position: sticky; top: 72px;
}
.admin-side a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--c-text); font-size: 14px; margin-bottom: 2px;
}
.admin-side a:hover { background: var(--c-primary-light); color: var(--c-primary); text-decoration: none; }
.admin-side a.active { background: var(--c-primary); color: #fff; }
.admin-side .back-link { margin-top: 12px; border-top: 1px solid var(--c-border); padding-top: 12px; }
.admin-main { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--c-primary); }
.stat-card .label { font-size: 12px; color: var(--c-text-light); margin-top: 4px; }

hr.sep { border: 0; border-top: 1px dashed var(--c-border); margin: 20px 0; }
.sec-title { font-size: 16px; color: var(--c-text); margin: 0 0 12px; font-weight: 600; }
.quota-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  background: rgba(30,64,175,0.08);
  color: var(--c-primary); font-weight: 600; font-size: 13px;
}
.quota-badge .q-num {
  background: var(--c-primary); color: #fff;
  padding: 1px 8px; border-radius: 50px; font-size: 12px;
}
.quota-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quota-ops input[type=number] {
  width: 72px; padding: 4px 8px;
  border: 1px solid var(--c-border); border-radius: 8px; font-size: 13px;
}
.quota-ops button { padding: 4px 10px; border-radius: 8px; font-size: 12px; }
.cost-tip {
  background: #eff6ff; color: var(--c-primary);
  border: 1px solid #bfdbfe;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
  font-size: 14px;
}

/* ============ 页脚 ============ */
.footer {
  text-align: center; padding: 24px 20px;
  color: var(--c-text-light); font-size: 12px;
}
.footer a { color: var(--c-text-light); margin: 0 6px; }

/* ================================================
   响应式 - 移动端
   ================================================ */
@media (max-width: 768px) {
  /* 基础 */
  :root { --topbar-h: 52px; }
  body { font-size: 14px; }

  /* 顶部导航 - 汉堡菜单 */
  .topbar-inner { padding: 0 12px; height: var(--topbar-h); }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 12px 16px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 99;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
  }
  .nav-user {
    gap: 8px;
  }
  .nav-user .quota-badge { font-size: 12px; padding: 2px 8px; }
  .nav-user .quota-badge .q-num { font-size: 11px; }
  .nav-user a.btn-sm { padding: 6px 12px; font-size: 13px; }

  /* 容器 */
  .container { margin: 16px auto; padding: 0 12px; }
  .container-sm { margin: 20px auto; padding: 0 16px; }

  /* 卡片 */
  .card { padding: 16px; }

  /* 表单 */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-control { font-size: 16px; }

  /* 按钮 */
  .btn { padding: 10px 20px; font-size: 14px; }
  .btn-sm { padding: 6px 12px; font-size: 13px; }
  .btn-lg { padding: 14px 32px; font-size: 15px; width: 100%; }
  .btn-round { width: 100%; }

  /* 首页 */
  .hero { padding: 32px 16px; border-radius: var(--radius); }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .hero .cta { flex-direction: column; gap: 10px; }
  .hero .cta .btn { width: 100%; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 16px; }

  /* 表格 → 移动端纵向卡片 */
  .table { font-size: 13px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 8px 0;
    border: 1px solid var(--c-border);
  }
  .table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
    gap: 12px;
  }
  .table td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--c-text-light);
    font-size: 12px;
    text-align: left;
    flex-shrink: 0;
  }
  .table tr:hover td { background: transparent; }

  /* URL 单元格移动端放开换行（覆盖 PC 端截断）*/
  .table td.url-cell { max-width:100%; white-space:normal; word-break:break-all; overflow:visible; text-overflow:clip; }

  /* 详情表格 → 移动端纵向属性列表 */
  .detail-table, .detail-table tbody, .detail-table tr, .detail-table th, .detail-table td {
    display: block; width: 100%;
  }
  .detail-table tr {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 8px 0;
    border: 1px solid var(--c-border);
  }
  .detail-table th {
    background: none;
    padding: 8px 16px 2px;
    font-size: 12px;
    color: var(--c-text-light);
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0;
    width: auto;
    white-space: normal;
  }
  .detail-table td {
    padding: 0 16px 8px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
  }
  .detail-table td:last-child { border-bottom: none; }
  .detail-table input[type="text"],
  .detail-table input[type="number"],
  .detail-table input[type="email"],
  .detail-table textarea,
  .detail-table select {
    width: 100% !important; max-width: 100% !important;
  }

  /* 后台 */
  .admin-layout { grid-template-columns: 1fr; gap: 12px; margin: 12px auto; padding: 0 12px; }
  .admin-side {
    position: relative; top: 0;
    display: flex; overflow-x: auto; padding: 8px;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .admin-side a {
    white-space: nowrap;
    padding: 8px 14px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .admin-side .back-link { margin-top: 0; border-top: none; padding-top: 8px; }
  .admin-main { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card .num { font-size: 20px; }

  /* 截图上传 */
  .shots-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }

  /* 下载页 */
  .dl-wrap { margin: 12px auto; padding: 0 12px; }
  .dl-card { padding: 20px 16px; }
  .dl-section { padding: 16px; }
  .dl-shots img { width: 140px; height: 250px; }
  .dl-buttons { max-width: 100%; }

  /* 分页 */
  .pagination a, .pagination span { padding: 8px 14px; font-size: 14px; }

  /* 后台操作按钮 */
  .quota-ops { gap: 4px; }
  .quota-ops input[type=number] { width: 60px; }
  .quota-ops button { padding: 6px 10px; }

  /* 表单内联样式修正 */
  .card-title { flex-direction: column; align-items: flex-start; }
  .cost-tip { font-size: 13px; padding: 10px 12px; }

  /* 兑换表单纵向 */
  .redeem-form { flex-direction: column; gap: 10px; }
  .redeem-form .btn { width: 100%; }

  /* 卡密生成表单纵向 */
  .cards-gen-form { flex-direction: column; align-items: stretch; }
  .cards-gen-form .form-control { width: 100%; max-width: 100%; }

  /* 表单操作按钮纵向 */
  .form-actions { flex-direction: column; }

  /* 套餐卡片单列 */
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 18px; }
  .price-now { font-size: 24px; }
}

/* 超小屏 (<=375px) */
@media (max-width: 375px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 20px; }
  .card { padding: 14px; }
  .btn { width: 100%; }
  .nav-user { gap: 4px; }
  .nav-user a.btn-sm { padding: 5px 10px; font-size: 12px; }
}
