/* 卡速网新首页样式 */
/* 支持三栏布局、商品轮播和新的网站下部设计 */

/* 顶部功能区 - 三栏布局 */
.top-function-area {
    background-color: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.top-function-grid {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 25px;
    align-items: stretch;
}

/* 左侧：快捷导航栏 */
.quick-nav-left {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.quick-nav-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-nav-title i {
    color: #1890FF;
}

.quick-nav-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.quick-nav-item:hover {
    background-color: #e9f5ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.1);
    border-color: #1890FF;
}

.quick-nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1890FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    font-size: 22px;
}

.quick-nav-item span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 中部：轮播图 */
.top-carousel-center {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 220px;
}

.top-carousel {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.carousel-content p {
    font-size: 15px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dots .dot.active {
    background-color: white;
}

/* 右侧：账号信息 */
.account-info-right {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.account-card {
    padding: 20px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.account-header i {
    font-size: 32px;
    color: #1890FF;
}

.account-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.account-content {
    margin-bottom: 20px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-item:last-child {
    border-bottom: none;
}

.account-label {
    font-size: 14px;
    color: #666;
}

.account-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.account-actions .btn-outline {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
}



/* 中部：商品轮播区域 */
.product-carousel-section {
    margin-bottom: 40px;
    padding: 25px 0;
    background-color: #f8f9fa;
    border-radius: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #1890FF;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background-color: #1890FF;
    color: white;
    border-color: #1890FF;
}

.carousel-status {
    font-size: 13px;
    color: #666;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
}

/* 商品轮播容器 */
.product-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    padding: 15px;
}

.product-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
}

.product-carousel-item {
    flex: 0 0 200px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.product-carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 140px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-carousel-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 12px;
    display: inline-block;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    width: 100%;
}

/* 网站下部内容 */
.website-bottom-section {
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bottom-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
}

.bottom-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-title i {
    color: #1890FF;
}

/* 左侧：推荐分类 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.category-link:hover {
    background-color: #e9f5ff;
    transform: translateX(5px);
    border-left-color: #1890FF;
}

.category-link i {
    color: #666;
    margin-right: 8px;
}

.category-count {
    font-size: 12px;
    color: #999;
    background-color: white;
    padding: 3px 8px;
    border-radius: 10px;
}

/* 中部：特色服务 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    background-color: #e9f5ff;
    transform: translateY(-5px);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1890FF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 22px;
}

.service-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 右侧：统计信息 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stats-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    color: #1890FF;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 12px;
    color: #666;
}

.stats-update {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stats-update p {
    font-size: 12px;
    color: #999;
}

.stats-update i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .top-function-grid {
        grid-template-columns: 220px 1fr 280px;
        gap: 20px;
    }
    
    .bottom-layout {
        grid-template-columns: 220px 1fr 220px;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .top-function-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .quick-nav-left, .top-carousel-center, .account-info-right {
        width: 100%;
    }
    
    .small-nav-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-carousel-track {
        overflow-x: auto;
        scroll-behavior: smooth;
    }
    
    .product-carousel-item {
        flex: 0 0 180px;
    }
}

@media (max-width: 768px) {
    .small-nav-items {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-controls {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .carousel-content {
        bottom: 20px;
        left: 20px;
        max-width: 300px;
    }
    
    .carousel-content h3 {
        font-size: 18px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .top-function-area {
        padding: 20px 0;
    }
    
    .quick-nav-items {
        grid-template-columns: 1fr;
    }
    
    .product-carousel-section {
        padding: 20px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}