
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('p/bj.png'); 
    background-repeat: no-repeat; 
    background-size: cover;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 40px 50px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-top: 6px solid #8B0000;
}

h1 {
    text-align: center;
    color: #8B0000;
    font-size: 2.5em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

h2 {
    color: #8B0000;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    color: #8B0000;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

ul li, ol li {
    margin-bottom: 10px;
}

ul ul {
    margin-top: 10px;
}

a {
    color: #250bb8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #fbff00;
    text-decoration: underline;
}

hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(139, 0, 0, 0), rgba(139, 0, 0, 0.75), rgba(139, 0, 0, 0));
    margin: 40px 0;
}

.text-red { color: #C50000; font-weight: bold; }
.text-darkred { color: #8B0000; font-weight: bold; }
.text-blue { color: #0125C5; font-weight: bold; }
.text-gold { color: #C5A801; font-weight: bold; }

del b {
    color: #888;
}
.box {
    display: flex;            
    justify-content: center;   
    align-items: center;       
    width: 200px;           
    height: 100px;          
    background: linear-gradient(to right, #c921f3, #17acda); 
    color: rgb(0, 255, 85);            
    text-align: center;     
    border-radius: 15px;    
    margin: 20px 0;
    text-decoration: none; 
}
.box-group {
    display: flex;             
    justify-content: center;   
    gap: 20px;     
}            
.x_box {
    display: flex;
    justify-content: center;
    width:  800px;
    height: 50px;
    background-color: hsl(0, 0%, 100%);
    color: #8B0000 ;
    text-align: center;
    border-radius: 15px ;




}

.nav-button {
    display: flex ;
    padding: 10px 20px ;
    background: #C50000 ;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}
.nav-button:hover {
    background:#1782c0 ;

}


.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  
    height: 100vh; 
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 999;  
    
   
    justify-content: center;
    align-items: center;
}


.modal-overlay.active {
    display: flex; 
}



.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 1100px;
    max-width: 90%; 
    
    
    max-height: 95vh;      
    overflow-y:auto ;    
    
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #888;
    font-size: 30px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}
.close-btn:hover {
    color: #333;
}


@keyframes fadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.order {
    width: 320px;            
    height: 1000px;          
    background-color: #ffffff ; 
    border: 2px solid rgb(196, 195, 195);
}

.submit-order-btn {
    bottom: 30px;          
    right: 30px;           
    padding: 12px 30px;    
    background-color: #8B0000; 
    color: white;          
    border: none;          
    border-radius: 8px;    
    cursor: pointer;       
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    z-index: 1000;         
    font-size: 16px;       
    font-weight: bold;     
}


.submit-order-btn:hover {
    background-color: #A50000;
}

.xx_box {
    display: flex;             
    align-items: center;      
    gap: 20px;                 
    
    background-color: #ffffff; 
    border: 1px solid #e0e0e0; 
    border-radius: 10px;       
    padding: 20px;             
    margin-bottom: 20px;       
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}


.xx_box img {
    width: 120px;        
    height: 120px;       
    object-fit: cover;   
    border-radius: 8px;  
    margin: 0;           
    flex-shrink: 0;       
}


.xx_box .text-content {
    flex: 1;             
}
.xx_box .text-content h3 {
    margin-top: 0;      
    margin-bottom: 8px;
}
.xx_box .text-content p {
    margin-bottom: 0;   
    line-height: 1.5;    
}



.item-footer {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 15px;
}

.item-price {
    font-size: 18px;
    font-weight: bold;
    color: #8B0000;
}


.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}


    .qty-btn {
        width: 30px;
        height: 30px;
        background-color: #f0f0f0;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        transition: background 0.2s;
    }
    .qty-btn:hover {
        background-color: #d0d0d0;
    }


    .qty-input {
        width: 40px;
        height: 30px;
        text-align: center;
        border: none;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        font-size: 14px;
        font-weight: bold;
        -moz-appearance: textfield;
    }
    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
.receipt-item {
    display: flex;
    justify-content: space-between; 
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
}
.receipt-item span {
    color: #333;
}
.receipt-total {
    font-size: 22px;
    font-weight: bold;
    color: #8B0000;
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #8B0000;
}