/* 商品列表样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

body.light-mode .product-card {
    background: var(--light-card);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow), 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

body.light-mode .product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
}

body.light-mode .product-name {
    color: #1a1a1a;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

body.light-mode .product-description {
    color: var(--light-gray);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 255, 0.2);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-symbol {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
}

.price-value {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

body.light-mode .price-symbol,
body.light-mode .price-value {
    color: #0066ff;
}

.btn-buy {
    padding: 12px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.product-stock {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

body.light-mode .product-stock {
    color: var(--light-gray);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

body.light-mode .empty-state {
    color: var(--light-gray);
}

/* 购买页面样式 */
.buy-section {
    padding: 130px 0 80px;
}

.buy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.buy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .buy-content {
        grid-template-columns: 1fr;
    }
}

.product-detail-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

body.light-mode .product-detail-card {
    background: var(--light-card);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.order-form-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

body.light-mode .order-form-card {
    background: var(--light-card);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.order-form-group {
    margin-bottom: 25px;
}

.order-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light);
    font-size: 0.95rem;
}

body.light-mode .order-form-group label {
    color: #1a1a1a;
}

.order-form-group input,
.order-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

body.light-mode .order-form-group input,
body.light-mode .order-form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
}

.order-form-group input:focus,
.order-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.order-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.order-summary {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

body.light-mode .order-summary {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.order-summary-item:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 102, 255, 0.2);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

body.light-mode .order-summary-item:last-child {
    color: #0066ff;
}

.payment-methods {
    margin-top: 25px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-item:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

.payment-method-item input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-method-item input[type="radio"]:checked + label {
    color: var(--secondary);
    font-weight: 600;
}

.payment-method-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-mode .quantity-selector button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.quantity-selector button:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
}

.quantity-selector input {
    width: 80px;
    text-align: center;
    padding: 10px;
}

