/* 
 * 前台商城现代化UI样式
 * 设计原则：视觉优先、动态布局、情感化、轻量化、微交互
 */

/* ==================== CSS变量定义 ==================== */
:root {
    /* 主色调 - 温暖渐变 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    
    /* 基础色彩 */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #38ef7d;
    --warning-color: #f2994a;
    --danger-color: #eb3349;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12), 0 10px 15px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    
    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ==================== 重置与基础样式 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 容器布局 ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 头部导航 - 玻璃拟态设计 ==================== */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    gap: 20px;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

header h1 a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-normal);
}

header h1 a:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
    border-radius: inherit;
    z-index: -1;
}

nav ul li a:hover {
    color: var(--bg-white);
    transform: translateY(-2px);
}

nav ul li a:hover::before {
    opacity: 1;
}

nav ul li a:active {
    transform: translateY(0) scale(0.98);
}

/* 语言切换下拉 */
.lang-switch select {
    appearance: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    padding: 10px 36px 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.lang-switch select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.lang-switch select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* ==================== 主体内容区域 ==================== */
main {
    min-height: calc(100vh - 180px);
    padding: 40px 0;
}

main > .container {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out;
}

/* 页面标题 */
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 18px;
}

/* ==================== 商品网格 - 动态布局 ==================== */
.product-list, .goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

/* 商品卡片 - 情感化微交互 */
.product-item, .goods-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid transparent;
}

.product-item::before, .goods-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
    border-radius: inherit;
}

.product-item:hover, .goods-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.product-item:hover::before, .goods-item:hover::before {
    opacity: 0.03;
}

/* 商品图片 */
.product-image, .goods-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-item:hover .product-image,
.goods-item:hover img {
    transform: scale(1.08);
}

.goods-item a {
    display: block;
    overflow: hidden;
}

/* 商品信息 */
.product-info, .goods-item h3 {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.goods-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 16px 20px 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 价格样式 */
.product-price, .price {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.goods-item .price {
    padding: 0 20px;
    margin: 0;
}

/* 库存显示 */
.stock {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 20px 12px;
    margin: 0;
}

/* 商品操作按钮区 */
.product-actions, .actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ==================== 按钮系统 - 微交互动效 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: var(--transition-normal);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn:active {
    transform: scale(0.96);
}

/* 主要按钮 */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* 次要按钮 */
.btn-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--text-muted);
}

/* 成功按钮 */
.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.5);
    transform: translateY(-2px);
}

/* 警告按钮 */
.btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(242, 153, 74, 0.5);
    transform: translateY(-2px);
}

/* 危险按钮 */
.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(235, 51, 73, 0.5);
    transform: translateY(-2px);
}

/* 小按钮 */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==================== 表单样式 - 情感化输入体验 ==================== */
.form-container {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition-normal);
}

.form-input:hover, input:hover, textarea:hover, select:hover {
    border-color: var(--text-muted);
}

.form-input:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), var(--shadow-sm);
}

.form-input::placeholder, input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* 输入框图标 */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 48px;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.input-icon-wrapper:focus-within .icon {
    color: var(--primary-color);
}

/* ==================== 提示框样式 ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.4s ease-out;
}

.alert-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #276749;
    border: 1px solid #68d391;
}

.alert-warning {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    color: #c05621;
    border: 1px solid #f6ad55;
}

.alert-info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2b6cb0;
    border: 1px solid #63b3ed;
}

/* ==================== 购物车表格 - 轻量化设计 ==================== */
.cart-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
}

.cart-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.cart-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.cart-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: var(--transition-fast);
}

.cart-table tbody tr {
    transition: var(--transition-fast);
}

.cart-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

.cart-table tbody tr:hover td {
    border-color: rgba(102, 126, 234, 0.1);
}

/* 购物车商品图片 */
.cart-table img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.cart-table tr:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* 数量调节器 */
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-control button:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 600;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* 购物车汇总 */
.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.cart-summary h3::after {
    display: none;
}

/* ==================== 商品详情页 ==================== */
.goods-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.goods-image {
    position: sticky;
    top: 100px;
}

.goods-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.goods-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.goods-info {
    padding: 20px 0;
}

.goods-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.goods-info h2::after {
    display: none;
}

.goods-price {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.goods-stock {
    color: var(--text-muted);
    margin-bottom: 28px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: inline-block;
}

.goods-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
}

.goods-actions .btn {
    flex: 1;
    padding: 16px 28px;
    font-size: 1.05rem;
}

