/* ============================================
   Chrome 安全下载站 - 全局样式表
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Google Sans", "Roboto", system-ui, sans-serif;
  color: #202124;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #DADCE0;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: #202124;
  letter-spacing: -0.01em;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: #5F6368;
  transition: color 0.25s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #1A73E8;
}

.nav-menu a.active {
  color: #1A73E8;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1A73E8;
}

.nav-download-btn {
  background: #1A73E8;
  color: #FFF;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-download-btn:hover {
  background: #1557B0;
  transform: translateY(-2px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   Hero 区域
   ============================================ */

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 0% 0%, #E8F0FE 0%, #FFFFFF 60%);
  overflow: hidden;
  padding: 80px 0;
}

.hero-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: #202124;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-content .subtitle {
  font-size: 18px;
  color: #5F6368;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1A73E8;
  color: #FFF;
  padding: 16px 36px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}

.hero-cta:hover {
  background: #1557B0;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 115, 232, 0.4);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-platforms span {
  font-size: 13px;
  color: #80868B;
}

.hero-platforms .platform-icons {
  display: flex;
  gap: 12px;
}

.hero-platforms .platform-icons svg {
  width: 22px;
  height: 22px;
  color: #5F6368;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

/* ============================================
   板块通用样式
   ============================================ */

.section {
  padding: 100px 0;
}

.section-alt {
  background: #F8F9FA;
}

.section-dark {
  background: #202124;
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: inherit;
}

.section-header p {
  font-size: 17px;
  color: #5F6368;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: #9AA0A6;
}

/* ============================================
   特性卡片
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #DADCE0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #1A73E8;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #202124;
}

.feature-card p {
  font-size: 14px;
  color: #5F6368;
  line-height: 1.7;
}

/* ============================================
   平台下载卡片
   ============================================ */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: transparent;
}

.platform-icon svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.platform-card .version {
  font-size: 13px;
  color: #80868B;
  margin-bottom: 16px;
}

.platform-card .requirements {
  font-size: 12px;
  color: #9AA0A6;
  margin-bottom: 20px;
  line-height: 1.5;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.platform-btn.primary {
  background: #1A73E8;
  color: #FFF;
}

.platform-btn.primary:hover {
  background: #1557B0;
  transform: translateY(-2px);
}

.platform-btn.secondary {
  background: #F1F3F4;
  color: #202124;
}

.platform-btn.secondary:hover {
  background: #E8EAED;
}

/* ============================================
   图文交替功能介绍
   ============================================ */

.feature-detail {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.feature-detail:last-child {
  margin-bottom: 0;
}

.feature-detail.reverse {
  flex-direction: row-reverse;
}

.feature-detail-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-detail-image img {
  width: 100%;
  border-radius: 12px;
}

.feature-detail-text {
  flex: 1;
}

.feature-detail-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-detail-text p {
  font-size: 16px;
  color: #5F6368;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================
   数据统计区
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 15px;
  color: #9AA0A6;
}

/* ============================================
   用户评价
   ============================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #DADCE0;
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  color: #FBBC04;
  fill: #FBBC04;
}

.review-card p {
  font-size: 15px;
  color: #5F6368;
  line-height: 1.7;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8F0FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #1A73E8;
}

.review-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

/* ============================================
   浏览器对比表格
   ============================================ */

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #DADCE0;
}

.comparison-table th {
  font-weight: 600;
  color: #202124;
  background: #F8F9FA;
}

.comparison-table td {
  color: #5F6368;
}

.comparison-table .col-chrome {
  background: #E8F0FE;
  font-weight: 600;
  color: #1A73E8;
}

.comparison-table .check-yes {
  color: #34A853;
  font-weight: 600;
}

.comparison-table .check-no {
  color: #EA4335;
}

.comparison-table .check-partial {
  color: #FBBC04;
}

/* ============================================
   FAQ 手风琴
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  border: 1px solid #DADCE0;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #202124;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: #F8F9FA;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: #5F6368;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: #5F6368;
  line-height: 1.8;
}

/* ============================================
   下载页专用样式
   ============================================ */

.download-hero {
  background: radial-gradient(ellipse at 50% 0%, #E8F0FE 0%, #FFFFFF 70%);
  padding: 80px 0 60px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-hero .version-info {
  color: #5F6368;
  margin-bottom: 8px;
  font-size: 15px;
}

.download-hero .file-info {
  color: #80868B;
  font-size: 13px;
  margin-bottom: 32px;
}

.download-hero .download-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1A73E8;
  color: #FFF;
  padding: 18px 40px;
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.download-hero .download-main-btn:hover {
  background: #1557B0;
  transform: translateY(-2px);
}

.download-hero .terms-note {
  margin-top: 20px;
  font-size: 13px;
  color: #80868B;
}

.download-hero .terms-note a {
  color: #1A73E8;
  text-decoration: underline;
}

/* 安装指南 */
.install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.install-tab {
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #DADCE0;
  background: #FFFFFF;
  color: #5F6368;
  cursor: pointer;
  transition: all 0.25s ease;
}

.install-tab.active {
  background: #1A73E8;
  color: #FFF;
  border-color: #1A73E8;
}

.install-tab:hover:not(.active) {
  background: #F8F9FA;
}

.install-content {
  display: none;
}

.install-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-steps {
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: -16px;
  width: 2px;
  background: #DADCE0;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1A73E8;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 9px;
}

.step-content p {
  font-size: 15px;
  color: #5F6368;
  line-height: 1.7;
}

/* 系统要求 */
.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sysreq-card {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  padding: 28px;
}

.sysreq-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sysreq-card h4 svg {
  width: 22px;
  height: 22px;
  color: #1A73E8;
}

.sysreq-card ul {
  list-style: none;
  font-size: 14px;
  color: #5F6368;
  line-height: 2;
}

.sysreq-card ul li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #F1F3F4;
  padding: 4px 0;
}

.sysreq-card ul li:last-child {
  border-bottom: none;
}

.sysreq-card ul li span:first-child {
  color: #80868B;
}

/* 版本更新日志 */
.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  border: 1px solid #DADCE0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #FFFFFF;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.changelog-header:hover {
  background: #F8F9FA;
}

.changelog-version {
  font-weight: 600;
  font-size: 15px;
  color: #202124;
}

.changelog-date {
  font-size: 13px;
  color: #80868B;
}

.changelog-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.changelog-item.active .changelog-body {
  max-height: 300px;
}

.changelog-body-inner {
  padding: 0 24px 18px;
  font-size: 14px;
  color: #5F6368;
  line-height: 1.8;
}

.changelog-body-inner ul {
  list-style: disc;
  padding-left: 20px;
}

/* 安全下载提示 */
.security-notice {
  background: #E8F5E9;
  border: 1px solid #34A853;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.security-notice svg {
  width: 24px;
  height: 24px;
  color: #34A853;
  flex-shrink: 0;
}

.security-notice h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1B5E20;
}

