/* ===================================================================
 *  关于页样式（layout: about）
 *  与全站同一套：暖纸底 / 墨色 / 朱砂强调 / 发丝边框
 * =================================================================== */

.about-page {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

.about-page *,
.about-page *::before,
.about-page *::after { box-sizing: border-box; }

.about-page img { max-width: 100%; }

/* ------------------------------- HERO ------------------------------ */
.ab-hero {
    position: relative;
    min-height: min(84vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 108px 24px 96px;
    overflow: hidden;
    background: #201f1e;
    isolation: isolate;
}

.ab-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--ab-cover);
    background-size: cover;
    background-position: center 28%;
    filter: saturate(.9) contrast(1.02);
    z-index: 0;
}

.ab-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(64% 54% at 50% 40%, rgba(28, 27, 26, .48), transparent 72%),
        linear-gradient(180deg, rgba(28, 27, 26, .6) 0%, rgba(28, 27, 26, .38) 42%, rgba(28, 27, 26, .5) 74%, var(--paper) 100%);
}

.ab-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    text-align: center;
    color: #f7f5ef;
}

/* 头像 */
.ab-avatar {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 22px;
}

.ab-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(247, 245, 239, .35);
    background: none;
    animation: none;
}

.ab-avatar-ring::after { content: none; }

.ab-avatar-img {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-2);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
}

.ab-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50%;
    transform: scale(1.18);
    transform-origin: 50% 34%;
}

.ab-avatar-badge {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(28, 27, 26, .62);
    border: 1px solid rgba(247, 245, 239, .22);
    color: rgba(247, 245, 239, .88);
    white-space: nowrap;
}

.ab-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .3em;
    color: rgba(247, 245, 239, .62);
    text-transform: uppercase;
}

.ab-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(247, 245, 239, .8);
}

.ab-hero-name {
    margin: 16px 0 4px;
    font-size: clamp(2.3rem, 5.6vw, 3.4rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: .03em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ab-name-cn { color: #faf8f3; }

.ab-name-en {
    font-family: var(--mono);
    font-size: clamp(.72rem, 1.6vw, .88rem);
    font-weight: 400;
    letter-spacing: .34em;
    color: rgba(247, 245, 239, .5);
    text-transform: uppercase;
}

.ab-hero-handle {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: rgba(247, 245, 239, .5);
}

.ab-typing {
    min-height: 28px;
    margin: 18px auto 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(250, 248, 243, .88);
}

.ab-caret {
    display: inline-block;
    width: 1.5px;
    height: 15px;
    margin-left: 4px;
    vertical-align: -2px;
    background: #f7f5ef;
    animation: f-blink 1.1s steps(1) infinite;
}

.ab-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ab-hero-tags li {
    font-size: 12px;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 4px;
    color: rgba(247, 245, 239, .82);
    background: transparent;
    border: 1px solid rgba(247, 245, 239, .24);
    transition: border-color .2s, color .2s;
}

.ab-hero-tags li:hover { border-color: rgba(247, 245, 239, .55); color: #fff; }

.ab-hero-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.ab-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12.5px;
    color: #f7f5ef;
    background: transparent;
    border: 1px solid rgba(247, 245, 239, .28);
    transition: all .2s;
}

.ab-btn-ghost i { font-style: normal; font-size: 10px; opacity: .6; }

.ab-btn-ghost:hover { background: rgba(247, 245, 239, .12); border-color: rgba(247, 245, 239, .55); color: #fff; }

.ab-btn-ghost--light { border-color: rgba(247, 245, 239, .3); }

/* 向下滚动提示 */
.ab-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .3em;
    color: rgba(247, 245, 239, .45);
}

.ab-scroll-cue:hover { color: rgba(247, 245, 239, .8); }

.ab-scroll-line {
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, rgba(247, 245, 239, .55), transparent);
}

.ab-scroll-line::after { content: none; }

.ab-scroll-text { line-height: 1; }

/* ------------------------------ 导航 ------------------------------- */
.ab-nav {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 60;
    display: flex;
    gap: 2px;
    max-width: calc(100% - 24px);
    padding: 4px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate(-50%, -140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s ease;
    overflow-x: auto;
    scrollbar-width: none;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .ab-nav { background: var(--paper); }
}

.ab-nav::-webkit-scrollbar { display: none; }

.ab-nav.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.ab-nav a {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.ab-nav a:hover { background: var(--paper-2); color: var(--ink); }

.ab-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

/* ------------------------------ 统计 ------------------------------- */
.ab-stats-wrap {
    position: relative;
    z-index: 5;
    margin-top: -52px;
    padding: 0 24px;
}

.ab-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 1040px;
    margin: 0 auto;
}

.ab-stat {
    position: relative;
    padding: 16px 12px 14px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    transition: border-color .2s, box-shadow .2s;
}

.ab-stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.ab-stat-num {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.ab-unit {
    font-style: normal;
    font-size: .6em;
    margin-left: 2px;
    color: var(--ink-3);
}

.ab-stat-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-2);
}

.ab-stat-label em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: .22em;
    color: var(--ink-3);
}

/* ----------------------------- 通用区块 ---------------------------- */
.ab-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.ab-sec { padding: 72px 0 6px; }

.ab-sec-head {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.ab-sec-index {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.ab-sec-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: clamp(1.4rem, 2.8vw, 1.72rem);
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--ink);
}

.ab-sec-title::after { content: none; }

.ab-sec-title em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .26em;
    color: var(--ink-3);
    text-transform: uppercase;
}