.goods-description {
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.goods-description h3 {
    margin-top: 0;
}

/* ==================== 页脚 ==================== */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    padding: 40px 0;
    margin-top: 60px;
}

footer .container {
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

footer a {
    color: #90cdf4;
}

footer a:hover {
    color: white;
}

/* ==================== 动画关键帧 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 骨架屏加载 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .goods-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .goods-image {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li a {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 24px 0;
    }
    
    main > .container {
        padding: 24px;
        border-radius: var(--radius-md);
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .product-list, .goods-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 12px;
    }
    
    .goods-actions {
        flex-direction: column;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    nav ul li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .product-list, .goods-list {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .goods-price {
        font-size: 1.8rem;
    }
}

/* ==================== 辅助类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-full { width: 100%; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

/* 隐藏滚动条但保留功能 */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ==================== 宽屏轮播图 - 流行风格设计 ==================== */
/* 
 * 设计特点：
 * - 高饱和度低明度活力色调
 * - 撞色轻渐变背景
 * - 圆角卡片式构图
 * - 轻量化促销标签
 * - 微立体浮雕质感
 * - 悬浮轻微缩放动效
 * - 多端响应式适配
 */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.banner-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

/* 撞色轻渐变背景 */
.banner-slide:nth-child(1) { background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%); }
.banner-slide:nth-child(2) { background: linear-gradient(135deg, #5f27cd 0%, #48dbfb 100%); }
.banner-slide:nth-child(3) { background: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%); }
.banner-slide:nth-child(4) { background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%); }
.banner-slide:nth-child(5) { background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%); }

/* 圆角卡片式内容区 */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
    z-index: 2;
}

.banner-info {
    flex: 0 0 35%;
    max-width: 35%;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    animation: slideInLeft 0.6s ease-out;
}

/* 手写体标题效果 */
.banner-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 无衬线副标题 */
.banner-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 产品图区 - 占比70%+ */
.banner-image-wrapper {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.banner-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: floatIn 0.8s ease-out;
}

/* 悬浮轻微缩放动效 */
.banner-slide:hover .banner-image {
    transform: scale(1.05) translateY(-5px);
}

/* 轻量化促销标签 */
.banner-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    animation: badgePop 0.5s ease-out 0.3s both;
    z-index: 10;
}

.banner-badge-hot {
    background: rgba(255,255,255,0.95);
    color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.banner-badge-new {
    background: rgba(255,255,255,0.95);
    color: #5f27cd;
    box-shadow: 0 4px 15px rgba(95,39,205,0.4);
}

.banner-badge-sale {
    background: rgba(255,255,255,0.95);
    color: #ff9f43;
    box-shadow: 0 4px 15px rgba(255,159,67,0.4);
}

.banner-badge-limited {
    background: rgba(255,255,255,0.95);
    color: #ee5a24;
    box-shadow: 0 4px 15px rgba(238,90,36,0.4);
}

/* CTA按钮 - 微立体浮雕质感 */
.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.15),
        inset 0 -2px 0 rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    text-decoration: none;
}

.banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.banner-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.banner-cta:hover svg {
    transform: translateX(4px);
}

/* 轮播导航点 */
.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.banner-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* 左右箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10;
    opacity: 0;
}

.hero-banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.banner-arrow-prev { left: 24px; }
.banner-arrow-next { right: 24px; }

.banner-arrow svg {
    width: 24px;
    height: 24px;
}

/* 动画关键帧 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .banner-slider {
        height: 400px;
    }
    
    .banner-info {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .banner-image-wrapper {
        flex: 0 0 55%;
        max-width: 55%;
    }
    
    .banner-image {
        max-height: 340px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .hero-banner {
        border-radius: var(--radius-lg);
        margin-bottom: 24px;
    }
    
    .banner-slider {
        height: 320px;
    }
    
    .banner-content {
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        text-align: center;
    }
    
    .banner-info {
        flex: none;
        max-width: 100%;
        order: 2;
    }
    
    .banner-image-wrapper {
        flex: none;
        max-width: 100%;
        order: 1;
        padding: 0;
        margin-bottom: 16px;
    }
    
    .banner-image {
        max-height: 160px;
    }
    
    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .banner-badge {
        top: 12px;
        left: 12px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .banner-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
    }
    
    .banner-dots {
        bottom: 16px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-dot.active {
        width: 24px;
    }
}

/* 响应式 - 小手机 */
@media (max-width: 480px) {
    .banner-slider {
        height: 280px;
    }
    
    .banner-image {
        max-height: 120px;
    }
    
    .banner-arrow {
        display: none;
    }
}

