* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}

img {
-webkit-user-drag: none;
-moz-user-drag: none;
-ms-user-drag: none;
user-drag: none;
pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 100%;
    height: 100%;
    padding: 0;
    /* overflow: hidden; */
    margin: 0;
}

.container {
    max-width: 100%;
    background: #fff;
    border-radius: 0px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow-y: auto !important;
    overflow-x: hidden;
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.header p {
    color: #888;
    font-size: 14px;
    margin-top: 6px;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.card-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    color: #123;
}

.card-type {
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fafafa;
}

.card-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.card-type.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.card-type .name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-type .desc {
    font-size: 12px;
    opacity: 0.7;
}

.card-type.active .desc {
    opacity: 0.9;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.payment-method:hover {
    border-color: #d0d0d0;
}

.payment-method.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 14px;
}
.payment-icon img {
    width: 40px;
    height: 40px;
}
.alipay {
    background: #1677ff;
    color: #fff;
}

.wechat {
    background: #07c160;
    color: #fff;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.payment-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.check-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-method.active .check-mark {
    background: #667eea;
    border-color: #667eea;
}

.check-mark::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method.active .check-mark::after {
    opacity: 1;
}

.footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 18px;
    color: #5a6fd8;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff4757;
}

.price-value span {
    font-size: 18px;
}

.pay-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

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

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease;
}

.card-type, .payment-method {
    animation: fadeIn 0.5s ease backwards;
}

.card-type:nth-child(1) { animation-delay: 0.1s; }
.card-type:nth-child(2) { animation-delay: 0.15s; }
.card-type:nth-child(3) { animation-delay: 0.2s; }
.card-type:nth-child(4) { animation-delay: 0.25s; }



/* 重寫.body的滾動條 */
::-webkit-scrollbar {
width: 8px;
background: white;
}

::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #00d4ff, #7b2cbf);
border-radius: 10px;
transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #00d4ff, #ff006e);
box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

::-moz-scrollbar {
width: 8px;
}

::-moz-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}

::-moz-scrollbar-thumb {
background: linear-gradient(180deg, #00d4ff, #7b2cbf);
border-radius: 10px;
transition: all 0.3s ease;
}

::-moz-scrollbar-thumb:hover {
background: linear-gradient(180deg, #00d4ff, #ff006e);
box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}