/* 商品页面样式 */
/* 确保CSS变量可用 */
:root {
    --primary-green: #2D6A4F;  /* 更明快的绿色，更有生气 */
    --dark-green: #1B4332;      /* 使用原来的primary-green作为深色 */
    --gold: #c3996b;
    --black: #000000;
    --light-green: #52B788;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(rgba(45, 106, 79, 0.8), rgba(45, 106, 79, 0.8)), 
                url('/images/products-banner.png');
    background-size: cover;
    background-position: center;
    padding: 300px 0 300px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.7);
}

/* 产品筛选 */
.product-filters {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filters-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.search-section {
    flex: 1;
    max-width: 400px;
}

.search-box {
    display: flex;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--gold);
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #ffc107;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-tab.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* 产品展示 */
.products-display {
    padding: 60px 0;
    background: white;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options label {
    color: var(--text-dark);
    font-weight: 500;
}

.sort-options select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--gold);
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.view-btn:hover:not(.active) {
    border-color: var(--gold);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-item {
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.products-grid.list-view .product-item {
    display: flex;
    align-items: center;
    padding: 20px;
}

.products-grid.list-view .product-item:hover {
    transform: none;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.products-grid.list-view .product-image {
    aspect-ratio: auto;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    margin-right: 20px;
}

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

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.badge.hot {
    background: #ff4757;
}

.badge.new {
    background: var(--gold);
    color: var(--black);
}

.badge.premium {
    background: #5f27cd;
}

.badge.limited {
    background: #222f3e;
}

.badge.smart {
    background: #00d2d3;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.products-grid.list-view .product-overlay {
    display: none;
}

.product-overlay button {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.quick-view {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.quick-view:hover {
    background: white !important;
    color: var(--black) !important;
}

.add-to-cart:hover {
    background: #ffc107;
    transform: translateY(-2px);
}

.product-info {
    padding: 20px;
}

.products-grid.list-view .product-info {
    padding: 0;
    flex: 1;
}

.product-info h3 {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: var(--gold);
    font-size: 1rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
}

.original-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.products-grid.list-view .product-price {
    margin-top: auto;
}

/* 加载更多 */
.load-more-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.load-more-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.load-more-btn:hover {
    background: #1a5a42;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
}

/* 品牌展示 */
.brands-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.brand-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .filters-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .sort-options {
        justify-content: space-between;
    }
    
    .view-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 120px 0 80px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .search-section {
        max-width: none;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sort-options {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .products-display {
        padding: 40px 0;
    }
}

/* 适口性验证部分 */
.palatability-section {
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 50%, #f8faf9 100%);
    padding: 100px 0;
    position: relative;
}

.palatability-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.3) 50%, transparent 100%);
}

.palatability-content {
    margin-top: 60px;
}

.palatability-main {
    margin-bottom: 40px;
}

.palatability-video-card.featured {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.palatability-video-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.palatability-video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 106, 79, 0.3);
    transition: background 0.3s ease;
}

.palatability-video-card:hover .play-overlay {
    background: rgba(45, 106, 79, 0.5);
}

.play-btn-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #ffc107 100%);
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.play-btn-large svg {
    width: 36px;
    height: 36px;
    fill: white;
    margin-left: 5px;
}

.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.video-info-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold);
}

.video-info-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* 适口性验证网格 */
.palatability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.palatability-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.palatability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.palatability-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(45, 106, 79, 0.95), rgba(45, 106, 79, 0.4));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.palatability-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* 数据统计 */
.palatability-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(45, 106, 79, 0.3);
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 视频模态框样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
}

