/* css/product.css - 产品详情页面样式 */
:root {
    --primary-color: #1E40AF;
    --secondary-color: #3B82F6;
    --accent-color: #06B6D4;
    --background-color: #FFFFFF;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
    --success-color: #059669;
    --warning-color: #D97706;
    --error-color: #DC2626;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* 基础样式 */
.product-detail-page {
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.breadcrumb li[aria-current="page"] {
    color: var(--gray-800);
    font-weight: 500;
}

/* 产品基本信息布局 */
.product-basic-info {
    padding: 2rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* 产品图片区域 */
.product-images-section {
    position: sticky;
    top: 2rem;
}

.main-image-container {
    position: relative;
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 轮播图 */
.carousel-section {
    position: relative;
}

.carousel-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.carousel-item {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.carousel-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.carousel-item.active {
    border-color: var(--primary-color);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

/* 产品信息区域 */
.product-info-section {
    padding: 1rem 0;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-id {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: var(--gray-300);
    font-size: 1rem;
}

.star.full, .star.half {
    color: #FBBF24;
}

.rating-value {
    font-weight: 600;
    color: var(--gray-700);
}

.review-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* 价格信息 */
.price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.original-price {
    font-size: 1.125rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 0.5rem;
}

.savings {
    color: var(--success-color);
    font-weight: 500;
}

/* 产品简述 */
.product-summary {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* 库存信息 */
.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.stock-label {
    color: var(--gray-600);
    font-weight: 500;
}

.stock-status {
    font-weight: 600;
}

.stock-status.in-stock {
    color: var(--success-color);
}

.stock-status.low-stock {
    color: var(--warning-color);
}

.stock-status.out-of-stock {
    color: var(--error-color);
}

/* 数量选择 */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-section label {
    font-weight: 500;
    color: var(--gray-700);
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.quantity-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.quantity-input {
    width: 60px;
    border: none;
    background: white;
    text-align: center;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.5rem;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: var(--success-color);
    color: white;
}

.btn-secondary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gray-600);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* 服务承诺 */
.service-promises {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
}

.promise-icon {
    font-size: 1.125rem;
}

.promise-text {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* 产品详情标签页 */
.product-details-tabs {
    padding: 3rem 0;
    background: var(--gray-50);
}

.tabs-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.tab-btn.active {
    color: var(--primary-color);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 商品详情内容 */
.detail-content {
    line-height: 1.7;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 商品规格 */
.specs-grid {
    display: grid;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.spec-name {
    font-weight: 500;
    color: var(--gray-700);
}

.spec-value {
    color: var(--gray-600);
}

/* 用户评价 */
.reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.average-rating {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-reviews {
    display: block;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* 评价列表 */
.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar.default {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.username {
    font-weight: 500;
    color: var(--gray-800);
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.review-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.review-content {
    color: var(--gray-700);
    line-height: 1.6;
}

/* 添加评价表单 */
.add-review-section {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.add-review-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--gray-800);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.rating-input {
    display: flex;
    gap: 0.25rem;
}

.rating-input input {
    display: none;
}

.star-label {
    font-size: 1.5rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input input:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: #FBBF24;
}

.rating-input input:checked + .star-label {
    color: #FBBF24;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* 登录提示 */
.login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 相关产品推荐 */
.related-products {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* 无内容状态 */
.no-content, .no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images-section {
        position: static;
    }
    
    .main-image {
        height: 300px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .service-promises {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .review-header {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    
    .review-rating {
        align-items: start;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .quantity-section {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }
    
    .tabs-content {
        padding: 1rem;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 微交互效果 */
.btn, .tab-btn, .carousel-item, .quantity-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 焦点状态 */
.btn:focus, .tab-btn:focus, .quantity-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 触摸设备优化 */
@media (hover: none) {
    .btn:hover, .tab-btn:hover, .carousel-item:hover {
        transform: none;
    }
}



/* 在现有CSS文件末尾添加以下样式 */

/* 详情图集样式 */
.gallery-content {
    padding: 1rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* 商品详情文本样式 */
.product-detail-text {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--gray-700);
}

.product-detail-text h1,
.product-detail-text h2,
.product-detail-text h3,
.product-detail-text h4 {
    color: var(--gray-900);
    margin: 1.5rem 0 1rem 0;
}

.product-detail-text h1 { font-size: 1.5rem; }
.product-detail-text h2 { font-size: 1.375rem; }
.product-detail-text h3 { font-size: 1.25rem; }
.product-detail-text h4 { font-size: 1.125rem; }

.product-detail-text p {
    margin-bottom: 1rem;
}

.product-detail-text ul,
.product-detail-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.product-detail-text li {
    margin-bottom: 0.5rem;
}

.product-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 规格信息样式 */
.additional-specs {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.additional-specs h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.specs-text {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    white-space: pre-line;
}

/* 图片显示修复 */
.main-image-container img,
.carousel-item img,
.gallery-item img {
    opacity: 1 !important;
    transition: opacity 0.3s ease !important;
}

/* 确保图片容器有明确尺寸 */
.main-image-container {
    min-height: 400px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    min-height: 80px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .main-image-container {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 150px;
    }
    
    .main-image-container {
        min-height: 250px;
    }
}

/* 标签页内容动画 */
.tab-pane {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片加载状态 */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}




















/* 在现有CSS文件末尾添加以下样式 */

/* 详情图集样式 - 放在商品详情内 */
.detail-gallery-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.image-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal .modal-close:hover {
    background: rgba(0,0,0,0.9);
}

.image-modal img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
}

.image-modal .modal-caption {
    padding: 1rem;
    text-align: center;
    color: var(--gray-600);
    background: var(--gray-50);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .image-modal .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .detail-gallery-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}












/* 增强的闪存消息样式 */
.flash-message {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(400px);
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards, fadeIn 0.5s ease-out forwards;
}

.flash-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
}

.flash-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.flash-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-left: 4px solid #047857;
}

.flash-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-left: 4px solid #b91c1c;
}

.flash-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-left: 4px solid #b45309;
}

.flash-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-left: 4px solid #1d4ed8;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .flash-message {
        top: 80px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* 增强的按钮交互效果 */
.btn-add-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-add-cart:active {
    transform: scale(0.98);
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-add-cart:active::after {
    width: 100px;
    height: 100px;
}

/* 登录提示样式 */
.login-prompt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-prompt a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}