/* ========== 奶茶浏览器 官方落地页样式 ========== */
:root {
  --bg: #1a1628;
  --bg-elevated: #221d35;
  --bg-card: #2a2540;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --accent: #ffffff;
  --accent-light: #ffffff;
  --accent-strong: rgba(255, 255, 255, 0.92);
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.45);
  --glow-blue: #7eb8ea;
  --glow-purple: #a78bfa;
  --glow-violet: #c084fc;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  min-width: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-right {
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 2px;
  background: transparent;
}

.lang-btn {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:first-child {
  margin-right: 2px;
}

.lang-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.is-active {
  background: #a78bfa;
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.5);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 64px 0 24px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    #1e1a2e 30%,
    #1c1830 70%,
    var(--bg) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    transparent 0%,
    transparent 50%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(126, 184, 234, 0.4) 0%,
    rgba(91, 155, 213, 0.2) 45%,
    rgba(167, 139, 250, 0.08) 75%,
    transparent 100%
  );
  opacity: 0.85;
  filter: blur(2px);
  box-shadow:
    0 0 50px rgba(91, 155, 213, 0.18),
    0 0 90px rgba(167, 139, 250, 0.1);
  animation: bubble-glow 10s ease-in-out infinite;
}

.bubble::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(91, 155, 213, 0.12) 0%,
    transparent 65%
  );
  filter: blur(20px);
  pointer-events: none;
}

.b1 { width: 320px; height: 320px; top: -100px; right: -80px; animation-delay: 0s; }
.b2 { width: 220px; height: 220px; bottom: 15%; left: -60px; animation-delay: -2.5s; }
.b3 { width: 160px; height: 160px; top: 35%; right: 10%; animation-delay: -5s; }
.b4 { width: 120px; height: 120px; bottom: 20%; right: 20%; animation-delay: -1.2s; }
.b5 { width: 100px; height: 100px; top: 20%; left: 15%; animation-delay: -3.5s; }

@keyframes bubble-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.03); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-content {
  max-width: 560px;
}

.hero .hero-title,
.hero .hero-desc,
.hero .hero-cta {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero.has-entered .hero-title,
.hero.has-entered .hero-desc,
.hero.has-entered .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero.has-entered .hero-title { transition-delay: 0.1s; }
.hero.has-entered .hero-desc { transition-delay: 0.25s; }
.hero.has-entered .hero-cta { transition-delay: 0.4s; }

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-title-main {
  font-size: clamp(3rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

html[lang="en"] .hero-title-main {
  font-size: clamp(2.4rem, 4.2vw, 2.8rem);
}

.hero-title-sub {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.08em;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--shadow-strong);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-strong);
  background: rgba(255, 255, 255, 0.95);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 20px 60px var(--shadow), 0 0 0 1px var(--border);
  text-align: center;
  max-width: 280px;
}

.hero-card-reward .reward-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: block;
}

.hero-card-reward .reward-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-logo {
  width: 100px;
  height: auto;
  margin-bottom: 16px;
}

.hero-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-card-reward .hero-card-text {
  color: var(--white);
  font-weight: 600;
}

/* ---------- 由您掌控一切 ---------- */
.section-control {
  padding: 20px ;
  background: var(--bg);
}

.section-control-inner {
  text-align: center;
}

.section-control-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 40px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.section-control-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: block;
  animation: section-control-float 3s ease-in-out infinite;
}

@keyframes section-control-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.section-control-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-control-subtitle-wrap {
  margin-top: 0;
  margin-bottom: 20px;
}

.section-control-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.section-control-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  padding-top: 8px;
}

.section-control-item {
  margin-top: 36px;
  text-align: center;
}

.section-control-item-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: block;
  animation: section-control-float 3s ease-in-out infinite;
}

.section-control-item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-control-item-title {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.section-control-item-line {
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  border-radius: 2px;
}

.section-control-item-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  padding-top: 8px;
}

/* ---------- Features ---------- */
.features {
  padding: 60px 0;
  background: #ffffff;
}

.features .section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1a1628;
  text-align: center;
  margin-bottom: 8px;
}

.features .section-desc {
  text-align: center;
  color: rgba(26, 22, 40, 0.7);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.feature-grid,
.features .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.2s;
}

.features .feature-grid .feature-card {
  opacity: 0;
  transform: translateY(24px);
}

.features .feature-grid.is-inview .feature-card {
  opacity: 1;
  transform: translateY(0);
}

.features .feature-grid.is-inview .feature-card:nth-child(1) { transition-delay: 0s; }
.features .feature-grid.is-inview .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features .feature-grid.is-inview .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features .feature-grid.is-inview .feature-card:nth-child(4) { transition-delay: 0.24s; }

.features .feature-card {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.features .feature-grid.is-inview .feature-card:hover {
  transform: translateY(-4px);
}

.features .feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.features .feature-card h3 {
  color: #1a1628;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features .feature-card p {
  color: rgba(26, 22, 40, 0.75);
}

/* ---------- Download ---------- */
.download {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.download-slogan {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-slogan .section-title {
  margin-bottom: 16px;
}

.download-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 160px;
  background: var(--bg-card);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px var(--shadow-strong);
}

.download-card[data-platform="macos"] {
  opacity: 0.85;
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.download-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}

.download-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.download-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 60px 0;
  background: var(--bg-elevated);
}

.review-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.review-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 16px 48px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(167, 139, 250, 0.25),
    0 0 100px rgba(167, 139, 250, 0.12);
}

.review-stars {
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.review-author {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 768px) {
  .review-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 24px;
  background: #15121f;
  color: rgba(255, 255, 255, 0.9);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.logo-small img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .feature-grid,
  .features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 56px 0 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .download-card {
    width: 100%;
    max-width: 260px;
  }
}
