/* ==========================================================
 * 2026-08-13 Stage 7.1 家谱首页 Hero 区
 * 文件：family/css/family_home.css
 * 说明：从 family/index.php 拆出，便于管理。
 *       保留与 funnyai/list_people.css 兼容的 .lp-* 类。
 * ========================================================== */

.fh-hero {
    /* 主视觉 - 因果 + 恩情主题（古风 + 现代渐变） */
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 200, 130, 0.30), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(120, 180, 255, 0.22), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18), transparent 70%),
        linear-gradient(135deg, #1a0f1f 0%, #3b1f5e 35%, #6b2d5c 70%, #8b3a3a 100%);
    color: #fff8ec;
    border-radius: 16px;
    padding: 42px 36px 32px;
    margin: 18px 0 24px;
    box-shadow: 0 16px 40px rgba(26, 15, 31, 0.32);
    overflow: hidden;
}

/* 背景装饰：家谱树剪影 */
.fh-hero::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.6;
    pointer-events: none;
}

.fh-hero__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.fh-hero__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    max-width: 720px;
}

.fh-hero__title em {
    font-style: normal;
    color: #ffe0a8;
}

.fh-hero__sub {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 22px;
    color: rgba(255, 248, 236, 0.88);
    max-width: 640px;
}

.fh-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.fh-btn--primary {
    background: linear-gradient(135deg, #ffe066 0%, #ff9a3c 100%);
    color: #4a1f00;
    box-shadow: 0 6px 18px rgba(255, 154, 60, 0.42);
}
.fh-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 154, 60, 0.55);
}

.fh-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff8ec;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}
.fh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.fh-hero__stats {
    display: flex;
    gap: 28px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
}

.fh-stat__num {
    font-size: 22px;
    font-weight: 800;
    color: #ffe0a8;
    line-height: 1;
}

.fh-stat__label {
    font-size: 12px;
    color: rgba(255, 248, 236, 0.75);
    margin-top: 4px;
}

/* ===== Tab 切换 ===== */
.fh-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--lp-border, #e5e7eb);
    margin: 8px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.fh-tabs::-webkit-scrollbar { display: none; }

