/* 主色：#FF0048 / #000000 / #FF6557；支持 data-theme=dark|light */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root,
html[data-theme="dark"] {
  --c-primary: #FF0048;
  --c-black: #000000;
  --c-coral: #FF6557;
  --bg-dark: #000000;
  --bg-page: #000000;
  --bg-page-mid: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1c1c1c;
  --bg-card-hover: #1a1a1a;
  --accent-blue: #FF0048;   /* 兼容旧变量名 → 主红 */
  --accent-purple: #FF6557; /* 兼容旧变量名 → 珊瑚 */
  --text-primary: #ffffff;
  --text-secondary: #cfcfcf;
  --text-muted: #9a9a9a;
  --border-subtle: rgba(255, 101, 87, 0.22);
  --border-accent: rgba(255, 101, 87, 0.4);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --surface-soft-2: rgba(255, 255, 255, 0.04);
  --surface-soft-3: rgba(255, 255, 255, 0.06);
  --input-placeholder: rgba(255, 255, 255, 0.35);
  --shadow-bar: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(255, 0, 72, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --toast-bg: rgba(0, 0, 0, 0.92);
  --alert-bg: rgba(255, 0, 72, 0.12);
  --alert-text: #FFB4AE;
  --ok: #FF6557;
  --warn: #FF0048;
  --danger: #FF0048;
  --orb-opacity: 0.28;
  --bg-effects: linear-gradient(135deg, #000000 0%, #12080c 50%, #000000 100%);
  --btn-gradient: linear-gradient(135deg, #FF0048, #FF6557);
  --neon-glow: 0 0 0 transparent;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --c-primary: #FF1A5C;
  --c-coral: #FF6B5C;
  --accent-blue: #FF1A5C;
  --accent-purple: #FF6B5C;
  --bg-dark: #ffffff;
  --bg-page: #ffffff;
  --bg-page-mid: #fffbfd;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card-hover: #fff7fa;
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #7a7a7a;
  --border-subtle: rgba(255, 26, 92, 0.16);
  --border-accent: rgba(255, 26, 92, 0.4);
  --surface-soft: rgba(255, 26, 92, 0.05);
  --surface-soft-2: #f7f7f8;
  --surface-soft-3: rgba(255, 26, 92, 0.08);
  --input-placeholder: rgba(17, 17, 17, 0.38);
  --shadow-bar: 0 4px 18px rgba(17, 17, 17, 0.06);
  --shadow-card: 0 6px 24px rgba(17, 17, 17, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card-hover: 0 20px 40px rgba(255, 26, 92, 0.12), 0 8px 16px rgba(17, 17, 17, 0.05);
  --toast-bg: rgba(17, 17, 17, 0.92);
  --alert-bg: rgba(255, 26, 92, 0.06);
  --alert-text: #c4003d;
  --ok: #FF6B5C;
  --warn: #FF1A5C;
  --danger: #FF1A5C;
  --orb-opacity: 0.22;
  --bg-effects: linear-gradient(160deg, #ffffff 0%, #fff5f8 42%, #f4fbff 100%);
  --btn-gradient: linear-gradient(135deg, #FF1A5C, #FF6B5C);
  --neon-glow: 0 0 0 transparent;
  color-scheme: light;
}

html { background: var(--bg-page); }

body {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page-mid) 50%, var(--bg-page) 100%);
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.47;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  width: 100%;
  box-sizing: border-box;
}
.container.top-bar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 0;
  width: 100%;
  box-sizing: border-box;
}
.tg-support-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.theme-pill,
.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--surface-soft);
  border: 1px solid var(--border-accent);
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: var(--neon-glow);
}
.theme-pill:hover,
.home-pill:hover {
  background: color-mix(in srgb, var(--c-primary) 18%, transparent);
  border-color: var(--c-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.theme-pill i { color: var(--c-coral); }

/* 客服条 */
.tg-support-bar {
  margin: 4px 0 0;
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: color-mix(in srgb, var(--c-primary) 10%, transparent);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-bar);
  width: 100%;
  box-sizing: border-box;
}
.tg-support-text {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tg-support-text strong { color: var(--c-coral); }
.tg-support-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--btn-gradient);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--c-primary) 40%, transparent), var(--neon-glow);
  transition: all 0.3s;
}
.tg-support-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c-primary) 55%, transparent), var(--neon-glow);
  color: #fff;
}

