@charset "UTF-8";
/* 主要内容区域 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 账号购买页面 */
.main-container {
    display: flex;
    gap: 20px;
}

/* 侧边栏 - 商品分类 - 专业风格 */
.sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid #e1e5e9;
}

.sidebar h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    font-size: 18px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
    display: flex;
    align-items: center; /* 垂直居中 */
    gap: 10px; /* 图片和文字之间的间距 */
}

.category-list a:hover, .category-list a.active {
    background-color: #f0f8ff;
    color: #0066cc;
    font-weight: 500;
    border-left: 3px solid #0066cc;
}

.category-list a img {
    width: 20px; /* 设置图片宽度 */
    height: 20px; /* 设置图片高度 */
    object-fit: contain; /* 保持图片比例 */
    flex-shrink: 0; /* 防止图片被压缩 */
}

.category-list a.active i,
.category-list a:hover i {
    color: #0066cc;
}

/* 右侧商品区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 搜索区域 - 专业风格 */
.search-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.search-section h2 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 18px;
}

.search-section p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

.search-box input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box button {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
}

.search-box button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

/* 商品展示区域 - 表格布局 - 专业风格 */
.products-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h3 {
    color: #1a1a2e;
    font-size: 18px;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background-color: white;
    outline: none;
    color: #495057;
    transition: all 0.3s;
    font-size: 14px;
}

.sort-options select:focus {
    border-color: #0066cc;
}

/* 表格布局 - 桌面端 */
.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e1e5e9;
    font-size: 14px;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    background-color: white;
}

.products-table tr:hover td {
    background-color: #f8f9fa;
}

/* 商品名称列样式 - 整列可点击 */
.product-name-cell {
    cursor: pointer;
    transition: all 0.3s;
}

.product-name-cell:hover {
    background-color: #f8f9fa !important;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-main-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.product-main-name a {
    color: #0066cc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
}

.product-main-name a:hover {
    color: #004d99;
    text-decoration: underline;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-tag {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #cce0ff;
    font-weight: 500;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.product-category, .product-channel, .product-stock {
    display: inline-block;
}

.product-category {
    color: #6c757d;
}

.product-channel {
    color: #6c757d;
}

.product-stock {
    color: #6c757d;
}

.stock-available {
    color: #28a745 !important;
    font-weight: 500;
}

.stock-low {
    color: #ffc107 !important;
    font-weight: 500;
}

/* 价格列 */
.price-cell {
    text-align: center;
}

.product-price {
    font-weight: 700;
    font-size: 20px;
    color: #dc3545;
}

/* 操作列 */
.action-cell {
    text-align: center;
}

.buy-now-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.buy-now-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
}

/* 移动端商品列表布局 */
.products-list-mobile {
    display: none;
}

.product-card-mobile {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s;
}

.product-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 商品名称行 */
.product-name-row {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-name-row a {
    color: #0066cc;
    text-decoration: none;
}

.product-name-row a:hover {
    color: #004d99;
    text-decoration: underline;
}

/* 标签行 */
.product-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag-mobile {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #cce0ff;
    font-weight: 500;
}

/* 元数据行 */
.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

/* 价格和操作行 */
.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.price-mobile {
    font-weight: 700;
    font-size: 18px;
    color: #dc3545;
}

.buy-button-mobile {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.buy-button-mobile:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transform: translateY(-1px);
}

/* 安全保障页面样式 */
.security-section {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.security-section h2 {
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.security-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.security-item {
    text-align: center;
    padding: 25px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #e1e5e9;
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.security-item i {
    font-size: 40px;
    color: #0066cc;
    margin-bottom: 15px;
}

.security-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.security-item p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.security-features {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.security-features h3 {
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-item p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}
.fa-chevron-down {
    display: none;
}

.sidebar-toggle
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a2e;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .products-table {
        display: block;
        overflow-x: auto;
    }
    
    .security-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .fa-chevron-down {
        display: block;
    }
}

@media (max-width: 768px) {
    
    /* 侧边栏移动端样式 - 可折叠 */
    .sidebar-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        background-color: #f8f9fa;
        padding: 12px 15px;
        border-radius: 4px;
        border: 1px solid #e1e5e9;
        margin-bottom: 10px;
        font-weight: 600;
        color: #1a1a2e;
    }
    
    .sidebar-toggle i {
        transition: transform 0.3s;
    }
    
    .sidebar-toggle.collapsed i {
        transform: rotate(180deg);
    }
    
    .sidebar {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .category-list {
        max-height: 300px;
        overflow-y: auto;
        transition: max-height 0.3s ease-out;
    }
    
    .category-list.collapsed {
        max-height: 0;
        overflow: hidden;
    }
    
    .category-list a {
        padding: 10px;
        font-size: 13px;
    }
    
    /* 商品列表移动端样式 - 切换为卡片式布局 */
    .products-table {
        display: none;
    }
    
    .products-list-mobile {
        display: block;
    }
    
    .buy-now-button {
        padding: 8px 15px;
        min-width: 100px;
        font-size: 13px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .security-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input, .search-box button {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        padding: 12px;
    }
    
    .product-tags-row {
        flex-direction: row;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .security-item {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-container {
        padding: 15px;
    }
    
    .products-table th,
    .products-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    /* 移动端商品卡片 */
    .product-card-mobile {
        padding: 12px;
    }
    
    .product-name-row {
        font-size: 14px;
    }
    
    .product-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .price-mobile {
        text-align: center;
        font-size: 16px;
    }
    
    .buy-button-mobile {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .buy-now-button {
        padding: 6px 12px;
        min-width: 90px;
        font-size: 12px;
    }
    
    .product-card-mobile {
        padding: 10px;
    }
}

/* 滚动条样式 - 专业风格 */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}





