* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --accent-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --white: #ffffff;
    --gray-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 改为深色渐变 */
header {
    background: var(--gradient-primary);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(79, 70, 229, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons div {
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.header-icons div:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 页面内容样式 */
.page {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.8)), url('{HOME_THEME_PATH}images/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 40px;
    color: var(--white);
}

.hero h2 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-light);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
    border-color: var(--secondary-color);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px;
    color: var(--dark-color);
    font-size: 20px;
}

.featured-products {
    margin-top: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    font-size: 32px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
    border-color: var(--secondary-color);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.product-info p {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.add-to-cart {
    background: var(--gradient-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* 列表页样式 */
.filters {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 600;
}

.filter-options select, .filter-options input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-color);
    font-size: 15px;
    transition: all 0.3s;
}

.filter-options select:focus, .filter-options input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 商品详情页样式 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid var(--gray-light);
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.product-info-detail h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.product-info-detail .price {
    font-size: 28px;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-color);
    font-weight: 700;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 20px;
    margin-left: 10px;
}

.discount-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 15px;
    font-weight: 600;
}

.product-meta {
    margin-bottom: 25px;
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.meta-label {
    min-width: 100px;
    color: #64748b;
    font-weight: 500;
}

.meta-value {
    color: var(--dark-color);
    font-weight: 500;
}

.stock-status {
    color: var(--accent-color);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    overflow: hidden;
    background: var(--white);
}

.quantity button {
    width: 45px;
    height: 45px;
    border: none;
    background-color: var(--light-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-color);
}

.quantity button:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

.quantity input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.add-to-cart-btn {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    background-color: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.wishlist-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.wishlist-btn.active {
    color: #ef4444;
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* 商品详情标签页 */
.product-tabs {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
    background: var(--light-color);
}

.tab-btn {
    padding: 18px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    position: relative;
    transition: all 0.3s;
    font-size: 15px;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.tab-content {
    padding: 30px;
}

.specifications {
    width: 100%;
    border-collapse: collapse;
}

.specifications tr {
    border-bottom: 1px solid var(--gray-light);
}

.specifications tr:hover {
    background-color: var(--light-color);
}

.specifications td {
    padding: 15px;
}

.specifications td:first-child {
    width: 30%;
    font-weight: 600;
    color: #475569;
}

.review-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: #94a3b8;
    font-size: 14px;
}

.review-rating {
    color: #fbbf24;
    margin-bottom: 10px;
}

/* 商家入驻页样式 */
.vendor-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
}

/* 商家详情页样式 */
.vendor-profile {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
}

.vendor-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.vendor-logo {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vendor-info h2 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 700;
}

.vendor-info p {
    margin-bottom: 12px;
    color: #475569;
    font-size: 16px;
}

.vendor-rating {
    color: #fbbf24;
    font-size: 24px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 50px 0 20px;
    margin-top: 80px;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
    font-size: 18px;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    margin: 30px 0;
    padding: 0;
    text-align: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--dark-color);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.pagination li:first-child a {
    background-color: var(--light-color);
    color: #64748b;
    border-color: var(--gray-light);
    cursor: default;
}

.pagination li.active a {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
    cursor: default;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pagination li:not(.active) a:not(:first-child):hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .header-icons {
        margin-top: 15px;
        gap: 10px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }
    
    .vendor-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 14px;
    }
}