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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 480px;
    margin: 0 auto;
}

.top-bar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.limit-text {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.borrow-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.amount-section {
    background: #fff;
    margin: -20px 15px 15px;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.amount-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
}

.amount-title {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
}

.amount-tip {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.amount-btn {
    padding: 12px 8px;
    background: #f5f7fa;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: #1e88e5;
}

.amount-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #3b82f6;
}

.amount-btn.highest {
    position: relative;
}

.highest-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.amount-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.slider-min, .slider-max {
    font-size: 12px;
    color: #999;
    width: 60px;
}

.slider-max {
    text-align: right;
}

#amountRange {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #dbeafe;
    border-radius: 3px;
    outline: none;
}

#amountRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}

.promotion-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.promotion-tag {
    background: #ff9800;
    color: #fff;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.promotion-text {
    font-size: 13px;
    color: #666;
    flex: 1;
}

.approval-card {
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 18px;
}

.approval-text {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
    line-height: 1.5;
}

.form-section {
    background: #fff;
    margin: 0 15px 15px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    background: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 0 15px;
}

.email-suffixes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 0 10px 0;
}

.suffix-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suffix-btn:hover {
    background: #e3f2fd;
    border-color: #1e88e5;
    color: #1e88e5;
}

.country-code {
    padding: 15px 15px;
    font-size: 15px;
    color: #666;
    border-right: 1px solid #e0e0e0;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #333;
}

.form-input::placeholder {
    color: #999;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sms-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.sms-btn {
    padding: 0 18px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.sms-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-btn.countdown {
    background: #ff9800;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1e88e5;
}

.checkbox-group label {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.link {
    color: #1e88e5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.5);
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 15px 15px;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-title {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 12px;
    color: #666;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.rate-section {
    margin: 0 15px 15px;
}

.rate-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rate-title {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.rate-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rate-value {
    font-size: 22px;
    font-weight: 700;
    color: #ff5722;
}

.rate-note {
    font-size: 11px;
    color: #999;
}

.warning-section {
    margin: 0 15px 15px;
}

.warning-card {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 12px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content p {
    font-size: 12px;
    color: #856404;
    margin-bottom: 6px;
    line-height: 1.5;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.tips-section {
    margin: 0 15px 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tips-section p {
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}

.footer {
    margin: 0 15px 30px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.footer-content {
    text-align: center;
}

.disclaimer {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 10px;
    color: #999;
}

.license {
    padding: 3px 8px;
    background: #f5f7fa;
    border-radius: 4px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 480px) {
    .amount-section {
        margin: -15px 10px 10px;
        padding: 20px 15px;
    }
    
    .amount-title {
        font-size: 24px;
    }
    
    .amount-btn {
        padding: 10px 5px;
        font-size: 13px;
    }
}