/* ========================================
   首页样式 - Index Page Styles
   眼镜批发网站首页
======================================== */

/* 首页轮播区域 */
.index-hero {
    position: relative;
    margin-top: 0px;
    overflow: hidden;
}

.index-hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.index-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.6));
}

.index-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none; /* 防止遮挡轮播控制按钮 */
}

.index-hero-content * {
    pointer-events: auto; /* 恢复内容元素的点击 */
}

/* 轮播控制按钮层级 */
.index-hero .carousel-control-prev,
.index-hero .carousel-control-next {
    z-index: 10;
}

.index-hero .carousel-indicators {
    z-index: 10;
}

.index-hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.index-hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.index-hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.index-hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* 特色服务区域 */
.index-features {
    padding: 80px 0;
    background: var(--light-color);
}

.index-feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.index-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.index-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.index-feature-card:hover .index-feature-icon {
    transform: rotateY(360deg);
}

.index-feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.index-feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 产品展示区域 */
.index-products {
    padding: 80px 0;
}

.index-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.index-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.index-product-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.index-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.index-product-card:hover .index-product-img img {
    transform: scale(1.1);
}

.index-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.index-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.index-product-card:hover .index-product-overlay {
    opacity: 1;
}

.index-product-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.index-product-card:hover .index-product-overlay .btn {
    transform: translateY(0);
}

.index-product-info {
    padding: 1.5rem;
}

.index-product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.index-product-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
}

.index-product-info p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.index-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.index-product-price .price small {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: line-through;
}

/* 为什么选择我们 */
.index-why-choose {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.index-why-choose::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.index-why-content {
    position: relative;
    z-index: 1;
}

.index-why-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.index-why-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
}

.index-why-text h4 {
    color: var(--white-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.index-why-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.index-why-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.index-stat-item {
    text-align: center;
    padding: 1rem;
}

.index-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.index-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* 批发合作流程 */
.index-process {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.index-process::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.index-process::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.index-process .section-title h2,
.index-process .section-title p {
    color: var(--white-color);
}

.index-process-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.index-process-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--white-color);
}

.index-process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.process-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.index-process-icon {
    width: 100px;
    height: 100px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(135deg, var(--light-color), #e0e7ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.index-process-card:hover .index-process-icon {
    transform: scale(1.1) rotateY(360deg);
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white-color);
}

.index-process-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.index-process-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    animation: arrowMove 1.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(10px);
    }
}

.index-process-card:last-child .process-arrow {
    display: none;
}

/* CTA横幅 */
.index-process-cta {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.process-cta-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.process-cta-content:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.process-cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white-color);
}

.process-cta-text {
    flex-grow: 1;
}

.process-cta-text h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.process-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.process-cta-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
}

.process-cta-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.process-cta-buttons .btn-light {
    background: var(--white-color);
    color: var(--primary-color);
    border: none;
}

.process-cta-buttons .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.process-cta-buttons .btn-outline-light {
    border: 2px solid var(--white-color);
    color: var(--white-color);
    background: transparent;
}

.process-cta-buttons .btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 新闻资讯区域 */
.index-news {
    padding: 80px 0;
    background: var(--light-color);
}

.index-news-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.index-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.index-news-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.index-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.index-news-card:hover .index-news-img img {
    transform: scale(1.1);
}

.index-news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.index-news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.index-news-date .month {
    font-size: 0.85rem;
    display: block;
}

.index-news-body {
    padding: 1.5rem;
}

.index-news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.index-news-meta span i {
    margin-right: 0.3rem;
}

.index-news-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-news-body p {
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.index-news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.index-news-link:hover {
    color: #1d4ed8;
    padding-left: 5px;
}

/* 批发常见问题 FAQ */
.index-faq {
    padding: 80px 0;
    background: var(--white-color);
}

.index-faq-accordion {
    margin-bottom: 2rem;
}

.index-faq-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.index-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.index-faq-question {
    background: var(--white-color);
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.index-faq-question:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white-color);
    box-shadow: none;
}

.index-faq-question:not(.collapsed) i {
    color: var(--white-color);
}

.index-faq-question:hover {
    background: var(--light-color);
}

.index-faq-question:not(.collapsed):hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
}

.index-faq-question i {
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.index-faq-question::after {
    background-image: none;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.index-faq-question:not(.collapsed)::after {
    transform: rotate(180deg);
    color: var(--white-color);
}

.index-faq-answer {
    padding: 1.5rem 2rem;
    color: var(--secondary-color);
    line-height: 1.8;
    background: var(--white-color);
    border-top: 1px solid var(--border-color);
}

.accordion-body {
    padding: 15px;
}

/* 合作伙伴 */
.index-partners {
    padding: 60px 0;
    background: var(--white-color);
}

.index-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.index-partner-logo:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.index-partner-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.index-partner-logo:hover img {
    filter: grayscale(0%);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .index-hero-slide {
        height: 500px;
    }
    
    .index-hero-text h1 {
        font-size: 2.5rem;
    }
    
    .index-hero-text p {
        font-size: 1.1rem;
    }
    
    .index-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .index-hero {
        margin-top: 0px;
    }
    
    .index-hero-slide {
        height: 400px;
    }
    
    .index-hero-text h1 {
        font-size: 2rem;
    }
    
    .index-hero-text p {
        font-size: 1rem;
    }
    
    .index-features,
    .index-products,
    .index-why-choose,
    .index-process,
    .index-news,
    .index-faq {
        padding: 50px 0;
    }
    
    .index-product-img {
        height: 220px;
    }
    
    .index-news-img {
        height: 180px;
    }
    
    .index-faq-question {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .index-faq-question i {
        font-size: 1.1rem;
    }
    
    .index-faq-answer {
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* 批发流程响应式 */
    .process-arrow {
        display: none;
    }
    
    .index-process-card {
        margin-bottom: 3rem;
    }
    
    .index-process-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 1.5rem auto 1rem;
    }
    
    .index-process-card h4 {
        font-size: 1.2rem;
    }
    
    .index-process-card p {
        font-size: 0.95rem;
    }
    
    .process-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .process-cta-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .process-cta-text h5 {
        font-size: 1.2rem;
    }
    
    .process-cta-text p {
        font-size: 0.9rem;
    }
    
    .process-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .process-cta-buttons .btn {
        width: 100%;
    }
}
