.tool-page-wrapper {
padding: var(--space-8) 0 var(--space-16);
background-color: var(--color-bg);
}
.tool-header-block {
margin-bottom: var(--space-8);
text-align: center;
}
.tool-header-block .breadcrumb {
justify-content: center;
margin-bottom: var(--space-4);
}
.tool-badge-row {
display: flex;
justify-content: center;
gap: var(--space-2);
margin-bottom: var(--space-3);
flex-wrap: wrap;
}
.tool-page-title {
font-size: var(--font-size-3xl);
font-weight: var(--font-weight-extrabold);
color: var(--color-primary-900);
line-height: var(--line-height-tight);
margin-bottom: var(--space-3);
letter-spacing: -0.02em;
}
.tool-page-tagline {
font-size: var(--font-size-base);
color: var(--color-text-muted);
max-width: 680px;
margin: 0 auto;
line-height: var(--line-height-relaxed);
}
.calc-main-container {
max-width: 860px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
.calc-card {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-sm);
padding: var(--space-8);
margin-bottom: var(--space-8);
box-sizing: border-box;
}
.panel-header-block {
margin-bottom: var(--space-6);
border-bottom: 1px solid var(--color-border-subtle);
padding-bottom: var(--space-4);
}
.panel-title {
font-size: var(--font-size-xl);
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
margin-bottom: var(--space-1);
}
.panel-desc {
font-size: var(--font-size-sm);
color: var(--color-text-muted);
margin: 0;
line-height: var(--line-height-normal);
}
.calc-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-5);
margin-bottom: var(--space-6);
}
.calc-form-group {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.calc-form-group-full {
grid-column: 1 / -1;
}
.calc-input-label-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.calc-input-label {
font-size: var(--font-size-sm);
font-weight: var(--font-weight-semibold);
color: var(--color-primary-900);
}
.calc-number-input {
width: 100%;
padding: 0.75rem 1rem;
font-size: var(--font-size-base);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
background-color: var(--color-surface);
color: var(--color-text-main);
box-sizing: border-box;
font-family: inherit;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.calc-number-input:focus {
outline: none;
border-color: var(--color-accent-600);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.calc-range-slider {
width: 100%;
height: 6px;
background: var(--color-border);
border-radius: 4px;
outline: none;
margin-top: var(--space-2);
margin-bottom: var(--space-1);
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
.calc-range-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--color-accent-600);
border: 2px solid #ffffff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
cursor: pointer;
transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.calc-range-slider::-webkit-slider-thumb:hover {
transform: scale(1.15);
background: var(--color-accent-700);
}
.calc-range-slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--color-accent-600);
border: 2px solid #ffffff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
cursor: pointer;
transition: transform var(--transition-fast);
}
.range-hint-row {
display: flex;
justify-content: space-between;
font-size: var(--font-size-xs);
color: var(--color-text-muted);
}
.unit-switcher-group {
display: inline-flex;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
overflow: hidden;
background-color: #f8fafc;
}
.unit-btn {
padding: 0.25rem 0.625rem;
font-size: var(--font-size-xs);
font-weight: var(--font-weight-semibold);
border: none;
background: transparent;
color: var(--color-text-muted);
cursor: pointer;
transition: all var(--transition-fast);
font-family: inherit;
}
.unit-btn:hover {
color: var(--color-primary-900);
}
.unit-btn.is-active {
background-color: var(--color-accent-600);
color: #ffffff;
}
.calc-btn-group {
display: flex;
gap: var(--space-4);
margin-bottom: var(--space-6);
}
.calc-error-banner {
display: none;
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-md);
background-color: #fee2e2;
border: 1px solid #f87171;
color: #991b1b;
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
margin-bottom: var(--space-6);
}
.calc-prompt-box {
background-color: #f8fafc;
border: 1px dashed var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-8);
text-align: center;
color: var(--color-text-muted);
}
.calc-prompt-icon {
margin-bottom: var(--space-2);
color: var(--color-accent-600);
opacity: 0.7;
}
.calc-prompt-box p {
font-size: var(--font-size-sm);
margin: 0;
max-width: 480px;
margin-left: auto;
margin-right: auto;
line-height: var(--line-height-normal);
}
.emi-results-container {
animation: fadeIn 0.3s ease-in-out;
}
.emi-hero-card {
background: linear-gradient(135deg, var(--color-primary-900) 0%, #1e3a8a 100%);
border-radius: var(--radius-xl);
padding: var(--space-6);
color: #ffffff;
text-align: center;
margin-bottom: var(--space-5);
box-shadow: 0 4px 12px rgba(10, 37, 64, 0.12);
}
.emi-hero-label {
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
color: #93c5fd;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: var(--space-1);
}
.emi-hero-value {
font-size: 2.5rem;
font-weight: var(--font-weight-extrabold);
color: #ffffff;
line-height: 1.1;
letter-spacing: -0.02em;
margin-bottom: var(--space-3);
}
.emi-interest-highlight {
display: inline-flex;
align-items: center;
gap: var(--space-2);
background-color: rgba(34, 197, 94, 0.2);
border: 1px solid rgba(34, 197, 94, 0.4);
padding: 0.375rem 0.875rem;
border-radius: 9999px;
font-size: var(--font-size-sm);
font-weight: var(--font-weight-semibold);
color: #86efac;
}
.formula-box {
background-color: #f8fafc;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-4);
margin-bottom: var(--space-5);
}
.formula-header {
display: block;
font-size: var(--font-size-xs);
font-weight: var(--font-weight-bold);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--color-text-muted);
margin-bottom: var(--space-1);
}
.formula-text {
display: block;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: var(--font-size-sm);
color: var(--color-primary-900);
font-weight: var(--font-weight-semibold);
word-break: break-word;
}
.emi-stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-4);
margin-bottom: var(--space-5);
}
.emi-stat-box {
background-color: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-4);
text-align: center;
box-sizing: border-box;
}
.emi-stat-val {
font-size: var(--font-size-lg);
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
margin-bottom: 0.25rem;
word-break: break-word;
}
.emi-stat-lbl {
font-size: var(--font-size-xs);
color: var(--color-text-muted);
font-weight: var(--font-weight-medium);
}
.emi-visual-box {
background-color: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-5);
margin-bottom: var(--space-6);
}
.emi-visual-title {
font-size: var(--font-size-sm);
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
margin-bottom: var(--space-3);
display: flex;
align-items: center;
gap: var(--space-2);
}
.emi-visual-bar {
width: 100%;
height: 18px;
border-radius: 9px;
background-color: var(--color-border);
overflow: hidden;
display: flex;
margin-bottom: var(--space-4);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.bar-segment-principal {
height: 100%;
background-color: #0A2540;
transition: width 0.4s ease;
}
.bar-segment-interest {
height: 100%;
background-color: #2563EB;
transition: width 0.4s ease;
}
.emi-visual-legend {
display: flex;
justify-content: space-around;
gap: var(--space-4);
flex-wrap: wrap;
}
.legend-item {
display: flex;
align-items: center;
gap: var(--space-3);
}
.legend-dot {
width: 14px;
height: 14px;
border-radius: 3px;
flex-shrink: 0;
}
.legend-dot-principal {
background-color: #0A2540;
}
.legend-dot-interest {
background-color: #2563EB;
}
.legend-text {
font-size: var(--font-size-sm);
color: var(--color-text-main);
}
.legend-label {
font-weight: var(--font-weight-medium);
margin-right: 0.25rem;
}
.legend-value {
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
}
.legend-pct {
font-size: var(--font-size-xs);
color: var(--color-text-muted);
margin-left: 0.25rem;
}
.schedule-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-4);
flex-wrap: wrap;
gap: var(--space-3);
}
.schedule-header-text h3 {
font-size: var(--font-size-lg);
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
margin: 0 0 0.25rem 0;
}
.schedule-header-text p {
font-size: var(--font-size-xs);
color: var(--color-text-muted);
margin: 0;
}
.schedule-table-box {
background-color: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
overflow: hidden;
margin-bottom: var(--space-6);
animation: fadeIn 0.3s ease-in-out;
}
.schedule-table-wrapper {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
max-height: 480px;
overflow-y: auto;
}
.schedule-table {
width: 100%;
min-width: 620px;
border-collapse: collapse;
text-align: right;
font-size: var(--font-size-xs);
}
.schedule-table th {
position: sticky;
top: 0;
background-color: #f8fafc;
color: var(--color-primary-900);
font-weight: var(--font-weight-bold);
padding: 0.75rem 0.875rem;
border-bottom: 2px solid var(--color-border);
white-space: nowrap;
z-index: 1;
}
.schedule-table td {
padding: 0.625rem 0.875rem;
border-bottom: 1px solid var(--color-border-subtle);
color: var(--color-text-main);
white-space: nowrap;
}
.schedule-table tr:hover td {
background-color: #f1f5fb;
}
.schedule-table .td-month {
text-align: center;
font-weight: var(--font-weight-semibold);
color: var(--color-primary-900);
}
.schedule-table .td-num {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.schedule-table .font-semibold {
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
}
.schedule-table .text-success {
color: #15803d;
font-weight: var(--font-weight-semibold);
}
.schedule-table .text-danger {
color: #b91c1c;
}
.info-accordion-card {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-6);
margin-bottom: var(--space-4);
box-shadow: var(--shadow-sm);
}
.info-accordion-card-disclaimer {
border-left: 4px solid #f59e0b;
background-color: #fffbeb;
}
.info-accordion-title {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--font-size-base);
font-weight: var(--font-weight-bold);
color: var(--color-primary-900);
margin-bottom: var(--space-2);
}
.info-accordion-desc {
font-size: var(--font-size-sm);
color: var(--color-text-muted);
margin: 0;
line-height: var(--line-height-relaxed);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(3px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
.calc-card {
padding: var(--space-5);
}
.calc-form-grid {
grid-template-columns: 1fr;
gap: var(--space-4);
}
.emi-stats-grid {
grid-template-columns: 1fr;
gap: var(--space-3);
}
.emi-visual-legend {
flex-direction: column;
align-items: flex-start;
}
.emi-hero-value {
font-size: 2rem;
}
}
@media (max-width: 480px) {
.calc-card {
padding: var(--space-4);
}
.calc-btn-group {
flex-direction: column;
gap: var(--space-3);
}
.calc-btn-group .btn {
width: 100%;
justify-content: center;
}
.emi-hero-value {
font-size: 1.75rem;
}
.schedule-section-header {
flex-direction: column;
align-items: stretch;
}
.schedule-section-header .btn {
width: 100%;
justify-content: center;
}
}
@media (max-width: 320px) {
.calc-main-container {
padding-left: var(--space-2);
padding-right: var(--space-2);
}
.calc-card {
padding: var(--space-3);
}
.tool-page-title {
font-size: var(--font-size-2xl);
}
.emi-hero-value {
font-size: 1.5rem;
}
}
