:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 480px;
  height: 480px;
  background: rgba(37, 99, 235, 0.12);
  top: -120px;
  right: -80px;
}

body::after {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.08);
  bottom: 10%;
  left: -100px;
}

a { color: inherit; text-decoration: none; }

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 50%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-main a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.6;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-ghost {
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: #f1f5f9;
  color: var(--text);
}

.btn-primary {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--blue);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btns .btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-secondary {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 收银台预览卡片 */
.preview-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.preview-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-chrome .r { background: #ff5f57; }
.preview-chrome .y { background: #febc2e; }
.preview-chrome .g { background: #28c840; }

.preview-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 42px;
}

.preview-body {
  padding: 40px 32px 28px;
  text-align: center;
}

.preview-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preview-qr::before {
  display: none;
}

.preview-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  text-align: left;
}

.preview-meta label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.preview-meta .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.preview-meta .order-no {
  font-family: ui-monospace, monospace;
  color: var(--blue);
  font-size: 0.75rem;
}

/* 统计条 */
.stats-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item .stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-item .stat-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-item .stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 区块 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.channel-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.channel-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.channel-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.notice-list {
  max-width: 720px;
  margin: 0 auto;
}

.notice-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.notice-item time {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .preview-card { margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav-main { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}
