:root {
  /* 基础颜色定义 */
  --primary-light: #63BCC6;
  --primary-dark: #135586;

  /* 浅色主题变量 */
  --light-bg: #f8fafc;
  --light-text: #1e293b;
  --light-text-secondary: #64748b;
  --light-card-bg: #ffffff;
  --light-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --light-border: #e2e8f0;

  /* 深色主题变量 */
  --dark-bg: #0f172a;
  --dark-text: #f8fafc;
  --dark-text-secondary: #94a3b8;
  --dark-card-bg: #1e293b;
  --dark-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --dark-border: #334155;

  /* 通用变量 - 默认使用浅色主题 */
  --bg: var(--light-bg);
  --text: var(--light-text);
  --text-secondary: var(--light-text-secondary);
  --card-bg: var(--light-card-bg);
  --card-shadow: var(--light-card-shadow);
  --border: var(--light-border);
}

/* 深色主题覆盖 */
[data-theme="dark"] {
  --bg: var(--dark-bg);
  --text: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --card-bg: var(--dark-card-bg);
  --card-shadow: var(--dark-card-shadow);
  --border: var(--dark-border);
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: white;
}

/* 卡片样式 */
.card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 导航栏 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
}

.nav-logo img {
  height: 100%; /* 使图片高度与导航栏高度一致 */
  max-height: 60px; /* 可选：设置最大高度防止过大 */
  width: auto; /* 保持宽高比 */
  object-fit: contain; /* 保持图片比例 */
  transition: all 0.3s ease; /* 添加平滑过渡效果 */
}

.nav-logo img:hover {
  transform: scale(1.05); /* 轻微放大 */
  opacity: 0.9; /* 轻微透明 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .nav-logo img {
    max-height: 50px; /* 在小屏幕上减小Logo大小 */
  }
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 0.8;
}

.theme-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 英雄区域 */
.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 188, 198, 0.1), rgba(19, 85, 134, 0.1));
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* 特色区域 */
.features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.footer-links a {
  color: white;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* 表单元素 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 188, 198, 0.2);
}

/* 实用类 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* 响应式设计 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 徽标设计 */
.logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

/* Logo图片基础样式 */
.hero-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
  background-color: transparent;
}

/* 浅色模式 - 反色+轻微暗化提高对比度 */
:root:not([data-theme="dark"]) .hero-logo {
  filter: invert(1) brightness(0.9);
}

/* 暗色模式 - 确保白色Logo可见 */
[data-theme="dark"] .hero-logo {
  filter: invert(0) brightness(1.1);
}

/* 悬停效果 */
.hero-logo:hover {
  transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-logo {
    width: 90px;
    height: 90px;
  }
}

.logo-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo-circle span {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  width: 50%;
  text-align: center;
  line-height: 60px;
}

/* 分隔线 */
.divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* 副标题 */
.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* 英雄区域按钮 */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* 平台图标尺寸调整 */
.platform-icon {
  font-size: 2rem; /* 调整为适合的大小，原feature-icon是2.5rem */
  margin-bottom: 0.75rem;
  display: block; /* 确保图标单独占据一行 */
}

/* 下载按钮内的图标保持原样 */
.btn .iconfont {
  font-size: 1rem; /* 保持按钮内图标较小 */
  margin-right: 0.5rem;
}

.icon-large{
  font-size: 2rem !important;
}

