/* ========================================
   qcggg - Design System & Styles
   Modern Minimalist | 创业服务平台
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --primary: hsl(217, 91%, 60%);
  --primary-dark: hsl(217, 81%, 45%);
  --primary-light: hsl(217, 91%, 70%);
  --primary-bg: hsl(217, 91%, 97%);
  --accent: hsl(38, 92%, 50%);
  --accent-light: hsl(38, 92%, 60%);

  --text: hsl(222, 47%, 11%);
  --text-secondary: hsl(215, 16%, 47%);
  --text-light: hsl(215, 16%, 60%);

  --bg: #ffffff;
  --bg-alt: hsl(220, 20%, 97%);
  --bg-card: #ffffff;

  --border: hsl(214, 32%, 91%);
  --border-light: hsl(214, 32%, 94%);

  --success: hsl(142, 71%, 45%);
  --error: hsl(0, 84%, 60%);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-width: 1200px;
  --gap: 2rem;

  /* Border Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-blue: 0 4px 20px hsla(217, 91%, 60%, 0.25);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fluid Typography */
  --text-xs:  clamp(0.75rem,   1.5vw, 0.8125rem);
  --text-sm:  clamp(0.8125rem, 1.8vw, 0.9375rem);
  --text-base:clamp(0.9375rem, 2vw,   1rem);
  --text-lg:  clamp(1rem,      2.5vw, 1.125rem);
  --text-xl:  clamp(1.125rem,  3vw,   1.375rem);
  --text-2xl: clamp(1.5rem,    4vw,   2.25rem);
  --text-3xl: clamp(1.75rem,   5vw,   3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: hsl(222, 47%, 7%);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: hsl(222, 47%, 7%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Section ---------- */
.section {
  padding: 2.5rem 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text);
}

.section__title--left {
  text-align: left;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px hsla(217, 91%, 60%, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--full {
  width: 100%;
}
.btn--outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border: 1.5px solid;
}
.btn--outline-secondary {
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
}

.header.scrolled .header__logo-text,
.header.scrolled .header__link {
  color: var(--text);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: -0.03em;
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.header__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 2rem 2rem;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  gap: 0.25rem;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
}

.header__nav.open {
  right: 0;
}

.header__link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header.scrolled .header__link:hover,
.header.scrolled .header__link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.header__link:hover,
.header__link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header__link--cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.header.scrolled .header__link--cta {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: var(--primary);
}

.header.scrolled .header__link--cta:hover {
  background: var(--primary);
  color: #fff;
}

.header__link--user {
  font-weight: 600;
}

/* Mobile Toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.header.scrolled .header__toggle span {
  background: var(--text);
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO — CSS 科技背景
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse 600px 400px at 15% 50%, hsla(217, 91%, 60%, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 500px 500px at 85% 20%, hsla(38, 92%, 50%, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 400px 600px at 50% 80%, hsla(190, 80%, 50%, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, hsl(222, 47%, 7%) 0%, hsl(222, 47%, 11%) 40%, hsl(220, 50%, 13%) 100%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px, 0 0, 0 0, 0 0, 0 0; }
}

/* 扫描线纹理 */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
}

/* ========== 浮动光球 (增强动画) ========== */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero__orb--1 {
  width: 550px;
  height: 550px;
  background: hsla(217, 91%, 60%, 0.18);
  top: -12%;
  left: -8%;
  animation: orbA 8s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 450px;
  height: 450px;
  background: hsla(38, 92%, 50%, 0.14);
  bottom: -15%;
  right: -5%;
  animation: orbB 10s ease-in-out infinite alternate;
}

.hero__orb--3 {
  width: 350px;
  height: 350px;
  background: hsla(190, 80%, 55%, 0.10);
  top: 45%;
  left: 50%;
  animation: orbC 12s ease-in-out infinite alternate;
}

@keyframes orbA {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50%  { transform: translate(60px, -40px) scale(1.2); opacity: 0.6; }
  100% { transform: translate(-30px, 30px) scale(0.9); opacity: 0.3; }
}

@keyframes orbB {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50%  { transform: translate(-50px, -30px) scale(1.15); opacity: 0.6; }
  100% { transform: translate(40px, 20px) scale(0.9); opacity: 0.3; }
}

@keyframes orbC {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  50%  { transform: translate(-35%, -55%) scale(1.3); opacity: 0.5; }
  100% { transform: translate(-60%, -40%) scale(0.85); opacity: 0.2; }
}

/* ========== 流星 ========== */
.hero__meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 4px #fff, 0 0 8px rgba(255,255,255,0.4);
}
.hero__meteor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 1.5px;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  transform: rotate(-35deg) translateX(-20px);
  transform-origin: right center;
}

