/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 32px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* 次要按钮样式 */
.btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    background-color: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1px;
}

.btn-secondary:hover {
    background-color: #ebebf0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-secondary:active {
    background-color: #d2d2d7;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 输入区域样式 */
.input-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 56px 48px;
    margin-bottom: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.input-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05);
}

.input-container {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-container label {
    font-size: 17px;
    font-weight: 500;
    color: #6e6e73;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.1px;
}

.input-container input {
    padding: 18px 24px;
    font-size: 20px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background-color: #f5f5f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1d1d1f;
    letter-spacing: 0.1px;
}

.input-container input:focus {
    outline: none;
    border-color: #0071e3;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.input-container input::placeholder {
    color: #a1a1a6;
}

/* 按钮样式 */
.btn-primary {
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0071e3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1px;
}

.btn-primary:hover {
    background-color: #0077ed;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: #005bb5;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #0071e3;
    box-shadow: none;
    transform: none;
}

/* 结果展示区域 */
.results-section {
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 方案卡片样式 */
.plan-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #f0f0f0;
}

.plan-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.plan-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.plan-subtitle {
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    line-height: 1.3;
}

.plan-info {
    margin-bottom: 12px;
}

.plan-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.2;
}

.plan-info-label {
    color: #000000;
    font-weight: bold;
}

.plan-info-value {
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.1px;
}

.plan-payments {
    margin-top: 16px;
}

.plan-payments-title {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.2;
}

.payment-period {
    color: #6e6e73;
}

.payment-amount {
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.05px;
}

/* 无数据提示 */
.no-data-section {
    text-align: center;
    padding: 120px 24px;
    color: #6e6e73;
}

.no-data p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.no-data p:last-child {
    margin-bottom: 0;
    color: #a1a1a6;
    font-size: 16px;
}



/* 404页面样式 */
.error-container {
    text-align: center;
    padding: 120px 24px;
}

.error-title {
    font-size: 88px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.error-message {
    font-size: 28px;
    color: #6e6e73;
    margin-bottom: 48px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-link {
    display: inline-block;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 600;
    color: #0071e3;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1px;
}

.error-link:hover {
    background-color: rgba(0, 113, 227, 0.08);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 32px 16px;
    }
    
    .header {
        margin-bottom: 40px;
        padding: 24px 0;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .input-section {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .input-container {
        gap: 20px;
    }
    
    .input-container input {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .btn-primary {
        font-size: 17px;
        padding: 16px 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .plan-card {
        padding: 24px;
    }
    
    .error-title {
        font-size: 72px;
    }
    
    .error-message {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: fadeIn 0.5s ease-out;
}

.plan-card {
    animation: fadeIn 0.3s ease-out;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }
.plan-card:nth-child(5) { animation-delay: 0.5s; }
.plan-card:nth-child(6) { animation-delay: 0.6s; }
.plan-card:nth-child(7) { animation-delay: 0.7s; }
.plan-card:nth-child(8) { animation-delay: 0.8s; }
.plan-card:nth-child(9) { animation-delay: 0.9s; }
.plan-card:nth-child(10) { animation-delay: 1.0s; }
.plan-card:nth-child(11) { animation-delay: 1.1s; }
.plan-card:nth-child(12) { animation-delay: 1.2s; }

/* 页脚样式 */
.footer {
    background-color: #f5f5f7;
    padding: 20px 0;
    border-top: 1px solid #d2d2d7;
    margin-top: 60px;
}

.footer .container {
    padding: 0 24px;
}

.footer .copyright-info {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6e6e73;
}

.footer .copyright-info span,
.footer .copyright-info a {
    display: inline-block;
}

.footer .copyright-info a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .copyright-info a:hover {
    color: #0077ed;
    text-decoration: underline;
}