

.content {
    /* max-width: 1200px; */
    margin: 2rem auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 1.5rem;
}
h1 {
    color: #e91e63;
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
#queryorder button,
.payment-methods button,
#paymentForm button
 {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
button:hover {
    background-color: #c2185b;
}
.error {
    color: #f44336;
    margin: 15px 0;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
}
.order-details {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.order-details h2 {
    color: #e91e63;
}
.detail-row {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
.detail-label {
    width: 150px;
    font-weight: bold;
    color: #666;
}
.detail-value {
    flex: 1;
}
.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}
.status-0 { background: #f44336; color: white; }
.status-1 { background: #ff9800; color: white; }
.status-2 { background: #4caf50; color: white; }
.status-3 { background: #2196f3; color: white; }
.status-4 { background: #9e9e9e; color: white; }
.status-5 { background: #673ab7; color: white; }
.status-6 { background: #3f51b5; color: white; }
.status-7 { background: #009688; color: white; }

.order-details .hd{
    font-size: 2rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;

}

.order-details .total_amount{
    font-size: 1.8rem;
    color: red;
}

    /* 新增商品列表样式 */
    .goods-list {
        margin-top: 30px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        overflow-x: auto; /* 允许横向滚动 */
    }
    .goods-list h2 {
        margin-bottom: 15px;
    }
    .goods-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px; /* 设置最小宽度，确保在小屏幕上不会挤压变形 */
    }
    .goods-table th, .goods-table td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    .goods-table th {
        background-color: #f5f5f5;
        font-weight: bold;
    }
    .goods-table tr:hover {
        background-color: #f9f9f9;
    }
    .goods-pic {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    /* 手机端响应式样式 */
    @media screen and (max-width: 768px) {
        .goods-list {
            padding: 15px 0;
        }
        
        .goods-table {
            display: block;
            min-width: 100%;
        }
        
        .goods-table thead {
            display: none; /* 在小屏幕上隐藏表头 */
        }
        
        .goods-table tbody {
            display: block;
            width: 100%;
        }
        
        .goods-table tr {
            display: block;
            margin-bottom: 15px;
            border: 1px solid #eee;
            border-radius: 5px;
            padding: 10px;
        }
        
        .goods-table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 10px;
            border: none;
            position: relative;
            padding-left: 50%; /* 为标签留出空间 */
        }
        
        .goods-table td:before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            width: 45%;
            padding-right: 10px;
            font-weight: bold;
            text-align: left;
        }
        
        .goods-pic {
            width: 50px;
            height: 50px;
        }
        
        /* 为每个td添加数据标签属性 */
        .goods-table td:nth-of-type(1):before { content: "商品图片"; }
        .goods-table td:nth-of-type(2):before { content: "商品名称"; }
        .goods-table td:nth-of-type(3):before { content: "单价"; }
        .goods-table td:nth-of-type(4):before { content: "数量"; }
        .goods-table td:nth-of-type(5):before { content: "小计"; }
    }

    /* 无图片时的样式 */
    .no-image {
        width: 60px;
        height: 60px;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        color: #999;
        font-size: 12px;
    }

    /* 支付部分样式 */
.payment-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.payment-amount {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
}

.payment-btn img {
    width: 120px;
    height: auto;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.confirm-payment-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 15px 0 0;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}
/* 支付按钮通用样式 */
.payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    min-width: 150px;
}

.payment-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.payment-btn i {
    margin-right: 10px;
    font-size: 20px;
}

/* 支付宝按钮样式 */
.alipay {
    background: #009FE8;
    box-shadow: 0 2px 5px rgba(0, 159, 232, 0.3);
}

/* 微信支付按钮样式 */
.wechat {
    background: #07C160;
    box-shadow: 0 2px 5px rgba(7, 193, 96, 0.3);
}

/* PayPal按钮样式 */
.paypal {
    background: #003087;
    box-shadow: 0 2px 5px rgba(0, 48, 135, 0.3);
}

/* 图标样式（使用伪元素实现） */
.icon-alipay::before {
    content: "支";
    font-style: normal;
}

.icon-wechat::before {
    content: "微";
    font-style: normal;
}

.icon-paypal::before {
    content: "P";
    font-style: normal;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-btn {
        width: 100%;
        margin: 5px 0;
    }
}
/* 响应式设计 */
@media screen and (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-btn {
        width: 100%;
    }
    
    .payment-btn img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
}


    
    @media screen and (max-width: 768px) {
        .no-image {
            width: 50px;
            height: 50px;
        }
    }