/* 背景 */
.background-effects {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  background: var(--bg-effects);
  overflow: hidden;
}
.background-orbs {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: var(--orb-opacity);
}
.orb-1 { width: 300px; height: 300px; background: linear-gradient(135deg, var(--c-primary), var(--c-coral)); top: 10%; left: 10%; }
.orb-2 { width: 250px; height: 250px; background: linear-gradient(135deg, var(--c-coral), var(--c-primary)); top: 60%; right: 15%; }
.orb-3 { width: 200px; height: 200px; background: linear-gradient(135deg, var(--c-primary), #000000); bottom: 20%; left: 20%; }
.orb-4 { width: 180px; height: 180px; background: linear-gradient(135deg, var(--c-coral), var(--c-primary)); top: 30%; right: 30%; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrapper--home .main-content {
  align-items: flex-start;
  padding-top: 20px;
}
.showcase-section { width: 100%; max-width: 1100px; margin: 0 auto; }
.showcase-content { padding: 0; }
.main-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 20px 40px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 14%, transparent) 0%, color-mix(in srgb, var(--c-coral) 5%, transparent) 100%);
  opacity: 0;
  transition: opacity .4s ease;
}
.service-card::after {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-coral), var(--c-primary));
  border-radius: 22px;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-card-hover), var(--neon-glow);
  border-color: var(--c-primary);
  background: var(--bg-card-hover);
  color: inherit;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: .35; }

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c-primary) 28%, transparent), 0 2px 4px rgba(0,0,0,0.2);
  transition: all .3s ease;
  margin-bottom: 40px;
}
.service-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 40%, transparent), 0 4px 8px rgba(0,0,0,0.25), var(--neon-glow);
}
.card-icon-blue { background: var(--btn-gradient); }
.card-icon-green { background: linear-gradient(135deg, var(--c-coral), var(--c-primary)); }
.card-icon-orange { background: var(--btn-gradient); }
.card-icon-purple { background: linear-gradient(135deg, var(--c-coral), var(--c-primary)); }
.card-icon-red { background: linear-gradient(135deg, var(--c-primary), #000000); }
.card-icon-yellow { background: linear-gradient(135deg, var(--c-coral), var(--c-primary)); }

.card-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.card-description { font-size: 1rem; color: var(--text-secondary); }

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  background: transparent;
  color: var(--text-muted);
  padding: 40px 20px;
  text-align: center;
}
.footer p { font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }
.footer .heart { color: #ff6b6b; }
.footer-content { max-width: 1100px; margin: 0 auto; }

/* 子页通用 */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}
.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.back-link:hover { opacity: 0.85; }

.alert {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--alert-bg);
  border: 1px solid var(--border-accent);
  color: var(--alert-text);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--toast-bg);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  z-index: 50;
  max-width: min(90vw, 420px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), var(--neon-glow);
}

