/* ============================================
   首页专属样式
   ============================================ */

/* Banner轮播 */
.index-banner-swiper {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.banner-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-video-mobile {
    display: none;
}

.banner-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.banner-text-box {
    max-width: 560px;
    color: #fff;
}

.banner-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.banner-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--c-gradient-blue);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,110,255,0.4);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,110,255,0.5);
    color: #fff;
}

.banner-notice {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    z-index: 10;
}

.banner-notice a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.banner-notice a:hover {
    color: var(--c-primary);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.25);
}

.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

.banner-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots span.active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
}

.banner-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 20px;
    z-index: 5;
}

.banner-stats-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner-stat-item {
    text-align: center;
    color: #fff;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-num .suffix {
    font-size: 18px;
    font-weight: 500;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Section通用样式 */
.section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,110,255,0.1);
    color: var(--c-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: 14px;
    line-height: 1.3;
}

.section-desc {
    font-size: 16px;
    color: var(--c-text-sub);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 活动专区 */
.as-section {
    background: var(--grad-blue-soft);
}

.as-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.as-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}

.as-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}

.as-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--c-gradient-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.as-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
}

.as-card-spec {
    font-size: 13px;
    color: var(--c-text-sub);
    margin-bottom: 20px;
    line-height: 1.5;
}

.as-card-price {
    margin-bottom: 20px;
}

.as-card-price .currency {
    font-size: 16px;
    color: var(--c-danger);
    font-weight: 600;
}

.as-card-price .amount {
    font-size: 36px;
    color: var(--c-danger);
    font-weight: 700;
    line-height: 1;
}

.as-card-price .unit {
    font-size: 13px;
    color: var(--c-text-tertiary);
    margin-left: 4px;
}

.as-card-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: var(--c-bg);
    color: var(--c-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-card-btn:hover {
    background: var(--c-primary);
    color: #fff;
}

.as-footer {
    text-align: center;
}

.as-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    background: #fff;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-footer-btn:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,82,217,.2);
}

/* 产品矩阵 */
.ps-section {
    background: var(--c-bg);
}

.ps-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ps-tab {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-sub);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ps-tab:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.ps-tab.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.showcase-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.showcase-product {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
    display: none;
}

.showcase-product.ps-tab-content.active {
    display: block;
}

.showcase-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.showcase-product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    background: var(--c-gradient-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.showcase-product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
}

.showcase-product-desc {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 44px;
}

.showcase-product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--c-bg-gray);
    border-radius: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.spec-label {
    color: var(--c-text-tertiary);
}

.spec-value {
    color: var(--c-text);
    font-weight: 600;
}

.showcase-product-price {
    margin-bottom: 20px;
}

.showcase-product-price .currency {
    font-size: 16px;
    color: var(--c-danger);
    font-weight: 600;
}

.showcase-product-price .amount {
    font-size: 36px;
    color: var(--c-danger);
    font-weight: 700;
    line-height: 1;
}

.showcase-product-price .unit {
    font-size: 13px;
    color: var(--c-text-tertiary);
    margin-left: 4px;
}

.showcase-product-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: var(--c-gradient-blue);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.showcase-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,82,217,.3);
    color: #fff;
}

/* 核心优势 */
.fg-section {
    background: var(--grad-blue-soft);
}

.fg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fg-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.fg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.fg-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--c-gradient-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fg-icon svg {
    width: 32px;
    height: 32px;
}

.fg-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
}

.fg-card p {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 客户评价 */
.testimonial-section {
    background: var(--c-bg-gray);
}

.testimonial-summary {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.testimonial-score {
    text-align: center;
    padding-right: 48px;
    border-right: 1px solid var(--c-border);
}

.score-main {
    font-size: 56px;
    font-weight: 800;
    color: var(--c-warning);
    line-height: 1;
}

.score-label {
    font-size: 14px;
    color: var(--c-text-sub);
    margin-top: 8px;
}

.testimonial-stats {
    display: flex;
    gap: 48px;
}

.testimonial-stats .stat-item {
    text-align: center;
}

.testimonial-stats .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-text);
}

.testimonial-stats .stat-label {
    font-size: 14px;
    color: var(--c-text-sub);
    margin-top: 6px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-gradient-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.testimonial-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}

.testimonial-time {
    font-size: 12px;
    color: var(--c-text-tertiary);
}

.testimonial-product {
    font-size: 12px;
    color: var(--c-primary);
    background: rgba(0,110,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.testimonial-content {
    font-size: 14px;
    color: var(--c-text-sub);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 返回顶部按钮 */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,110,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,110,255,0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* 响应式适配 */
@media (max-width: 991px) {
    .section { padding: 52px 0; }
    .section-title { font-size: 24px; }
    .section-desc { font-size: 14px; }
    .section-header { margin-bottom: 36px; }
    
    .banner-swiper-wrapper { height: 380px; }
    .banner-title { font-size: 28px; }
    .banner-stats-wrap { grid-template-columns: repeat(2, 1fr); }
    
    .as-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-products { grid-template-columns: repeat(2, 1fr); }
    .fg-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
    
    .testimonial-summary { flex-direction: column; gap: 24px; padding: 24px; }
    .testimonial-score { padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
    .testimonial-stats { gap: 32px; }
}

@media (max-width: 575px) {
    .banner-swiper-wrapper { height: 320px; }
    .banner-title { font-size: 22px; }
    .banner-subtitle { font-size: 14px; }
    .banner-arrow { width: 36px; height: 36px; font-size: 16px; }
    .banner-arrow.prev { left: 10px; }
    .banner-arrow.next { right: 10px; }
    .stat-num { font-size: 24px; }
    
    .as-grid { grid-template-columns: 1fr; }
    .showcase-products { grid-template-columns: 1fr; }
    .fg-grid { grid-template-columns: 1fr; }
    
    .ps-tabs { gap: 6px; }
    .ps-tab { padding: 8px 14px; font-size: 13px; }
}
