/* === 自定义大厂风格CSS === */
/* 设计方向：克制极简，对标Apple/Tencent - 干净、专业、高端 */
/* 色彩：oklch中性色偏品牌蓝(#4A8CFD)，避免纯黑纯白和AI渐变 */

:root {
  --brand: #4A8CFD;
  --brand-dark: #3A6ED8;
  --brand-subtle: oklch(0.85 0.08 260);
  --surface: oklch(0.97 0.005 260);
  --surface-alt: oklch(0.94 0.008 260);
  --surface-raised: oklch(1.0 0.0 0);
  --text-primary: oklch(0.22 0.01 260);
  --text-secondary: oklch(0.45 0.01 260);
  --text-tertiary: oklch(0.65 0.01 260);
  --border: oklch(0.90 0.005 260);
  --border-subtle: oklch(0.94 0.003 260);
  --radius: clamp(6px, 0.4vw, 12px);
  --radius-lg: clamp(12px, 0.8vw, 24px);
  --space-xs: clamp(4px, 0.3vw, 8px);
  --space-sm: clamp(8px, 0.5vw, 16px);
  --space-md: clamp(16px, 1vw, 32px);
  --space-lg: clamp(32px, 2vw, 64px);
  --space-xl: clamp(48px, 3vw, 96px);
  --space-2xl: clamp(64px, 4vw, 128px);
}

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  font-size: clamp(14px, 0.9vw, 17px);
  overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 3.5vw, 56px); }
h2 { font-size: clamp(24px, 2.5vw, 40px); }
h3 { font-size: clamp(20px, 1.8vw, 28px); }

/* === Navigation === */
.zsos-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: color-mix(in oklch, var(--surface-raised) 85%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-lg);
  transition: background 0.3s ease-out-quart;
}

.zsos-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.zsos-logo {
  display: flex; align-items: center; gap: var(--space-xs);
  font-weight: 700; font-size: clamp(18px, 1.2vw, 24px);
  color: var(--text-primary); text-decoration: none;
}

.zsos-logo-icon {
  width: clamp(28px, 1.8vw, 36px); height: clamp(28px, 1.8vw, 36px);
  background: var(--brand); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: clamp(14px, 0.8vw, 18px);
}

.zsos-nav-links {
  display: flex; align-items: center; gap: var(--space-md);
  list-style: none;
}

.zsos-nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: clamp(13px, 0.8vw, 15px); font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.zsos-nav-links a:hover {
  color: var(--text-primary); background: var(--surface-alt);
}

.zsos-nav-provider-btn {
  background: var(--brand); color: white;
  font-weight: 600; font-size: clamp(12px, 0.7vw, 14px);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}

.zsos-nav-provider-btn:hover {
  background: var(--brand-dark); transform: translateY(-1px);
}

/* === Hero Section === */
.zsos-hero {
  min-height: clamp(500px, 70vh, 800px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--surface-raised) 0%, var(--brand-subtle) 50%, var(--surface) 100%);
}

.zsos-hero-content {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl);
  align-items: center;
}

.zsos-hero-text { max-width: 560px; }

.zsos-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in oklch, var(--brand) 12%, var(--surface-raised));
  border: 1px solid color-mix(in oklch, var(--brand) 20%, transparent);
  padding: 6px 14px; border-radius: 100px;
  font-size: clamp(12px, 0.7vw, 14px); font-weight: 500;
  color: var(--brand); margin-bottom: var(--space-md);
}

.zsos-hero-title {
  font-weight: 700; margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.zsos-hero-title span { color: var(--brand); }

.zsos-hero-desc {
  color: var(--text-secondary); font-size: clamp(15px, 0.9vw, 18px);
  margin-bottom: var(--space-lg); max-width: 480px;
}

.zsos-hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.zsos-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: clamp(10px, 0.6vw, 14px) clamp(20px, 1.2vw, 28px);
  border-radius: var(--radius); font-weight: 600;
  font-size: clamp(14px, 0.8vw, 16px);
  text-decoration: none; cursor: pointer;
  transition: all 0.2s ease-out-quart; border: none;
}

