/* 全局样式 */
:root {
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --dark-bg: #121212;
  --dark-card: #1e1e1e;
  --dark-text: #ffffff;
  --dark-text-secondary: #9aa0a6;
  --dark-border: #2d2d2d;
  --dark-hover: #2a2a2a;
}

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

body {
  font-family: 'Google Sans', Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--dark-border);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 24px;
  margin-right: 8px;
}

.logo span {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-text);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--dark-text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--google-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switch {
  display: flex;
  gap: 10px;
}

.language-switch button {
  background: none;
  border: 1px solid var(--dark-border);
  color: var(--dark-text-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.language-switch button.active {
  background-color: var(--google-blue);
  color: white;
  border-color: var(--google-blue);
}

/* 英雄区域 */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #121212 100%);
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--google-blue), var(--google-red));
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--google-yellow), var(--google-green));
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--google-red), var(--google-yellow));
  top: 30%;
  right: 30%;
  animation-delay: 4s;
}

.circle-4 {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, var(--google-green), var(--google-blue));
  bottom: 20%;
  left: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red));
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-title-main {
  display: block;
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.hero-title-sub {
  display: block;
  font-size: 24px;
  font-weight: 300;
  color: var(--dark-text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 20px;
  color: var(--dark-text-secondary);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--google-blue);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--dark-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 主内容区 */
main {
  padding: 0 0 60px 0;
}

/* 产品状态指南 */
.status-guide {
  margin-top: 150px;
  margin-bottom: 80px;
  text-align: center;
}

.status-guide h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
}

.status-indicators {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.paid {
  background-color: var(--google-green);
}

.status-dot.free {
  background-color: var(--google-blue);
}

.status-dot.coming {
  background-color: var(--google-yellow);
}

.status-label {
  font-size: 14px;
  color: var(--dark-text-secondary);
}

/* 分类部分 */
.category-section {
  margin-bottom: 80px;
}

.category-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 500;
}

.category-section p {
  font-size: 16px;
  color: var(--dark-text-secondary);
  margin-bottom: 30px;
}

/* 产品网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* 产品卡片 */
.product-card {
  background-color: var(--dark-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--dark-border);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(66, 133, 244, 0.3);
}

.card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.status-badge.status-paid {
  background-color: var(--google-green);
}

.status-badge.status-free {
  background-color: var(--google-blue);
}

.status-badge.status-coming {
  background-color: var(--google-yellow);
  color: #333;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.product-card:hover .card-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--google-blue);
  transition: width 0.3s ease;
}

.price {
  font-size: 14px;
  color: var(--dark-text-secondary);
  margin-bottom: 10px;
}

.description {
  font-size: 14px;
  color: var(--dark-text-secondary);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.region {
  font-size: 12px;
  color: var(--dark-text-secondary);
  margin-bottom: 15px;
}

.learn-more {
  display: inline-block;
  color: var(--google-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #6aa2f8;
  text-decoration: underline;
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 产品模态窗口 */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--dark-card);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--dark-border);
}

.product-modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--dark-text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--dark-text);
}

.modal-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(30, 30, 30, 1), rgba(30, 30, 30, 0));
  font-size: 24px;
  font-weight: 500;
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  margin-bottom: 15px;
  font-size: 16px;
}

.modal-body .description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  margin-bottom: 20px;
  -webkit-line-clamp: unset;
}

.modal-link {
  display: inline-block;
  background-color: var(--google-blue);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.modal-link:hover {
  background-color: #5a95f5;
}

/* 产品总览表 */
.product-overview {
  margin-bottom: 80px;
  text-align: center;
}

.product-overview h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
}

.product-overview p {
  font-size: 16px;
  color: var(--dark-text-secondary);
  margin-bottom: 30px;
}

.table-container {
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
}

.product-table th,
.product-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--dark-border);
}

.product-table th {
  background-color: var(--dark-card);
  font-weight: 500;
  color: var(--dark-text);
}

.product-table tr:nth-child(even) {
  background-color: rgba(30, 30, 30, 0.5);
}

.product-table tr:hover {
  background-color: var(--dark-hover);
}

.table-link {
  color: var(--google-blue);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.table-link:hover {
  color: #6aa2f8;
  text-decoration: underline;
}

/* 页脚 */
footer {
  background-color: var(--dark-card);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--dark-border);
}

footer p {
  font-size: 14px;
  color: var(--dark-text-secondary);
  margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero-title-main {
    font-size: 42px !important;
  }
  
  .hero-title-sub {
    font-size: 18px !important;
  }
  
  .hero-description {
    font-size: 16px !important;
  }
  
  .hero-stats {
    gap: 30px !important;
  }
  
  .stat-number {
    font-size: 28px !important;
  }
  
  .floating-circle {
    display: none;
  }
  
  .status-guide {
    margin-top: 80px !important;
  }
  
  .status-indicators {
    flex-direction: column;
    gap: 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .category-section h2 {
    font-size: 24px;
  }
  
  .product-overview h2 {
    font-size: 24px;
  }
  
  .product-table {
    font-size: 14px;
  }
  
  .product-table th,
  .product-table td {
    padding: 10px 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
