/* ======================================================================
 *  年龄计算器 /tool/age-calc
 * ====================================================================== */

.age-card {
    padding: 22px;
    margin-bottom: 16px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.age-card-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }

/* ---------- 输入区 ---------- */
.age-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.age-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 210px; min-width: 180px; }
.age-label { font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.age-input {
    height: 46px;
    padding: 0 13px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-surface-soft);
    border: 1.5px solid var(--c-border);
    border-radius: 11px;
    outline: none;
    transition: all 0.16s ease;
}
.age-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.age-btn {
    height: 46px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text-sub);
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.age-btn:hover { color: var(--c-primary); border-color: var(--c-primary); background: var(--c-primary-soft); }
.age-hint { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--c-text-muted); }
.age-hint.is-error { color: #d32f2f; }

/* ---------- 结果 ---------- */
.age-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.10));
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}
.age-hero-main { display: flex; align-items: baseline; gap: 6px; }
.age-hero-num {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ec4899;
    font-variant-numeric: tabular-nums;
}
.age-hero-unit { font-size: 15px; font-weight: 800; color: var(--c-text-sub); }
.age-hero-detail { font-size: 14px; font-weight: 700; color: var(--c-text-sub); }

.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.age-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 12px;
}
.age-stat .k { font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.age-stat .v { font-size: 16px; font-weight: 800; color: var(--c-text); }

/* ---------- 生日倒计时 ---------- */
.age-birthday {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-top: 16px;
    background: var(--c-surface-soft);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-md);
}
.age-birthday.is-today { border-style: solid; border-color: #ec4899; background: rgba(236, 72, 153, 0.10); }
.age-birthday-icon { font-size: 26px; }
.age-birthday-body { flex: 1; min-width: 0; }
.age-birthday-title { font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.age-birthday-text { font-size: 14px; font-weight: 700; color: var(--c-text); margin-top: 3px; }
.age-birthday-count {
    font-size: 20px;
    font-weight: 900;
    color: #ec4899;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.age-actions { margin-top: 16px; display: flex; gap: 8px; }

/* ---------- 速查 ---------- */
.age-rules { display: flex; flex-direction: column; gap: 8px; }
.age-rule {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 11px 14px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.7;
}
.age-rule .k { font-weight: 800; color: var(--c-text); }
.age-rule .v { color: var(--c-text-sub); }
.age-disclaim {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--c-text-muted);
    background: var(--c-surface-soft);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
}

.age-info-block { margin: 24px 0 8px; }

@media (max-width: 560px) {
    .age-rule { grid-template-columns: 1fr; gap: 4px; }
    .age-hero-num { font-size: 38px; }
}
