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

:root {
    --primary-pink: #ffd6e7;
    --secondary-pink: #ffeff7;
    --accent-pink: #4CAF50;
    --dark-pink: #009688;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --white: #ffffff;
}

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

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

/* 头部样式 */
header {
    background: linear-gradient(to right, #009688, #00BCD4);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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(--accent-pink);
    font-weight: 700;
}

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

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

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

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

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

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

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

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

.header-icons div {
    margin-left: 15px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.header-icons div:hover {
    color: var(--accent-pink);
}

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

.page.active {
    display: block;
}

/* 首页样式 */
.hero {
    background: linear-gradient(#00bcd4, #8bc34a5c), url('{HOME_THEME_PATH}images/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    color: var(--dark-pink);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #009688;
}

.btn {
    display: inline-block;
    background-color: var(--accent-pink);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--dark-pink);
    transform: translateY(-3px);
}

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

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

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

.category-card h3 {
    padding: 15px;
    color: var(--dark-pink);
}

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

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-pink);
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-pink);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-info {
    padding: 15px;
}

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

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

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

.price {
    font-weight: 700;
    color: var(--accent-pink);
}

.add-to-cart {
    background-color: var(--primary-pink);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--dark-pink);
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--accent-pink);
    color: white;
}

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

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

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

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

.filter-options select, .filter-options input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--light-gray);
}

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

.product-gallery {
    position: relative;
}

.product-gallery img {
    width: 100%;
    border-radius: 10px;
}

.product-info-detail h2 {
    color: var(--dark-pink);
    margin-bottom: 15px;
}

.product-info-detail .price {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
}

.product-info-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.quantity button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--light-gray);
    font-size: 18px;
    cursor: pointer;
}

.quantity input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: var(--dark-pink);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

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

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

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

.vendor-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.vendor-logo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.vendor-info h2 {
    color: var(--dark-pink);
    margin-bottom: 15px;
}

.vendor-info p {
    margin-bottom: 10px;
}

.vendor-rating {
    color: #ffc107;
    font-size: 20px;
    margin: 10px 0;
}

/* 页脚样式 */
footer {
   background: linear-gradient(to right, #009688, #00BCD4);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-column h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
    color:#fff;
}

.footer-column ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--accent-pink);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-pink);
    border-radius: 50%;
    color: var(--dark-pink);
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-pink);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .header-icons {
        margin-top: 15px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .vendor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.pagination {
margin: 20px 0;
padding: 0;
text-align: center;
}

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

.pagination li {
margin: 0;
}

.pagination a {
display: inline-block;
padding: 8px 14px;
text-decoration: none;
color: #333;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
transition: all 0.3s ease;
font-size: 14px;
font-family: Arial, sans-serif;
}

/* 总条数样式 */
.pagination li:first-child a {
background-color: #f5f5f5;
color: #666;
border-color: #e0e0e0;
cursor: default;
}

/* 激活状态样式 */
.pagination li.active a {
background-color:  #009688;
color: white;
border-color: #009688;
font-weight: bold;
cursor: default;
}

/* 悬停效果 */
.pagination li:not(.active) a:not(:first-child):hover {
background-color: #f8f9fa;
border-color: #ccc;
color: #d94d7c;
transform: translateY(-1px);
}

/* 禁用状态（如需） */
.pagination li.disabled a {
opacity: 0.6;
cursor: not-allowed;
background-color: #f5f5f5;
color: #999;
}

.pagination li.disabled a:hover {
transform: none;
background-color: #f5f5f5;
color: #999;
border-color: #ddd;
}

/* 响应式调整 */
@media (max-width: 576px) {
.pagination a {
padding: 6px 10px;
font-size: 12px;
}
}
  /* 商品详情页样式 - 增强 */
  .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

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

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    border: 2px solid var(--accent-pink);
}

.product-info-detail h2 {
    color: var(--dark-pink);
    margin-bottom: 15px;
    font-size: 28px;
}

.product-info-detail .price {
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
    color: var(--accent-pink);
    font-weight: bold;
}

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

.discount-badge {
    background-color: var(--accent-pink);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 14px;
    margin-left: 10px;
}

.product-info-detail p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
}

.meta-label {
    min-width: 80px;
    color: #666;
    font-weight: 500;
}

.meta-value {
    color: #333;
}

.stock-status {
    color: #28a745;
    font-weight: 500;
}

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

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.quantity button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--light-gray);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.quantity input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background-color: var(--dark-pink);
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.wishlist-btn.active {
    color: var(--accent-pink);
    border-color: var(--accent-pink);
    background-color: var(--primary-pink);
}

/* 商品详情标签页 */
.product-tabs {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--accent-pink);
}

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

.tab-content {
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.specifications tr {
    border-bottom: 1px solid #eee;
}

.specifications td {
    padding: 12px 15px;
}

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

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 500;
}

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

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

/* 相关产品推荐 */
.related-products {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-pink);
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-pink);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-info {
    padding: 15px;
}

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

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

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

.price {
    font-weight: 700;
    color: var(--accent-pink);
}

.add-to-cart {
    background-color: #4CAF50;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--accent-pink);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .header-icons {
        margin-top: 15px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .vendor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
}