/* ==================== 首页专属样式 ==================== */

/* 动画延迟类（用于商品卡片入场动画） */
.goods-item:nth-child(1) { animation-delay: 0s; }
.goods-item:nth-child(2) { animation-delay: 0.1s; }
.goods-item:nth-child(3) { animation-delay: 0.2s; }
.goods-item:nth-child(4) { animation-delay: 0.3s; }
.goods-item:nth-child(5) { animation-delay: 0.4s; }
.goods-item:nth-child(6) { animation-delay: 0.5s; }
.goods-item:nth-child(7) { animation-delay: 0.6s; }
.goods-item:nth-child(8) { animation-delay: 0.7s; }
.goods-item:nth-child(9) { animation-delay: 0.8s; }
.goods-item:nth-child(10) { animation-delay: 0.9s; }
.goods-item:nth-child(11) { animation-delay: 1s; }
.goods-item:nth-child(12) { animation-delay: 1.1s; }

/* 商品列表卡片动画延迟 */
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.16s; }
.product-card:nth-child(4) { animation-delay: 0.24s; }
.product-card:nth-child(5) { animation-delay: 0.32s; }
.product-card:nth-child(6) { animation-delay: 0.4s; }
.product-card:nth-child(7) { animation-delay: 0.48s; }
.product-card:nth-child(8) { animation-delay: 0.56s; }
.product-card:nth-child(9) { animation-delay: 0.64s; }
.product-card:nth-child(10) { animation-delay: 0.72s; }
.product-card:nth-child(11) { animation-delay: 0.8s; }
.product-card:nth-child(12) { animation-delay: 0.88s; }

/* 通用工具类 */
.text-required { color: #e53e3e; }
.text-success { color: #38ef7d; }
.text-warning { color: #e53e3e; font-weight: 500; }

/* 图片占位区域 */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 分类导航 */
.category-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 24px;
    margin-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 120px;
    border: 1px solid transparent;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
    background: white;
}

.category-item .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.category-item .icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.category-item span {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* 商品区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h3 .emoji {
    font-size: 1.4rem;
}

.section-header .view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    gap: 10px;
}

/* 首页商品卡片增强 */
.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.goods-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.goods-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: inherit;
}

.goods-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.goods-item:hover::before {
    opacity: 0.03;
}

.goods-item > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.goods-item .image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.goods-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.goods-item:hover img {
    transform: scale(1.08);
}

/* 商品标签 */
.goods-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}

.goods-item .content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.goods-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
}

.goods-item .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.goods-item .price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    padding: 0;
}

.goods-item .original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.goods-item .stock {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0;
    margin: 0 0 16px;
}

.goods-item .actions {
    display: flex;
    gap: 10px;
    padding: 0;
}

.goods-item .actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* 悬浮购买按钮效果 */
.goods-item .quick-buy {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 5;
}

.goods-item:hover .quick-buy {
    opacity: 1;
    transform: scale(1);
}

.goods-item .quick-buy:hover {
    transform: scale(1.1);
}

.goods-item .quick-buy svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* 首页响应式调整 */
@media (max-width: 768px) {
    .category-nav {
        padding: 8px 0 16px;
    }
    
    .category-item {
        padding: 16px 20px;
        min-width: 100px;
    }
    
    .goods-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .goods-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .goods-item .content {
        padding: 14px;
    }
    
    .goods-item h3 {
        font-size: 0.9rem;
    }
    
    .goods-item .price {
        font-size: 1.1rem;
    }
    
    .goods-item .actions {
        flex-direction: column;
    }
}

/* ==================== 商品列表页专属样式 ==================== */

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-select select {
    padding: 10px 36px 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* 商品卡片 */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.product-card .image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

/* 商品标签 */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}

