/* style.css - 谷歌浏览器网站样式 */
:root {
  --primary-color: #4285f4;
  --primary-dark: #3367d6;
  --secondary-color: #34a853;
  --accent-color: #ea4335;
  --warning-color: #fbbc05;
  --dark-color: #202124;
  --light-color: #f8f9fa;
  --gray-color: #5f6368;
  --light-gray: #dadce0;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Google Sans", "Roboto", sans-serif;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.3);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.2rem;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo i {
  color: var(--primary-color);
  font-size: 2rem;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
}

/* 英雄区域样式 */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--gray-color);
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.chrome-window {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.chrome-window:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.window-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f1f3f4;
  border-bottom: 1px solid var(--light-gray);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control.red {
  background-color: #ff5f56;
}

.control.yellow {
  background-color: #ffbd2e;
}

.control.green {
  background-color: #27ca3f;
}

.window-url {
  flex: 1;
  background-color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--gray-color);
  border: 1px solid var(--light-gray);
}

.window-content {
  padding: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  transition: var(--transition);
}

.grid-item:hover {
  transform: translateY(-5px);
  background-color: #e8f0fe;
}

.grid-item i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.grid-item.ai-icon i {
  color: var(--primary-color);
}

.grid-item.speed-icon i {
  color: var(--secondary-color);
}

.grid-item.security-icon i {
  color: var(--accent-color);
}

.grid-item.sync-icon i {
  color: var(--warning-color);
}

/* 功能卡片样式 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:nth-child(1):hover {
  border-top-color: var(--primary-color);
}

.feature-card:nth-child(2):hover {
  border-top-color: var(--secondary-color);
}

.feature-card:nth-child(3):hover {
  border-top-color: var(--accent-color);
}

.feature-card:nth-child(4):hover {
  border-top-color: var(--warning-color);
}

.feature-card:nth-child(5):hover {
  border-top-color: #4285f4;
}

.feature-card:nth-child(6):hover {
  border-top-color: #34a853;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.feature-card:nth-child(1) .feature-icon {
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary-color);
}

.feature-card:nth-child(2) .feature-icon {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--secondary-color);
}

.feature-card:nth-child(3) .feature-icon {
  background-color: rgba(234, 67, 53, 0.1);
  color: var(--accent-color);
}

.feature-card:nth-child(4) .feature-icon {
  background-color: rgba(251, 188, 5, 0.1);
  color: var(--warning-color);
}

.feature-card:nth-child(5) .feature-icon {
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary-color);
}

.feature-card:nth-child(6) .feature-icon {
  background-color: rgba(52, 168, 83, 0.1);
  color: var(--secondary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* 核心功能区域样式 */
.core-section {
  background-color: #f8f9fa;
}

.core-feature {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.core-feature.reverse {
  flex-direction: row-reverse;
}

.core-feature.reverse .core-content {
  padding-left: 0;
  padding-right: 60px;
}

.core-content {
  flex: 1;
  min-width: 300px;
  padding-right: 60px;
}

.core-feature h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.core-feature h3 i {
  margin-right: 15px;
  color: var(--primary-color);
}

.core-feature p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--gray-color);
}

.feature-details {
  list-style: none;
}

.feature-details li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.feature-details li i {
  color: var(--secondary-color);
  margin-right: 10px;
}

.core-image {
  flex: 1;
  min-width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speed-visualization {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  height: 200px;
}

.speed-bar {
  width: 40px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

.speed-bar.fast {
  height: 120px;
  background-color: var(--primary-color);
  animation-delay: 0s;
}

.speed-bar.faster {
  height: 160px;
  background-color: var(--secondary-color);
  animation-delay: 0.5s;
}

.speed-bar.fastest {
  height: 200px;
  background-color: var(--accent-color);
  animation-delay: 1s;
}

.security-visualization {
  position: relative;
  width: 200px;
  height: 200px;
}

.shield {
  width: 200px;
  height: 200px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  animation: pulse 2s infinite;
  box-shadow:
    0 0 0 15px rgba(66, 133, 244, 0.1),
    0 0 0 30px rgba(66, 133, 244, 0.05);
}

.devices-visualization {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  height: 200px;
}

.device {
  border-radius: 10px;
  background-color: var(--dark-color);
  position: relative;
}

.device.phone {
  width: 60px;
  height: 120px;
  animation: float 4s infinite ease-in-out;
}

.device.tablet {
  width: 100px;
  height: 140px;
  animation: float 4s infinite ease-in-out 0.5s;
}

.device.laptop {
  width: 140px;
  height: 100px;
  animation: float 4s infinite ease-in-out 1s;
}

.device::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 5px;
  background-color: var(--gray-color);
  border-radius: 3px;
}

/* 统计数据样式 */
.stats-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
}

.stats-section .section-title {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 平台支持样式 */
.platforms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.platform-item {
  text-align: center;
  padding: 30px 20px;
  width: 150px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: white;
  box-shadow: var(--shadow);
}

.platform-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-item i {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: block;
}

.platform-item:nth-child(1) i {
  color: #0078d6; /* Windows 蓝 */
}

.platform-item:nth-child(2) i {
  color: #000; /* Apple 黑 */
}

.platform-item:nth-child(3) i {
  color: #fcc624; /* Linux 黄 */
}

.platform-item:nth-child(4) i {
  color: #3ddc84; /* Android 绿 */
}

.platform-item:nth-child(5) i {
  color: #007aff; /* iOS 蓝 */
}

.platform-item:nth-child(6) i {
  color: #db4437; /* Chrome 红 */
}

.platform-item h4 {
  font-size: 1.2rem;
}

/* AI功能区域样式 */
.ai-section {
  background-color: #f8f9fa;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.ai-feature {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 5px solid transparent;
}

.ai-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ai-feature:nth-child(1) {
  border-top-color: var(--primary-color);
}

.ai-feature:nth-child(2) {
  border-top-color: var(--secondary-color);
}

.ai-feature:nth-child(3) {
  border-top-color: var(--accent-color);
}

/* .ai-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.2rem;
  color: white;
} */

.ai-feature:nth-child(1) .ai-icon {
  background-color: var(--primary-color);
}

.ai-feature:nth-child(2) .ai-icon {
  background-color: var(--secondary-color);
}

.ai-feature:nth-child(3) .ai-icon {
  background-color: var(--accent-color);
}

.ai-feature h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* 下载区域样式 */
.download-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2e8b57 100%);
  color: white;
  text-align: center;
}

.download-content h2 {
  font-size: 3rem;
  color: white;
  margin-bottom: 20px;
}

.download-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.download-note {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.8;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.footer-logo i {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-copyright {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* 动画样式 */
.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.8s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .core-feature,
  .core-feature.reverse {
    flex-direction: column;
  }

  .core-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .core-feature.reverse .core-content {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .platforms {
    gap: 20px;
  }

  .platform-item {
    width: 130px;
    padding: 20px 15px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  section {
    padding: 60px 0;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
  }

  .download-content h2 {
    font-size: 2.2rem;
  }
}