.fh-tab {
    padding: 10px 18px;
    background: transparent;
    border: 0;
    color: var(--lp-muted, #6b7280);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.fh-tab:hover {
    color: var(--lp-primary, #2563eb);
}
.fh-tab.is-active {
    color: var(--lp-primary, #2563eb);
    border-bottom-color: var(--lp-primary, #2563eb);
}

.fh-tab__count {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    background: var(--lp-border, #e5e7eb);
    color: var(--lp-muted, #6b7280);
    font-size: 11px;
    border-radius: 999px;
    font-weight: 500;
}
.fh-tab.is-active .fh-tab__count {
    background: var(--lp-primary, #2563eb);
    color: #fff;
}

.fh-panel { display: none; }
.fh-panel.is-active { display: block; }

/* ===== 「家谱图精选」网格 ===== */
.fh-tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 8px 0 16px;
}

.fh-tree-card {
    background: #fff;
    border: 1px solid var(--lp-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--lp-text, #1f2937);
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.fh-tree-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--lp-primary, #2563eb);
    color: var(--lp-text, #1f2937);
}
.fh-tree-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #b94545 0%, #d4af37 100%);
}

.fh-tree-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}
.fh-tree-card__id {
    font-size: 12px;
    color: var(--lp-muted, #6b7280);
    margin: 0 0 8px;
}
.fh-tree-card__meta {
    font-size: 12px;
    color: var(--lp-muted, #6b7280);
    display: flex;
    gap: 10px;
}

/* ===== 「使用说明」步骤卡片 ===== */
.fh-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 8px 0 16px;
}
.fh-step {
    background: #fff;
    border: 1px solid var(--lp-border, #e5e7eb);
    border-radius: 12px;
    padding: 18px 16px;
    position: relative;
}
.fh-step__no {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}
.fh-step__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}
.fh-step__desc {
    font-size: 13px;
    color: var(--lp-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* ===== 移动端适配 ===== */
@media (max-width: 720px) {
    .fh-hero { padding: 24px 18px 22px; }
    .fh-hero__title { font-size: 24px; }
    .fh-hero__sub { font-size: 13px; }
    .fh-hero__stats { gap: 18px; }
    .fh-stat__num { font-size: 18px; }
    .fh-btn { padding: 9px 16px; font-size: 13px; }
    .fh-pillars { grid-template-columns: 1fr; }
    .fh-quote { padding: 14px 18px; }
    .fh-quote__text { font-size: 15px; }
    .fh-axis { font-size: 12px; }
}

/* ==========================================================
 * 2026-08-13 Stage 7.2 改造：「四把尺子理论」落地
 * 新增：.fh-credit / .fh-quote / .fh-pillars / .fh-pillar / .fh-axis
 * ========================================================== */

/* 顶部徽标：四把尺子理论 · 落地 */
.fh-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffe0a8;
    font-size: 11px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.fh-credit::before {
    content: "⚖";
    font-size: 13px;
}
.fh-credit a {
    color: #ffe0a8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 224, 168, 0.4);
}
.fh-credit a:hover { border-bottom-color: #fff8ec; }

/* 大金句卡：善的几何 */
.fh-quote {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #d4af37;
    padding: 16px 22px;
    margin: 18px 0 8px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}
.fh-quote__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #fff8ec;
    font-weight: 500;
    font-family: "Songti SC", "STSong", "SimSun", "宋体", serif;
}
.fh-quote__text em {
    font-style: normal;
    color: #ffe0a8;
    font-weight: 700;
}
.fh-quote__cite {
    margin: 8px 0 0;
    font-size: 12px;
    color: rgba(255, 248, 236, 0.6);
    font-style: normal;
}

/* 「在场之尺的 3 个维度」轴 */
.fh-axis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 248, 236, 0.85);
}
.fh-axis__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fh-axis__num {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: rgba(212, 175, 55, 0.25);
    color: #ffe0a8;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.fh-axis__item--active .fh-axis__num {
    background: #d4af37;
    color: #1a0f1f;
}
.fh-axis__item--active {
    color: #fff8ec;
    font-weight: 600;
}

/* 三栏「因果 / 母系 / 恩情」支柱 */
.fh-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 4px;
}
.fh-pillar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 14px 12px;
    backdrop-filter: blur(8px);
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.fh-pillar:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}
.fh-pillar__icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 8px;
    font-size: 17px;
    margin-bottom: 8px;
}
.fh-pillar--cause   .fh-pillar__icon { background: rgba(255, 88, 88, 0.22); }
.fh-pillar--mother  .fh-pillar__icon { background: rgba(255, 175, 200, 0.22); }
.fh-pillar--grace   .fh-pillar__icon { background: rgba(120, 220, 180, 0.22); }

.fh-pillar__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff8ec;
}
.fh-pillar--cause   .fh-pillar__title { color: #ffb3b3; }
.fh-pillar--mother  .fh-pillar__title { color: #ffc8df; }
.fh-pillar--grace   .fh-pillar__title { color: #b3f0d4; }

.fh-pillar__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 248, 236, 0.75);
}
.fh-pillar__more {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 224, 168, 0.85);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 224, 168, 0.3);
}
.fh-pillar__more:hover { border-bottom-color: #ffe0a8; color: #ffe0a8; }

/* ==========================================================
 * 2026-08-13 Stage 7.2 顶部导航改造
 * 新增：.fh-mainnav（sticky 主导航） + 修复 .lp-topbar
 * ========================================================== */

/* 全局：让 body 不要默认 margin-top，让 sticky 正常生效 */
body.lp-page { margin: 0; padding: 0; }

/* ===== 修复原 lp-topbar 排版（太挤、字号太小） ===== */
.lp-topbar {
    background: #faf7f2;
    border-bottom: 1px solid #ece6d8;
    color: #6b5b3b;
    font-size: 12px;
    line-height: 32px;
    padding: 0 24px;
    text-align: right;
}
.lp-topbar a {
    color: #6b5b3b;
    text-decoration: none;
    margin: 0 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.lp-topbar a:hover {
    background: #f0e7d2;
    color: #4a1f00;
}
.lp-topbar__sep {
    color: #c8b89a;
    margin: 0 4px;
}
.lp-topbar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== 顶部主导航：sticky 顶置 ===== */
.fh-mainnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(185, 145, 80, 0.18);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 18px;
}

/* 主导航：品牌区 */
.fh-mainnav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.fh-mainnav__brand-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(185, 69, 69, 0.25);
}
.fh-mainnav__brand-text {
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.fh-mainnav__brand-sub {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 1px solid #e5e7eb;
    -webkit-text-fill-color: #6b7280;
}

/* 主导航：菜单 */
.fh-mainnav__menu {
    display: flex;
    gap: 2px;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
}
.fh-mainnav__item {
    position: relative;
    padding: 8px 14px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.fh-mainnav__item:hover {
    background: rgba(185, 145, 80, 0.08);
    color: #1f2937;
}
.fh-mainnav__item.is-active {
    color: #b94545;
    font-weight: 700;
}
.fh-mainnav__item.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, #b94545 0%, #d4af37 100%);
    border-radius: 2px;
}
.fh-mainnav__item-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    background: linear-gradient(135deg, #ffe066 0%, #ff9a3c 100%);
    color: #4a1f00;
    font-size: 10px;
    border-radius: 4px;
    font-weight: 700;
    vertical-align: middle;
}

/* 主导航：用户区 */
.fh-mainnav__user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.fh-mainnav__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.fh-mainnav__login {
    display: inline-block;
    padding: 6px 14px;
    color: #b94545;
    border: 1px solid #b94545;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.fh-mainnav__login:hover {
    background: #b94545;
    color: #fff;
}
.fh-mainnav__cta {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffe066 0%, #ff9a3c 100%);
    color: #4a1f00;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(255, 154, 60, 0.30);
    transition: transform 0.15s ease;
}
.fh-mainnav__cta:hover {
    transform: translateY(-1px);
    color: #4a1f00;
}

/* 移动端：菜单可滚动 + 用户区简化 */
@media (max-width: 820px) {
    .fh-mainnav {
        height: auto;
        padding: 10px 14px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .fh-mainnav__menu {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .fh-mainnav__menu::-webkit-scrollbar { display: none; }
    .fh-mainnav__item { padding: 6px 10px; font-size: 13px; }
    .fh-mainnav__brand-sub { display: none; }
}
@media (max-width: 480px) {
    .fh-mainnav__brand-text { font-size: 16px; }
    .fh-mainnav__user { gap: 6px; }
    .fh-mainnav__login, .fh-mainnav__cta { padding: 5px 10px; font-size: 12px; }
}

/* ==========================================================
 * 2026-08-13 Stage 7.2 底部 site footer
 * 设计：紫红渐变（呼应 Hero）+ 4 列 + CTA + 版权
 * ========================================================== */

.fh-sitefooter {
    margin-top: 40px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 200, 130, 0.10), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(120, 180, 255, 0.08), transparent 45%),
        linear-gradient(135deg, #1a0f1f 0%, #3b1f5e 50%, #6b2d5c 100%);
    color: rgba(255, 248, 236, 0.85);
    border-top: 3px solid #d4af37;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.fh-sitefooter::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

/* 底部 CTA 条 */
.fh-sitefooter__cta {
    padding: 36px 32px;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fh-sitefooter__cta-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #fff8ec;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.fh-sitefooter__cta-title em {
    font-style: normal;
    color: #ffe0a8;
}
.fh-sitefooter__cta-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 248, 236, 0.7);
}
.fh-sitefooter__cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 4 列导航区 */
.fh-sitefooter__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 32px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.fh-sitefooter__col h4 {
    margin: 0 0 14px;
    font-size: 13px;
    color: #ffe0a8;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
}
.fh-sitefooter__col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
    border-radius: 1px;
}
.fh-sitefooter__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fh-sitefooter__col li {
    margin-bottom: 9px;
}
.fh-sitefooter__col a {
    color: rgba(255, 248, 236, 0.75);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fh-sitefooter__col a:hover {
    color: #ffe0a8;
    transform: translateX(2px);
}
.fh-sitefooter__col a::before {
    content: "›";
    color: #d4af37;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.fh-sitefooter__col a:hover::before {
    opacity: 1;
}

/* 品牌信息区 */
.fh-sitefooter__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #fff8ec;
}
.fh-sitefooter__brand-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(185, 69, 69, 0.4);
}
.fh-sitefooter__brand-sub {
    font-size: 12px;
    color: rgba(255, 248, 236, 0.65);
    margin: 0 0 12px;
    line-height: 1.5;
}
.fh-sitefooter__brand-quote {
    font-size: 12px;
    color: rgba(255, 224, 168, 0.7);
    line-height: 1.6;
    border-left: 2px solid #d4af37;
    padding-left: 10px;
    margin-top: 12px;
    font-family: "Songti SC", "STSong", "SimSun", "宋体", serif;
}

/* 版权底栏 */
.fh-sitefooter__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 248, 236, 0.55);
    background: rgba(0, 0, 0, 0.2);
}
.fh-sitefooter__bar a {
    color: rgba(255, 248, 236, 0.55);
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.15s ease;
}
.fh-sitefooter__bar a:hover { color: #ffe0a8; }
.fh-sitefooter__bar-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}
.fh-sitefooter__bar-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ffe0a8;
}

