/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入现代字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f5;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

/* 通用段落样式 */
p {
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 通用链接样式 */
a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff4d4f;
}

/* 头部样式 */
.header {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    width: 110px;
    height: 56px;
    margin-right: 20px;
    position: relative;
}

.logo-color {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.logo-color:hover {
    transform: scale(1.05);
}

.logo-red {
    top: 0;
    left: 0;
    background-color: #ff4d4f;
}

.logo-yellow {
    top: 0;
    right: 0;
    background-color: #faad14;
}

.logo-green {
    bottom: 0;
    left: 0;
    background-color: #52c41a;
}

.logo-blue {
    bottom: 0;
    right: 0;
    background-color: #1890ff;
}

.logo-text h1 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.logo-text p {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
    margin: 0;
}

/* 搜索框样式 */
.search {
    display: flex;
    align-items: center;
    width: 480px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.search input {
    flex: 1;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
}

.search input:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

.search button {
    height: 48px;
    padding: 0 28px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
}

.search button:hover {
    background-color: #ff7875;
    transform: translateY(-1px);
}

/* 导航样式 */
.nav {
    width: 100%;
    margin-top: 20px;
}

.nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav a:hover {
    color: #ff4d4f;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff4d4f;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* 主导航栏样式 */
.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 48px;
    position: relative;
}

.main-nav .category-all {
    font-weight: 600;
    padding: 20px 28px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #ff4d4f;
    color: white;
    margin-right: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.main-nav .category-all:hover {
    background-color: #ff7875;
    transform: translateY(-1px);
}

.main-nav .category-all span {
    margin-right: 10px;
    font-size: 18px;
}

.main-nav a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    letter-spacing: 0.05em;
}

.main-nav a:hover {
    color: #ff4d4f;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ff4d4f;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* 购物车角标样式 */
.cart-badge {
    position: absolute;
    top: 5px;
    right: -12px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.main-nav li:last-child {
    position: relative;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 600px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-content {
    position: relative;
    height: 100%;
}

/* 左侧分类菜单 */
.category-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: rgba(0, 0, 0);
    overflow: hidden;
    z-index: 10;
    border-radius: 8px 0 0 8px;
}

.category-menu ul {
    list-style: none;
    padding: 10px 0;
}

.category-menu li {
    position: relative;
}

.category-menu a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.category-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding-left: 28px;
}

.category-menu a::after {
    content: '>';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.category-menu a:hover::after {
    transform: translateY(-50%) translateX(4px);
}

/* 右侧轮播图 */
.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: scale(1.02);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 260px;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 400px;
}

.slide-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.slide-content h2 {
    font-size: 40px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.slide-tags span {
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.slide-tags span:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-indicators span:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-indicators span.active {
    width: 24px;
    border-radius: 5px;
    background-color: white;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 220px;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.carousel-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 商品展示区域样式 */
.products {
    margin-top: 50px;
    margin-bottom: 60px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.products-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.8px;
    margin: 0;
}

.products-tabs {
    display: flex;
    gap: 12px;
}

.products-tabs button {
    padding: 12px 24px;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 24px;
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
}

.products-tabs button.active {
    background-color: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.products-tabs button:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.products-tabs button.active:hover {
    background-color: #ff7875;
    border-color: #ff7875;
    color: white;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

/* 商品卡片 */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4f;
    margin-bottom: 6px;
    margin-top: auto;
}

.product-sold {
    font-size: 12px;
    color: #999;
}

/* 查看更多 */
.view-more {
    text-align: center;
    margin-top: 40px;
}

.view-more a {
    display: inline-block;
    padding: 12px 32px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    background-color: white;
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
}

.view-more a:hover {
    color: #ff4d4f;
    border-color: #ff4d4f;
    background-color: rgba(255, 77, 79, 0.05);
    transform: translateY(-2px);
}

.view-more a span {
    margin-left: 8px;
    transition: transform 0.3s;
}

.view-more a:hover span {
    transform: translateX(6px);
}

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 12px;
    color: #666;
}

.breadcrumb a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff4d4f;
}

/* 商品详情 */
.product-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* 商品图片 */
.product-images {
    width: 400px;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    background-color: white;
}

.main-image img {
    width: 100%;
    height: auto;
}

.thumbnail-images {
    display: flex;
    justify-content: space-between;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #ff4d4f;
}

.thumbnail:hover {
    border-color: #ff4d4f;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息 */
.product-info {
    flex: 1;
    background-color: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.product-info h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.price {
    font-size: 16px;
    color: #666;
}

.product-total {
    margin-bottom: 20px;
}

.total-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.total {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
}

/* 数量选择 */
.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.quantity-input {
    width: 60px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
    border-color: #ff4d4f;
}

.stock {
    font-size: 12px;
    color: #666;
    margin-right: 20px;
}

.sold {
    font-size: 12px;
    color: #666;
}

/* 购买按钮 */
.purchase-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.buy-now {
    padding: 10px 20px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #ff7875;
}

.add-to-cart {
    padding: 10px 20px;
    background-color: #52c41a;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #73d13d;
}

/* 店铺信息 */
.shop-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.shop-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

/* 商品详情选项卡 */
.product-tabs {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background-color: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #ff4d4f;
}

.tab-btn.active {
    color: #ff4d4f;
    border-bottom-color: #ff4d4f;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* 商品详情内容 */
.product-description {
    margin-bottom: 30px;
}

.product-description h2 {
    margin-bottom: 20px;
    color: #333;
}

.desc-content {
    margin-bottom: 30px;
}

.desc-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.desc-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.desc-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 商品图片展示 */
.product-gallery {
    margin-top: 40px;
}

.product-gallery h3 {
    margin-bottom: 20px;
    color: #333;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background-color: white;
}

/* 规格参数 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.specs-table th {
    background-color: #f8f8f5;
    font-weight: 600;
    color: #333;
    width: 150px;
}

.specs-table td {
    color: #666;
}

/* 物流信息 */
.shipping-info {
    line-height: 1.6;
}

.shipping-info h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.shipping-info h3:first-child {
    margin-top: 0;
}

.shipping-info ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.shipping-info li {
    margin-bottom: 8px;
}

.shipping-info p {
    margin-bottom: 15px;
}

/* 购物车页面样式 */
.cart-items {
    margin: 30px 0;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.cart-table th {
    background-color: #f8f8f5;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cart-table td {
    font-size: 14px;
    color: #333;
}

.cart-table .product-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.cart-table .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-table .product-name {
    text-align: left;
    max-width: 300px;
}

.cart-table .product-name a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.cart-table .product-name a:hover {
    color: #ff4d4f;
}

.cart-table .quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table .quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e0e0e0;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-table .quantity-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.cart-table .quantity-input {
    width: 60px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
}

.cart-table .quantity-input:focus {
    outline: none;
    border-color: #ff4d4f;
}

.cart-table .subtotal {
    font-weight: 600;
    color: #ff4d4f;
}

.cart-table .remove-btn {
    background-color: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-table .remove-btn:hover {
    color: #ff4d4f;
}

.cart-table .empty-cart {
    height: 200px;
    vertical-align: middle;
    color: #999;
}

/* 购物车总计 */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.total-info {
    font-size: 16px;
}

.total-info span:first-child {
    margin-right: 10px;
    color: #333;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff4d4f;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.continue-shopping {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.continue-shopping:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.checkout-btn {
    padding: 10px 20px;
    background-color: #ff4d4f;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #ff7875;
}

/* 购物车页面响应式设计 */
@media (max-width: 768px) {
    .cart-items {
        margin: 20px 0;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .cart-table .product-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-table .product-name {
        max-width: 150px;
    }
    
    .cart-table .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .cart-table .quantity-input {
        width: 50px;
        height: 28px;
        font-size: 13px;
    }
    
    .cart-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .cart-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .continue-shopping,
    .checkout-btn {
        flex: 1;
        text-align: center;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cart-table th {
        font-size: 12px;
        padding: 8px;
    }
    
    .cart-table td {
        font-size: 12px;
        padding: 8px;
    }
    
    .cart-table .product-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-table .product-name {
        max-width: 100px;
    }
    
    .cart-table .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .cart-table .quantity-input {
        width: 40px;
        height: 24px;
        font-size: 12px;
    }
    
    .cart-total {
        padding: 12px;
    }
    
    .total-info {
        font-size: 14px;
    }
    
    .total-price {
        font-size: 18px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .continue-shopping,
    .checkout-btn {
        width: 100%;
    }
}

/* 底部区域样式 */
.footer {
    background-color: #f8f8f5;
    border-top: 1px solid #e0e0e0;
    padding: 60px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 底部Logo */
.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 60px;
    flex-shrink: 0;
}

.footer-logo .logo-icon {
    width: 110px;
    height: 56px;
}

.footer-logo .logo-color {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo .logo-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.footer-logo .logo-text p {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 500;
    margin: 0;
}

/* 底部链接 */
.footer-links {
    display: flex;
    gap: 80px;
    flex: 1;
    min-width: 400px;
}

.footer-link-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-link-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-group li {
    margin-bottom: 12px;
}

.footer-link-group a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 16px;
}

.footer-link-group a:hover {
    color: #ff4d4f;
    transform: translateX(6px);
}

.footer-link-group a::after {
    content: '>';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s, left 0.3s;
}

.footer-link-group a:hover::after {
    left: 4px;
    opacity: 1;
}

/* 联系信息 */
.footer-contact {
    text-align: right;
    min-width: 220px;
    flex-shrink: 0;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-contact p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-qr {
    margin-bottom: 20px;
    text-align: center;
}

.contact-qr img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
}

.contact-btn:hover {
    background-color: #ff7875;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 底部版权信息 */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel {
        height: 600px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    /* 商品详情页 */
    .product-detail {
        gap: 30px;
    }
    
    .product-images {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .search {
        width: 350px;
    }
    
    .main-nav li {
        margin-right: 30px;
    }
    
    .carousel {
        height: 340px;
    }
    
    .category-menu {
        width: 200px;
    }
    
    .slide-content {
        left: 240px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-logo {
        width: 100%;
        margin-bottom: 30px;
        margin-right: 0;
    }
    
    /* 商品详情页 */
    .product-detail {
        flex-direction: column;
    }
    
    .product-images {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .product-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 头部样式 */
    .header {
        padding: 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .logo-icon {
        width: 90px;
        height: 40px;
    }
    
    .logo-color {
        width: 20px;
        height: 20px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .search {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .nav li {
        margin-right: 15px;
        margin-bottom: 8px;
    }
    
    /* 主导航栏 */
    .main-nav ul {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 15px;
    }
    
    .main-nav li {
        margin-right: 20px;
    }
    
    .main-nav .category-all {
        padding: 12px 16px;
    }
    
    .main-nav a {
        padding: 12px 0;
    }
    
    /* 轮播图 */
    .carousel {
        height: 280px;
        border-radius: 4px;
    }
    
    .category-menu {
        width: 180px;
        border-radius: 4px 0 0 4px;
    }
    
    .category-menu a {
        padding: 12px 16px;
    }
    
    .slide-content {
        left: 200px;
        max-width: 250px;
    }
    
    .slide-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .slide-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .carousel-controls {
        left: 180px;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    /* 商品展示 */
    .products {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .products-header h2 {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    /* 商品详情页 */
    .breadcrumb {
        font-size: 12px;
        margin: 15px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product-images {
        width: 100%;
    }
    
    .main-image {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .thumbnail-images {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .thumbnail {
        flex: 0 0 70px;
        height: 70px;
        padding: 4px;
    }
    
    .product-info h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .product-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .quantity {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quantity-control {
        margin-right: 15px;
    }
    
    .purchase-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .buy-now, .add-to-cart {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .shop-info p {
        font-size: 12px;
    }
    
    /* 底部 */
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        width: 100%;
        gap: 30px;
        margin-bottom: 20px;
    }
    
    .footer-contact {
        width: 100%;
        text-align: left;
    }
    
    .contact-qr {
        text-align: left;
    }
    
    .contact-qr img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    /* 头部 */
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .search input {
        height: 40px;
        padding: 0 15px;
    }
    
    .search button {
        height: 40px;
        padding: 0 20px;
    }
    
    /* 轮播图 */
    .carousel {
        height: 220px;
    }
    
    .category-menu {
        width: 160px;
    }
    
    .category-menu a {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .slide-content {
        left: 180px;
        max-width: 180px;
    }
    
    .slide-content h3 {
        font-size: 12px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .carousel-controls {
        left: 160px;
    }
    
    /* 商品展示 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-image {
        height: 200px;
    }
    
    /* 商品详情页 */
    .breadcrumb {
        font-size: 11px;
        margin: 10px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .main-image {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .thumbnail-images {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .thumbnail {
        flex: 0 0 60px;
        height: 60px;
        padding: 3px;
    }
    
    .product-info h1 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .quantity-control {
        margin-right: 10px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
    }
    
    .quantity-input {
        width: 50px;
        height: 28px;
    }
    
    .stock, .sold {
        font-size: 11px;
    }
    
    .buy-now, .add-to-cart {
        padding: 10px;
        font-size: 13px;
    }
    
    /* 底部 */
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-link-group h4 {
        margin-bottom: 12px;
    }
    
    .footer-bottom p {
        font-size: 10px;
        line-height: 1.4;
    }
}