/* 特色图标 */
.feature-icon {
  font-size: 2.5rem !important;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-link:hover .portfolio-item {
  transform: translateY(-10px);
}

/* 确保原有悬停效果仍然工作 */
.portfolio-link:hover .portfolio-overlay {
  opacity: 1;
}

/* 作品集 */
.portfolio-preview {
  background: linear-gradient(135deg, rgba(99, 188, 198, 0.05), rgba(19, 85, 134, 0.05));
  padding: 5rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  aspect-ratio: 3/2;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* 关于我们 */
.about {
  padding: 5rem 2rem;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  min-width: 150px;
}

.stat-item h4 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* 联系表单 */
.contact {
  padding: 5rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
}

.contact-info p {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-light);
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
}

/* 页脚 */
.footer-logo {
  height: 80px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats {
    gap: 1rem;
  }

  .stat-item {
    min-width: 120px;
    padding: 1rem;
  }
}

/* 添加对color-scheme的支持 */
:root {
  color-scheme: light dark;
}

/* 改进暗色模式下表单元素的表现 */
[data-theme="dark"] {
  --color-scheme: dark;
}

/* 确保图片在暗色模式下不会太亮 */
[data-theme="dark"] img {
  filter: brightness(0.9);
}

/* 改进暗色模式下placeholder的颜色 */
[data-theme="dark"] ::placeholder {
  color: var(--dark-text-secondary);
  opacity: 1;
}

/* 改进选择文本的颜色 */
::selection {
  background: var(--primary-light);
  color: white;
}

[data-theme="dark"] ::selection {
  background: var(--primary-dark);
  color: white;
}

/* 不支持滤镜的浏览器备用方案 */
@supports not (filter: invert(1)) {
  :root:not([data-theme="dark"]) .hero-logo {
    opacity: 0.8;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px;
    background-color: rgba(0,0,0,0.05);
  }
}


/* 产品导航栏 */
.product-navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 80px;
  z-index: 999;
}

.product-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-icon {
  height: 32px;
  width: auto;
}

.product-links {
  display: flex;
  gap: 2rem;
}

.product-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.product-links a:hover {
  color: var(--primary-light);
}

/* 产品英雄区域 */
.product-hero {
  padding: 5rem 0;
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 定价区域 */
.pricing {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(99, 188, 198, 0.05), rgba(19, 85, 134, 0.05));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  position: relative;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  border: 2px solid var(--primary-light);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.price {
  margin: 1.5rem 0;
  font-size: 2.5rem;
  font-weight: bold;
}

/* WIP功能卡片样式 */
.wip-feature {
  position: relative;
  opacity: 0.85;
}

.wip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff9800;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.wip-feature .feature-icon {
  opacity: 0.7;
}

.wip-feature h3,
.wip-feature p {
  color: #666;
}

/* 特定功能卡片样式 */
.specefic-feature {
  position: relative;
  border: 2px solid #3a7bd5; /* 蓝色边框 */
  background: linear-gradient(to bottom right, rgba(58, 123, 213, 0.1), transparent);
}

.specefic-feature:hover {
  box-shadow: 0 10px 20px rgba(58, 123, 213, 0.2);
  transform: translateY(-5px);
}

/* 特定功能徽章样式 */
.specific-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #3a7bd5, #00d2ff);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* 不同颜色变体 - 可根据需要添加 */
.specefic-feature.green-version {
  border-color: #00b09b;
  background: linear-gradient(to bottom right, rgba(0, 176, 155, 0.1), transparent);
}

.specefic-feature.green-version:hover {
  box-shadow: 0 10px 20px rgba(0, 176, 155, 0.2);
}

.specific-badge.green-version {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* 紫色变体 */
.specefic-feature.purple-version {
  border-color: #8e2de2;
  background: linear-gradient(to bottom right, rgba(142, 45, 226, 0.1), transparent);
}

.specefic-feature.purple-version:hover {
  box-shadow: 0 10px 20px rgba(142, 45, 226, 0.2);
}

.specific-badge.purple-version {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.price .amount {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-list {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.features-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-list i {
  color: var(--primary-light);
}

/* 下载区域 */
.download {
  padding: 5rem 0;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.download-card {
  text-align: center;
  padding: 2rem;
}

.download-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.requirements, .alternative-downloads {
  margin-top: 3rem;
}

.requirement-item, .download-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .product-hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    max-width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .product-navbar {
    top: 70px;
  }

  .product-navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .product-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pricing-grid, .download-options {
    grid-template-columns: 1fr;
  }

  .featured {
    transform: scale(1.05);
  }
}
