* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 顶栏样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(26, 93, 78, 0.95);
    padding: 0.8rem 2rem;
}

.header.scrolled .nav-links a,
.header.scrolled .logo {
    color: #fff;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1a5d4e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* 页面标题 */
.page-title {
    text-align: center;
    padding: 30px 0;
    font-size: 24px;
    font-weight: bold;
}

/* 付款容器 */
.payment-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* 订单信息 */
.section-heading {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-details {
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 订单信息容器高度增加 */
.item-image {
    width: 545px;
    height: 360px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 20px;
}

.item-price {
    font-size: 22px;
    color: #ff5722;
    font-weight: bold;
    background-color: rgba(255, 87, 34, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
}

.total-price {
    font-size: 24px;
    color: #ff5722;
    font-weight: bold;
    background-color: rgba(255, 87, 34, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.payment-method {
    flex: 0 0 45%;
    min-width: 150px;
    max-width: 200px;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .item-image {
        width: 100%;
        height: 500px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .payment-method {
        flex: 0 0 100%;
        max-width: 20%;
    }


    .order-item {
        flex-direction: column;
        align-items: center;
    }

    .item-info {
        text-align: center;
        width: 100%;
    }
}


/* 订单信息右对齐修改 */
.item-info {
    flex: 1;
    text-align: right;
    /* 添加右对齐 */
}

/* 图片显示方式修改 */
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 改为contain完整显示图片 */
}

.payment-method.active {
    border-color: #FD6D2E;
    background-color: white;
}

.payment-method input {
    display: none;
}

.payment-method label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.payment-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}



.payment-method label {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}


.payment-method span {
    font-size: 14px;
    color: #555;
}


.qrcode-container {
    text-align: center;
}


/* 联系信息表单 */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a5d4e;
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    display: inline-block;
    background-color: #1a5d4e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #134238;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 协议链接样式 */
.agreement-links {
    margin-top: 10px;
    font-size: 12px;
}

.agreement-link {
    color: #ff5722;
    /* 与价格相同的颜色 */
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.agreement-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 页脚样式 */
.footer {
    background-color: white;
    color: #797979;
    text-align: center;
    margin-top: 2rem;
}

.footer .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer img {
    width: 30px;
    height: auto;
}

.footer a {
    color: #797979;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FD6D2E;
    text-decoration: underline;
}


/* 弹窗样式 */
.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: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

#check-payment-button {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

#check-payment-button:hover {
    background-color: #40a9ff;
}

#query-result {
    padding: 10px;
    border-radius: 4px;
}

/* 添加一个查询支付状态的悬浮按钮 */
.floating-query-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    font-size: 14px;
}

.floating-query-button:hover {
    background-color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .payment-container {
        padding: 20px;
    }

    .payment-methods {
        flex-direction: row;
    }

    .payment-method {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem;
    }

    .nav {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .logo {
        cursor: pointer;
        position: relative;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .payment-container {
        padding: 15px;
    }

    .section-heading {
        font-size: 18px;
    }

    .item-title {
        font-size: 16px;
    }

    .item-price {
        font-size: 18px;
    }

    .order-total {
        font-size: 16px;
    }

    .total-price {
        font-size: 20px;
    }


    .submit-button {
        width: 100%;
    }
}

/* 动画效果 */
.order-summary,
.payment-info {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.payment-method {
    position: relative;
    overflow: hidden;
}

.payment-method:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(26, 93, 78, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.payment-method:hover:before {
    left: 0;
}

.payment-method.active:before {
    left: 0;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}


/* 顶栏样式 */
.nav-links a:hover {
    color: #FD6D2E;
}

.header.scrolled {
    background-color: rgba(253, 109, 46, 0.95);
    padding: 0.8rem 2rem;
}

/* 表单样式 */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #FD6D2E;
    outline: none;
}

.submit-button {
    display: inline-block;
    background-color: #FD6D2E;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #e55a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
.payment-method:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
    z-index: -1;
}


.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 新增的服务说明文字样式 */
.service-disclaimer {
    color: #888; /* 灰色字体 */
    font-size: 0.9em;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    line-height: 1.6;
}

.service-disclaimer p {
    margin-bottom: 0.5rem;
}

.service-disclaimer p:last-child {
    margin-bottom: 0;
}

/* 协议勾选框样式 */
.agreement-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.agreement-group input[type="checkbox"] {
    /* Reset default appearance */
    /* -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    margin-right: 0.5rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease; */
    display:inline-block;
    position:relative;
    border: 1px solid #d1d5db;   
    background-color: #fff; 
    border-radius:2px;
    box-sizing: border-box;
    width:14px;
    height:14px;
    z-index:1;
    margin-right:5px;
}

.agreement-group input[type="checkbox"]:checked {
    border-color: #FD6D2E; 
    background-color: #FD6D2E; 
}

.agreement-group input[type="checkbox"]:focus {
    outline: none;
}


.agreement-group label {
    font-size: 0.95rem;
    color: #555;
    margin-top: 8px;
}

.agreement-group label a {
    color: #FD6D2E;
    text-decoration: none;
}

.agreement-group label a:hover {
    text-decoration: underline;
}