.ab-sec-desc {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.85;
    max-width: 620px;
}

/* ------------------------------ Bento ------------------------------ */
.ab-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.ab-card {
    position: relative;
    grid-column: span 3;
    padding: 22px 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.ab-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.ab-card::after { content: none; }

.ab-card--half { grid-column: span 3; }
.ab-card--wide { grid-column: span 4; }
.ab-card--narrow { grid-column: span 2; }
.ab-card--full { grid-column: span 6; }

.ab-card-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.ab-card-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.004em;
    margin-bottom: 8px;
    color: var(--ink);
}

.ab-card-text {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.ab-dots { margin-top: 2px; }

.ab-dots li {
    position: relative;
    padding-left: 15px;
    margin: 7px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2);
}

.ab-dots li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink-3);
}

/* 时钟卡片 */
.ab-clock-card { background: var(--paper-2); }

.ab-clock {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.2;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

.ab-clock-sub {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    color: var(--ink-3);
}

/* 信条卡片 */
.ab-creed {
    background: #201f1e;
    border-color: #201f1e;
    color: #f7f5ef;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px 26px;
}

.ab-quote-mark {
    font-family: var(--serif);
    font-size: 46px;
    line-height: .6;
    color: rgba(247, 245, 239, .25);
}

.ab-creed-text {
    font-family: var(--serif);
    font-size: clamp(.98rem, 2vw, 1.14rem);
    line-height: 1.95;
    letter-spacing: .01em;
    color: rgba(247, 245, 239, .92);
    margin-top: 4px;
}

.ab-creed-sign {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(247, 245, 239, .45);
}

.ab-creed-en {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 1px solid rgba(247, 245, 239, .22);
    font-family: var(--serif);
    font-size: .95em;
    font-style: italic;
    line-height: 1.9;
    color: rgba(247, 245, 239, .6);
}

/* ------------------------------ 技能 ------------------------------- */
.ab-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
}

.ab-skill-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
}

.ab-skill-name { color: var(--ink); font-weight: 500; }

.ab-skill-lv {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-3);
}

.ab-track {
    height: 4px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--paper-3);
    overflow: hidden;
}

.ab-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
    transition: width 1s var(--ease);
}

.ab-skill.in .ab-bar { width: var(--v); }

.ab-skill-note {
    margin-top: 7px;
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.65;
}

/* ----------------------------- 时间线 ------------------------------ */
.ab-timeline {
    position: relative;
    padding-left: 28px;
    list-style: none;
    border-left: 1px solid var(--line);
}

.ab-tl-item { position: relative; padding: 0 0 26px; }

.ab-tl-item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    transition: border-color .2s, background .2s;
}

.ab-tl-item:hover::before { border-color: var(--accent); background: var(--accent); }