.zsos-btn-primary {
  background: var(--brand); color: white;
}
.zsos-btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }

.zsos-btn-secondary {
  background: var(--surface-raised); color: var(--text-primary);
  border: 1px solid var(--border);
}
.zsos-btn-secondary:hover { background: var(--surface-alt); border-color: var(--text-tertiary); }

.zsos-hero-visual {
  display: flex; justify-content: center; align-items: center;
}

.zsos-hero-card {
  width: clamp(300px, 25vw, 480px);
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-md);
  box-shadow: 0 4px 24px oklch(0.2 0 0 / 0.08), 0 1px 4px oklch(0.2 0 0 / 0.04);
  position: relative;
}

.zsos-hero-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-md);
}

.zsos-hero-card-dot {
  width: 8px; height: 8px; border-radius: 50%; background: oklch(0.6 0.15 140);
}

.zsos-hero-card-code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: clamp(11px, 0.65vw, 13px);
  background: var(--surface-alt); border-radius: var(--radius);
  padding: var(--space-md);
  color: var(--text-secondary); line-height: 1.8;
  overflow: hidden;
}

.zsos-hero-card-code .key { color: var(--brand); }
.zsos-hero-card-code .val { color: oklch(0.45 0.12 140); }
.zsos-hero-card-code .str { color: oklch(0.55 0.15 30); }
.zsos-hero-card-code .comment { color: var(--text-tertiary); }

/* === Sections === */
.zsos-section {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1200px; margin: 0 auto;
}

.zsos-section-header {
  text-align: center; margin-bottom: var(--space-xl);
}

.zsos-section-header h2 { margin-bottom: var(--space-sm); }

.zsos-section-header p {
  color: var(--text-secondary); font-size: clamp(15px, 0.9vw, 17px);
  max-width: 600px; margin: 0 auto;
}

.zsos-section-label {
  display: inline-block; font-size: clamp(12px, 0.7vw, 14px);
  color: var(--brand); font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: var(--space-xs);
}

/* === Features Grid === */
.zsos-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.zsos-feature-card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  transition: transform 0.2s ease-out-quart, box-shadow 0.2s;
}

.zsos-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px oklch(0.2 0 0 / 0.08);
}

.zsos-feature-icon {
  width: clamp(40px, 2.5vw, 48px); height: clamp(40px, 2.5vw, 48px);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--brand) 10%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: clamp(18px, 1.1vw, 22px);
  margin-bottom: var(--space-md);
}

.zsos-feature-card h3 {
  font-size: clamp(16px, 1vw, 20px); margin-bottom: var(--space-xs);
}

.zsos-feature-card p {
  color: var(--text-secondary); font-size: clamp(13px, 0.8vw, 15px);
}

/* === Value Section === */
.zsos-value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.zsos-value-card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  display: flex; gap: var(--space-md);
}

.zsos-value-card-icon {
  width: clamp(48px, 3vw, 64px); height: clamp(48px, 3vw, 64px);
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(20px, 1.2vw, 28px);
  flex-shrink: 0;
}

.zsos-value-card-content h3 {
  font-size: clamp(16px, 1vw, 20px);
  margin-bottom: var(--space-xs);
}

.zsos-value-card-content p {
  color: var(--text-secondary); font-size: clamp(13px, 0.8vw, 15px);
}

/* === Pricing Section === */
.zsos-pricing {
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
  padding: var(--space-2xl) var(--space-lg);
}

.zsos-pricing-inner {
  max-width: 1200px; margin: 0 auto;
}

.zsos-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.zsos-pricing-card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.2s ease-out-quart, box-shadow 0.2s;
}

.zsos-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px oklch(0.2 0 0 / 0.08);
}

.zsos-pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 4px 24px oklch(0.55 0.15 260 / 0.15);
}

