/* ========== 首页特有样式 ========== */

/* ========== Hero 区 ========== */
.base {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f0f2f5 100%);
}

.base .title h1 {
  font-weight: 700;
  font-size: 64px;
  color: var(--color-text-primary);
  letter-spacing: 0;
  animation: fadeInDown 0.8s ease;
}

.base .title h2 {
  padding-top: 20px;
  font-weight: 400;
  font-size: 28px;
  color: var(--color-text-secondary);
  animation: fadeInDown 0.8s ease 0.15s both;
}

.base .title button {
  margin-top: 40px;
  width: 160px;
  height: 54px;
  line-height: 54px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e8304c 100%);
  border: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(210, 0, 41, 0.35);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.base .title button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(210, 0, 41, 0.5);
}

.base .title p {
  padding: 40px 0;
  font-weight: 300;
  font-size: 36px;
  color: var(--color-text-primary);
  animation: fadeInUp 0.8s ease 0.45s both;
}

.base .title p:last-child {
  font-weight: 300;
  font-size: 22px;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.base .image {
  padding-top: 40px;
  animation: fadeInUp 0.8s ease 0.55s both;
}

.base .image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ========== 产品介绍区 (Excel/PPT/PDF) ========== */
.excel {
  padding: 100px 0;
  text-align: center;
  background: var(--color-bg-white);
}

.excel .title h2 {
  font-weight: 600;
  font-size: 36px;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.excel .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.excel .title p {
  padding-top: 24px;
  line-height: 32px;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.excel .image {
  padding: 40px 0;
}

.excel .image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.excel .image img:hover {
  transform: translateY(-4px);
}

.ppt {
  padding: 100px 0;
  background: linear-gradient(160deg, #0d1b3e 0%, #162a5e 40%, #281e3a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ppt::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(210, 0, 41, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ppt .title h2 {
  font-weight: 600;
  font-size: 40px;
  color: #FFFFFF;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.ppt .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.ppt .title p {
  padding-top: 24px;
  font-weight: 400;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.ppt .image {
  padding: 40px 0;
}

.ppt .image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow);
}

.ppt .image img:hover {
  transform: scale(1.02);
}

.pdf {
  padding: 100px 0;
  background: var(--color-bg);
  text-align: center;
}

.pdf .title h2 {
  font-weight: 600;
  font-size: 40px;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.pdf .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.pdf .title p {
  padding-top: 24px;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.pdf .image {
  padding: 60px 0;
}

.pdf .image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.pdf .image img:hover {
  transform: translateY(-4px);
}

/* ========== WPS学堂 ========== */
.learn {
  padding: 80px 0;
  background: linear-gradient(160deg, #3b4568 0%, #444D7B 50%, #3b4568 100%);
  text-align: center;
}

.learn .title h2 {
  font-weight: 600;
  font-size: 40px;
  color: #FFFFFF;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.learn .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.learn .title p {
  padding-top: 32px;
  font-weight: 400;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.learn .article {
  padding-top: 60px;
}

.learn .article ul li {
  margin-bottom: 30px;
  transition: all var(--transition-normal);
}

.learn .article ul li a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.learn .article ul li a:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.learn .article ul li a .images {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.learn .article ul li a .images::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.learn .article ul li a .images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.learn .article ul li a:hover .images img {
  transform: scale(1.08);
}

.learn .article ul li a .info {
  padding: 20px 24px;
  background-color: #fff;
}

.learn .article ul li a .info h3 {
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-primary);
}

.learn .article ul li a .info p {
  height: 80px;
  padding-top: 12px;
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 24px;
}

.learn .article ul li a .info .ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== WPS365 企业协作 ========== */
.slw {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.slw .title {
  padding: 0 35px;
  text-align: center;
}

.slw .title h2 {
  font-weight: 600;
  font-size: 36px;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.slw .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.slw .title p {
  padding-top: 24px;
  padding-bottom: 30px;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.slw .image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ========== 下载区 ========== */
.download {
  padding: 80px 0;
  text-align: center;
  background: var(--color-bg);
}

.download .title h2 {
  font-weight: 600;
  font-size: 36px;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.download .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.download .title p {
  padding-top: 24px;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 32px;
}

.download .list {
  padding-top: 60px;
  text-align: center;
}

.download .list .item {
  padding: 50px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fdf7f3 0%, #fff 100%);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.download .list .item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-ghost);
}

.download .list .item img {
  width: 68px;
  height: 80px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.download .list .item:hover img {
  transform: rotate(-5deg) scale(1.05);
}

.download .list .item .name {
  padding-top: 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 25px;
}

.download .list .item .version {
  padding-top: 6px;
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 25px;
}

.download .list .item button {
  width: 130px;
  height: 42px;
  margin-top: 32px;
  line-height: 42px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e8304c 100%);
  border: none;
  border-radius: 21px;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(210, 0, 41, 0.3);
  transition: all var(--transition-normal);
}

.download .list .item button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(210, 0, 41, 0.45);
}

/* ========== 标签区 ========== */
.labels {
  padding: 60px 0 80px;
  background: var(--color-bg-white);
}

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

.labels .title h2 {
  font-weight: 600;
  font-size: 36px;
  color: var(--color-text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.labels .title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.labels .title p {
  padding-top: 16px;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 32px;
}

.labels .list {
  padding-top: 40px;
  text-align: center;
}

.labels .list a {
  display: inline-block;
  padding: 8px 24px;
  margin: 0 6px 12px;
  background: transparent;
  border: 1.5px solid var(--color-primary-ghost);
  border-radius: 25px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.labels .list a:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(210, 0, 41, 0.25);
  transform: translateY(-2px) scale(1.03);
}

/* ========== 动画 Keyframes ========== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .base {
    padding: 50px 15px;
  }

  .base .title h1 {
    font-size: 36px;
  }

  .base .title h2 {
    font-size: 20px;
  }

  .base .title p {
    font-size: 24px;
  }

  .base .title p:last-child {
    font-size: 16px;
  }

  .base .title button {
    width: 140px;
    height: 48px;
    line-height: 48px;
  }

  .excel {
    padding: 50px 15px;
  }

  .excel .title h2 {
    font-size: 28px;
  }

  .ppt {
    padding: 50px 15px;
  }

  .ppt .title h2 {
    font-size: 28px;
  }

  .pdf {
    padding: 50px 15px;
  }

  .pdf .title {
    padding: 0;
  }

  .pdf .title h2 {
    font-size: 28px;
  }

  .slw {
    padding: 50px 15px;
  }

  .slw .title {
    padding: 0 15px;
  }

  .slw .title h2 {
    font-size: 28px;
  }

  .slw .image {
    padding-top: 30px;
  }

  .download {
    padding: 50px 15px;
  }

  .download .title {
    padding: 0 15px;
  }

  .download .title h2 {
    font-size: 28px;
  }

  .download .list {
    padding: 50px 15px 0;
  }

  .download .list .item {
    width: 100%;
    margin-bottom: 24px;
  }

  .labels {
    padding: 50px 15px;
  }

  .labels .title h2 {
    font-size: 28px;
  }

  .learn .article ul li {
    margin-bottom: 20px;
  }

  .learn {
    padding: 50px 15px;
  }
}
