* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
html,
body {
    background: black;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* 粒子画布样式 */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 确保在背景层 */
    pointer-events: none; /* 防止干扰点击事件 */
}

.centerBox {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1800px;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.center-list {
    width: 70%;
    margin: 0 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.centerBody {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25%;
}

.bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1800px;
    width: auto;
    max-height: 90vh;
    opacity: 0.5;
    z-index: 1;
}

.btn-p {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.btn-p a {
    font-size: 14px;
    color: #f45702;
    font-weight: bold;
    padding: 12px 40px;
    border-radius: 30px;
    margin: 0;
    background: rgba(29, 29, 29, 0.5);
    border: 1px solid rgba(89, 129, 183, 0.2);
    min-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-p a:hover {
    color: white !important;
    background: #242424 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.txt-w {
    color: #f45702;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 2px;
    margin-top: 20px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    left: 0;
    z-index: 2;
}

.center-footer {
    width: 100%;
    max-width: 800px;
}

.footer .banquan {
    text-align: center;
    font-size: 15px;
    color: #6a7179;
    padding: 0 15px;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media screen and (max-width: 950px) {
    .centerBody {
        margin-top: 55%;
    }
    
    .bg-img {
        max-width: 95%;
        max-height: 85%;
    }
    
    .center-list {
        width: 90%;
        margin: 0 5%;
    }
    
    .btn-p a {
        padding: 10px 30px;
        min-width: 200px;
        font-size: 13px;
    }
    
    .txt-w {
        letter-spacing: normal;
        font-size: 12px;
    }
    
    .footer .banquan {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .bg-img {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .btn-p a {
        min-width: 180px;
        padding: 8px 25px;
    }
    
    .txt-w {
        letter-spacing: normal;
        font-size: 10px;
    }
    
    .footer .banquan {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1d1d1d;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    color: #e0e0e0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f45702;
    text-decoration: none;
}

#trackingNumber {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 16px;
}

#searchBtn {
    background: #f45702;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

#searchBtn:hover {
    background: #ff6b2c;
}

#orderDetails {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar styling */
#orderDetails::-webkit-scrollbar {
    width: 8px;
}

#orderDetails::-webkit-scrollbar-track {
    background: #2a2a2a;
}

#orderDetails::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

#orderDetails::-webkit-scrollbar-thumb:hover {
    background: #f45702;
}

/* ====== 新增样式 ====== */

/* 结果模态框样式修改 */
#resultModal .modal-content {
    max-height: 85vh; /* 限制最大高度 */
    overflow: hidden; /* 隐藏溢出内容 */
}

#orderDetails {
    max-height: 70vh; /* 设置最大高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
    padding: 15px;
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 确保图片在模态框内自适应 */
#orderDetails img {
    max-width: 100%; /* 图片最大宽度不超过容器 */
    height: auto; /* 高度自适应 */
    display: block; /* 防止底部间隙 */
    margin: 10px auto; /* 居中显示 */
}

/* 后台编辑器样式调整 */
.tox-tinymce {
    height: 600px !important; /* 增大编辑器高度 */
    min-height: 600px !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tox-tinymce {
        height: 400px !important; /* 移动设备上适当减小高度 */
        min-height: 400px !important;
    }
    
    #orderDetails {
        max-height: 60vh;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}