/* ========== 基础重置与变量 ========== */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #f472b6;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.icon-btn {
    position: relative;
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Hero Banner ========== */
.hero {
    margin-top: 70px;
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 45px;
}

/* ========== 分类区域 ========== */
.categories {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 16px auto 0;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: rgba(255,255,255,0.25);
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    opacity: 0.75;
}

/* ========== 商品列表 ========== */
.products {
    padding: 80px 0;
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-new,
.badge-hot,
.badge-sale {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-new { background: var(--primary); color: white; }
.badge-hot { background: var(--danger); color: white; }
.badge-sale { background: var(--accent); color: white; }

.product-actions-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.overlay-btn:hover {
    background: var(--primary);
    color: white;
}

.wishlist-btn {
    width: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-name a {
    color: inherit;
    transition: var(--transition);
}

.product-name a:hover {
    color: var(--primary);
}

.product-rating-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.stars-mini {
    color: var(--accent);
}

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

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

.current-price .symbol {
    font-size: 14px;
    font-weight: 600;
}

.original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.sales-count {
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 特色服务 ========== */
.features {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    color: white;
    padding: 30px 20px;
}

.feature-item i {
    font-size: 42px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.85;
}

/* ========== 关于我们 ========== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

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

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-section p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-section ul a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
}

.beian-info {
    margin-top: 8px;
}

.beian-info a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.beian-info a:hover {
    color: var(--primary-light);
}

/* ========== 商品详情页 ========== */
.breadcrumb {
    margin-top: 70px;
    padding: 16px 0;
    background: var(--bg-tertiary);
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-light);
}

.product-detail {
    padding: 40px 0 80px;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 50px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.detail-gallery {
    position: sticky;
    top: 90px;
}

.main-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 450px;
    background: var(--bg-tertiary);
    margin-bottom: 16px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

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

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

.detail-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stars {
    color: var(--accent);
}

.rating-score {
    font-weight: 600;
    color: var(--text-primary);
}

.review-count,
.sales-count {
    font-size: 14px;
    color: var(--text-light);
}

.price-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fef3f7 100%);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.current-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--danger);
}

.price-symbol {
    font-size: 20px;
    font-weight: 600;
}

.original-price {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 12px;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-item {
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-desc {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.product-desc h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-desc p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.spec-section {
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.spec-label {
    width: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.spec-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spec-option {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.spec-option:hover,
.spec-option.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.quantity-selector input {
    width: 50px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.service-guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: var(--radius-md);
}

.service-guarantee span {
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.action-buttons .btn-outline {
    flex: 1;
}

.action-buttons .btn-primary {
    flex: 1.5;
}

/* ========== 详情标签页 ========== */
.detail-tabs {
    padding: 40px 0 80px;
    background: white;
    margin-top: 30px;
    border-radius: var(--radius-xl);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 16px 32px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
}

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

.detail-images img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.specs-table td:first-child {
    width: 150px;
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========== 用户评价 ========== */
.review-summary {
    display: flex;
    gap: 60px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.summary-score {
    text-align: center;
}

.big-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.summary-stars {
    color: var(--accent);
    font-size: 18px;
    margin: 8px 0;
}

.summary-score > span:last-child {
    color: var(--text-light);
    font-size: 14px;
}

.rating-bars {
    flex: 1;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.bar-item span:first-child {
    width: 36px;
    color: var(--text-secondary);
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.bar-item span:last-child {
    width: 36px;
    color: var(--text-light);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
}

.reviewer-meta .name {
    font-weight: 600;
    font-size: 14px;
}

.reviewer-meta .date {
    font-size: 12px;
    color: var(--text-light);
}

.review-stars {
    margin-left: auto;
    color: var(--accent);
    font-size: 14px;
}

.review-item > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.review-images {
    display: flex;
    gap: 8px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ========== 推荐商品 ========== */
.related-products {
    padding: 60px 0 80px;
    background: var(--bg-secondary);
}

/* ========== 订单/购物车页面 ========== */
.order-page {
    margin-top: 70px;
    padding: 40px 0 80px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary);
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-bottom: 50px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: grid;
    grid-template-columns: auto 140px 1fr auto auto auto auto;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.item-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-info h3 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.item-info h3 a:hover {
    color: var(--primary);
}

.item-specs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.spec-tag {
    padding: 3px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.item-tags {
    display: flex;
    gap: 6px;
}

.item-tags .tag {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    background: var(--primary);
    color: white;
}

.item-tags .tag.highlight {
    background: var(--danger);
}

.item-price {
    text-align: right;
}

.item-price .current {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}

.item-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.qty-selector .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.qty-selector .qty-btn:hover {
    color: var(--primary);
}

.qty-selector input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.item-subtotal span {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-link {
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-link:hover {
    color: var(--primary);
}

.action-link.danger:hover {
    color: var(--danger);
}

/* 结算栏 */
.order-summary {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.coupon-section {
    margin-bottom: 24px;
}

.coupon-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.coupon-input input:focus {
    border-color: var(--primary);
}

.coupon-input button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.coupon-input button:hover {
    background: var(--primary-dark);
}

.available-coupons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.coupon-tag {
    padding: 5px 12px;
    border: 1px dashed var(--danger);
    border-radius: 4px;
    font-size: 12px;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
}

.coupon-tag:hover {
    background: rgba(239, 68, 68, 0.08);
}

.summary-details {
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 16px;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.discount {
    color: var(--success);
}

.free {
    color: var(--success);
}

#total-price {
    color: var(--danger);
    font-size: 24px !important;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.payment-methods i {
    font-size: 22px;
    color: var(--text-secondary);
}

.suggest-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.suggest-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggest-card h4 i {
    color: var(--accent);
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.suggest-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.suggest-info {
    flex: 1;
}

.suggest-info .name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.suggest-info .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--danger);
}

.suggest-info del {
    font-size: 12px;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 4px;
}

.btn-add {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add:hover {
    background: var(--primary-dark);
}

.add-tip {
    font-size: 12px;
    color: var(--accent);
    text-align: center;
    background: #fffbeb;
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* 猜你喜欢 */
.recent-viewed {
    margin-top: 30px;
}

.mini-product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mini-product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.mini-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mini-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.mini-product-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 10px;
}

.btn-mini-add {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-mini-add:hover {
    background: var(--primary-dark);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-gallery {
        position: static;
    }
    
    .order-wrapper {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .mini-product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero {
        height: 400px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .order-item {
        grid-template-columns: auto 80px 1fr;
        gap: 12px;
    }
    
    .item-price,
    .item-subtotal,
    .item-actions {
        grid-column: 2 / -1;
    }

    .order-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mini-product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