/* footer 内按钮（复用 .fh-btn） */
.fh-sitefooter .fh-btn--primary {
    background: linear-gradient(135deg, #ffe066 0%, #ff9a3c 100%);
    color: #4a1f00;
    box-shadow: 0 6px 18px rgba(255, 154, 60, 0.42);
}
.fh-sitefooter .fh-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff8ec;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.fh-sitefooter .fh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* 移动端：4 列 → 1 列 */
@media (max-width: 820px) {
    .fh-sitefooter__cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 20px 20px;
    }
    .fh-sitefooter__cta { padding: 28px 20px; }
    .fh-sitefooter__cta-title { font-size: 20px; }
    .fh-sitefooter__bar { padding: 14px 20px; flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .fh-sitefooter__cols {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 16px 16px;
    }
}

/* ==========================================================
 * 2026-08-13 Stage 7.2 中部美化
 * 重写：.lp-toolbar（圆角+分段按钮） + .lp-search（聚焦高亮） + 表格
 * ========================================================== */

/* ===== 工具栏总容器：白底卡片 ===== */
.lp-toolbar {
    background: #fff;
    border: 1px solid #ece6d8;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ===== 搜索表单 ===== */
.lp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    min-width: 280px;
}
.lp-search__label {
    font-size: 12px;
    color: #6b5b3b;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.lp-input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid #e5dcc4;
    border-radius: 999px;
    font-size: 14px;
    background: #faf7f2;
    color: #1f2937;
    transition: all 0.15s ease;
    outline: none;
    min-width: 160px;
}
.lp-input::placeholder { color: #b8a87a; }
.lp-input:hover { background: #fff; border-color: #d4af37; }
.lp-input:focus {
    background: #fff;
    border-color: #b94545;
    box-shadow: 0 0 0 3px rgba(185, 69, 69, 0.12);
}

/* ===== 通用按钮 ===== */
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.lp-btn:hover {
    background: rgba(212, 175, 55, 0.10);
    color: #4a1f00;
    border-color: rgba(212, 175, 55, 0.30);
}
.lp-btn--primary {
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(185, 69, 69, 0.25);
}
.lp-btn--primary:hover {
    background: linear-gradient(135deg, #a03a3a 0%, #b8941f 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(185, 69, 69, 0.35);
    transform: translateY(-1px);
}
.lp-btn--link {
    padding: 7px 10px;
    background: transparent;
    border: 0;
    color: #6b5b3b;
    text-decoration: none;
}
.lp-btn--link:hover {
    color: #b94545;
    background: rgba(185, 69, 69, 0.06);
    border: 0;
}
.lp-btn--ghost {
    background: #faf7f2;
    border: 1px solid #ece6d8;
    color: #4a1f00;
}
.lp-btn--ghost:hover {
    background: #f0e7d2;
    border-color: #d4af37;
    color: #4a1f00;
}
.lp-btn--icon { font-size: 14px; }

/* ===== 工具栏右侧：分组链接 ===== */
.lp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
    margin-left: auto;
}
.lp-links__group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #faf7f2;
    border-radius: 999px;
    border: 1px solid #ece6d8;
}
.lp-links__title {
    font-size: 11px;
    color: #6b5b3b;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0 4px 0 6px;
    text-transform: uppercase;
}
.lp-links__group .lp-btn { padding: 4px 10px; font-size: 12px; }

/* ===== 表格卡片 ===== */
.lp-card {
    background: #fff;
    border: 1px solid #ece6d8;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.lp-table-wrap { padding: 0; overflow-x: auto; }

/* ===== 数据表格（最新录入） ===== */
/* 极暴力覆盖：直接用 #data ID + !important，绕过 /common/css/table.css 的 #data th 蓝色背景 */
#data th,
#data th:first-child,
#data th:last-child {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: linear-gradient(180deg, #faf3e0 0%, #f0e7d2 100%) !important;
    color: #4a1f00 !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #d4af37 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}
#data th:first-child { padding-left: 18px !important; }
#data th:last-child { padding-right: 18px !important; }
.lp-table-wrap table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.lp-table-wrap tr {
    transition: background 0.12s ease;
}
.lp-table-wrap tr:nth-child(even) { background: #faf7f2; }
.lp-table-wrap tr:hover {
    background: #fff5db !important;
    box-shadow: inset 3px 0 0 #b94545;
}
.lp-table-wrap td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0e7d2;
    color: #1f2937;
    vertical-align: middle;
}
.lp-table-wrap td:first-child { padding-left: 18px; }
.lp-table-wrap td:last-child { padding-right: 18px; }
.lp-table-wrap tr:last-child td { border-bottom: 0; }

/* ID 列：monospace 风格 */
#data tr:not(:first-child) td {
    border: 0 !important;
    border-bottom: 1px solid #f0e7d2 !important;
    padding: 11px 14px !important;
    font-size: 13px !important;
}
#data tr:not(:first-child) td:nth-child(1),
#data tr:not(:first-child) td:nth-child(6),
#data tr:not(:first-child) td:nth-child(7) {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Menlo", monospace;
    color: #6b5b3b;
    font-size: 12px;
    font-weight: 500;
}

/* Name 列：加粗 + 略大 */
#data tr:not(:first-child) td:nth-child(3) {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

/* Last_Name 列：红色宋体（李姓） */
#data tr:not(:first-child) td:nth-child(2) {
    color: #b94545;
    font-weight: 700;
    font-family: "Songti SC", "STSong", "SimSun", "宋体", serif;
    font-size: 15px;
}

