﻿@charset "UTF-8";
/* 主内容区 */
.main-content {
    display: flex;
    margin: 20px auto;
    gap: 20px;
}

/* 左侧边栏 */
.left-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-box {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e7e7e7;
}

.sidebar-box h3 {
    background: linear-gradient(to right, #2b97f2, #0f7cd5);
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.sidebar-box h3 i {
    margin-right: 8px;
}

.sidebar-content {
    padding: 15px;
}

/* 分类样式 */
.category-list {
    list-style: none;
}

.category-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.category-item:hover {
    background-color: #f9f9f9;
    color: #2b97f2;
}

.category-item.active {
    background-color: #d9ebff;
    color: #2b97f2;
    font-weight: bold;
    border-left: 3px solid #2b97f2;
}

.category-count {
    background-color: #f5f5f5;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item.active .category-count {
    background-color: #2b97f2;
    color: white;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.article-item:hover {
    background-color: #f9f9f9;
}

.article-item:last-child {
    border-bottom: none;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.article-title i {
    color: #2b97f2;
    margin-right: 8px;
    font-size: 12px;
}

.article-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 5px;
}

/* 客服信息样式 */
.service-list {
    list-style: none;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: #2b97f2;
    margin-right: 10px;
    width: 20px;
}

.warning-box {
    background-color: #e6f2ff;
    border: 1px solid #99ccff;
    border-radius: 4px;
}

.warning-title {
    color: #2b97f2;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.warning-title i {
    margin-right: 8px;
}

.about-text {
    line-height: 1.8;
    color: #666;
    font-size: 13px;
}

/* 中间内容区 */
.content-area {
    flex: 1;
}

/* 购买指南 - 整行布局，使用微信绿色，图标中间加箭头 */
.purchase-guide {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e7e7e7;
    width: 100%;
}

.purchase-guide h3 {
    color: #2b97f2;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d9ebff;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.purchase-guide h3 i {
    margin-right: 10px;
}

.guide-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.step-icon-container {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
}

.step-icon {
    background: linear-gradient(to right, #2b97f2, #0f7cd5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    line-height: 70px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.step-arrow {
    position: absolute;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    color: #2b97f2;
    font-size: 24px;
    z-index: 3;
}

.step:last-child .step-arrow {
    display: none;
}

.step h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 17px;
    font-weight: 600;
}

.step p {
    color: #666;
    font-size: 14px;
}

/* 分类标题 - 使用微信绿色 */
.category-title {
    background-color: white;
    padding: 14px 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-left: 6px solid #1e88e5;
    font-size: 19px;
    font-weight: 600;
    color: #0f7cd5;
    border-radius: 0 14px 14px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(30, 120, 210, 0.05);
}

.category-title i {
    margin-right: 10px;
    color: #2b97f2;
    font-size: 22px;
}

/* 商品列表 */
.product-list {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e7e7e7;
    margin-bottom: 30px;
}

.list-header {
    background: #f0f8ff;
    padding: 14px 15px;
    font-weight: bold;
    border-bottom: 1px solid #cce4ff;
    display: flex;
    color: #333;
    font-size: 15px;
}

.header-name {
    flex: 4;
}

.header-price, .header-stock, .header-action {
    flex: 0.5;
    text-align: center;
}

.product-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: background-color 0.2s;
}

.product-item:hover {
    background-color: #f9f9f9;
}

.product-name {
    flex: 4;
}

.product-name h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.product-price {
    flex: 0.5;
    text-align: center;
    color: #2b97f2;
    font-weight: bold;
    font-size: 19px;
}

.product-stock {
    flex: 0.5;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.product-action {
    flex: 0.6;
    text-align: center;
}

.buy-btn {
    background: linear-gradient(to right, #2b97f2, #0f7cd5);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(7, 193, 96, 0.2);
    font-size: 15px;
    text-decoration: none;
}

.buy-btn:hover {
    background: linear-gradient(to right, #0f7cd5, #2b97f2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
}


/* 手机端适配 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
    }
    
    .guide-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    .guide-steps::before {
        display: none;
    }
    
    .step-arrow {
        display: none;
    }
	.header-price, .header-stock, .header-action {
		flex: 1;
		text-align: center;
	}
}

@media (max-width: 768px) {
    /* 隐藏桌面端导航，显示移动端菜单 */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* 移动端布局调整 */
    .main-content {
        flex-direction: column;
        margin: 15px auto;
        gap: 15px;
    }
    
    /* 移动端显示商品分类、温馨提示、关于售后 */
    .left-sidebar {
        display: block;
    }
    
    /* 隐藏不需要的模块 */
    .sidebar-box:not(.category-box):not(.warning-box):not(.after-sales-box) {
        display: none;
    }
    
    .purchase-guide {
        display: none;
    }
    
    /* 头部适配 */
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* 商品列表优化 - 确保标题、价格、库存都显示 */
    .category-title {
        padding: 12px 15px;
        font-size: 17px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .product-item {
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }
    
    .product-name {
        flex: 2;
    }
    
    .product-name h4 {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .product-price {
        flex: 0.6;
        text-align: center;
        color: #2b97f2;
        font-weight: bold;
        font-size: 16px;
        padding: 0 5px;
    }
    
    .product-stock {
        flex: 0.5;
        text-align: center;
        color: #666;
        font-size: 14px;
        padding: 0 5px;
    }
    
    .product-action {
        flex: 0.6;
        text-align: center;
        padding: 0 5px;
    }
    
    .buy-btn {
        padding: 8px 15px;
        font-size: 14px;
        width: auto;
    }
    
    .list-header {
        display: flex;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* 侧边栏优化 */
    .sidebar-box {
        margin-bottom: 15px;
    }
    
    .sidebar-box h3 {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .sidebar-content {
        padding: 12px;
    }
    
    .category-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .category-title {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .product-name h4 {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-stock {
        font-size: 13px;
    }
    
    .buy-btn {
        padding: 7px 12px;
        font-size: 13px;
    }
}