/* ========================================
   Chrome 下载站 - 渐变玻璃拟态风格
   ======================================== */

:root {
  --primary: #4285f4;
  --primary-dark: #1a73e8;
  --secondary: #34a853;
  --accent: #ea4335;
  --warning: #fbbc05;
  --bg-dark: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 40px rgba(66, 133, 244, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   导航栏
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--primary);
}

/* ========================================
   通用容器
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ========================================
   玻璃卡片
   ======================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow), var(--glow-primary);
}

/* ========================================
   按钮样式
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.5);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d9348 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(52, 168, 83, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 168, 83, 0.5);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.125rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Hero 区域
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(66, 133, 244, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(52, 168, 83, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 2%) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--warning) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.browser-mockup {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow), var(--glow-primary);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--glass-border);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: var(--accent); }
.browser-dots span:nth-child(2) { background: var(--warning); }
.browser-dots span:nth-child(3) { background: var(--secondary); }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-url svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
}

.browser-body {
  padding: 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.browser-body svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.browser-body h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.browser-body p {
  color: var(--text-secondary);
}

/* ========================================
   特性网格
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   平台下载区
   ======================================== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  text-align: center;
  padding: 40px 24px;
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ========================================
   评论区
   ======================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 32px;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 20px;
  height: 20px;
  color: var(--warning);
  fill: var(--warning);
}

.review-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.review-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.review-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   FAQ 区域
   ======================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
  border-radius: 16px 16px 0 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   下载页特殊样式
   ======================================== */

.download-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
}

.download-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.main-download {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 48px;
}

.main-download-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.main-download h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.main-download p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.download-info-item {
  text-align: center;
}

.download-info-item span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.download-info-item strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.other-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.other-platform-card {
  text-align: center;
  padding: 32px 24px;
}

.other-platform-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.other-platform-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.other-platform-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ========================================
   安装步骤
   ======================================== */

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
}

/* ========================================
   系统要求
   ======================================== */

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.requirements-table th,
.requirements-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.requirements-table th {
  background: var(--glass-bg);
  font-weight: 600;
  color: var(--text-primary);
}

.requirements-table td {
  color: var(--text-secondary);
}

.requirements-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* ========================================
   SEO 页面样式
   ======================================== */

.article-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
}

.article-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.article-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-section ul {
  list-style: none;
  margin-bottom: 20px;
}

.article-section li {
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.article-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--glass-bg);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  background: rgba(66, 133, 244, 0.2);
  font-weight: 600;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin-top: 60px;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.cta-box .btn {
  background: white;
  color: var(--primary-dark);
}

.cta-box .btn:hover {
  background: var(--text-primary);
}

/* ========================================
   版本更新
   ======================================== */

.version-list {
  margin-top: 24px;
}

.version-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}

.version-badge {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  height: fit-content;
}

.version-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.version-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   页脚
   ======================================== */

.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-text .verify {
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-text .verify svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   动画
   ======================================== */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 64px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .platforms-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .other-platforms {
    grid-template-columns: 1fr;
  }

  .download-info {
    flex-direction: column;
    gap: 16px;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .glass-card {
    padding: 24px;
    border-radius: 16px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .browser-body {
    padding: 24px;
    min-height: 200px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }
}
