/**
 * charge.php 鍏呭€奸〉闈㈡牱??
 */

/* 绂佹?㈤€夋嫨 */
.container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-control {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 鍩虹?€閲嶇疆 */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; 
    background: #000; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    line-height: 1.6; 
    position: relative;
    overflow-x: hidden;
}

/* 瑙嗛?戣儗?? */
.video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.video-play-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.05);
}

.video-play-btn.playing {
    background: rgba(212, 168, 85, 0.75);
    border-color: rgba(212, 168, 85, 0.9);
}

/* 瀹瑰? */
.container { 
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(70px); 
    border-radius: 12px; 
    box-shadow: none; 
    padding: 25px 20px; 
    width: 100%; 
    max-width: 420px; 
    min-height: 580px;
    border: 1px solid rgba(255, 255, 255, 0.15); 
    transition: none; 
}

.container:hover { 
    box-shadow: none; 
}

.container.container-wide {
    max-width: 960px;
}

.container.container-wide.container-market-active {
    min-height: auto;
    max-width: min(960px, 96vw);
}

#market-section {
    width: 100%;
}

.charge-embed-wrap {
    margin-top: 8px;
    width: 100%;
}

.charge-embed-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 520px;
    max-height: 860px;
    border: none;
    border-radius: 10px;
    background: transparent;
}

/* 澶撮? */
.header { 
    text-align: center; 
    margin-bottom: 20px; 
}

.header h1 { 
    color: #d4a855; 
    font-size: 26px; 
    margin-bottom: 6px; 
    font-weight: 600; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p { 
    color: rgba(255, 255, 255, 0.6); 
    font-size: 13px; 
    font-weight: 300; 
}

/* 鏍囩???艰埅 */
.tab-nav { 
    display: flex; 
    gap: 10px; 
    margin-top: 12px; 
}

.tab-nav a { 
    flex: 1; 
    padding: 10px 0; 
    border-radius: 6px; 
    font-size: 13px; 
    font-weight: 500; 
    text-decoration: none; 
    border: 1px solid rgba(180, 140, 80, 0.3); 
    color: rgba(255, 255, 255, 0.7); 
    background: rgba(0, 0, 0, 0.2); 
    transition: all 0.2s ease; 
    text-align: center;
}

.tab-nav a:hover { 
    border-color: rgba(180, 140, 80, 0.6); 
    color: #d4a855;
}

.tab-nav a.active { 
    background: rgba(180, 140, 80, 0.2); 
    color: #d4a855; 
    border-color: #d4a855; 
    font-weight: 600;
}

/* 琛ㄥ崟缁? */
.form-group { 
    margin-bottom: 18px; 
    position: relative; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 13px; 
    letter-spacing: 0.3px; 
}

/* 琛ㄥ崟鎺т? */
.form-control { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1px solid rgba(180, 140, 80, 0.25); 
    border-radius: 6px; 
    font-size: 14px; 
    transition: all 0.3s ease; 
    background: rgba(0, 0, 0, 0.25); 
    color: #fff; 
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus { 
    outline: none; 
    border-color: #d4a855; 
    background: rgba(0, 0, 0, 0.35); 
    box-shadow: 0 0 0 2px rgba(212, 168, 85, 0.15); 
}

/* 寮哄埗瑕嗙洊娴忚?堝櫒??鍔ㄥ～鍏呮牱寮忥紙閭?绠辫緭鍏??嗭級 */
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.25) inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid rgba(180, 140, 80, 0.25) !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 鍏朵粬杈撳叆妗嗚嚜鍔ㄥ～鍏呮牱寮? */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.25) inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid rgba(180, 140, 80, 0.25) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 涓嬫媺妗? */
select.form-control { 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a855' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); 
    background-repeat: no-repeat; 
    background-position: right 16px center; 
    background-size: 16px; 
    padding-right: 40px; 
    background-color: rgba(0, 0, 0, 0.25);
}

/* Checkbox 鏍峰? */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(180, 140, 80, 0.5);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
}

input[type="checkbox"]:hover {
    border-color: rgba(180, 140, 80, 0.8);
    background: rgba(0, 0, 0, 0.4);
}

