/* WPS 风格站点样式 */
:root {
  --wps-red: #e8382b;
  --wps-red-dark: #c42d22;
  --wps-blue: #2b7de9;
  --wps-bg: #f5f7fa;
  --wps-text: #333;
  --wps-text-light: #666;
  --wps-border: #e8eaed;
  --wps-white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--wps-text);
  line-height: 1.6;
  background: var(--wps-white);
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wps-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--wps-red);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--wps-red), #ff6b4a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  color: var(--wps-text);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--wps-red); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--wps-red);
  color: #fff !important;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, transform .2s;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: var(--wps-red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--wps-red);
  color: var(--wps-red) !important;
}

.btn-outline:hover {
  background: var(--wps-red);
  color: #fff !important;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #fff5f4 0%, #fff 60%);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.hero h1 span { color: var(--wps-red); }

.hero-desc {
  font-size: 18px;
  color: var(--wps-text-light);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-download {
  padding: 14px 36px;
  font-size: 17px;
}

/* 功能区块 */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--wps-bg); }

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--wps-text-light);
  max-width: 560px;
  margin: 0 auto 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--wps-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-icon.red { background: #fff0ee; }
.feature-icon.blue { background: #eef4fd; }
.feature-icon.green { background: #eefaf3; }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--wps-text-light);
  line-height: 1.7;
}

/* AI 区块 */
.ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.ai-content p {
  font-size: 16px;
  color: var(--wps-text-light);
  margin-bottom: 28px;
  line-height: 1.8;
}

.ai-visual {
  background: linear-gradient(135deg, #fff0ee, #eef4fd);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-visual .ai-badge {
  font-size: 64px;
  margin-bottom: 16px;
}

.ai-visual p {
  font-size: 18px;
  color: var(--wps-text-light);
}

/* 平台下载 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-item {
  background: var(--wps-white);
  border: 1px solid var(--wps-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.platform-item:hover {
  border-color: var(--wps-red);
  box-shadow: var(--shadow);
}

.platform-item .icon { font-size: 40px; margin-bottom: 12px; }
.platform-item h4 { font-size: 16px; margin-bottom: 8px; }
.platform-item p { font-size: 13px; color: var(--wps-text-light); }

/* 文章列表 */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--wps-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.article-card:hover { transform: translateY(-4px); }

.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, #fff0ee, #eef4fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-body { padding: 24px; }

.article-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-body p {
  font-size: 14px;
  color: var(--wps-text-light);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 12px;
  color: #999;
}

.article-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #fff0ee;
  color: var(--wps-red);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

/* 下载页 */
.download-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #fff5f4, #fff);
  text-align: center;
}

.download-hero h1 { font-size: 40px; margin-bottom: 16px; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.download-card {
  background: var(--wps-white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card .icon { font-size: 56px; margin-bottom: 20px; }
.download-card h3 { font-size: 22px; margin-bottom: 12px; }
.download-card p { font-size: 14px; color: var(--wps-text-light); margin-bottom: 24px; }

.download-card .version {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

/* 文章详情 */
.article-page {
  padding: 100px 0 60px;
}

.article-page .container { max-width: 800px; }

.article-page h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-page .meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wps-border);
}

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

.article-content h2 {
  font-size: 24px;
  margin: 36px 0 16px;
  color: #1a1a1a;
}

.article-content p { margin-bottom: 18px; }

.article-content ul {
  margin: 16px 0 18px 24px;
}

.article-content li { margin-bottom: 8px; }

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  font-size: 14px;
  color: #aaa;
  transition: color .2s;
}

.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* 响应式 */
@media (max-width: 992px) {
  .feature-grid,
  .article-list,
  .download-cards { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .feature-grid,
  .article-list,
  .download-cards,
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