.zsos-pricing-badge {
  display: inline-block;
  background: var(--brand); color: white;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.zsos-pricing-card h3 {
  font-size: clamp(18px, 1.1vw, 24px);
  margin-bottom: var(--space-sm);
}

.zsos-pricing-price {
  font-size: clamp(28px, 2vw, 40px); font-weight: 700;
  color: var(--text-primary); margin-bottom: var(--space-xs);
}

.zsos-pricing-price .currency { font-size: clamp(16px, 1vw, 22px); }
.zsos-pricing-price .period { font-size: clamp(12px, 0.7vw, 14px); color: var(--text-tertiary); font-weight: 400; }

.zsos-pricing-target {
  color: var(--text-tertiary); font-size: clamp(13px, 0.8vw, 15px);
  margin-bottom: var(--space-md);
}

.zsos-pricing-features {
  list-style: none; margin-bottom: var(--space-lg);
  text-align: left;
}

.zsos-pricing-features li {
  display: flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-xs) 0;
  font-size: clamp(13px, 0.8vw, 15px);
  color: var(--text-secondary);
}

.zsos-pricing-features li i {
  color: var(--brand); font-size: clamp(12px, 0.7vw, 14px);
  width: 16px;
}

.zsos-pricing-btn {
  width: 100%;
  background: var(--surface-alt); color: var(--text-primary);
  border: 1px solid var(--border);
  padding: clamp(10px, 0.6vw, 14px);
  border-radius: var(--radius); font-weight: 600;
  font-size: clamp(14px, 0.8vw, 16px);
  cursor: pointer; transition: all 0.2s;
}

.zsos-pricing-btn:hover {
  background: var(--brand); color: white; border-color: var(--brand);
}

.zsos-pricing-card.featured .zsos-pricing-btn {
  background: var(--brand); color: white; border-color: var(--brand);
}

.zsos-pricing-card.featured .zsos-pricing-btn:hover {
  background: var(--brand-dark);
}

/* === Apply Section === */
.zsos-apply {
  background: var(--surface-raised);
  padding: var(--space-2xl) var(--space-lg);
}

.zsos-apply-inner {
  max-width: 720px; margin: 0 auto;
}

.zsos-form-group {
  margin-bottom: var(--space-md);
}

.zsos-form-group label {
  display: block; font-weight: 500; font-size: clamp(13px, 0.8vw, 15px);
  color: var(--text-primary); margin-bottom: var(--space-xs);
}

.zsos-form-group label .required { color: var(--brand); }

.zsos-form-control {
  width: 100%;
  padding: clamp(10px, 0.6vw, 14px) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: clamp(14px, 0.85vw, 16px);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s;
  font-family: inherit;
}

.zsos-form-control:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 15%, transparent);
}

.zsos-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.zsos-form-submit {
  width: 100%;
  background: var(--brand); color: white;
  padding: clamp(12px, 0.7vw, 16px);
  border-radius: var(--radius); font-weight: 600;
  font-size: clamp(15px, 0.9vw, 17px);
  cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s;
}

.zsos-form-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.zsos-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === Footer === */
.zsos-footer {
  background: oklch(0.15 0.01 260);
  color: oklch(0.7 0.01 260);
  padding: var(--space-lg) var(--space-lg);
}

.zsos-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
}

.zsos-footer-links {
  display: flex; gap: var(--space-md); list-style: none;
}

.zsos-footer-links a {
  color: oklch(0.7 0.01 260); text-decoration: none;
  font-size: clamp(13px, 0.8vw, 15px);
  transition: color 0.2s;
}

.zsos-footer-links a:hover { color: oklch(0.9 0.01 260); }

.zsos-footer-copy {
  font-size: clamp(12px, 0.7vw, 14px); color: oklch(0.5 0.01 260);
}

/* === Responsive === */
@media (max-width: 768px) {
  .zsos-hero-content { grid-template-columns: 1fr; }
  .zsos-hero-visual { display: none; }
  .zsos-features-grid { grid-template-columns: 1fr; }
  .zsos-value-grid { grid-template-columns: 1fr; }
  .zsos-pricing-grid { grid-template-columns: 1fr; }
  .zsos-form-row { grid-template-columns: 1fr; }
  .zsos-nav-links { display: none; }
  
  .zsos-mobile-nav-toggle {
    display: flex; background: none; border: none;
    color: var(--text-primary); font-size: 20px; cursor: pointer;
  }
}

