/* 分类筛选栏 */
.filter-bar {
    padding: 120px 10% 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 1 !important;
    transform: none !important;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--primary-red);
    background: transparent;
    color: var(--primary-red);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Noto Serif SC', serif;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-red);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px 10% 120px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 产品卡片改造为瑰宝块样式 */
.product-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
    border-radius: 0; /* 移除圆角以匹配瑰宝页的块状感 */
    border: none;
    box-shadow: none;
}

.product-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9; /* 提高初始亮度 */
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    opacity: 0.7;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); /* 优化渐变范围 */
    text-align: left;
    transition: var(--transition-smooth);
    z-index: 2;
}

.product-info h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9); /* 加深阴影 */
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    display: block;
    text-align: left;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9); /* 加深阴影 */
}

.product-price::before {
    content: "¥ ";
    color: var(--accent-gold);
}

.product-info p {
    font-size: 0.9rem;
    color: #ffffff; /* 纯白文字 */
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9); /* 加深阴影 */
    opacity: 1;
}

.buy-btn {
    padding: 8px 25px;
    background: var(--primary-red);
    color: white;
    border: 1px solid var(--primary-red);
    border-radius: 0;
    font-size: 0.85rem;
}

.buy-btn:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.product-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    z-index: 2;
    border-radius: 0;
}

.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.order-modal-content {
    background: var(--bg-cream);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.order-modal.active .order-modal-content {
    transform: scale(1);
}

.order-modal-content i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.order-modal-content h4 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.order-modal-content p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.close-order-btn {
    padding: 10px 30px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-order-btn:hover {
    background: var(--ink-black);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }
}
