/* ==========================================================================
   上分自动化系统（官网shangfen.vip）- 官方网站核心样式表
   Design System: Apple-like Light Theme（纯白背景 · 大留白 · 柔和阴影）
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 113, 227, 0.35);
  --accent-cyan: #0071e3;
  --accent-blue: #0071e3;
  --accent-emerald: #34c759;
  --accent-purple: #5e5ce6;
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --gradient-brand: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
  --gradient-btn: #0071e3;
  --gradient-btn-hover: #0077ed;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation（毛玻璃导航，Apple 官网同款处理）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
}

.logo-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   Buttons（胶囊形按钮，Apple 蓝）
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: transparent;
}

.btn-secondary:hover {
  background: #e8e8ed;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 999px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-title-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Software Mockup Preview（软件窗口预览：macOS 红黄绿 + 柔和投影）
   ========================================================================== */
.mockup-wrap {
  margin-top: 64px;
  position: relative;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-window {
  background: #0d1424;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mockup-titlebar {
  background: #1c1c1e;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2c2c2e;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.mockup-title {
  font-size: 12px;
  color: #98989d;
  font-family: "SF Mono", "Consolas", monospace;
  letter-spacing: -0.01em;
}

.mockup-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  text-align: left;
}

.mockup-box-title {
  font-size: 13px;
  font-weight: 600;
  color: #2997ff;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.mockup-box {
  background: #050811;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
  color: #cbd5e1;
}

.mockup-log-item {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.log-cyan { color: #2997ff; font-weight: bold; }
.log-green { color: #30d158; }
.log-purple { color: #bf5af2; }
.log-amber { color: #ffd60a; }
.log-muted { color: #98989d; }

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: var(--shadow-card);
}

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

.feature-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  font-family: "SF Mono", "Consolas", monospace;
  margin-bottom: 16px;
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: var(--radius-sm);
}

.feature-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Workflow Steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.cta-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 32px;
  background: var(--bg-secondary);
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .features-grid, .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 42px;
  }
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .features-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 64px 0 48px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .cta-banner {
    padding: 48px 24px;
  }
  .cta-banner h2 {
    font-size: 28px;
  }
}