@media (max-width: 720px) {
  /* 移动端：赛博朋克霓虹（青 + 品红） */
  :root,
  html[data-theme="dark"] {
    --c-primary: #FF2BD6;
    --c-coral: #00F5FF;
    --accent-blue: #FF2BD6;
    --accent-purple: #00F5FF;
    --bg-page: #05030c;
    --bg-page-mid: #0b0620;
    --bg-card: #120a24;
    --bg-elevated: #1a1033;
    --bg-card-hover: #1c1238;
    --text-primary: #f4f7ff;
    --text-secondary: #b8c0e0;
    --text-muted: #8890b8;
    --border-subtle: rgba(0, 245, 255, 0.22);
    --border-accent: rgba(255, 43, 214, 0.55);
    --surface-soft: rgba(0, 245, 255, 0.08);
    --surface-soft-2: rgba(255, 43, 214, 0.08);
    --surface-soft-3: rgba(0, 245, 255, 0.12);
    --shadow-bar: 0 0 18px rgba(255, 43, 214, 0.25), 0 0 8px rgba(0, 245, 255, 0.15);
    --shadow-card: 0 0 0 1px rgba(0, 245, 255, 0.12), 0 8px 28px rgba(5, 3, 12, 0.65);
    --shadow-card-hover: 0 0 24px rgba(255, 43, 214, 0.35), 0 0 12px rgba(0, 245, 255, 0.25);
    --alert-bg: rgba(255, 43, 214, 0.12);
    --alert-text: #ff9aef;
    --ok: #00F5FF;
    --warn: #FF2BD6;
    --danger: #FF2BD6;
    --orb-opacity: 0.38;
    --bg-effects: linear-gradient(160deg, #05030c 0%, #16082e 48%, #04121c 100%);
    --btn-gradient: linear-gradient(135deg, #FF2BD6, #7B61FF 48%, #00F5FF);
    --neon-glow: 0 0 12px rgba(255, 43, 214, 0.45), 0 0 22px rgba(0, 245, 255, 0.2);
  }

  html[data-theme="light"] {
    --c-primary: #D100B8;
    --c-coral: #00A8B8;
    --accent-blue: #D100B8;
    --accent-purple: #00A8B8;
    --bg-page: #f7fbff;
    --bg-page-mid: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card-hover: #f3fbff;
    --text-primary: #0b1020;
    --text-secondary: #3a4460;
    --text-muted: #6a7390;
    --border-subtle: rgba(0, 168, 184, 0.28);
    --border-accent: rgba(209, 0, 184, 0.45);
    --surface-soft: rgba(209, 0, 184, 0.06);
    --surface-soft-2: #f0f7ff;
    --surface-soft-3: rgba(0, 168, 184, 0.1);
    --shadow-bar: 0 4px 16px rgba(209, 0, 184, 0.1);
    --shadow-card: 0 6px 22px rgba(11, 16, 32, 0.06), 0 0 0 1px rgba(0, 168, 184, 0.12);
    --shadow-card-hover: 0 14px 32px rgba(209, 0, 184, 0.14), 0 0 18px rgba(0, 168, 184, 0.12);
    --alert-bg: rgba(209, 0, 184, 0.08);
    --alert-text: #9c0088;
    --ok: #00A8B8;
    --warn: #D100B8;
    --danger: #D100B8;
    --orb-opacity: 0.28;
    --bg-effects: linear-gradient(160deg, #ffffff 0%, #f3e9ff 40%, #e8fbff 100%);
    --btn-gradient: linear-gradient(135deg, #D100B8, #6B5CFF 50%, #00A8B8);
    --neon-glow: 0 0 10px rgba(209, 0, 184, 0.25), 0 0 16px rgba(0, 168, 184, 0.15);
  }

  .orb-3 { background: linear-gradient(135deg, var(--c-primary), #1a0a40); }
  .tg-support-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin: 4px 0 8px;
    border-radius: 12px;
    border-width: 1px;
    background:
      linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
      linear-gradient(120deg, var(--c-primary), var(--c-coral)) border-box;
    border: 1px solid transparent;
  }
  .tg-support-text {
    font-size: 12px;
    line-height: 1.4;
    flex-wrap: wrap;
  }
  .tg-support-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
  }
  .theme-pill,
  .home-pill,
  .tg-support-button {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 10px;
  }
  .service-card {
    padding: 28px 22px;
    border-radius: 14px;
    border-color: var(--border-subtle);
  }
  .service-card::after { border-radius: 16px; }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-icon { margin-bottom: 24px; border-radius: 12px; }
}
