/* ==========================================================================
   上海买咩科技有限公司 (maimietech.cn)
   Apple / Vercel-inspired Precision Dark-Tech Design System
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-elevated: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --ink: #f5f5f7;
  --ink-secondary: #a1a1aa;
  --ink-muted: #71717a;

  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.28);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container-max: 1180px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  z-index: 100;
  transition: width 0.08s linear;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 68px;
  background-color: rgba(5, 5, 7, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(5, 5, 7, 0.88);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  color: #050507;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.2s var(--ease-out-expo), background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background-color: #ffffff;
  color: #050507;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background-color: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Hero Section with Vercel Grid & Beams */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, #000 35%, transparent 100%);
}

.hero-ambient {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(34, 211, 238, 0.08) 40%,
    transparent 72%
  );
  filter: blur(48px);
}

/* Animated Vercel-style light beam */
.hero-beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.9), transparent);
  opacity: 0.6;
  animation: beam-fall 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-beam--2 {
  left: calc(50% - 192px);
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.7), transparent);
  animation-delay: 2.4s;
  animation-duration: 7.5s;
}

@keyframes beam-fall {
  0% {
    transform: translateY(-220px);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(720px);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Spotlight Glass Card (Vercel/Linear style) */
.spotlight-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out-expo);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.085),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.spotlight-card:hover {
  border-color: var(--border-strong);
}

/* Corner crosshairs (Vercel signature) */
.crosshair {
  position: absolute;
  width: 11px;
  height: 11px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.crosshair--tl { top: 10px; left: 12px; }
.crosshair--br { bottom: 10px; right: 12px; }

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.profile-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
}

.profile-dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.profile-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-row dt {
  font-size: 13px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.profile-row dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

/* Sections */
.section {
  position: relative;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 52px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-secondary);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #60a5fa;
  margin-bottom: 14px;
}

.bento-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bento-text {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* Apple-style Interactive Product Showcase */
.product-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 4px;
}

.seg-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.is-active {
  background-color: #ffffff;
  color: #050507;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.18);
}

.tab-panel {
  display: none;
  animation: fade-slide 0.35s var(--ease-out-expo);
}

.tab-panel.is-active {
  display: block;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tab-desc {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #60a5fa;
  margin-top: 9px;
  flex-shrink: 0;
}

/* Interactive iPhone Mockup */
.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.device-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.iphone-shell {
  position: relative;
  width: 300px;
  background: linear-gradient(180deg, #18181d 0%, #0d0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  padding: 16px;
  box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.35s var(--ease-out-expo);
}

.iphone-notch {
  width: 88px;
  height: 22px;
  background-color: #050507;
  border-radius: 999px;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.iphone-screen {
  background-color: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 18px;
  min-height: 310px;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.screen-app {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #050507;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.screen-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 10px;
}

.screen-card-label {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.screen-card-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.screen-bar {
  height: 6px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  overflow: hidden;
}

.screen-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transition: width 0.5s var(--ease-out-expo);
}

/* About & Contact */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 18px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.email-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.copy-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Toast Notification */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 10px;
  background-color: #141418;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal Pages */
.legal-main {
  padding: 112px 0 88px;
}

.legal-article {
  max-width: 780px;
  margin: 0 auto;
}

.legal-article h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-muted);
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.legal-article h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.legal-article p,
.legal-article li {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

.legal-article ul {
  padding-left: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-elevated);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.footer-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-beam, .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout,
  .product-showcase,
  .two-col {
    grid-template-columns: 1fr;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: rgba(11, 11, 15, 0.96);
    border-left: 0;
    border-right: 0;
    padding: 8px 24px 16px;
  }

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

  .nav-link {
    width: 100%;
    border-radius: 8px;
    padding: 12px 10px;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 104px 0 64px;
  }

  .section {
    padding: 72px 0;
  }
}