@keyframes meteor {
  0%   { transform: translate(0, 0) rotate(-35deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(-300px, 400px) rotate(-35deg); opacity: 0; }
}

/* ========== 一个人 · 做电商 (增强动画) ========== */
.hero__solo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  margin-bottom: 1rem;
  animation: charDrop 0.6s ease-out both;
  flex-wrap: wrap;
}

.hero__solo-text {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: charDrop 0.5s ease-out 0s both, soloBounce 2.5s ease-in-out 0.7s infinite;
  display: inline-block;
  text-shadow: none;
  filter: drop-shadow(0 0 0 transparent);
}

.hero__solo-text:nth-child(2) { animation-delay: 0.1s, 0.8s; }
.hero__solo-text:nth-child(3) { animation-delay: 0.2s, 0.9s; }

.hero__solo-text--highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #fbbf24 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: charDrop 0.5s ease-out 0s both,
             soloBounce 2.5s ease-in-out 1.0s infinite,
             gradientShift 3s ease-in-out 1.0s infinite,
             textGlow 2s ease-in-out 1.0s infinite;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.3));
}

.hero__solo-text:nth-child(5) { animation-delay: 0.3s, 1.3s; }
.hero__solo-text:nth-child(6) { animation-delay: 0.4s, 1.4s; }
.hero__solo-text:nth-child(7) { animation-delay: 0.5s, 1.5s; }

.hero__solo-sep {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.25em;
  animation: fadeUp 0.8s ease-out 0.15s both, pulseOpacity 2s ease-in-out infinite;
}

@keyframes soloBounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-8px); }
  50%      { transform: translateY(-6px); }
  70%      { transform: translateY(-2px); }
}

@keyframes charDrop {
  0% { transform: translateY(-50px); opacity: 0; }
  60% { transform: translateY(5px); opacity: 1; }
  80% { transform: translateY(-2px); }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.3)) drop-shadow(0 0 3px rgba(251, 191, 36, 0.1)); }
  50%      { filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.9)) drop-shadow(0 0 60px rgba(251, 191, 36, 0.5)) drop-shadow(0 0 100px rgba(251, 191, 36, 0.2)); }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.5; }
}

/* ========== 浮动粒子 (增强) ========== */
.hero__particle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 0 12px rgba(96, 165, 250, 0.2);
  animation: particleDrift 8s ease-in-out infinite;
}

@keyframes particleDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  50% {
    transform: translate(40px, -50px) scale(1.8);
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-20px, 20px) scale(0.5);
    opacity: 0;
  }
}

/* ========== Hero 居中布局 ========== */
.hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 副标题打字效果 */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  animation: fadeUp 0.8s ease-out 0.2s both,
             typing 2s steps(14) 1s forwards,
             blinkCursor 0.8s step-end 1s 5;
  width: 0;
  display: inline-block;
  max-width: 100%;
}

@keyframes typing {
  from { width: 0; }
  to { width: 16em; }
}

@keyframes blinkCursor {
  0%, 100% { border-color: rgba(255, 255, 255, 0.4); }
  50% { border-color: transparent; }
}

/* 卡片霓虹边框动画 */
.hero__card {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1rem;
  animation: fadeUp 0.8s ease-out 0.3s both, cardGlow 3s ease-in-out infinite, cardFloat 5s ease-in-out 1.5s infinite;
  position: relative;
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.1),
                0 0 30px rgba(96, 165, 250, 0.05),
                inset 0 0 15px rgba(96, 165, 250, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2),
                0 0 40px rgba(96, 165, 250, 0.1),
                0 0 60px rgba(251, 191, 36, 0.05),
                inset 0 0 15px rgba(96, 165, 250, 0.05);
    border-color: rgba(147, 197, 253, 0.25);
  }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.hero__card-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

