/* 简Deploy 官网 — 扁平、层次、可读 */

:root {
  --bg: #f4f6f9;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --accent: #0d6efd;
  --accent-soft: #e8f1ff;
  --accent-dark: #084298;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 35, 50, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Noto Sans SC", "DM Sans", system-ui, -apple-system, sans-serif;
  --font-en: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.nav-toggle::before {
  top: 14px;
  box-shadow: 0 6px 0 var(--text);
}

.nav-toggle::after {
  bottom: 14px;
  opacity: 0;
}

.nav-toggle.is-open::before {
  top: 19px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle.is-open::after {
  opacity: 1;
  bottom: auto;
  top: 19px;
  transform: rotate(-45deg);
}

/* User Bar */
.user-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-info {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.user-info.is-active {
  display: flex;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.user-name:hover {
  color: var(--accent);
}

.btn-ghost-light {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 0.4rem 0.75rem;
}

.btn-ghost-light:hover {
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .user-bar {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 40;
  }

  .nav.is-open ~ .user-bar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    inset: 104px 0 auto 0;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #0b1220 0%, #1a2d4a 45%, #243b53 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(13, 110, 253, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(90deg, #7eb8ff, #b8d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(232, 238, 247, 0.88);
  margin: 0 0 2rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  color: #e8eef7;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 280px;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.hero-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.hero-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-card-text strong {
  font-size: 0.95rem;
  color: #fff;
}

.hero-card-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-cards {
    width: 100%;
    max-width: 360px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
}

.stat {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head--light .section-label {
  color: #9ec5ff;
}

.section-head--light h2,
.section-head--light p {
  color: #e8eef7;
}

/* Products */
.section-products {
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-card--link {
  cursor: pointer;
}

.product-card--live {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(16, 185, 129, 0.15), 0 4px 20px rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, var(--bg-card) 100%);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}

.product-badge--live {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #f1f4f8;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
}

.product-card--live .product-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.product-icon--muted {
  background: #f1f4f8;
  color: var(--text-muted);
}

.product-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.product-stack {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.product-desc {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.product-features {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-features li {
  margin-bottom: 0.35rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Why */
.section-why {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  color: #e8eef7;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.why-step {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: #7eb8ff;
  margin-bottom: 0.5rem;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 238, 247, 0.82);
}

/* Purchase */
.section-purchase {
  background: #fff;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.purchase-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}

.purchase-features .disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

.purchase-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.purchase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.purchase-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.1);
}

.purchase-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.purchase-header {
  margin-bottom: 1.25rem;
}

.purchase-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.purchase-price {
  font-family: var(--font-en);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
}

.purchase-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.purchase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.purchase-features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.purchase-card .btn {
  width: 100%;
}

.purchase-note {
  text-align: center;
  margin-bottom: 1.5rem;
}

.purchase-note p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.purchase-note a {
  color: var(--accent);
}

.purchase-links {
  text-align: center;
}

.purchase-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.purchase-item {
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.purchase-item h3 {
  margin: 0 0 0.5rem;
}

.purchase-item p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.section-about {
  background: var(--bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.about-copy h2 {
  margin: 0.35rem 0 1rem;
  font-size: 1.75rem;
}

.about-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-note {
  font-size: 0.9rem;
}

.about-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1px;
}

.about-panel-inner {
  padding: 1.5rem;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.about-panel-inner strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 1rem;
}

.about-panel-inner strong:first-child {
  margin-top: 0;
}

.about-panel-inner p {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

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

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.5rem;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.modal-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-qr-wrap {
  display: inline-block;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.modal-footer-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-copy-tip {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.modal-copy-tip a {
  color: var(--accent);
  text-decoration: none;
}

.modal-copy-tip a:hover {
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}
