/* WPS Office 极简现代风格 - 渐变绿主题 */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, #ecfdf5 0%, #ecfeff 100%);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* {
  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);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--gradient-soft);
}

.nav-link.active {
  color: #fff;
  background: var(--gradient);
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero 区域 */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Section 通用 */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 功能卡片网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 平台下载区 */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.platform-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--gradient-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.platform-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.platform-card .btn {
  width: 100%;
}

/* 评价卡片 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
  fill: #fbbf24;
}

.review-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.review-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
}

.review-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ 手风琴 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 下载页特殊样式 */
.download-hero {
  padding: 60px 0 80px;
  background: var(--gradient-soft);
}

.download-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-main-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.download-main-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.download-main h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.download-main p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.download-main .version-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.version-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.version-info svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* 系统要求表格 */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.specs-table th,
.specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
}

.specs-table td {
  color: var(--text-muted);
}

/* 安装步骤 */
.steps-list {
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
}

/* zh-cn 页面样式 */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 60px 0;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 14px;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.toc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.toc-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: block;
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

/* 对比表格 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

.compare-table th:first-child {
  text-align: left;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--bg-alt);
}

.check-icon {
  color: var(--primary);
}

.cross-icon {
  color: #ef4444;
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}

.cta-banner h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-banner .btn {
  background: #fff;
  color: var(--primary);
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 页脚 */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-text strong {
  color: var(--text);
}

/* 动画 */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .platforms,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .download-main {
    padding: 32px 24px;
  }
  
  .version-info {
    flex-direction: column;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
