
:root {
    --primary-color: #2aae67;
    --primary-gradient: linear-gradient(135deg, #2aae67 0%, #1e8e52 100%);
    --wechat-color: #07c160;
    --alipay-color: #1677ff;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-sub: #86868b;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, "SF Pro SC", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
  }
.container { max-width: 600px; margin: 0 auto; padding: 16px; }
header {
    display: flex;
    align-items: center;
    padding: 24px 0;
}
.logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-right: 14px;
    box-shadow: 0 4px 15px rgba(42, 174, 103, 0.15);
}
.header-text h1 { font-size: 1.3rem; font-weight: 700; }
.header-text p { font-size: 0.8rem; color: var(--primary-color); font-weight: 500; }
.recharge-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.section-title i { margin-right: 8px; color: var(--primary-color); }
.input-box {
    width: 100%;
    padding: 16px;
    border: 1.5px solid #efeff4;
    border-radius: 14px;
    font-size: 1rem;
    background: #fcfcfd;
    transition: 0.3s;
    outline: none;
    margin-bottom: 24px;
}
.input-box:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42, 174, 103, 0.1);
}
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 400px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-item {
    border: 1.5px solid #efeff4;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
}
.amount-item.active {
    border-color: var(--primary-color);
    background: rgba(42, 174, 103, 0.05);
    transform: translateY(-2px);
}
.bean-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.bean-icon { width: 18px; height: 18px; margin-right: 4px; }
.price-label { font-size: 0.8rem; color: var(--text-sub); }
.pay-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.pay-btn {
    border: 1.5px solid #efeff4;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}
.pay-btn i { font-size: 1.2rem; margin-right: 8px; }
.pay-btn.wechat.active { border-color: var(--wechat-color); color: var(--wechat-color); background: rgba(7, 193, 96, 0.05); }
.pay-btn.alipay.active { border-color: var(--alipay-color); color: var(--alipay-color); background: rgba(22, 119, 255, 0.05); }
.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(42, 174, 103, 0.3);
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:active { transform: scale(0.97); }
.agreement-box {
    margin-top: 16px;
    text-align: center;
}
.agreement-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    cursor: pointer;
    user-select: none;
}
.agreement-label input[type="checkbox"] {
    display: none;
}
.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #efeff4;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    background: #fff;
    transition: 0.3s;
}
.agreement-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agreement-label input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}
.agreement-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.agreement-link:hover {
    text-decoration: underline;
}
.advantage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}
.adv-item {
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
}
.adv-icon {
    width: 40px;
    height: 40px;
    background: rgba(42, 174, 103, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.adv-icon i { color: var(--primary-color); font-size: 1.2rem; }
.adv-content h4 { font-size: 0.95rem; margin-bottom: 4px; }
.adv-content p { font-size: 0.8rem; color: var(--text-sub); }
.info-box {
    margin-top: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    font-size: 0.8rem;
    color: var(--text-sub);
}
.info-box h5 { color: var(--text-main); margin-bottom: 10px; font-size: 0.9rem; }
.info-box ul { padding-left: 16px; }
.info-box li { margin-bottom: 6px; }

.faq-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f7;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.faq-a {
    color: var(--text-sub);
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal {
    background: #fff;
    width: 85%;
    max-width: 340px;
    border-radius: 28px;
    padding: 24px;
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-title { text-align: center; font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.modal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 0.9rem; }
.modal-row .label { color: var(--text-sub); }
.modal-row .val { font-weight: 600; display: flex; align-items: center; }
.modal-row .price { color: #ff3b30; font-size: 1.2rem; }
.btn-group { display: flex; gap: 10px; margin-top: 24px; }
.btn-group button { flex: 1; padding: 12px; border: none; border-radius: 14px; font-weight: 600; cursor: pointer; }
.btn-cancel { background: #f2f2f7; color: #8e8e93; }
.btn-confirm { background: var(--primary-gradient); color: #fff; }
footer { text-align: center; padding: 40px 0; color: #d1d1d6; font-size: 0.75rem; }