input[type="checkbox"]:checked {
    background: rgba(180, 140, 80, 0.6);
    border-color: #d4a855;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 鎸夐? */
.btn { 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); 
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 14px 25px; 
    border-radius: 6px; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    width: 100%; 
    letter-spacing: 0.3px; 
    position: relative; 
    overflow: hidden; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn:hover { 
    background: rgba(255, 255, 255, 0.25); 
    border-color: rgba(255, 255, 255, 0.35);
}

.btn:active { 
    transform: translateY(0); 
}

.btn:before { 
    content: none; 
}

/* 鎻愮ず妗? */
.alert { 
    padding: 14px; 
    border-radius: 8px; 
    margin-bottom: 16px; 
    font-size: 13px; 
    border-left: 3px solid; 
    animation: slideIn 0.3s ease; 
}

@keyframes slideIn { 
    from { 
        opacity: 0; 
        transform: translateY(-8px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.alert-success { 
    background: #d4edda; 
    color: #155724; 
    border-left-color: #28a745; 
}

.alert-error { 
    background: #f8d7da; 
    color: #721c24; 
    border-left-color: #dc3545; 
}

/* 閲戦?濋€夐? */
.amount-options { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    margin-bottom: 16px; 
}

.amount-option { 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(180, 140, 80, 0.25); 
    border-radius: 6px; 
    padding: 12px 10px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.8);
}

.amount-option:hover { 
    border-color: rgba(180, 140, 80, 0.6); 
    background: rgba(180, 140, 80, 0.1);
}

.amount-option.selected { 
    background: rgba(180, 140, 80, 0.25); 
    color: #d4a855; 
    border-color: #d4a855; 
    font-weight: 600;
}

.amount-option.sold-out { 
    background: rgba(231, 76, 60, 0.15); 
    border-color: rgba(231, 76, 60, 0.5); 
    color: rgba(255, 255, 255, 0.5); 
    cursor: not-allowed; 
    opacity: 0.6;
}

.amount-option.sold-out:hover { 
    transform: none; 
    box-shadow: none; 
    background: rgba(231, 76, 60, 0.15);
}

.amount-option input { 
    display: none; 
}

/* 鏀?浠橀€夐? */
.payment-options { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 16px; 
}

.payment-option { 
    flex: 1; 
    text-align: center; 
    padding: 12px 10px; 
    border: 1px solid rgba(180, 140, 80, 0.25); 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
}

.payment-option:hover { 
    border-color: rgba(180, 140, 80, 0.6); 
    background: rgba(180, 140, 80, 0.1);
}

.payment-option.selected { 
    background: rgba(180, 140, 80, 0.25); 
    color: #d4a855; 
    border-color: #d4a855; 
    font-weight: 600;
}

.payment-option input { 
    display: none; 
}

/* 楠岃瘉鐮? */
.captcha-group { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

.captcha-input { 
    flex: 1; 
}

.captcha-display { 
    background: rgba(180, 140, 80, 0.2); 
    border: 1px solid rgba(180, 140, 80, 0.4); 
    border-radius: 6px; 
    padding: 10px 14px; 
    font-family: 'Courier New', monospace; 
    font-weight: bold; 
    font-size: 18px; 
    letter-spacing: 2px; 
    color: #d4a855; 
    min-width: 100px; 
    text-align: center; 
    cursor: pointer; 
    user-select: none; 
    transition: all 0.3s ease; 
    box-shadow: none; 
}

.captcha-display:hover { 
    background: rgba(180, 140, 80, 0.3);
    border-color: #d4a855;
}

/* 浜岀淮鐮佸脊?? */
#qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#qrcode-box {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 鍝嶅簲寮? */
@media (max-width: 480px) { 
    .container { 
        padding: 30px 20px; 
        margin: 10px; 
    } 
    
    .header h1 { 
        font-size: 28px; 
    } 
    
    .amount-options { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    
    .payment-options { 
        flex-direction: column; 
    } 
}

/* 鏃犲埛鏂板垏鎹㈠姩鐢? */
.recharge-only, .cdk-only {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 搴撳瓨鏍??惧钩婊戞樉绀? */
.stock-label {
    transition: opacity 0.2s ease;
}

/* CDK鏁伴噺杈撳叆妗嗗钩婊戝垏?? */
#cdk-quantity-group {
    transition: opacity 0.2s ease, max-height 0.3s ease;
}
