﻿/* ============================================
   common-slider.css - 鍏叡杞挱鍥?鎼滅储缁勪欢鏍峰紡
   閫傜敤浜庯細API甯傚満銆佸ぇ妯″瀷骞垮満銆丼kill甯傚満
   楂樺害缁熶竴锛?00px锛堜笌棣栭〉涓€鑷达級
   ============================================ */

/* -----------------------------
   1. 杞挱鍥惧鍣紙缁熶竴楂樺害400px锛?   ----------------------------- */
.common-hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* 鍗曚釜杞挱椤?*/
.common-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding: 0 20px 80px; /* 搴曢儴鐣欏嚭鎼滅储缁勪欢绌洪棿 */
  box-sizing: border-box;
}

.common-hero-slide.active {
  opacity: 1;
}

.common-hero-slide h2 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.common-hero-slide p {
  color: #ffffff;
  font-size: 18px;
  margin: 0;
  text-align: center;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

/* 宸﹀彸绠ご */
.common-hero-arrow { display: none;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.common-hero-arrow:hover {
  background: rgba(255, 255, 255, 0.45);
}

.common-hero-arrow.prev {
  left: 20px;
}

.common-hero-arrow.next {
  right: 20px;
}

/* 搴曢儴鎸囩ず鍣?*/
.common-hero-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.common-hero-dots .dot { display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.common-hero-dots .dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* -----------------------------
   2. 鎼滅储缁勪欢锛堝彔鍔犲湪杞挱鍥惧簳閮級
   ----------------------------- */
.common-search-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.common-search-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.common-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 0 20px;
  height: 48px;
  border: none;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.common-search-box:focus-within {
  background: #fff;
  box-shadow: 0 4px 24px rgba(79, 110, 247, 0.3);
}

.common-search-box input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
  color: #333;
  height: 100%;
}

.common-search-box input::placeholder {
  color: #999;
}

.common-search-btn {
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.common-search-btn:hover {
  background: #3d5bd9;
}

.common-hot-tags {
  display: none; /* 闅愯棌鐑棬鏍囩锛屾敼涓烘偓娴湪鎼滅储妗嗕笅鏂?*/
}

/* 鍝嶅簲寮?*/

@media (max-width: 768px) {
  .common-hero-slider { height: 260px; }
  .common-hero-slide { padding: 0 16px 60px; }
  .common-hero-slide h2 { font-size: 22px; margin-bottom: 10px; }
  .common-hero-slide p { font-size: 14px; max-width: 100%; }
  .common-hero-arrow { display: none; width: 36px; height: 36px; font-size: 16px; }
  .common-hero-dots { bottom: 60px; }
  .common-search-bar { padding: 10px 12px; }
  .common-search-inner { max-width: 100%; }
  .common-search-box { height: 42px; border-radius: 20px; padding: 0 14px; }
  .common-search-box input { font-size: 14px; }
  .common-search-btn { padding: 7px 16px; font-size: 13px; }
}
