/**
 * bio.css —— 李白小传：卷轴长卷 · 宣纸雅集
 */

body {
    min-height: 100vh;
    background:
        var(--mountains-ink),
        linear-gradient(180deg, #fbf7ec 0%, var(--paper) 40%, var(--paper-2) 100%);
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: bottom center, center;
}

/* ---------- 卷首 ---------- */
.bio-hero {
    text-align: center;
    padding: 4.2rem 1.5rem 3rem;
    position: relative;
}
.bio-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.bio-name {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    perspective: 400px;
}
.bio-char {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    color: var(--ink);
    text-shadow: 3px 3px 0 rgba(31, 26, 23, 0.12);
    animation: charIn 0.9s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}
.bio-char:nth-child(2) { animation-delay: 0.15s; }
@keyframes charIn {
    from { opacity: 0; transform: translateY(-40px) rotateX(40deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}
.bio-sub {
    margin-top: 0.8rem;
    color: var(--ink-soft);
    font-size: 1.05rem;
    letter-spacing: 4px;
}
.bio-quote {
    max-width: 640px;
    margin: 1.4rem auto 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--ink-2);
    letter-spacing: 2px;
}

/* ---------- 主体 ---------- */
.bio-body { max-width: 900px; margin: 0 auto; padding: 0 1.5rem 1rem; }

.bio-section { margin-bottom: 3.4rem; }
.sec-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 10px;
    color: var(--ink);
    margin-bottom: 2rem;
    position: relative;
}
.sec-title::before, .sec-title::after {
    content: '❋';
    color: var(--gold);
    font-size: 1rem;
    vertical-align: middle;
    margin: 0 1rem;
}

/* ---------- 诗酒江湖·数据卡 ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
}
.stat-card {
    position: relative;
    background:
        var(--grain-light),
        linear-gradient(165deg, #fffdf6, #f0e8d3);
    border: 1px solid rgba(154, 138, 109, 0.45);
    border-top: 4px solid var(--cinnabar);
    border-radius: 8px;
    padding: 1.2rem 1.1rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: inkFadeUp 0.6s ease both;
}
.stat-card:nth-child(2) { border-top-color: var(--gold); }
.stat-card:nth-child(3) { border-top-color: var(--bamboo); }
.stat-card:nth-child(4) { border-top-color: #6b5b8a; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(31, 26, 23, 0.16); }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.1rem;
    color: var(--cinnabar);
    letter-spacing: 2px;
    line-height: 1.3;
}
.stat-card:nth-child(2) .stat-num { color: #9a7b45; }
.stat-card:nth-child(3) .stat-num { color: var(--bamboo); }
.stat-card:nth-child(4) .stat-num { color: #6b5b8a; }
.stat-unit { font-size: 0.95rem; color: var(--ink-soft); margin-left: 2px; }
.stat-title {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    letter-spacing: 4px;
    color: var(--ink);
    font-family: var(--font-display);
}
.stat-desc {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.stats-note {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(107, 95, 85, 0.75);
    letter-spacing: 1px;
}

/* ---------- 太白足迹 ---------- */
.footprint {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.foot-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.28rem 0.95rem;
    border: 1px solid rgba(63, 107, 53, 0.5);
    border-radius: 999px;
    background: rgba(255, 253, 246, 0.7);
    color: var(--bamboo-dark);
    font-size: 0.98rem;
    letter-spacing: 2px;
    transition: all 0.25s;
    animation: inkFadeUp 0.5s ease both;
}
.foot-tag:hover {
    border-color: var(--cinnabar);
    color: var(--cinnabar);
    transform: translateY(-2px);
}
.foot-tag::before {
    content: '❋';
    font-size: 0.72rem;
    color: var(--gold);
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 2.2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--bamboo) 6%, var(--gold) 94%, transparent);
    border-radius: 3px;
}
.tl-item {
    position: relative;
    padding: 0 0 1.9rem 0.6rem;
    animation: inkFadeUp 0.6s ease both;
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -2.14rem;
    top: 0.5rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--bamboo);
    box-shadow: 0 0 0 3px rgba(63, 107, 53, 0.15);
}
.tl-item:last-child::before { border-color: var(--cinnabar); }
.tl-year {
    display: inline-block;
    background: var(--bamboo-dark);
    color: #eef3e2;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 0.12rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.45rem;
}
.tl-title { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 2px; color: var(--ink); }
.tl-desc { margin-top: 0.35rem; color: var(--ink-2); line-height: 1.95; font-size: 0.98rem; }

/* ---------- 名句墙 ---------- */
.quote-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.q-card {
    background:
        var(--grain-light),
        linear-gradient(165deg, #fffdf6, #f0e8d3);
    border: 1px solid rgba(154, 138, 109, 0.45);
    border-radius: 8px;
    padding: 1.1rem 1.1rem 1.3rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 2px;
    color: var(--ink-2);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.q-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 10px 22px rgba(31, 26, 23, 0.16); }
.q-card::after {
    content: '李白';
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.72rem;
    color: var(--cinnabar);
    border: 1px solid rgba(176, 58, 46, 0.65);
    border-radius: 2px;
    padding: 0 0.3rem;
    transform: rotate(-8deg);
    font-family: var(--font-display);
}

/* ---------- 轶事 ---------- */
.stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.3rem;
}
.story-card {
    background:
        var(--grain-light),
        linear-gradient(165deg, #fffdf6, #f1e8d2);
    border: 1px solid rgba(154, 138, 109, 0.45);
    border-left: 4px solid var(--cinnabar);
    border-radius: 8px;
    padding: 1.2rem 1.3rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(31, 26, 23, 0.15); }
.story-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--cinnabar);
    margin-bottom: 0.5rem;
}
.story-desc { color: var(--ink-2); font-size: 0.98rem; line-height: 2; text-indent: 2em; }

/* ---------- 评价 ---------- */
.comments blockquote {
    max-width: 680px;
    margin: 0 auto 1.3rem;
    padding: 1rem 1.6rem;
    border-left: 4px solid var(--gold);
    background: rgba(255, 253, 246, 0.6);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: var(--ink);
    line-height: 2;
}
.comments cite {
    display: block;
    margin-top: 0.3rem;
    font-style: normal;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

@media (max-width: 640px) {
    .stories { grid-template-columns: 1fr; }
    .bio-body { padding: 0 1rem; }
    .sec-title { letter-spacing: 6px; }
}
