/* 全局样式 - 简洁浅色系 */
:root {
    /* 简化配色方案 - 浅色系 */
    --primary-color: #2563eb; /* 柔和的蓝色 */
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    
    --secondary-color: #64748b; /* 中性灰色 */
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    
    /* 功能色 - 保持低调 */
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --info-color: #0ea5e9;
    
    /* 中性色 - 浅色系 */
    --white: #ffffff;
    --light-color: #f8fafc;    /* 最浅的背景色 */
    --light-gray: #f1f5f9;     /* 次要背景色 */
    --border-color: #e2e8f0;   /* 边框色 */
    --text-light: #94a3b8;     /* 浅色文字 */
    --text-medium: #64748b;    /* 中等文字 */
    --text-dark: #334155;      /* 深色文字 */
    --text-darker: #1e293b;    /* 标题文字 */
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    
    /* 阴影 - 简洁 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* 过渡 */
    --transition: 200ms ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-darker);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
}

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

/* 链接样式 */
/*a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
*/
/* 头部样式 */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    height: 72px;
    position: relative;
}

/* 品牌Logo区域 */
.header-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6c8cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-text::after {
    transform: scaleX(1);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-darker);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .toggle-bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .toggle-bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(74, 108, 247, 0.05);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(74, 108, 247, 0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-list {
        gap: 2px;
    }
}

@media (max-width: 992px) {
    html, body{
        max-width: 100%;
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 8px;
        padding: 0 24px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 12px;
        text-align: left;
    }
    
    .nav-link.active::before {
        bottom: 50%;
        left: 12px;
        transform: translateY(50%);
        width: 4px;
        height: 20px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 64px;
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 21px;
    }
    
    .main-nav {
        top: 64px;
        height: calc(100vh - 64px);
    }
}

/* 动画 */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 24px;
        opacity: 1;
    }
}

/* 导航指示器动画 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}
/* 主要内容区域 */
main.container {
    flex: 1;
    padding: 30px 0;
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

.card-header h2,
.card-header h3 {
    margin: 0;
    color: var(--text-darker);
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-darker);
    transition: border-color var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:hover {
    border-color: var(--secondary-light);
}

.form-text {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* 按钮样式 */
.form-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.form-group .btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.form-group .btn:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-medium);
}

.btn-outline:hover {
    background: var(--light-gray);
    border-color: var(--secondary-light);
    color: var(--text-dark);
}

/* 提示框样式 */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

