/* ============================================================
   栖云 GameHost · 魔方财务主题设计系统
   深色电竞风 / 电光蓝 #00d4ff + 游戏橙 #ff6b35
   ============================================================ */

/* ---------- 1. CSS 变量 ---------- */
:root {
  /* 背景层级 */
  --bg-primary: #0d1117;
  --bg-secondary: #12161f;
  --bg-card: #161c28;
  --bg-card-hover: #1c2333;
  --bg-input: #0f141d;
  --bg-overlay: rgba(13, 17, 23, 0.85);

  /* 品牌色 */
  --accent-blue: #00d4ff;
  --accent-blue-dark: #00a8cc;
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e5522a;

  /* 文字层级 */
  --text-primary: #f0f6fc;
  --text-secondary: #9aa7b8;
  --text-muted: #5d6b7f;

  /* 状态色 */
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --info: #58a6ff;

  /* 边框与分割线 */
  --border-color: #232b3a;
  --border-light: #2e3a4f;

  /* 渐变 */
  --grad-primary: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
  --grad-orange: linear-gradient(135deg, #ff6b35 0%, #ff9a3c 100%);
  --grad-hero: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);

  /* 尺寸 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --navbar-height: 68px;

  /* 阴影 / 光晕 */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glow-blue: 0 0 20px rgba(0, 212, 255, 0.45);
  --glow-orange: 0 0 20px rgba(255, 107, 53, 0.45);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-blue-dark);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-title .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #02131a;
}

.btn-primary:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
  color: #02131a;
}

.btn-orange {
  background: var(--grad-orange);
  color: #1a0b02;
}

.btn-orange:hover {
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
  color: #1a0b02;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: var(--glow-blue);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(248, 81, 73, 0.12);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* ---------- 4. 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glow-blue);
}

.nav-logo .logo-text em {
  font-style: normal;
  color: var(--accent-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. Hero 首屏 ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero), var(--bg-primary);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: heroFloat 8s ease-in-out infinite alternate;
}

.hero-glow.glow-blue {
  width: 420px;
  height: 420px;
  background: rgba(0, 212, 255, 0.35);
  top: -120px;
  left: 8%;
}

.hero-glow.glow-orange {
  width: 360px;
  height: 360px;
  background: rgba(255, 107, 53, 0.3);
  bottom: -140px;
  right: 6%;
  animation-delay: 2s;
}

@keyframes heroFloat {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(36px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-blue);
}

.hero-stat .stat-num.orange {
  color: var(--accent-orange);
}

.hero-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

/* 游戏卡片 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-6px);
}

.game-card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}

.game-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-card) 100%);
}

.game-card-body {
  padding: 0 22px 22px;
  position: relative;
  z-index: 1;
}

.game-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-card-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.game-price {
  font-size: 14px;
  color: var(--text-secondary);
}

.game-price strong {
  font-size: 24px;
  color: var(--accent-orange);
  font-weight: 800;
}

.game-online {
  font-size: 13px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-online .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* 特性卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 36px 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card:nth-child(even) .feature-icon {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 评价卡片 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card .review-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 66px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #02131a;
}

.review-user .name {
  font-size: 14px;
  font-weight: 600;
}

.review-user .role {
  font-size: 12px;
  color: var(--text-muted);
}

.review-stars {
  color: var(--warning);
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* ---------- 7. 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success {
  background: rgba(63, 185, 80, 0.14);
  color: var(--success);
}

.badge-warning {
  background: rgba(210, 153, 34, 0.14);
  color: var(--warning);
}

.badge-danger {
  background: rgba(248, 81, 73, 0.14);
  color: var(--danger);
}

.badge-info {
  background: rgba(88, 166, 255, 0.14);
  color: var(--info);
}

.badge-muted {
  background: rgba(93, 107, 127, 0.16);
  color: var(--text-muted);
}

/* ---------- 8. 表格 ---------- */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cell-main {
  font-weight: 600;
}

.cell-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.amount {
  font-weight: 700;
  color: var(--text-primary);
}

.amount.payable {
  color: var(--accent-orange);
}

/* ---------- 9. 表单 ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

.form-error.show {
  display: block;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 滑块 */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: var(--glow-blue);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: var(--glow-blue);
}

/* ---------- 10. 页头（内页） ---------- */
.page-header {
  padding: 48px 0 32px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- 11. 布局：侧边栏 + 内容 ---------- */
.layout-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 36px 0 72px;
  align-items: start;
}

