* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    color: #0d0d0d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #0d0d0d;
    margin-bottom: 40px;
    text-align: center;
}

/* Business 卡片 */
.business-card {
    width: 100%;
    max-width: 468px;
    background: #F5F5FF;
    border: 1px solid #CFCEFC;
    border-radius: 16px;
    padding: 26px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeUp 0.5s ease;
}

/* 头部：标题 + 推荐徽章 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-name {
    font-size: 28px;
    font-weight: 500;
    color: #0d0d0d;
}

/* 推荐徽章 */
.recommend-badge {
    background: #DCDBFF;
    color: #615EEB;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px 5px 8px;
    border-radius: 16px;
    line-height: 1;
}

/* 价格区域 */
.price-section {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.price-wrapper {
    display: flex;
    align-items: flex-start;
}

.currency {
    font-size: 20px;
    font-weight: 400;
    color: #6b6b6b;
    margin-top: 8px;
}

.amount {
    font-size: 48px;
    font-weight: 400;
    color: #0d0d0d;
    line-height: 1;
    letter-spacing: -1px;
}

.period-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.period {
    font-size: 11px;
    color: #6b6b6b;
    line-height: 1.3;
}

/* 描述文字 */
.plan-desc {
    font-size: 16px;
    font-weight: 500;
    color: #0d0d0d;
    line-height: 1.5;
    margin-top: 8px;
}

/* 表单区域 */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 13px;
    font-weight: 500;
    color: #0d0d0d;
}

.styled-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: #0d0d0d;
    background: #ffffff;
    border: 1px solid #CFCEFC;
    border-radius: 24px;
    transition: all 0.2s ease;
    outline: none;
}

.styled-input::placeholder {
    color: #9b9b9b;
}

.styled-input:hover {
    border-color: #a8a7f0;
}

.styled-input:focus {
    border-color: #615EEB;
    box-shadow: 0 0 0 2px rgba(97, 94, 235, 0.15);
}

/* 主按钮 */
.primary-btn {
    width: 100%;
    height: 48px;
    background: #615EEB;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.primary-btn:hover {
    background: #5451d4;
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 黑色按钮 */
.btn-black {
    background: #0d0d0d;
}

.btn-black:hover {
    background: #333;
}

/* 功能列表 */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #0d0d0d;
    line-height: 1.4;
}

.feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #0d0d0d;
}

/* 底部说明文字 */
.footer-note {
    margin-top: 12px;
    padding-left: 4px;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.6;
}

.footer-note a {
    color: #0d0d0d;
    font-weight: 500;
    text-decoration: underline;
}

.footer-note a:hover {
    color: #615EEB;
}

/* 动画 */
@keyframes fadeUp {
    from { 
        opacity: 0; 
        transform: translateY(16px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* 抖动动画 */
.shake {
    animation: shake 0.4s ease;
}

.shake .styled-input {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* 加载动画 */
.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 结果页面样式 */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeUp 0.5s ease;
}

.result-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.result-title {
    font-size: 28px;
    font-weight: 600;
    color: #0d0d0d;
    margin-bottom: 12px;
}

.result-desc {
    font-size: 16px;
    color: #6b6b6b;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 32px;
}

.result-btn {
    min-width: 200px;
}

/* 错误页面 */
.error-icon {
    color: #ef4444;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    max-width: 400px;
}

.error-text {
    font-size: 14px;
    color: #dc2626;
    line-height: 1.5;
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    body {
        padding: 32px 20px;
        justify-content: flex-start;
        padding-top: 48px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .business-card {
        max-width: 100%;
    }
}

/* 响应式 - 手机 */
@media (max-width: 520px) {
    body {
        padding: 24px 16px;
        padding-top: 32px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .business-card {
        padding: 20px 18px;
        gap: 14px;
        border-radius: 14px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .plan-name {
        font-size: 24px;
    }

    .recommend-badge {
        font-size: 10px;
        padding: 5px 8px 4px 8px;
    }

    .price-section {
        gap: 4px;
    }

    .currency {
        font-size: 18px;
        margin-top: 6px;
    }

    .amount {
        font-size: 40px;
    }

    .period {
        font-size: 10px;
    }

    .plan-desc {
        font-size: 15px;
        margin-top: 4px;
    }

    .form-section {
        gap: 10px;
        margin: 6px 0;
    }

    .input-group {
        gap: 5px;
    }

    .input-label {
        font-size: 12px;
    }

    .styled-input {
        height: 44px;
        font-size: 14px;
        padding: 0 12px;
        border-radius: 22px;
    }

    .primary-btn {
        height: 44px;
        font-size: 14px;
        border-radius: 22px;
    }

    .features-list {
        gap: 16px;
        margin-top: 6px;
    }

    .feature-item {
        gap: 12px;
        font-size: 13px;
    }

    .feature-icon {
        width: 18px;
        height: 18px;
    }

    .footer-note {
        font-size: 11px;
        margin-top: 10px;
    }

    .result-title {
        font-size: 24px;
    }

    .result-desc {
        font-size: 14px;
    }

    .result-icon {
        width: 56px;
        height: 56px;
    }
}

/* 响应式 - 超小屏幕 */
@media (max-width: 360px) {
    body {
        padding: 16px 12px;
        padding-top: 24px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .business-card {
        padding: 16px 14px;
        gap: 12px;
    }

    .plan-name {
        font-size: 22px;
    }

    .amount {
        font-size: 36px;
    }

    .plan-desc {
        font-size: 14px;
    }

    .styled-input {
        height: 42px;
        font-size: 13px;
    }

    .primary-btn {
        height: 42px;
        font-size: 13px;
    }

    .features-list {
        gap: 14px;
    }

    .feature-item {
        font-size: 12px;
        gap: 10px;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
    }
}

/* iOS Safari 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* 防止iOS输入框缩放 */
@media screen and (max-width: 520px) {
    input[type="text"],
    input[type="email"] {
        font-size: 16px;
    }
}

/* 横屏适配 */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 16px;
        justify-content: flex-start;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .business-card {
        padding: 16px 20px;
        gap: 10px;
    }

    .features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 20px;
    }

    .feature-item {
        font-size: 12px;
    }
}