/* Alias 列：斜体 */
#data tr:not(:first-child) td:nth-child(4) {
    color: #6b5b3b;
    font-style: italic;
}

/* 公开/私密徽章 */
.lp-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.5px;
}
.lp-badge--public {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.lp-badge--private {
    background: rgba(120, 113, 108, 0.10);
    color: #6b5b3b;
    border: 1px solid rgba(120, 113, 108, 0.25);
}

/* 操作列：按钮化 */
.lp-action {
    white-space: nowrap;
}
.lp-action a {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border: 1px solid #ece6d8;
    border-radius: 6px;
    transition: all 0.15s ease;
    background: #fff;
}
.lp-action a:hover {
    background: #b94545;
    color: #fff;
    border-color: #b94545;
}

/* Father/Mother ID 可点击样式 */
.lp-editable[data-can-edit="1"] {
    cursor: pointer;
}
.lp-editable[data-can-edit="1"]:hover {
    color: #b94545 !important;
    text-decoration: underline;
}

/* 移动端：表格 → 卡片化 */
@media (max-width: 720px) {
    .lp-table-wrap table { width: 100%; }
    .lp-table-wrap tr:first-child { display: none; }
    .lp-table-wrap tr:not(:first-child) {
        display: block !important;
        background: #fff !important;
        border: 1px solid #ece6d8;
        border-radius: 10px;
        margin: 10px 8px;
        padding: 8px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .lp-table-wrap tr:not(:first-child):nth-child(even) { background: #fff !important; }
    .lp-table-wrap tr:not(:first-child):hover { background: #fff5db !important; }
    .lp-table-wrap td {
        display: block !important;
        border-bottom: 1px dashed #f0e7d2;
        padding: 6px 0;
    }
    .lp-table-wrap td:last-child { border-bottom: 0; padding-top: 10px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(1)::before { content: "ID："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(2)::before { content: "姓："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(3)::before { content: "名："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(4)::before { content: "别名："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(5)::before { content: "状态："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(6)::before { content: "父 ID："; color: #6b5b3b; font-size: 11px; }
    .lp-table-wrap tr:not(:first-child) td:nth-child(7)::before { content: "母 ID："; color: #6b5b3b; font-size: 11px; }
}

/* ===== 翻页区 ===== */
.lp-footer {
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 32px;
}
.mj_pagefoot_green {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}
.mj_pagefoot_green a, .mj_pagefoot_green span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ece6d8;
    transition: all 0.12s ease;
}
.mj_pagefoot_green a:hover {
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    border-color: transparent;
}
.mj_pagefoot_green .current, .mj_pagefoot_green span.current {
    background: linear-gradient(135deg, #b94545 0%, #d4af37 100%);
    color: #fff;
    border-color: transparent;
}