/* 登录表单 */
.hero__login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__field {
  width: 100%;
}

.hero__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
  position: relative;
}

.hero__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.hero__input:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15),
              0 0 15px rgba(96, 165, 250, 0.1);
}

.hero__input:focus::placeholder {
  transform: translateX(6px);
  opacity: 0.5;
}

.hero__login-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* 分隔线 */
.hero__card-divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.hero__card-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__card-divider span {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.5);
  padding: 0 0.75rem;
}

/* 鲜艳注册按钮 */
.hero__register-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  justify-content: center;
  position: relative;
  animation: registerPulse 2.5s ease-in-out infinite;
}

.hero__register-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-sm) + 3px);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  z-index: -1;
  opacity: 0.3;
  animation: registerRing 2.5s ease-in-out infinite;
}

.hero__register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.5), 0 0 40px rgba(245, 158, 11, 0.25);
  animation: none;
}

.hero__register-btn:hover::before {
  animation: none;
  opacity: 0;
}

@keyframes registerPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(239, 68, 68, 0.5), 0 0 40px rgba(245, 158, 11, 0.2); }
}

@keyframes registerRing {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.1; }
}

/* 管理员登录入口 */
.hero__admin-entry {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.hero__admin-entry a {
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  position: relative;
}

.hero__admin-entry a:hover {
  color: #fff;
}

/* 已登录卡片 */
.hero__card--user {
  text-align: center;
}

.hero__user-avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.hero__user-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  justify-content: center;
}

.hero__user-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
}

.hero__user-btn--outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(255, 255, 255, 0.05);
}

