/* ================= 轮播图组件 ================= */
.banner { width: 100%; margin-top: 90px; position: relative; overflow: hidden; background-color: #f5f5f5; }
.slider-container { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide { min-width: 100%; width: 100%; }
.slide img { width: 100%; height: auto; display: block; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.5); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 24px; color: #333; display: flex; align-items: center; justify-content: center; transition: background 0.3s; z-index: 10; }
.slider-btn:hover { background: rgba(255, 255, 255, 0.9); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background 0.3s; }
.dot.active { background: #f39c12; width: 24px; border-radius: 6px; }

/* ================= 为什么选择我们 ================= */
.why-choose-us { padding: 100px 20px 60px; background-color: #fff; }
.why-container { max-width: 1200px; margin: 0 auto; }
.why-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.why-text { flex: 1; display: flex; flex-direction: column; gap: 50px; padding-left: 40px; }
.why-item { display: flex; align-items: baseline; }
.why-number { font-size: 36px; font-weight: bold; color: #f39c12; margin-right: 10px; font-style: italic; font-family: Arial, sans-serif; }
.why-desc { font-size: 20px; color: #555; font-weight: 500; letter-spacing: 1px; }
.why-image { flex: 1.2; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.why-image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.why-image:hover img { transform: scale(1.03); }

/* ================= 个护清洁专家 (视频) ================= */
.expert-section { padding: 60px 20px 100px; background-color: #fff; }
.expert-container { max-width: 1200px; margin: 0 auto; }
.expert-intro { text-align: center; font-size: 16px; color: #888; line-height: 2; max-width: 900px; margin: 0 auto 50px; letter-spacing: 1px; }
.video-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; border-radius: 4px; overflow: hidden; background-color: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-wrapper video { width: 100%; display: block; outline: none; }

/* ================= 产品中心 (无缝滚动) ================= */
.product-section { padding: 60px 20px 120px; background-color: #fff; overflow: hidden; }
.product-container { max-width: 100%; margin: 0 auto; }
.product-tabs { display: flex; justify-content: center; gap: 30px; margin-bottom: 60px; padding: 0 20px; }
.tab-btn { display: inline-block; padding: 10px 25px; font-size: 16px; color: #555; border: 1px dashed #ccc; background-color: transparent; cursor: pointer; transition: all 0.3s; }
.tab-btn:hover, .tab-btn.active { border: 1px solid #f39c12; color: #f39c12; background-color: #fffbf5; }
.marquee-wrapper { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: scroll-left 25s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.product-card { width: 260px; flex-shrink: 0; border: 1px solid #eee; background-color: #fff; padding: 10px; transition: box-shadow 0.3s, border-color 0.3s; cursor: pointer; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #f39c12; }
.product-img-box { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #fff; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-box img { transform: scale(1.05); }

/* ================= 品牌塑造 ================= */
.brand-section { padding: 60px 20px 120px; background-color: #fff; }
.brand-container { max-width: 1200px; margin: 0 auto; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.brand-card { position: relative; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-height: 220px; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-color { padding: 35px 30px; color: #fff; justify-content: space-between; }
.card-color .card-title { font-size: 20px; line-height: 1.6; font-weight: 500; margin-bottom: 20px; }
.card-color .card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; opacity: 0.9; margin-top: auto; }
.card-image { justify-content: flex-end; background: none; }
.card-image .card-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s ease; }
.brand-card:hover .card-bg { transform: scale(1.05); }
.card-image .card-content { padding: 30px; position: relative; z-index: 1; color: #333; width: 100%; text-shadow: 0 1px 3px rgba(255,255,255,0.9); }
.card-image .card-date { position: absolute; top: 20px; left: 20px; font-size: 14px; font-weight: bold; color: #333; background: rgba(255, 255, 255, 0.85); padding: 2px 8px; border-radius: 4px; z-index: 2; }
.card-image .card-title { font-size: 20px; line-height: 1.5; font-weight: 700; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link { display: flex; align-items: center; justify-content: flex-end; font-size: 14px; color: #333; font-weight: 700; gap: 5px; transition: gap 0.3s; }
.brand-card:hover .card-link { gap: 10px; }
.bg-orange { background-color: #ee8762; } .bg-green { background-color: #94cf83; } .bg-purple { background-color: #7a8dc6; }

/* ================= 服务保障 ================= */
.service-section { padding: 60px 20px 100px; background-color: #fafafa; }
.service-container { max-width: 1200px; margin: 0 auto; }
.service-grid { display: flex; justify-content: space-around; text-align: center; gap: 20px; }
.service-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.service-icon { width: 80px; height: 80px; background-color: #a5d69e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; transition: transform 0.3s ease; }
.service-icon svg { width: 40px; height: 40px; fill: #fff; }
.service-item:hover .service-icon { transform: translateY(-5px); }
.service-bracket { width: 60px; height: 10px; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd; border-radius: 0 0 50% 50%; margin-bottom: 20px; opacity: 0.6; }
.service-title { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: #777; max-width: 200px; line-height: 1.5; }

/* ================= 首页专属响应式 ================= */
@media screen and (max-width: 992px) {
    .slider-btn { width: 35px; height: 35px; font-size: 18px; }
    .why-content { flex-direction: column; gap: 40px; }
    .why-image { flex: 1; width: 100%; }
    .why-text { width: 100%; gap: 30px; padding-left: 0; }
    .why-number { font-size: 30px; }
    .why-desc { font-size: 18px; }
    .expert-intro { font-size: 15px; text-align: left; padding: 0 10px; line-height: 1.8; margin-bottom: 30px; }
    .product-tabs { flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
    .tab-btn { padding: 8px 15px; font-size: 14px; }
    .product-card { width: 220px; }
    .product-img-box { height: 220px; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .service-grid { flex-wrap: wrap; gap: 40px; }
    .service-item { min-width: 45%; }
}

@media screen and (max-width: 576px) {
    .brand-grid { grid-template-columns: 1fr; }
    .service-item { min-width: 100%; }
}