.lc-header { margin-bottom: 28px; text-align: center; }
.lc-title { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #10b981 0%, #059669 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0 0 10px; }
.lc-desc { font-size: 15px; color: #6b7280; margin: 0; }

.lc-calculator { padding: 28px; }

.lc-inputs { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }

.lc-input-row { display: flex; align-items: center; gap: 16px; }
.lc-input-row label { min-width: 80px; font-size: 14px; font-weight: 500; color: #374151; }
.lc-input-wrap { flex: 1; display: flex; gap: 8px; }
.lc-input-wrap input { flex: 1; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 16px; transition: all 0.2s; }
.lc-input-wrap input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }
.lc-input-wrap span { padding: 14px; color: #6b7280; font-size: 14px; min-width: 40px; text-align: center; }

.lc-method-tabs { flex: 1; display: flex; gap: 8px; }
.lc-method-btn { flex: 1; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 10px; background: white; font-size: 14px; font-weight: 500; color: #374151; cursor: pointer; transition: all 0.2s; }
.lc-method-btn:hover { border-color: #10b981; color: #059669; }
.lc-method-btn.active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.lc-calc-btn { width: 100%; padding: 18px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; border-radius: 14px; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.lc-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45); }
.lc-calc-btn:active { transform: translateY(0); }

.lc-results { padding: 28px; }

.lc-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 640px) { .lc-summary { grid-template-columns: repeat(4, 1fr); } }

.lc-summary-card { padding: 20px; background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%); border-radius: 14px; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); border: 1px solid #e5e7eb; transition: all 0.3s ease; }
.lc-summary-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.lc-summary-label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.lc-summary-value { display: block; font-size: 22px; font-weight: 800; color: #111827; }
.lc-summary-value.lc-interest { color: #ef4444; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.lc-chart-section { margin-bottom: 28px; }
.lc-chart-section h3 { font-size: 16px; font-weight: 600; margin: 0 0 20px; }

.lc-chart-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px; background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%); border-radius: 16px; border: 1px solid #e5e7eb; }
@media (min-width: 640px) { .lc-chart-wrap { flex-direction: row; justify-content: center; } }

#loanChart { max-width: 300px; max-height: 200px; }

.lc-chart-legend { display: flex; flex-direction: column; gap: 12px; }
.lc-legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #374151; }
.lc-legend-color { width: 16px; height: 16px; border-radius: 4px; }

.lc-schedule-section { border-top: 1px solid #e5e7eb; padding-top: 20px; }

.lc-schedule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lc-schedule-header h3 { font-size: 16px; font-weight: 600; margin: 0; }

.lc-toggle-btn { padding: 8px 16px; background: #f3f4f6; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; transition: all 0.2s; }
.lc-toggle-btn:hover { background: #e5e7eb; }

.lc-schedule-wrap { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.lc-schedule-wrap.expanded { max-height: 600px; overflow-y: auto; }

.lc-schedule-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lc-schedule-table th { padding: 12px 8px; background: #f9fafb; color: #374151; font-weight: 600; text-align: right; border-bottom: 1px solid #e5e7eb; }
.lc-schedule-table th:first-child { text-align: left; }
.lc-schedule-table td { padding: 12px 8px; border-bottom: 1px solid #f3f4f6; text-align: right; color: #4b5563; }
.lc-schedule-table td:first-child { text-align: left; font-weight: 500; }
.lc-schedule-table tbody tr:hover { background: #f9fafb; }

.lc-compare { padding: 28px; }
.lc-compare h3 { font-size: 16px; font-weight: 600; margin: 0 0 20px; }

.lc-compare-table-wrap { overflow-x: auto; margin-bottom: 20px; }

.lc-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lc-compare-table th { padding: 14px 12px; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #065f46; font-weight: 600; text-align: center; border: 1px solid #a7f3d0; }
.lc-compare-table th:first-child { text-align: left; }
.lc-compare-table td { padding: 14px 12px; border: 1px solid #e5e7eb; text-align: center; color: #374151; }
.lc-compare-table td:first-child { font-weight: 500; background: #f9fafb; }
.lc-compare-table tr:nth-child(even) td:not(:first-child) { background: #f9fafb; }

.lc-compare-tips { padding: 16px 20px; background: #fef3c7; border-radius: 10px; border-left: 4px solid #f59e0b; font-size: 14px; color: #92400e; line-height: 1.6; }

.lc-guide { padding: 20px; }
.lc-guide h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.lc-guide-content { font-size: 14px; line-height: 1.8; color: #374151; }
.lc-guide-content h4 { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: #111827; }
.lc-guide-content ul { padding-left: 20px; margin: 0; }
.lc-guide-content li { margin: 6px 0; }
.lc-guide-content strong { color: #10b981; }

@media (max-width: 640px) {
    .lc-title { font-size: 26px; }
    .lc-input-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .lc-input-row label { min-width: auto; }
    .lc-method-tabs { flex-wrap: wrap; }
    .lc-method-btn { min-width: calc(50% - 4px); }
    .lc-compare-table { font-size: 12px; }
    .lc-compare-table th, .lc-compare-table td { padding: 10px 8px; }
}

@media (prefers-color-scheme: dark) {
    .lc-tabs { background: #1f2937; }
    .lc-method-btn { background: #374151; border-color: #4b5563; color: #d1d5db; }
    .lc-method-btn:hover { border-color: #10b981; }
    .lc-method-btn.active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
    .lc-summary-card { background: #1f2937; border-color: #374151; }
    .lc-chart-wrap { background: #1f2937; border-color: #374151; }
    .lc-schedule-table th { background: #374151; color: #d1d5db; }
    .lc-schedule-table td { color: #d1d5db; }
    .lc-compare-table th { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); color: #a7f3d0; border-color: #059669; }
    .lc-compare-table td { border-color: #374151; }
    .lc-compare-table td:first-child { background: #374151; color: #d1d5db; }
    .lc-compare-table tr:nth-child(even) td:not(:first-child) { background: #1f2937; }
}
