/* 深度美化 — 保留原有结构，叠加更细腻的质感 */
body {
    font-family: 'Inter', sans-serif;
    background: #0a0c14; /* 更浓郁的深色底 */
    background-image: radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 30%),
                      radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 35%);
    color: #f1f5f9;
    scroll-behavior: smooth;
}

/* 玻璃卡片进化版：更通透，边缘光晕 */
.glass {
    background: rgba(20, 30, 45, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.glass:hover {
    box-shadow: 0 25px 40px -12px rgba(0, 100, 255, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

/* 渐变文本增强 */
.text-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 40%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* 标签切换组 — 毛玻璃+高亮光效 */
.mode-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.mode-tab.active-tab {
    background: linear-gradient(145deg, #2563eb, #1d4ed8) !important;
    border-color: #60a5fa;
    box-shadow: 0 8px 18px -6px #1e3a8a, 0 0 0 1px #3b82f6 inset;
    color: white;
    font-weight: 700;
}

.mode-tab:not(.active-tab):hover {
    background: rgba(30, 64, 175, 0.5);
    border-color: #3b82f680;
}

/* 滑块自定义 — 更精致的thumb */
input[type=range] {
    accent-color: #3b82f6;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px #3b82f6, 0 0 0 2px #0f172a;
    border: 2px solid #3b82f6;
    cursor: pointer;
    transition: 0.1s;
    margin-top: -7px;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #e2e8f0;
}

/* 数字输入框优雅化 */
.input-number-clean {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 0.4rem 1rem;
    color: #fbbf24;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
    width: 110px;
    transition: 0.2s;
}
.input-number-clean:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px #1e3a8a;
}

/* 公式盒子升级 */
.formula-glow {
    background: #0f172a;
    border-left: 4px solid #3b82f6;
    border-radius: 18px;
    box-shadow: 0 0 25px #1e3a8a40;
    font-family: 'JetBrains Mono', monospace;
    color: #fbbf24cc;
}

/* 首月还款显示，若为范围可缩小字体适应 */
.repayment-value {
    font-size: 1.8rem;
    line-height: 1.2;
    word-break: break-word;
}
@media (max-width: 500px) {
    .repayment-value {
        font-size: 1.3rem;
    }
}

/* 总利息数字发光 */
.interest-giant {
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

/* 图表容器微调 */
.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

/* 装饰分隔 */
.divider-light {
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #fbbf24, transparent);
    width: 100%;
    opacity: 0.3;
}
/* 符号解释文字样式 */
.symbols-desc {
    font-size: 0.7rem;
    line-height: 1.5;
    color: #94a3b8;
    border-top: 1px dashed #2563eb50;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}