/* Global Reset & Variables */
:root {
  --primary-color: #ff5f00; /* 橙色主色调 */
  --text-color: #333;
  --text-secondary: #666;
  --bg-light: #fff9f5; /* 浅橙色背景 */
  --white: #fff;
  --border-radius: 12px;
  --container-width: 1200px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--white);
  color: var(--text-color);
  background: linear-gradient(
    180deg,
    rgba(253, 113, 11, 0.1) 0%,
    rgba(253, 113, 11, 0) 20%
  );
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Utilities */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.text-center {
  text-align: center;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mb-60 {
  margin-bottom: 60px;
}

.icon-question {
  display: inline-block;
  color: #ff5f00;
  margin-right: 10px;
  width: 24px;
  height: 24px;
  background: rgba(253, 113, 11, 0.2);
  border-radius: 50%;
  line-height: 24px;
  text-align: center;
}
/* Buttons */
.btn {
  display: inline-block;
  /* padding: 12px 36px; */
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  .download-icon {
    width: 24px;
    height: 24px;
    background-image: url("assets/imgs/icon_download.png");
    background-size: cover;
    /* background-color: #f00; */
  }
}

.btn-primary {
  /* background: linear-gradient(90deg, #FF8E29, #FF5F00);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 95, 0, 0.3); */

  width: 260px;
  height: 64px;
  background: linear-gradient(90deg, #fd710b 0%, #fd410b 100%);
  border-radius: 8px 8px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 95, 0, 0.4);
}
.btn-primary.mini {
  width: 180px;
  height: 54px;
}
.btn-outline {
  background: #fff3eb;
  color: var(--primary-color);
}

/* Section Titles */
.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title::before,
.section-title::after {
  content: "";
  display: block;
  width: 208px;
  height: 24px;
  /* background: linear-gradient(90deg, transparent, var(--primary-color)); */
}
.section-title::before {
  background-image: url(./assets/imgs/title_left.png);
}
.section-title::after {
  /* background: linear-gradient(90deg, var(--primary-color), transparent); */
  background-image: url(./assets/imgs/title_right.png);
}

.section-decor {
  /* width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  display: inline-block; */
}

/* Header */
.header {
  height: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fffcf9;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-item {
  font-size: 16px;
  cursor: pointer;
  position: relative;
  padding: 10px 0;
}

.nav-item.active,
.nav-item:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  /* background: linear-gradient(180deg, #FFF9F5 0%, #fff 100%); */
  padding: 60px 0 40px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-tag {
  background: #ff4d4f;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  vertical-align: super;
  margin-left: 10px;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-family: Alibaba PuHuiTi 2, Alibaba PuHuiTi 20;
  font-weight: normal;
  font-size: 16px;
  color: #777777;
}

.hero-list li::before {
  content: "●";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 2px;
}

.hero-meta {
  margin-top: 20px;
  font-size: 14px;
  color: #999;
}

.hero-image-placeholder {
  width: 600px;
  height: 400px;
  /* background: #eee; */
  /* border: 2px dashed #ccc; */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  position: relative;
  background-image: url(./assets/imgs/home_banner_ice.png);
  background-size: cover;
  background-position: center;
}

/* Feature Icons Bar */
.feature-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 60px;
}

.feature-icon-card {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.feature-icon-card:hover,
.feature-icon-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(255, 95, 0, 0.15);
}

.feature-icon-card.active {
  color: var(--primary-color);
}

.feature-icon-placeholder {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Feature Detail */
.feature-detail {
  /* background: #fff; */
  padding: 40px 0;
}

.feature-detail-container {
  /* min-height: 400px;  */
}

.feature-detail-item {
  display: none;
  animation: fadeIn 0.5s;
}

.feature-detail-item.active {
  display: flex;
  align-items: start;
  gap: 60px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.feature-icon-img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  object-fit: contain;
}

.feature-left-files {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  height: 300px; /* Fixed height for file layout */
  align-content: center;
}

.feature-left-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image-box {
  /* width: 100%; */
  /* max-width: 500px; */
  width: 560px;
  /* height: 300px; */
  background: #f8f8f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border: 1px dashed #ddd;
  position: relative;
}

.file-icon {
  width: 120px;
  height: 50px;
  background: #fff9f5;
  border: 1px solid #ffe4d6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
  font-weight: bold;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.file-icon.blue {
  background: #f0f7ff;
  border: 1px solid #d6e4ff;
  color: #1890ff;
}

.feature-right-text {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-right-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
  margin-top: 0;
}

.feature-right-text h3 span {
  color: var(--primary-color);
}

.check-list {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.check-icon {
  width: 18px;
  height: 18px;
  /* background: var(--primary-color); */
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Core Advantages */
.advantages-section {
  background: #fff9f5;
  padding: 80px 0;
}

.advantages-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.advantages-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advantage-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s;
  border: 1px dashed #fd710b;
}

.advantage-card:hover {
  transform: translateX(10px);
}

.adv-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff8e29, #ff5f00);
  border-radius: 10px;
  flex-shrink: 0;
}

.adv-chart-placeholder {
  flex: 1;
  height: 400px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Scenarios */
.scenarios-section {
  padding: 80px 0;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  height: 500px;
}

.scenario-col-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.scenario-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #333;
}

.scenario-card .img-placeholder {
  position: relative;
  overflow: hidden;
}

.scenario-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.scenario-card .img-normal {
  z-index: 1;
  width: 100%;
}

.scenario-card .img-hover {
  z-index: 2;
  width: 0; /* 初始宽度为0，实现“关窗”前是开着的（看不到），或者说从左侧滑入 */
  /* 实际上“关窗”通常指遮罩层从一侧滑入覆盖。
       如果要求“从左到右类似关窗”，即左侧边缘固定，右侧边缘向右移动展开，或者整个图片从左移入。
       最常见的遮罩效果是：hover 图片宽度从 0 变 100%。
    */
  width: 0;
  object-fit: cover;
  object-position: left; /* 保持图片左侧固定，防止拉伸变形 */
}

.scenario-card:hover .img-hover {
  width: 100%;
}

/* 移除旧的缩放效果，因为现在是遮罩切换 */
/* .scenario-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
} */

.scenario-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

.scenario-icon {
  font-size: 30px;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.faq-question {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  color: #ccc;
  font-size: 24px;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  color: var(--primary-color);
}

.faq-item.active .faq-question {
  color: var(--primary-color);
}

/* Reviews */
.reviews-section {
  padding: 60px 0 100px;
  background: #fff9f5;
}

.reviews-swiper {
  padding: 20px 0 50px; /* 底部预留分页器空间 */
  display: none; /* Hide old swiper container if exists */
}

.review-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eee; /* 占位 */
  flex-shrink: 0;
}
.review-avatar {
  img {
    width: 60px;
    height: 60px;
  }
}
.review-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.review-name {
  font-weight: bold;
  font-size: 16px;
}

.review-stars {
  color: #ffb800;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-content {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
  text-align: justify;
}

/* Custom Slider Styles (Native JS) */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0 50px;
  margin: 0 auto;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 15px; /* Gap/2 */
  /* width will be set by JS */
}

.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--primary-color);
  width: 20px;
  border-radius: 5px;
}