.product-badge.new {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.product-badge.sale {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

/* 收藏按钮 */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    stroke: #e53e3e;
    fill: none;
    transition: all 0.3s ease;
}

.favorite-btn.active svg {
    fill: #e53e3e;
}

/* 商品信息 */
.product-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card h3 a:hover {
    color: var(--primary-color);
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stock-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-info.low {
    color: #e53e3e;
}

.stock-info svg {
    width: 14px;
    height: 14px;
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions .btn svg {
    width: 18px;
    height: 18px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state .icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.empty-state .icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination a {
    background: white;
    color: var(--text-secondary);
    border: 2px solid #e2e8f0;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 商品列表响应式 */
@media (max-width: 768px) {
    .filter-bar {
        padding: 16px;
    }
    
    .filter-tags {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .goods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .goods-grid {
        gap: 12px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .favorite-btn {
        width: 32px;
        height: 32px;
    }
    
    .favorite-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== 商品详情页专属样式 ==================== */

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

/* 主布局 */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* 图片展示区 */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    background: #f8f9fa;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* 缩放提示 */
.zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .zoom-hint {
    opacity: 1;
}

.zoom-hint svg {
    width: 16px;
    height: 16px;
}

/* 产品徽章 */
.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-badges span {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
}

.product-badges span.new {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* 缩略图列表 */
.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 4px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区 */
.product-info-section {
    padding: 20px 0;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

/* 评价和销量 */
.product-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sales-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 价格区域 */
.price-box {
    background: linear-gradient(135deg, #fef5f5 0%, #fff5f8 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 28px;
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.detail-current-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.detail-original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

/* 规格选择 */
.spec-section {
    margin-bottom: 28px;
}

.spec-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-option {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.spec-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.spec-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 数量选择 */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
}

.stock-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-status.low {
    color: #e53e3e;
}

.stock-status svg {
    width: 18px;
    height: 18px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.action-buttons .btn {
    flex: 1;
    padding: 18px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-buttons .btn svg {
    width: 22px;
    height: 22px;
}

.btn-cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-buy {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.5);
}

/* 服务保障 */
.service-guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 14px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guarantee-item svg {
    width: 20px;
    height: 20px;
    color: #38ef7d;
}

/* 商品详情 Tab */
.detail-tabs {
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-content {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

.description-content p {
    margin-bottom: 16px;
}

/* 商品详情响应式 */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .detail-current-price {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .price-box {
        padding: 16px;
    }
    
    .product-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .service-guarantee {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==================== 购物车页面专属样式 ==================== */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.cart-header h2::after {
    display: none;
}

.cart-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 购物车列表 */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

/* 购物车卡片 */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.1);
}

/* 选择框 */
.cart-item .checkbox {
    display: flex;
    align-items: center;
}

.cart-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* 商品信息 */
.cart-product {
    display: flex;
    gap: 20px;
}

.cart-product .image {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-product .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cart-item:hover .cart-product .image img {
    transform: scale(1.05);
}

.cart-product .details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cart-product .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-product .name:hover {
    color: var(--primary-color);
}

.cart-product .specs {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-product .price {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 操作区 */
.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    min-width: 160px;
}

/* 数量选择器 */
.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-control button {
    width: 38px;
    height: 38px;
    border: none;
    background: #f8f9fa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.quantity-control button:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-control input {
    width: 55px;
    height: 38px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-control input:focus {
    outline: none;
}

/* 小计和删除 */
.item-subtotal {
    text-align: right;
}

.item-subtotal .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.item-subtotal .amount {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    color: #e53e3e;
    border-color: #fc8181;
    background: #fff5f5;
}

.delete-btn svg {
    width: 16px;
    height: 16px;
}

/* 结算区域 */
.cart-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: sticky;
    bottom: 20px;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.08);
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 32px;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.select-all input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.select-all span {
    font-weight: 500;
    color: var(--text-secondary);
}

.summary-info {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.summary-info .count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-info .count strong {
    color: var(--primary-color);
    font-weight: 700;
}

.summary-info .total {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-info .total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-clear {
    padding: 14px 28px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    border-color: #fc8181;
    color: #e53e3e;
    background: #fff5f5;
}

.btn-checkout {
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-checkout svg {
    width: 20px;
    height: 20px;
}

/* 空购物车状态 */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart .icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    animation: cartFloat 3s ease-in-out infinite;
}

@keyframes cartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-cart .icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--text-muted);
}

.empty-cart h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}

.empty-cart .btn {
    padding: 14px 36px;
}

/* 购物车响应式 */
@media (max-width: 900px) {
    .cart-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .cart-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .cart-item .checkbox {
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    .cart-product {
        flex-direction: column;
        padding-left: 40px;
    }
    
    .cart-product .image {
        width: 100%;
        height: 180px;
    }
    
    .cart-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
        padding-left: 40px;
    }
    
    .summary-info .total-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-buttons {
        flex-direction: column;
    }
    
    .btn-clear, .btn-checkout {
        width: 100%;
        justify-content: center;
    }
    
    .cart-footer {
        padding: 20px;
    }
}