.video-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .palatability-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .palatability-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 50px 40px;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .palatability-section {
        padding: 60px 0;
    }
    
    .video-thumbnail {
        height: 300px;
    }
    
    .video-info-overlay {
        padding: 25px;
    }
    
    .video-info-overlay h3 {
        font-size: 1.5rem;
    }
    
    .video-info-overlay p {
        font-size: 0.95rem;
    }
    
    .play-btn-large {
        width: 70px;
        height: 70px;
    }
    
    .play-btn-large svg {
        width: 24px;
        height: 24px;
    }
    
    .palatability-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .palatability-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .video-close {
        top: -40px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Toast 提示消息样式 */
.toast-message {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-size: 1rem;
    font-weight: 500;
}

.toast-message.success {
    background: #27ae60;
}

.toast-message.error {
    background: #e74c3c;
}

/* Toast 动画 */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* 商品列表为空时的提示 */
.no-products {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 列表视图按钮容器（默认隐藏）*/
.product-overlay-list {
    display: none;
}

/* 列表视图样式 */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid.list-view .product-item {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    height: auto;
}

.products-grid.list-view .product-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 列表视图：隐藏图片上的按钮 */
.products-grid.list-view .product-overlay {
    display: none !important;
}

/* 列表视图：显示信息区域的按钮 */
.products-grid.list-view .product-overlay-list {
    display: flex !important;
    gap: 10px;
    margin-top: 15px;
}

.products-grid.list-view .product-overlay-list button {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.products-grid.list-view .product-overlay-list .quick-view {
    background: white;
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green) !important;
}

.products-grid.list-view .product-overlay-list .quick-view:hover {
    background: var(--primary-green);
    color: white !important;
}

.products-grid.list-view .product-overlay-list .add-to-cart {
    background: var(--primary-green);
    color: white !important;
    border: 2px solid var(--primary-green);
}

.products-grid.list-view .product-overlay-list .add-to-cart:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}

/* 产品详情模态框 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.product-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.product-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.product-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.product-modal .modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.product-modal.loading .modal-body {
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.product-modal .loading-spinner {
    text-align: center;
}

.product-modal .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-modal .modal-image {
    flex: 0 0 400px;
}

.product-modal .modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.product-modal .modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-modal .modal-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-modal .modal-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 15px;
}

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

.product-modal .modal-rating .stars {
    color: var(--gold);
    font-size: 1.2rem;
}

.product-modal .modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-modal .modal-price .current {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.product-modal .modal-price .original {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-modal .modal-stock {
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-modal .modal-desc {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-modal .modal-specs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-modal .modal-specs h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-modal .spec-item {
    display: flex;
    padding: 5px 0;
    font-size: 0.95rem;
}

.product-modal .spec-item span {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

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

.product-modal .quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.product-modal .modal-actions {
    display: flex;
    gap: 15px;
}

.product-modal .modal-actions button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-modal .modal-add-cart {
    background: var(--primary-green);
    color: white;
}

.product-modal .modal-add-cart:hover {
    background: var(--dark-green);
}

.product-modal .modal-view-details {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.product-modal .modal-view-details:hover {
    background: var(--primary-green);
    color: white;
}

/* 登录确认对话框样式 */
.login-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-confirm-dialog .dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.login-confirm-dialog .dialog-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: dialogSlideIn 0.3s ease;
    text-align: center;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-confirm-dialog .dialog-icon {
    margin-bottom: 20px;
}

.login-confirm-dialog .dialog-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-confirm-dialog .dialog-message {
    color: var(--text-light);
    margin-bottom: 25px;
}

.login-confirm-dialog .dialog-buttons {
    display: flex;
    gap: 15px;
}

.login-confirm-dialog .dialog-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-confirm-dialog .dialog-btn-cancel {
    background: #e0e0e0;
    color: var(--text-dark);
}

.login-confirm-dialog .dialog-btn-cancel:hover {
    background: #d0d0d0;
}

.login-confirm-dialog .dialog-btn-confirm {
    background: var(--primary-green);
    color: white;
}

.login-confirm-dialog .dialog-btn-confirm:hover {
    background: var(--dark-green);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-grid.list-view .product-item {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 250px;
    }
    
    /* 移动端列表视图按钮 */
    .products-grid.list-view .product-overlay-list {
        display: flex !important;
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
    }
    
    .products-grid.list-view .product-overlay-list button {
        flex: 1;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .product-modal .modal-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-modal .modal-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .product-modal .modal-info h3 {
        font-size: 1.5rem;
    }
    
    .product-modal .modal-price .current {
        font-size: 1.5rem;
    }
}