.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 50%;
  z-index: 10;
  cursor: pointer;
}

.slider-prev img,
.slider-next img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s;
}
.slider-prev img {
  left: -60px;
}
.slider-next img {
  left: 60px;
}
.slider-prev .btn-normal,
.slider-next .btn-normal {
  opacity: 1;
}

.slider-prev .btn-hover,
.slider-next .btn-hover {
  opacity: 0;
}

.slider-prev:hover .btn-normal,
.slider-next:hover .btn-normal {
  opacity: 0;
}

.slider-prev:hover .btn-hover,
.slider-next:hover .btn-hover {
  opacity: 1;
}

/* Remove old styles */
/* .slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
    color: white;
} */

/* .slider-prev::after { content: "❮"; font-weight: bold; }
.slider-next::after { content: "❯"; font-weight: bold; } */

.slider-prev {
  left: 10px;
}
.slider-next {
  right: 10px;
}

/* Footer */
.footer {
  background: #f8f8f8;
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Floating Sidebar */
.fixed-buttons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-btn {
  width: 60px;
  height: 70px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  transition: all 0.3s;
}

.fixed-btn:hover {
  background: rgba(253, 113, 11, 0.1);
  color: var(--primary-color);
}

.fixed-btn:hover .icon-normal {
  opacity: 0;
}

.fixed-btn:hover .icon-hover {
  opacity: 1;
}

.fixed-icon-container {
  width: 24px;
  height: 24px;
  position: relative;
  margin-bottom: 5px;
}

.fixed-icon-container img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s;
}

.icon-normal {
  opacity: 1;
}

.icon-hover {
  opacity: 0;
}

/* Images / Placeholders */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #999;
  font-size: 14px;
}

.desc {
  font-size: 14px;
  p {
    margin: 5px 0;
  }
  div {
    color: #222;
    font-weight: 700;
  }
}