.security-notice p {
  font-size: 14px;
  color: #2E7D32;
  line-height: 1.7;
}

/* ============================================
   中文版专用
   ============================================ */

.seo-hero {
  background: radial-gradient(ellipse at 100% 0%, #E8F0FE 0%, #FFFFFF 60%);
  padding: 100px 0 80px;
}

.seo-hero .container {
  max-width: 800px;
  text-align: center;
}

.seo-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.seo-hero .subtitle {
  font-size: 17px;
  color: #5F6368;
  line-height: 1.8;
  margin-bottom: 36px;
}

.seo-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 60px 0 24px;
  letter-spacing: -0.02em;
}

.seo-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
}

.seo-content p {
  font-size: 16px;
  color: #5F6368;
  line-height: 1.8;
  margin-bottom: 16px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.tip-card {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  padding: 24px;
}

.tip-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #202124;
}

.tip-card p {
  font-size: 14px;
  color: #5F6368;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   页脚
   ============================================ */

.footer {
  background: #F8F9FA;
  border-top: 1px solid #DADCE0;
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: #5F6368;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1A73E8;
}

.footer-bottom {
  border-top: 1px solid #DADCE0;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: #80868B;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-check svg {
  width: 16px;
  height: 16px;
  color: #34A853;
}

.footer-check span {
  font-size: 13px;
  color: #34A853;
  font-weight: 500;
}

/* ============================================
   Loading 动画
   ============================================ */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 1024px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-platforms {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    transform: none;
    max-width: 400px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .feature-detail {
    flex-direction: column !important;
    gap: 32px;
  }

  .feature-detail-image,
  .feature-detail-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .nav-download-btn {
    display: none;
  }

  .navbar {
    height: 56px;
  }

  .section {
    padding: 60px 0;
  }

  .feature-grid,
  .platform-grid,
  .reviews-grid,
  .stats-grid,
  .faq-grid,
  .sysreq-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  padding: 32px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 24px;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: #202124;
}

.mobile-menu a.active {
  color: #1A73E8;
}