@media (min-width: 769px) {
  .zsos-mobile-nav-toggle { display: none; }
}

/* === Toast === */
.zsos-toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: var(--space-lg); border-radius: var(--radius-lg);
  text-align: center; z-index: 10000;
  box-shadow: 0 8px 32px oklch(0.2 0 0 / 0.15);
  animation: zsos-fade-in 0.3s ease-out-quart;
}

.zsos-toast-success { background: oklch(0.45 0.15 140); color: white; }
.zsos-toast-error { background: oklch(0.5 0.2 25); color: white; }

.zsos-toast h3 { margin-bottom: var(--space-xs); }
.zsos-toast p { font-size: clamp(13px, 0.8vw, 15px); }

@keyframes zsos-fade-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* === Confirm Modal === */
.zsos-confirm-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: oklch(0.2 0 0 / 0.5); z-index: 9999;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.zsos-confirm-modal.active { display: flex; }

.zsos-confirm-modal-content {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 500px; width: 90%;
  box-shadow: 0 16px 48px oklch(0.2 0 0 / 0.2);
}

.zsos-confirm-modal-content h3 {
  border-bottom: 2px solid var(--brand);
  padding-bottom: var(--space-sm); margin-bottom: var(--space-md);
}

.zsos-confirm-item {
  padding: var(--space-xs) 0;
  font-size: clamp(14px, 0.85vw, 16px);
}

.zsos-confirm-item strong {
  color: var(--text-tertiary); font-weight: 500;
  min-width: 80px; display: inline-block;
}

.zsos-confirm-actions {
  display: flex; gap: var(--space-sm);
  justify-content: flex-end; margin-top: var(--space-md);
}

.zsos-confirm-cancel {
  background: var(--surface-alt); color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; font-size: clamp(13px, 0.8vw, 15px);
  transition: all 0.2s;
}

.zsos-confirm-submit {
  background: var(--brand); color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius); border: none;
  cursor: pointer; font-weight: 600;
  font-size: clamp(13px, 0.8vw, 15px);
  transition: all 0.2s;
}

.zsos-confirm-cancel:hover { background: var(--border); }
.zsos-confirm-submit:hover { background: var(--brand-dark); }

/* === Video Modal === */
.zsos-video-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: oklch(0.1 0 0 / 0.85); z-index: 10001;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}

.zsos-video-modal.active { display: flex; }

.zsos-video-modal-content {
  width: 90%; max-width: 800px; border-radius: var(--radius-lg);
  background: oklch(0.12 0 0); overflow: hidden;
  box-shadow: 0 16px 64px oklch(0.1 0 0 / 0.4);
}

.zsos-video-modal-close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  background: oklch(0.3 0 0); color: white;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 18px;
  transition: background 0.2s;
}

.zsos-video-modal-close:hover { background: oklch(0.4 0 0); }

.zsos-video-modal video {
  width: 100%; display: block;
}

/* === Scroll Top === */
.zsos-scroll-top {
  position: fixed; bottom: var(--space-lg); right: var(--space-lg);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 16px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 100;
}

.zsos-scroll-top.visible { opacity: 1; transform: translateY(0); }
.zsos-scroll-top:hover { background: var(--brand-dark); }

/* === Brand Slider === */
.zsos-brand-section { padding: var(--space-lg) var(--space-lg); }

.zsos-brand-section-inner {
  max-width: 1200px; margin: 0 auto;
  text-align: center;
}

.zsos-brand-section h5 {
  color: var(--text-tertiary); font-size: clamp(13px, 0.8vw, 15px);
  margin-bottom: var(--space-md);
}

.zsos-brand-slider {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-lg); overflow: hidden;
}

.zsos-brand-item {
  opacity: 0.6; transition: opacity 0.2s;
}

.zsos-brand-item:hover { opacity: 1; }

.zsos-brand-item img {
  height: clamp(32px, 2vw, 48px);
  filter: grayscale(100%); transition: filter 0.2s;
}

.zsos-brand-item:hover img { filter: grayscale(0%); }