.hero__logout {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

.hero__logout:hover {
  color: var(--error);
}

/* 按钮辅助类 */
.btn--accent {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 700;
}

.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

/* Hero 居中：卡片在手机端自适应 */
@media (max-width: 480px) {
  .hero__card {
    padding: 1.25rem;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 6rem 0 4rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   SERVICES
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__list {
  margin-bottom: 1.75rem;
}

.service-card__list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
}

.service-card__list li:last-child {
  border-bottom: none;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-card__btn:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

.service-card__btn::after {
  content: '→';
  transition: var(--transition);
}




.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form__required {
  color: var(--error);
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.15);
}

.form__input::placeholder {
  color: var(--text-light);
}

.form__message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form__message.success {
  display: block;
  background: hsl(142, 71%, 95%);
  color: hsl(142, 71%, 30%);
  border: 1px solid hsl(142, 71%, 80%);
}

.form__message.error {
  display: block;
  background: hsl(0, 84%, 95%);
  color: hsl(0, 84%, 40%);
  border: 1px solid hsl(0, 84%, 85%);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: hsl(222, 47%, 7%);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
}

.footer__bottom {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========================================
   AUTH（注册/登录）
   ======================================== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
  background: var(--bg-alt);
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.auth-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-form .form__group {
  margin-bottom: 1rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.auth-link {
  color: var(--primary);
  font-weight: 600;
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dashboard */
.dashboard-info {
  margin-bottom: 1.5rem;
}

.dashboard-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.dashboard-value {
  font-weight: 600;
  font-size: 0.9375rem;
}

.dashboard-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

.dashboard-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.dashboard-section-desc {
  font-size: 0.875rem;
  color: var(--text-light);
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-actions .btn {
  width: 100%;
}
/* ========================================
   RESPONSIVE — Mobile First
   ======================================== */

/* Mobile Landscape: ≥481px */
@media (min-width: 481px) {
  .container {
    padding: 0 1.25rem;
  }
  .services__grid {
    gap: 1.25rem;
  }
}

/* Tablet / Small Desktop: ≥769px */
@media (min-width: 769px) {
  .header__toggle {
    display: none;
  }

  .header__nav {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    gap: 0.25rem;
  }

  .header__link {
    color: rgba(255, 255, 255, 0.85) !important;
    width: auto;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
  }

  .header__link--cta {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .nav-overlay {
    display: none;
  }

  .hero {
    min-height: 100vh;
  }

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

  .service-card {
    padding: 2.5rem;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section__desc {
    font-size: 1.125rem;
  }

  .dashboard-actions {
    flex-direction: row;
  }

  .dashboard-actions .btn {
    flex: 1;
  }

  .scroll-top {
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
  }
}

/* Desktop: ≥1025px */
@media (min-width: 1025px) {
  .section {
    padding: 5rem 0;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .section__header {
    margin-bottom: 3.5rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   ADMIN — Layout (migrated from inline)
   ======================================== */
.admin-body { background: #f0f2f5; min-height: 100vh; }
.admin-header { background: var(--text); color: #fff; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.admin-header a { color: #fff; }
.admin-header__logo { font-weight: 700; font-size: 1.125rem; }
.admin-header__nav { display: flex; align-items: center; gap: 0.25rem; }
.admin-header__nav a { padding: 0.5rem 0.875rem; font-size: 0.875rem; border-radius: 6px; transition: background 0.2s; opacity: 0.75; }
.admin-header__nav a:hover,
.admin-header__nav a.active { opacity: 1; background: rgba(255,255,255,0.1); }
.admin-body-inner { padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.admin-login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; background: #f0f2f5; }
.admin-login-card { width: 100%; max-width: 380px; background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.admin-login-card .auth-title { text-align: center; margin-bottom: 0.25rem; }
.admin-login-card .auth-desc { text-align: center; margin-bottom: 2rem; }

/* ========================================
   ADMIN — Components (table, btn, status, modal)
   ======================================== */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.8125rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table__id { font-weight: 600; color: var(--text-light); font-size: 0.8125rem; }
.admin-table__company { font-weight: 600; }

.admin-btn { display: inline-block; padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: var(--transition); text-decoration: none; }
.admin-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-btn--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-btn--sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }

.admin-status { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 999px; }
.admin-status--pending { background: hsl(38, 92%, 95%); color: hsl(38, 92%, 40%); }
.admin-status--processing { background: hsl(217, 91%, 95%); color: var(--primary); }
.admin-status--completed { background: hsl(142, 71%, 95%); color: hsl(142, 71%, 35%); }
.admin-status--cancelled { background: hsl(0, 0%, 95%); color: var(--text-light); }

.admin-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.admin-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.admin-modal__content { position: relative; background: #fff; border-radius: var(--radius); width: 90%; max-width: 520px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.admin-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.admin-modal__header h3 { font-size: 1.125rem; font-weight: 700; }
.admin-modal__close { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-light); padding: 0.25rem; line-height: 1; }
.admin-modal__close:hover { color: var(--text); }
.admin-modal__body { padding: 1.5rem; }
.admin-modal__loading { text-align: center; padding: 2rem; color: var(--text-light); }

.admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail-label { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.25rem; }
.detail-value { font-size: 1rem; font-weight: 600; }

.admin-dashboard .admin-stat-card { display: block; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; transition: var(--transition); text-decoration: none; color: inherit; }
.admin-dashboard .admin-stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.admin-dashboard .admin-stat-card__num { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.admin-dashboard .admin-stat-card__label { font-size: 0.875rem; color: var(--text-light); }

/* ========================================
   USER DASHBOARD
   ======================================== */
.user-dashboard .dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.user-dashboard .dashboard-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.user-dashboard .dashboard-stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.user-dashboard .dashboard-stat__label {
  font-size: 0.8125rem;
  color: var(--text-light);
}
.user-dashboard .dashboard-section__link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.user-dashboard .dashboard-section__link:hover {
  color: var(--primary-dark);
}

@media (max-width: 480px) {
  .user-dashboard .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .user-dashboard .dashboard-stat:last-child {
    grid-column: 1 / -1;
  }
  .user-dashboard .container {
    padding: 0;
  }
  .user-dashboard .auth-card {
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 1.25rem 0.75rem;
  }
  .user-dashboard .auth-section {
    padding: 4rem 0 1.5rem;
  }
  .user-dashboard .auth-header {
    margin-bottom: 1rem;
  }
  .user-dashboard .auth-title {
    font-size: 1.125rem;
  }
  .user-dashboard .auth-desc {
    font-size: 0.8125rem;
  }
  .user-dashboard .dashboard-section {
    padding: 0.875rem;
  }
  .user-dashboard .dashboard-row {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
  .user-dashboard .dashboard-actions {
    gap: 0.5rem;
  }
  .user-dashboard .dashboard-actions .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
}

/* ========================================
   ENTITY DASHBOARD
   ======================================== */
.entity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.entity-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: var(--transition);
}

.entity-card--active {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.entity-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.entity-card__info {
  flex: 1;
  min-width: 0;
}

.entity-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-card__meta {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.entity-card__switch {
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.entity-card__switch:hover {
  background: var(--primary);
  color: #fff;
}

.entity-card__switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.entity-card__badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid var(--primary);
  border-radius: 999px;
}

/* Service Grid */
.entity-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.entity-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.entity-service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.entity-service-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.entity-service-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.entity-service-card__desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Recent orders on entity dashboard */
.entity-recent-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.entity-recent-order:last-child {
  border-bottom: none;
}

.entity-recent-order__name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.entity-recent-order__date {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.entity-recent-order__status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Entity mobile overrides */
@media (max-width: 480px) {
  .entity-dashboard .container {
    padding: 0;
  }
  .entity-dashboard .auth-card {
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 1.25rem 0.75rem;
  }
  .entity-dashboard .auth-section {
    padding: 4rem 0 1.5rem;
  }
  .entity-dashboard .auth-header {
    margin-bottom: 1rem;
  }
  .entity-dashboard .auth-title {
    font-size: 1.125rem;
  }
  .entity-services {
    gap: 0.5rem;
  }
  .entity-service-card {
    padding: 0.75rem 0.5rem;
  }
  .entity-service-card__icon {
    font-size: 1.25rem;
  }
  .entity-service-card__title {
    font-size: 0.8125rem;
  }
  .entity-service-card__desc {
    font-size: 0.6875rem;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__orb,
  .hero__particle,
  .hero__meteor,
  .hero__bg {
    display: none !important;
  }
  .hero__subtitle {
    white-space: normal;
    border-right: none;
    width: auto !important;
    max-width: 100%;
  }
  .hero__card,
  .hero__register-btn,
  .hero__solo-text {
    animation: none !important;
  }
  .hero__register-btn::before {
    animation: none !important;
  }
}

/* ========================================
   ADMIN — Responsive Table Utility
   ======================================== */
@media (max-width: 768px) {
  .admin-table--responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .admin-table--responsive tr {
    display: block;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
  }
  .admin-table--responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 0.5rem;
  }
  .admin-table--responsive td:last-child {
    border-bottom: none;
  }
  .admin-table--responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-light);
    flex-shrink: 0;
  }

  /* Admin filters scroll */
  .admin-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    display: flex;
    gap: 0.375rem;
  }
  .admin-filters::-webkit-scrollbar {
    display: none;
  }
  .admin-filters .admin-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ========================================
   ADMIN — Mobile Layout Overrides
   ======================================== */
@media (max-width: 768px) {
  .admin-header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }
  .admin-header > div:first-child {
    flex-wrap: wrap;
    width: 100%;
  }
  .admin-header__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.125rem;
  }
  .admin-header__nav::-webkit-scrollbar {
    display: none;
  }
  .admin-header__nav a {
    font-size: 0.8125rem;
    padding: 0.5rem 0.625rem;
    white-space: nowrap;
  }
  .admin-body-inner {
    padding: 1rem 0.75rem;
  }
  .admin-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
  }
  .admin-stat-card {
    padding: 1rem;
  }
  .admin-stat-card__num {
    font-size: 1.5rem;
  }
  .admin-table-wrap {
    overflow-x: visible;
  }
  .admin-table {
    font-size: 0.875rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.625rem 0.75rem;
  }
  .admin-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
  .admin-modal__content {
    width: 95%;
    max-width: none;
    margin: 1rem;
    max-height: 90vh;
    border-radius: var(--radius-sm);
  }
  .admin-modal__header {
    padding: 1rem 1.25rem;
  }
  .admin-modal__body {
    padding: 1.25rem;
  }
}

/* ========================================
   TOUCH TARGETS — Min 44px
   ======================================== */
@media (pointer: coarse) {
  .header__toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .admin-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero__input,
  .form__input {
    min-height: 44px;
  }
}

/* ========================================
   HERO — Mobile Performance
   ======================================== */
@media (max-width: 768px) {
  .hero__orb--2,
  .hero__orb--3 {
    display: none;
  }
  .hero__orb--1 {
    width: 250px;
    height: 250px;
    filter: blur(40px);
    top: -5%;
    left: -10%;
  }
  .hero__particle {
    display: none;
  }
  .hero__meteor {
    display: none;
  }
  .hero__bg {
    animation: none;
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  }
  .hero__subtitle {
    white-space: normal;
    border-right: none;
    width: auto;
    max-width: 100%;
    animation: fadeUp 0.8s ease-out 0.2s both;
  }
  .hero__card {
    animation: fadeUp 0.8s ease-out 0.3s both;
  }
  .hero__register-btn {
    animation: none;
  }
  .hero__register-btn::before {
    animation: none;
  }
}

/* ========================================
   TERMS PAGE — 使用协议
   ======================================== */
.page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 3rem;
  background: hsl(222, 47%, 7%);
}

.page-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #fff;
}

.page-update {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.page-back-btn {
  display: block;
  width: 200px;
  margin: 2rem auto 0;
  text-align: center;
}

@media (max-width: 480px) {
  .page-card {
    padding: 1.5rem;
  }
  .page-title {
    font-size: 1.375rem;
  }
  .page-back-btn {
    width: 100%;
  }
}

/* ========================================
   FLOATING CHAT WIDGET
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  font-family: var(--font);
}

.chat-widget__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.chat-widget__btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chat-widget__btn--active {
  background: var(--primary-dark);
}

.chat-widget__popup {
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  width: 360px;
  max-height: 520px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: chatSlideUp 0.25s ease-out;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.chat-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.chat-widget__subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.125rem;
}

.chat-widget__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-widget__close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  max-height: 320px;
  background: var(--bg-alt);
}

.chat-widget__welcome {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-light);
}

.chat-widget__welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.chat-widget__welcome p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.chat-widget__welcome-sub {
  font-size: 0.8125rem !important;
  color: var(--text-light) !important;
}

.chat-widget__loading {
  display: none;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  background: #fff;
}

.chat-widget__loading--show {
  display: block;
}

.chat-widget__input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: flex-end;
}

.chat-widget__input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  max-height: 120px;
  transition: var(--transition);
}

.chat-widget__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.12);
}

.chat-widget__send {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-widget__send:hover {
  background: var(--primary-dark);
}

.chat-widget__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chat Messages */
.chat-msg {
  display: flex;
  gap: 0.5rem;
  max-width: 88%;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg--ai {
  align-self: flex-start;
}

.chat-msg__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-msg__avatar--user {
  background: var(--text);
  color: #fff;
}

.chat-msg__avatar--ai {
  background: var(--primary-bg);
  color: var(--primary);
}

.chat-msg__body {
  min-width: 0;
}

.chat-msg__bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg__bubble--user {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.chat-msg__bubble--ai {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.chat-msg__bubble--error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  font-size: 0.8125rem;
  color: #dc2626;
}

.chat-msg__time {
  font-size: 0.625rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-top: 0.125rem;
}

.chat-msg--user .chat-msg__time {
  text-align: right;
}

/* Chat Widget Mobile */
@media (max-width: 480px) {
  .chat-widget {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .chat-widget__popup {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .chat-widget__messages {
    max-height: none;
    flex: 1;
    min-height: 200px;
  }

  .chat-widget__btn {
    width: 50px;
    height: 50px;
  }
}