.sidebar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.filter-list li {
  margin-bottom: 4px;
}

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-list a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-list a.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
  font-weight: 600;
}

.filter-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* 产品套餐卡片 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.recommended {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.plan-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #02131a;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-price {
  margin-bottom: 16px;
}

.plan-price .currency {
  font-size: 16px;
  color: var(--accent-orange);
}

.plan-price .value {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-orange);
}

.plan-price .period {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-specs {
  flex: 1;
  margin-bottom: 18px;
}

.plan-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}

.plan-specs li:last-child {
  border-bottom: none;
}

.plan-specs .spec-icon {
  color: var(--accent-blue);
  font-size: 13px;
}

/* ---------- 12. 仪表盘 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.stat-icon.orange {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.stat-icon.green {
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.stat-icon.yellow {
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-card .stat-name {
  font-size: 13px;
  color: var(--text-muted);
}

.welcome-banner {
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.14), rgba(255, 107, 53, 0.1));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.welcome-banner h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.25s ease;
  text-align: center;
}

.quick-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

.quick-link .q-icon {
  font-size: 26px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
}

.panel-body {
  padding: 22px;
}

/* ---------- 13. 服务详情 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.server-status-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.server-status-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

.console-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.console-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.console-btn .c-icon {
  font-size: 22px;
}

.console-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.console-btn.btn-start:hover {
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 16px rgba(63, 185, 80, 0.4);
}

.console-btn.btn-stop:hover {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 16px rgba(248, 81, 73, 0.4);
}

.console-btn.clicked {
  transform: scale(0.95);
}

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.info-item .info-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-item .info-value {
  font-size: 14px;
  font-weight: 600;
}

.info-item .info-value.mono {
  font-family: "JetBrains Mono", Consolas, monospace;
  color: var(--accent-blue);
}

/* 进度条 */
.progress-item {
  margin-bottom: 20px;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-head .p-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.progress-head .p-value {
  color: var(--text-primary);
  font-weight: 700;
}

.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-input);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-primary);
  transition: width 0.6s ease;
}

.progress-bar.orange {
  background: var(--grad-orange);
}

.progress-bar.green {
  background: linear-gradient(135deg, #3fb950, #2ea043);
}

/* ---------- 14. 工单 ---------- */
.ticket-list .ticket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.ticket-list .ticket-item:hover {
  background: var(--bg-card-hover);
}

.ticket-list .ticket-item:last-child {
  border-bottom: none;
}

.ticket-item .t-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.ticket-item .t-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 15. 登录 / 注册 ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    var(--bg-primary);
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 920px;
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-brand {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 107, 53, 0.2) 0%, transparent 55%),
    var(--bg-secondary);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand .brand-slogan {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin: 24px 0 12px;
}

.auth-brand .brand-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-brand .brand-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

.auth-brand .brand-points .p-icon {
  color: var(--accent-blue);
}

.auth-form-side {
  background: var(--bg-card);
  padding: 44px 40px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-tab.active {
  background: var(--grad-primary);
  color: #02131a;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.auth-extra label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-back:hover {
  color: var(--accent-blue);
}

/* ---------- 16. 个人中心 ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 8px auto 16px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: #02131a;
  box-shadow: var(--glow-blue);
}

.balance-card {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(255, 107, 53, 0.12));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.balance-card .b-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.balance-card .b-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-orange);
  margin: 4px 0 12px;
}

/* ---------- 17. 订购页 ---------- */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.order-summary {
  position: sticky;
  top: calc(var(--navbar-height) + 20px);
}

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-secondary);
}

.order-summary .summary-row .s-value {
  color: var(--text-primary);
  font-weight: 600;
}

.order-summary .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 4px;
}

.order-summary .summary-total .t-label {
  font-size: 15px;
  font-weight: 700;
}

.order-summary .summary-total .t-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-orange);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.option-item {
  position: relative;
}

.option-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.option-item label .o-icon {
  font-size: 24px;
}

.option-item input[type="radio"]:checked + label {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow-blue);
}

.cycle-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.cycle-current {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 10px;
}

/* ---------- 18. 页脚 ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 19. 工具类 ---------- */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-blue { color: var(--accent-blue); }
.text-orange { color: var(--accent-orange); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--glow-blue);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1024px) {
  .game-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .stats-grid,
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid,
  .order-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .order-summary,
  .sidebar-panel {
    position: static;
  }

  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 20px 16px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .game-grid,
  .review-grid,
  .feature-grid,
  .stats-grid,
  .quick-grid,
  .plan-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .layout-sidebar {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .console-btn-group {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
