:root {
  --primary-color: #1a73e8;
  --primary-gradient: linear-gradient(90deg, #1a73e8, #6c5ce7, #8e44ad);
  --radius: 24px;
  --transition: 0.7s cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 8px 20px rgba(36,38,45,.12);
  --shadow-md: 0 12px 40px rgba(36,38,45,.16);
  --shadow-lg: 0 20px 50px rgba(36,38,45,.2);
}

/* 轮播组件样式 */
.carousel-container {
  position: relative;
  width: min(1400px, 95vw);
  margin: 3rem auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #fff;
  border: 1px solid rgba(26, 115, 232, 0.1);
}

/* 轮播图文字内容区域 */
.carousel-content-area {
  padding: 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(245,248,255,0.95));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.carousel-text-display { max-width: 800px; margin: 0 auto; }
.carousel-text-display h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
  transition: all 0.5s ease;
}
.carousel-text-display p { font-size: 1.1rem; line-height: 1.6; color: #555; margin-bottom: 0; transition: all 0.5s ease; }
.carousel-text-display .feature-list {
  list-style: none; padding: 0; margin: 0.5rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
}
.carousel-text-display .feature-list li {
  background: rgba(26, 115, 232, 0.1); color: var(--primary-color);
  padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.carousel-text-display .feature-list li:hover { background: rgba(26, 115, 232, 0.2); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* 轮播视口和轨道 */
.carousel-track { display: flex; transition: transform var(--transition); will-change: transform; height: auto; min-height: 600px; }
.carousel-slide { width: 100%; flex: 0 0 100%; display: flex; flex-direction: column; padding: 0; }

/* 媒体区域 - 预留图片位置 */
.media {
  position: relative; height: 450px;
  background: linear-gradient(135deg, #e9ecf2, #d1d8e6);
  overflow: hidden; border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background-color: rgba(26, 115, 232, 0.05); position: relative;
}
.image-placeholder::before { content: attr(data-alt); font-size: 1.2rem; color: rgba(26,115,232,0.5); text-align: center; padding: 2rem; }
.image-placeholder img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 60%, rgba(0,0,0,.12) 100%);
  pointer-events: none;
}

/* 特性卡片样式 */
.feature-card {
  width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-radius: 0 0 18px 18px; padding: 2rem; box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  text-align: center; position: relative; overflow: visible;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  border: 1px solid rgba(255,255,255,0.8); border-top: none;
  min-height: 150px; display: flex; flex-direction: column; justify-content: center;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--primary-gradient); opacity: 0.9; }
.feature-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.feature-card h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #333; position: relative; display: inline-block; }
.feature-card h3::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 0; height: 3px; background: var(--primary-gradient); border-radius: 3px; transition: width 0.4s ease; }
.feature-card:hover h3::after { width: 100%; }
.feature-card p { color: #444; line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }

/* 合作友商流动图 */
.partners { padding: 4rem 0; background-color: #f9fafc; }
.partner-slider { position: relative; width: 100%; overflow: hidden; margin: 3rem 0; padding: 1rem 0; }
/* Edge fade overlay */
.partner-slider::before,
.partner-slider::after {
  content: ""; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none;
}
.partner-slider::before { left: 0; background: linear-gradient(to right, #f9fafc 0%, transparent 100%); }
.partner-slider::after { right: 0; background: linear-gradient(to left, #f9fafc 0%, transparent 100%); }

.partner-track {
  display: flex;
  gap: 3rem;
  animation: scrollPartners 40s linear infinite;
  width: max-content;
}
.partner-logo {
  flex: 0 0 400px; height: 200px; background-color: white; border-radius: 16px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-logo:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.logo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: rgba(26,115,232,0.05); border-radius: 12px; position: relative; overflow: hidden; }
.logo-placeholder::before { content: attr(data-alt); font-size: 1rem; color: rgba(26,115,232,0.5); text-align: center; }
.logo-placeholder img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; transition: transform 0.3s ease; }
.partner-logo:hover .logo-placeholder img { transform: scale(1.05); }

/* 优势流动图 */
.features { padding: 4rem 0; background-color: #f5f8ff; }
.advantages-slider {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 120px, black calc(100% - 120px), transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
/* Edge fade overlay */
.advantages-slider::before,
.advantages-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 300px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.advantages-slider::before {
  left: 0;
  background: linear-gradient(to right, #f5f8ff 0%, #f5f8ff 20%, rgba(245,248,255,0) 100%);
}

.advantages-slider::after {
  right: 0;
  background: linear-gradient(to left, #f5f8ff 0%, #f5f8ff 20%, rgba(245,248,255,0) 100%);
}

.advantages-track {
  display: flex;
  gap: 2rem; /* 可以有间距，但必须对称 */
  width: max-content;
  will-change: transform;
}
.advantage-card {
  flex: 0 0 380px; background-color: white; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; cursor: pointer; position: relative; z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.advantage-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); z-index: 10; }
.advantage-media { height: 200px; background-color: rgba(26,115,232,0.05); overflow: hidden; }
.advantage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.advantage-card:hover .advantage-media img { transform: scale(1.05); }
.advantage-content { padding: 1.5rem; }
.advantage-content h3 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 1rem; font-weight: 600; position: relative; }
.advantage-content h3::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 50px; height: 3px; background: var(--primary-gradient); border-radius: 3px; transition: width 0.4s ease; }
.advantage-card:hover h3::after { width: 100%; }
.advantage-content p { color: #444; line-height: 1.6; font-size: 0.95rem; }

/* 轮播导航控制（保持原样则可）*/
.carousel-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 10; padding: 0 1.5rem; pointer-events: none; }
.carousel-prev, .carousel-next {
  background: rgba(255,255,255,0.3); backdrop-filter: blur(5px); color: white; border: none; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: all 0.3s ease; font-size: 1.1rem; position: relative; overflow: hidden;
}
.carousel-prev:hover, .carousel-next:hover { transform: scale(1.15); box-shadow: 0 10px 25px rgba(26,115,232,0.5); }
.carousel-prev::after, .carousel-next::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%); opacity: 0; transition: opacity 0.4s ease; }
.carousel-prev:hover::after, .carousel-next:hover::after { opacity: 1; }

.carousel-dots { display: flex; justify-content: center; margin: 0 auto; gap: 10px; pointer-events: auto; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); padding: 0.5rem 1rem; border-radius: 2rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; position: relative; border: 2px solid transparent; }
.carousel-dot.active { background: var(--primary-color); width: 26px; border-radius: 999px; transform: scale(1.1); box-shadow: 0 0 10px rgba(26,115,232,0.5); border: 2px solid rgba(255,255,255,0.8); }
.carousel-dot:hover:not(.active) { background: #bdbdbd; transform: scale(1.2); }

/* 进度条 */
.carousel-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary-gradient); transform: scaleX(0); transform-origin: left; transition: transform 5000ms linear; }

/* 响应式 */
@media (max-width: 992px) {
  .carousel-container { width: min(900px, 92vw); margin: 2.5rem auto; }
  .carousel-track { min-height: 550px; height: auto; }
  .media { height: 400px; }
  .feature-card { padding: 1.5rem; }
  .advantage-card { flex: 0 0 340px; }
  .advantage-media { height: 180px; }
  .advantage-content h3 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .carousel-container { border-radius: 18px; margin: 2rem auto; }
  .carousel-track { min-height: 500px; height: auto; }
  .media { height: 350px; border-radius: 10px 10px 0 0; }
  .feature-card { padding: 1.5rem 1.2rem; border-radius: 0 0 10px 10px; }
  .feature-card h3 { font-size: 1.5rem; }
  .carousel-prev, .carousel-next { width: 40px; height: 40px; font-size: 0.9rem; }
  .carousel-dots { margin: 0 1rem; }
  .advantage-card { flex: 0 0 300px; }
  .advantage-media { height: 160px; }
  .advantage-content { padding: 1.2rem; }
  .advantage-content h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
  .advantage-content p { font-size: 0.9rem; }
  .advantages-track { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .carousel-container { border-radius: 15px; margin: 1.5rem auto; }
  .carousel-track { min-height: 450px; height: auto; }
  .media { height: 300px; border-radius: 8px 8px 0 0; }
  .media i { font-size: 4rem !important; }
  .feature-card { padding: 1.2rem 1rem; border-radius: 0 0 8px 8px; }
  .feature-card h3 { font-size: 1.3rem; }
  .feature-card p { font-size: 0.95rem; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 0.8rem; }
}
