/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== 右侧滚动导航点 ========== */
.scroll-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scroll-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D9D9D9;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dots .dot.active {
  background: #E60012;
  width: 10px;
  height: 10px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E8E8E8;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wps-logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

.nav-divider {
  color: #DDD;
  font-size: 14px;
}

.ai-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-icon {
  flex-shrink: 0;
}

.ai-text {
  font-size: 14px;
  color: #666;
}

.btn-download-nav {
  padding: 8px 24px;
  border: 1px solid #E60012;
  border-radius: 20px;
  background: #fff;
  color: #E60012;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download-nav:hover {
  background: #E60012;
  color: #fff;
}

/* ========== Hero 首屏 ========== */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-logo-icon {
  margin: 0 auto;
  display: block;
}

.hero-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 16px;
  color: #1A1A1A;
}

.hero-slogan {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: #999;
  margin-top: 12px;
}

.hero-download {
  position: relative;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-download-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background: linear-gradient(135deg, #E60012, #FF4D4D);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.3);
}

.arrow-down {
  transition: transform 0.3s ease;
}

.btn-download-main.active .arrow-down {
  transform: rotate(180deg);
}

/* 下载下拉菜单 */
.download-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
}

.download-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: #F7F8FA;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
}

.dropdown-item-name {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 500;
}

.dropdown-item-ver {
  font-size: 12px;
  color: #999;
}

.hero-screenshot {
  margin-top: 48px;
  width: 900px;
  max-width: 90vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-screenshot img {
  width: 100%;
  border-radius: 12px;
}

/* ========== 几何过渡带 ========== */
.geometry-transition {
  height: 400px;
  background: #1A1A2E;
  position: relative;
  overflow: hidden;
}

.geometry-bg {
  position: relative;
  width: 100%;
  height: 100%;
}

.triangle-left {
  position: absolute;
  top: -50%;
  left: -10%;
  width: 70%;
  height: 200%;
  background: linear-gradient(180deg, #2563EB, #7C3AED);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateX(-100px);
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.triangle-left.visible {
  transform: translateX(0);
}

.triangle-right {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 180%;
  background: #EC4899;
  clip-path: polygon(100% 0, 0 40%, 100% 100%);
  transform: translateX(100px);
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.triangle-right.visible {
  transform: translateX(0);
}

/* ========== 在线智能文档 ========== */
.smart-doc {
  padding: 100px 0;
  background: #fff;
}

.smart-doc .section-title {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, #E60012, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-red {
  color: #E60012;
}

.section-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  text-align: center;
  margin-top: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.smart-doc-img {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.smart-doc-img img {
  width: 100%;
  border-radius: 12px;
}

/* ========== 彩虹渐变过渡带 ========== */
.rainbow-transition {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.rainbow-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 25%, #EC4899 50%, #F97316 100%);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.8s ease;
}

.rainbow-bg.visible {
  transform: scaleY(1);
}

/* ========== 换个屏幕，轻松续写 ========== */
.cross-device {
  padding: 100px 0;
  background: #F7F8FA;
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.feature-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #1A1A1A;
  padding: 24px 24px 0;
}

.feature-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  padding: 8px 24px 24px;
}

/* ========== 全平台免费下载 ========== */
.download-section {
  padding: 80px 0;
  background: #F0F1F5;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.platform-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.platform-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.platform-icon {
  width: 40px;
  height: 40px;
}

.platform-name {
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  margin-top: 12px;
  white-space: nowrap;
}

.platform-ver {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.btn-platform {
  margin-top: 16px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 16px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-platform:hover {
  border-color: #E60012;
  color: #E60012;
}

/* ========== 页脚 ========== */
.footer {
  background: #fff;
  border-top: 1px solid #E8E8E8;
  padding: 24px 0;
}

.copyright {
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* ========== 滚动渐显动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 全局动画 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-screenshot {
    width: 95vw;
  }

  .section-title {
    font-size: 28px;
  }

  .ai-text {
    display: none;
  }

  .geometry-transition {
    height: 250px;
  }

  .rainbow-transition {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scroll-dots {
    display: none;
  }

  .hero-title {
    font-size: 28px;
  }

  .cross-device,
  .smart-doc {
    padding: 60px 0;
  }

  .download-section {
    padding: 50px 0;
  }
}