table th {
    background: var(--light-gray);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: var(--light-gray);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination .active span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 商品网格 */
/* 最新商品区域 */
.latest-products {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-darker, #333);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color, #4a6cf7);
    border-radius: 2px;
}

.no-products {
    text-align: center;
    color: var(--text-light, #777);
    font-size: 16px;
    padding: 40px;
    background: var(--light-gray, #f8f9fa);
    border-radius: var(--radius, 8px);
}

/* 商品网格优化 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color, #e8e8e8);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light, #a5b4fc);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 商品图片区域 */
.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 商品信息区域 */
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-darker, #333);
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color, #4a6cf7);
}

/* 商品价格区域 */
.product-price {
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color, #e8e8e8);
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}

.points-required {
    display: block;
    font-size: 12px;
    color: var(--text-light, #777);
    margin-bottom: 4px;
}

.product-points {
    color: var(--danger-color, #ff4757);
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

/* 商品操作按钮 */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius, 6px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 42px;
}

.btn-detail {
    background: var(--light-gray, #f8f9fa);
    color: var(--text-medium, #555);
    border: 1px solid var(--border-color, #e8e8e8);
}

.btn-detail:hover {
    background: var(--border-color, #e8e8e8);
    color: var(--text-darker, #333);
    transform: translateY(-2px);
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-color, #4a6cf7) 0%, #6c8cff 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #3a5ce5 0%, #5a7cff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.btn-buy:active {
    transform: translateY(0);
}

/* 查看全部按钮 */
.view-all-products {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--primary-color, #4a6cf7);
    border: 2px solid var(--primary-color, #4a6cf7);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-color, #4a6cf7);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn {
        /*height: 40px;
        font-size: 13px;*/
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-image-container {
        height: 200px;
    }
}

/* 欢迎区域 */
.welcome-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-darker);
    margin-bottom: 12px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* 侧边栏 */
.admin-container {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar {
    width: 240px;
    background: var(--light-gray);
    border-right: 1px solid var(--border-color);
}

.content {
    flex: 1;
    padding: 24px;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-medium);
    font-size: 15px;
    transition: all var(--transition);
}

.sidebar-menu a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-menu a.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
}


/* 响应式设计 */
@media (max-width: 768px) {
    
    .header-container {
        padding: 12px 0;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 16px 20px;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .welcome-section {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    main.container {
        padding: 20px 0;
    }
}

/* 商品详情卡片 */
.product-detail-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

/* 商品详情网格布局 */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 图片区域 */
.product-images-section {
    position: relative;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 16px;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* 缩略图列表 */
.thumbnail-list {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    overflow-x: auto;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.thumbnail-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区域 */
.product-info-section {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 30px;
}

.product-info-section .product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-darker);
    line-height: 1.4;
    margin-bottom: 24px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--danger-color);
}

.product-stock-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.stock-label {
    font-size: 14px;
    color: var(--text-light);
}

.product-stock {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-darker);
}

.product-stock.low-stock {
    color: var(--danger-color);
}

.stock-warning {
    font-size: 14px;
    color: var(--danger-color);
    margin-left: 8px;
}

/* 购买按钮 */
.product-actions {
    margin-top: auto;
}

.product-info-section .btn-buy {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6c8cff 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.product-info-section .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.3);
}

.warning-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
}

/* 商品描述区域 */
.product-description-section {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 30px;
}

.description-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.description-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-darker);
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    white-space: pre-wrap;
}

/* 兑换弹窗 */
.exchange-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-darker);
    margin: 0;
}

.modal-close {
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 30px;
}

/* 错误信息 */
.error-list {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
}

.error-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 表单样式 */
.exchange-form {
    margin-top: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-darker);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 提交按钮 */
.form-actions {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--success-color, #28a745) 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.icon-confirm::before {
    content: "✓";
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .product-info-section .product-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }
    
    .product-info-section .product-title {
        font-size: 22px;
    }
    
    .product-info-section .btn-buy {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* 页脚样式 */
/* 页脚样式 */
footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    /*border-top: 2px solid var(--primary-color, #4a6cf7);*/
    padding: 50px 0 30px;
    margin-top: 80px;
    color: var(--text-medium, #555);
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1px 1fr;
    gap: 60px;
    align-items: start;
}

/* 联系信息区域 */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.contact-label {
    color: var(--text-dark, #333);
    font-weight: 600;
    min-width: 60px;
    font-size: 15px;
}

.contact-value {
    color: var(--text-medium, #555);
    flex: 1;
    font-size: 15px;
    word-break: break-word;
}

/* 分割线 */
.footer-divider {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--border-color, #e0e0e0) 50%, 
        transparent 100%);
    width: 1px;
    height: 100%;
    margin: 0 auto;
}

/* 版权备案区域 */
.footer-legal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.legal-info {
    text-align: left;
}

.copyright {
    color: var(--text-dark, #333);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.5;
}

.record {
    margin-bottom: 15px;
}

.record a {
    color: var(--text-medium, #555);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    border: 1px solid var(--border-color, #e0e0e0);
    transition: all 0.3s ease;
    display: inline-block;
}

.record a:hover {
    color: var(--primary-color, #4a6cf7);
    background: rgba(74, 108, 247, 0.05);
    border-color: var(--primary-color, #4a6cf7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.statement {
    color: var(--text-light, #777);
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #e0e0e0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-legal {
        border-top: 2px solid var(--border-color, #e0e0e0);
        padding-top: 30px;
        margin-top: 20px;
    }
    
    .legal-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 25px;
        margin-top: 60px;
        border-top-width: 1px;
    }
    
    
    .contact-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .contact-label {
        min-width: auto;
    }
    
    .copyright {
        font-size: 15px;
    }
    
    .record a {
        font-size: 13px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 30px 0 20px;
        margin-top: 50px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .contact-details {
        gap: 15px;
    }
    
    .contact-label,
    .contact-value {
        font-size: 14px;
    }
}

/* 打印样式 */
@media print {
    footer {
        border-top: 1px solid #ccc;
        background: none;
        color: #000;
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .record a {
        color: #000;
        background: none;
        border: 1px solid #ccc;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 24px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--text-dark);
}

/* 搜索表单 */
.search-form {
    /*margin-bottom: 32px;*/
    padding: 24px;
    /*background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 108, 247, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
}

.search-form-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* 搜索容器 */
.search-container {
    display: flex;
    gap: 12px;
    /*max-width: 600px;*/
    width: 100%;
}

/* 搜索输入框容器 */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 46px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-darker, #333);
    background: var(--white, #ffffff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color, #4a6cf7);
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--text-light, #94a3b8);
    font-size: 15px;
}

/* 搜索图标 */
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light, #94a3b8);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary-color, #4a6cf7);
}

/* 搜索按钮 */
.btn-search {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color, #4a6cf7) 0%, #6c8cff 100%);
    color: var(--white, #ffffff);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 108, 247, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search svg {
    transition: transform 0.3s ease;
}

.btn-search:hover svg {
    transform: scale(1.1);
}

.btn-search-text {
    display: inline-block;
}

/* 清除按钮 */
.btn-clear {
    padding: 14px 24px;
    background: var(--light-gray, #f8f9fa);
    color: var(--text-medium, #64748b);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-clear:hover {
    background: var(--border-color, #e2e8f0);
    color: var(--danger-color, #ef4444);
    border-color: var(--danger-light, #fecaca);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.btn-clear svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.btn-clear:hover svg {
    transform: rotate(90deg);
}

/* 搜索结果信息 */
.search-result-info {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(74, 108, 247, 0.05);
    border-radius: 8px;
    /*border-left: 4px solid var(--primary-color, #4a6cf7);*/
}

.search-result-text {
    margin: 0;
    font-size: 15px;
    color: var(--text-medium, #64748b);
    line-height: 1.6;
}

.search-keyword {
    font-weight: 600;
    color: var(--primary-color, #4a6cf7);
    background: rgba(74, 108, 247, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-form {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .search-container {
        flex-wrap: wrap;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .btn-search,
    .btn-clear {
        /*flex: 1;*/
        justify-content: center;
        /*min-width: 120px;*/
    }
    
    .search-result-info {
        padding: 14px 16px;
    }
    
    .search-result-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .search-form {
        padding: 16px;
    }
    
    .search-input {
        padding: 12px 16px 12px 42px;
        font-size: 15px;
    }
    
    .btn-search,
    .btn-clear {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn-search-text,
    .btn-clear-text {
        display: none;
    }
    
    .btn-search,
    .btn-clear {
        gap: 0;
        min-width: 60px;
    }
    
    .search-icon {
        left: 14px;
    }
}

/* 动画效果 */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 108, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 108, 247, 0);
    }
}

.search-input:focus {
    animation: searchPulse 1.5s infinite;
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }

.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; }

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}