/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Segoe UI, Arial, Roboto, PingFang SC, miui, Hiragino Sans GB, Microsoft Yahei, "sans-serif";
    font-style: normal;
}

body {
    overflow-x: hidden;
    font-size: 16px;
}

#app {
    height: 100%;
}

/* Layout Classes */
.my-box {
    margin: 0 auto;
}

.my-box-index {
    min-width: 320px !important;
    margin: 0 auto;
    padding: 3rem 0;
    min-height: 100vh;
    background: url('bg1.jpg') no-repeat center center/cover;
}

.cnt-box {
    max-width: 550px !important;
    margin: 0 auto;
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

.p-20 {
    padding: 20px !important;
}

.pt-10 {
    padding-top: 10px !important;
}

.mt-4 {
    margin-top: 4px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-50 {
    margin-top: 50px !important;
}

.ms-5 {
    margin-left: 5px !important;
}

.ms-15 {
    margin-left: 15px !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-18 {
    font-size: 18px !important;
}

/* Gradient Text */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, #86efac, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Main Titles */
.title-main {
    font-size: 30px;
    font-weight: 800;
}

.title-sub {
    font-size: 30px;
    font-weight: 800;
}

.energy-title {
    font-size: 30px;
    font-weight: 800;
}

/* Description Text */
.description {
    text-align: center;
    line-height: 28px;
    color: #333;
}

.energy-description {
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    padding: 0 20px;
}

/* Buttons */
.mybtn {
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    color: #fff;
    background-color: rgba(29, 78, 216, 0.86);
    padding: 10px 35px;
    box-shadow: 
        rgba(0, 0, 0, 0) 0 0,
        rgba(0, 0, 0, 0) 0 0,
        rgba(0, 0, 0, 0.1) 0 1px 3px,
        rgba(0, 0, 0, 0.1) 0 1px 2px -1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.mybtn:hover {
    transform: translateY(-1px);
    box-shadow: 
        rgba(0, 0, 0, 0) 0 0,
        rgba(0, 0, 0, 0) 0 0,
        rgba(0, 0, 0, 0.15) 0 2px 6px,
        rgba(0, 0, 0, 0.15) 0 2px 4px -1px;
}

.mybtn2 {
    background-color: #fff;
    color: rgba(190, 18, 60, 0.85);
    border: 1px solid rgba(190, 18, 60, 0.85);
}

.mybtn2:hover {
    background-color: rgba(190, 18, 60, 0.85);
    color: #fff;
}

/* Address Copy Section */
.address-copy {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.address-copy:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.address-text {
    font-size: 14px;
    font-weight: 800;
}

.copy-icon {
    height: 14px;
    width: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.address-copy:hover .copy-icon {
    opacity: 1;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: rgba(17, 17, 17, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    max-width: 80%;
    word-break: break-all;
    white-space: normal;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* Responsive */
@media (max-width: 768px) {
    .my-box-index {
        padding: 2rem 0;
    }
    
    .title-main,
    .title-sub,
    .energy-title {
        font-size: 24px;
    }
    
    .cnt-box {
        padding: 0 15px;
    }
    
    .d-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .ms-15 {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .title-main,
    .title-sub,
    .energy-title {
        font-size: 20px;
    }
    
    .mybtn {
        padding: 12px 30px;
        font-size: 13px;
    }
}

/* 付款模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.my-box-pay {
    width: 100%;
    height: 100%;
    background: url('bg3.svg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pay-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pay-blk {
    background: white;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 60px 0;
}

.pay-header {
    text-align: center;
    margin-bottom: 30px;
}

.pay-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.pay-subtitle {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0 0;
}

.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code {
    display: inline-block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-info {
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 16px;
}

.info-item label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.address-box,
.amount-box,
.memo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 48px;
}

/* 付款模态框中的地址文字样式 */
.pay-blk .address-text,
.amount-text,
.memo-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    flex: 1;
    word-break: break-all;
}

/* 主页面的地址文字保持渐变效果 */
.address-copy .address-text {
    font-size: 14px;
    font-weight: 800;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #0056b3;
}

.pay-tips {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #007bff;
}

.pay-tips p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.pay-tips p + p {
    margin-top: 6px;
}

/* 客服联系信息突出显示 */
.customer-service-highlight {
    color: #ff4757 !important;
    font-weight: bold !important;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
    font-size: 14px !important;
    display: inline-block;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(255, 71, 87, 0.8));
    }
}

/* 付款模态框响应式 */
@media (max-width: 480px) {
    .pay-container {
        padding: 15px;
    }
    
    .pay-blk {
        padding: 20px 16px;
        margin: 40px 0;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .pay-header h2 {
        font-size: 20px;
    }
    
    .address-box,
    .amount-box,
    .memo-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-btn {
        margin-left: 0;
        align-self: flex-end;
        width: auto;
    }
}