/* ===== 前台店铺样式 - 移动端优先 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --primary-light: #333333;
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #FFFFFF;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --danger: #DC2626;
    --sale-price: #DC2626;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 顶部公告栏 ===== */
.announcement-bar {
    width: 100%;
    padding: 12px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.announcement-bar .announcement-text {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ===== 加载屏幕 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-screen p {
    margin-top: 15px;
    color: var(--text-gray);
}

/* ===== 头部导航 ===== */
.store-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-logo {
    cursor: pointer;
}

.store-logo img {
    height: 40px;
    width: auto;
}

.store-logo h2 {
    font-size: 18px;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 主页横幅 ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    width: 100%;
}

.hero-banner h1 {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== 系列入口 ===== */
.collections-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.collection-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.collection-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.collection-card-body {
    padding: 15px;
}

.collection-card h3 {
    font-size: 16px;
}

/* ===== 产品列表 ===== */
.products-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 4列产品网格 - 移动端2列 */
.products-grid-4col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-card-image {
    cursor: pointer;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card-body {
    padding: 12px;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    cursor: pointer;
}

.product-card h3:hover {
    text-decoration: underline;
}

.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price {
    margin-bottom: 10px;
}

.product-card-price .sale-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--sale-price);
    margin-right: 8px;
}

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

/* 快速加购按钮 */
.quick-add-btn {
    width: 100%;
    padding: 10px 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

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

.quick-add-btn i {
    font-size: 14px;
}

/* Toast 提示 */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 变体选择弹窗 */
.variant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.variant-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.variant-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1;
}

.variant-modal-content {
    display: flex;
    flex-direction: column;
}

.variant-modal-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.variant-modal-image img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.variant-modal-info {
    padding: 20px;
}

.variant-modal-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.variant-modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--sale-price);
    margin-bottom: 20px;
}

.variant-options {
    margin-bottom: 20px;
}

.variant-option-group {
    margin-bottom: 15px;
}

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

.variant-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-option-btn:hover {
    border-color: var(--primary);
}

.variant-option-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.quick-add-confirm-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

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

@media (min-width: 768px) {
    .variant-modal {
        max-width: 600px;
    }
    
    .variant-modal-content {
        flex-direction: row;
    }
    
    .variant-modal-image {
        width: 45%;
        max-height: none;
        aspect-ratio: auto;
    }
    
    .variant-modal-info {
        width: 55%;
        padding: 25px;
    }
}

/* 首页 Banner */
.home-banner {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 768px) {
    .home-banner {
        max-height: 350px;
    }
}

/* 系列页样式 */
.collection-page {
    padding: 20px 0;
}

.collection-header {
    padding: 0 15px 20px;
    text-align: center;
}

.collection-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.collection-description {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.collection-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.collection-description p {
    margin-bottom: 10px;
}

/* ===== 产品详情页 - 移动端优先 ===== */
.product-detail {
    width: 100%;
    background: var(--white);
}

/* 产品图片区域 */
.product-images {
    position: relative;
    width: 100%;
    background: #fff;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    touch-action: pan-y pinch-zoom;
}

/* 图片导航按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(0,0,0,0.4);
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s;
}

.carousel-nav:hover {
    color: rgba(0,0,0,0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

/* 缩略图横向滚动 */
.thumbnail-carousel-container {
    position: relative;
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.thumbnail-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 5px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-carousel::-webkit-scrollbar {
    display: none;
}

.thumbnail-carousel-inner {
    display: flex;
    gap: 10px;
    width: max-content;
}

.thumbnail {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 产品信息区域 */
.product-info {
    padding: 20px 15px;
    background: white;
}

.product-info h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-info .price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-info .sale-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--sale-price);
}

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

.product-info .price {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* 营销信息 */
.marketing-info {
    margin-bottom: 20px;
    padding: 0;
}

.marketing-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.marketing-info li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.marketing-info li::before {
    content: "•";
    color: var(--text-dark);
    font-weight: bold;
}

/* ===== 规格选择器 ===== */
.variant-options {
    margin-bottom: 20px;
}

.variant-option-group {
    margin-bottom: 15px;
}

.variant-option-group label {
    display: block;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.variant-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option-btn {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
}

.variant-option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.variant-option-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.variant-option-btn:active {
    transform: scale(0.95);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--text-gray);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-controls button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-light);
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    touch-action: manipulation;
}

.quantity-controls button:active {
    background: var(--border);
}

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

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #333333;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.buy-now-btn {
    width: 100%;
    padding: 16px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
    touch-action: manipulation;
}

.buy-now-btn:hover {
    background: #FF5252;
}

.buy-now-btn:active {
    transform: scale(0.98);
}

.product-description {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-description h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-description img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

/* ===== 购物车页面 ===== */
.cart-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

.cart-page h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.cart-items {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-checkbox {
    display: flex;
    align-items: center;
    padding-top: 25px;
}

.cart-item-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    font-size: 13px;
    color: var(--text-light);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.cart-quantity-controls .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-quantity-controls .qty-btn:hover {
    background: var(--border);
}

.cart-quantity-controls .qty-value {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 32px;
    line-height: 32px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--sale-price);
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--danger);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-summary {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 0;
}

.cart-summary-row .discount {
    color: var(--primary);
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

/* ===== 页脚 ===== */
.store-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 30px 15px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-icons i {
    font-size: 32px;
    color: var(--text-gray);
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.payment-icons i:hover {
    opacity: 1;
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
}

/* ===== 政策弹窗 ===== */
.policy-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.policy-modal.active {
    transform: translateY(0);
}

.policy-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.policy-modal-header h3 {
    font-size: 18px;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    padding: 0;
    line-height: 1;
}

.policy-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    white-space: pre-line;
    line-height: 1.8;
    font-size: 14px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Toast 通知 ===== */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--text-dark);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: var(--danger);
}

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

/* ===== 大屏响应式 ===== */
@media (min-width: 768px) {
    .hero-banner {
        padding: 80px 20px;
    }
    
    .hero-banner h1 {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    /* PC端4列产品网格 */
    .products-grid-4col {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .collection-header {
        padding: 30px 20px 30px;
    }
    
    .collection-title {
        font-size: 32px;
    }
    
    .collection-description {
        font-size: 16px;
    }
    
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
        gap: 40px;
        background: var(--bg-light);
    }
    
    .product-images {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }
    
    .main-image-container {
        border-radius: 12px 12px 0 0;
    }
    
    .thumbnail-carousel-container {
        border-radius: 0 0 12px 12px;
    }
    
    .product-info {
        padding: 0;
        background: transparent;
    }
    
    .product-info h1 {
        font-size: 28px;
    }
    
    .product-info .price {
        font-size: 32px;
    }
    
    .thumbnail {
        width: 85px;
        height: 85px;
    }
}