.ab-tl-year {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    color: var(--ink-3);
}

.ab-tl-title {
    margin: 4px 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.ab-tl-text {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

/* ------------------------------ 友链 ------------------------------- */
.ab-friends {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
}

.ab-friend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s, background .2s;
}

.ab-friend::after { content: none; }

.ab-friend:hover { border-color: var(--line-strong); background: var(--paper-2); }

.ab-friend-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.ab-friend-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.ab-friend-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.ab-friend-name i {
    font-style: normal;
    font-size: 10px;
    color: var(--ink-3);
    opacity: 0;
    transition: opacity .2s, color .2s;
}

.ab-friend:hover .ab-friend-name i { opacity: 1; color: var(--accent); }

.ab-friend-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ab-friend-tip {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.ab-friend-tip a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------ 致谢 ------------------------------- */
.ab-thanks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
}

.ab-thank {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 6px;
    border: 1px solid var(--line);
    transition: border-color .2s, background .2s;
}

.ab-thank:hover { border-color: var(--line-strong); background: var(--paper-2); }

.ab-thank-role {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.ab-thank-name { font-size: 13px; color: var(--ink); }

/* 角色列表（原跑马灯 → 静态平铺） */
.ab-loves {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.ab-loves-title {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.ab-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }

.ab-marquee-track {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: auto;
    animation: none;
}

.ab-love {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12.5px;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--line);
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

.ab-love:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------ 联系 ------------------------------- */
.ab-contact {
    position: relative;
    margin: 20px 0 0;
    padding: 44px 36px;
    border-radius: 14px;
    overflow: hidden;
    background: #201f1e;
    color: #f7f5ef;
    text-align: center;
    isolation: isolate;
}

.ab-contact-glow { display: none; }

.ab-contact-kicker {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(247, 245, 239, .45);
}

.ab-contact-title {
    margin: 10px 0 10px;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -.004em;
}

.ab-contact-text {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(247, 245, 239, .68);
    max-width: 480px;
    margin: 0 auto;
}

.ab-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.ab-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    transition: background .2s, border-color .2s;
}

.ab-btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

.ab-contact-meta {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    color: rgba(247, 245, 239, .4);
}

/* ------------------------------ 页脚 ------------------------------- */
.ab-footer {
    padding: 48px 0 56px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.9;
}

.ab-footer-sub {
    margin-top: 5px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .2em;
    color: var(--ink-3);
    text-transform: uppercase;
    opacity: .7;
}

/* --------------------------- 入场动画 ------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- 响应式 ------------------------------ */
@media screen and (max-width: 900px) {
    .ab-stats { grid-template-columns: repeat(3, 1fr); }
    .ab-card--wide, .ab-card--narrow, .ab-card--half { grid-column: span 3; }
    .ab-card--wide, .ab-card--narrow { grid-column: span 6; }
    .ab-skills { grid-template-columns: 1fr; gap: 20px; }
    .ab-hero { min-height: 78vh; }
}

@media screen and (max-width: 640px) {
    .ab-hero { padding: 96px 18px 84px; }
    .ab-avatar { width: 96px; height: 96px; }
    .ab-hero-tags li { font-size: 11px; padding: 3px 8px; }
    .ab-btn-ghost { padding: 6px 11px; font-size: 12px; }
    .ab-stats-wrap { margin-top: -40px; padding: 0 16px; }
    .ab-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ab-stats .ab-stat:last-child { grid-column: span 2; }
    .ab-stat-num { font-size: 21px; }
    .ab-main { padding: 0 16px; }
    .ab-sec { padding: 56px 0 4px; }
    .ab-bento { gap: 10px; }
    .ab-card { padding: 18px 16px; }
    .ab-skills { padding: 18px 16px; }
    .ab-timeline { padding-left: 22px; }
    .ab-tl-item::before { left: -27px; }
    .ab-contact { padding: 32px 20px; }
    .ab-thanks { padding: 14px; gap: 6px; }
    .ab-nav a { padding: 5px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .about-page *,
    .about-page *::before,
    .about-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .ab-skill .ab-bar { width: var(--v); }
}
