/* ── Page Top（面包屑 + hero + 工具区 统一白底） ── */
.page-top {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 3rem;
}

/* ── Breadcrumb Bar ── */
.breadcrumb-bar {
    padding: 0.8rem 0;
}

.breadcrumb-sep { color: #ccc; }

/* ── Hero ── */
.hero-content {
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 1.5rem 0 0;
}

/* ── Tool Area ── */
.tool-area {
    padding: 2rem 0 0;
}

.tool-box {
    max-width: 860px;
    margin: 0 auto;
}

/* ── 贷款输入表单 ── */
.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-input {
    padding: 0.7rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: white;
}

/* ── 利率参考提示 ── */
.rate-hint {
    font-size: 0.8rem;
    color: #999;
    margin: -0.6rem 0 1.2rem;
}

/* ── 计算结果容器 ── */
.calc-result {
    margin: 1.4rem 0 0;
}

/* ── 对比结果网格 ── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.compare-col {
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    overflow: hidden;
}

.compare-header {
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef2ff;
    color: #2563eb;
}

.compare-header.egj {
    background: #ecfdf5;
    color: #059669;
}

.compare-badge {
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(37,99,235,0.12);
    color: #2563eb;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.compare-header.egj .compare-badge {
    background: rgba(5,150,105,0.12);
    color: #059669;
}

.cmp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    border-top: 1px solid #f0f0f0;
}

.cmp-row span { color: #666; }
.cmp-row strong { color: #333; font-family: 'Fira Code', monospace; font-weight: 600; }

.cmp-row.sub span { color: #aaa; font-size: 0.82rem; }
.cmp-row.sub strong { color: #aaa; font-size: 0.82rem; }

.cmp-row.total {
    background: white;
    border-top: 2px solid #e8eaf0;
}
.cmp-row.total span { color: #333; font-weight: 600; }
.cmp-row.total strong { color: #2563eb; font-weight: 700; font-size: 1rem; }

.save-tip {
    text-align: center;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: #92400e;
}
.save-tip strong { color: #d97706; }

/* ── Buttons ── */
.tool-actions {
    display: flex;
    gap: 0.8rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover { background: #1d4ed8; }

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover { background: #e0e0e0; }

/* ── 子工具入口 ── */
.sub-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.sub-tool-link {
    display: block;
    padding: 0.9rem 1.2rem;
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sub-tool-link:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
    color: #2563eb;
    text-decoration: none;
}

.sub-tools-title {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

/* ── Section Common ── */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.4rem;
}

.section-sub {
    color: #666;
    text-align: center;
    margin-bottom: 2.2rem;
    font-size: 0.92rem;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 1.6rem 1.2rem;
    text-align: center;
    border: 1px solid #e8eaf0;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* ── Steps ── */
.steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1rem;
    top: 1.1rem;
    font-size: 1.1rem;
    color: #ccc;
}

.step-num {
    width: 44px;
    height: 44px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.step-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: white;
    overflow: hidden;
}

.faq-question {
    padding: 1.1rem 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover { background: #fafafa; }

.faq-arrow {
    color: #999;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.3rem 1.1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
}

.faq-item.open .faq-answer { display: block; }

/* ── Related Tools ── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.related-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-form { grid-template-columns: 1fr 1fr; }
    .sub-tools { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero-title { font-size: 1.5rem; }
    .calc-form { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .steps-list { grid-template-columns: 1fr; }
    .step-item::after { display: none; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .sub-tools { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
