:root {
    --about-text: #1f2933;
    --about-muted: #667085;
    --about-line: rgba(168, 218, 205, 0.42);
    --about-accent: #168f72;
    --about-accent-strong: #0e6b55;
    --about-glass: rgba(255, 255, 255, 0.78);
    --about-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --about-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

#main_bg {
    background-image: url(../assets/images/background/miku_ocean.webp);
    background-size: cover;
    background-position: center;
    position: fixed;
    min-height: 100vh;
    width: 100%;
    z-index: -1;
}

@keyframes aboutReveal {
    0%   { opacity: 0; transform: translateY(14px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aboutAvatarPop {
    0%   { opacity: 0; transform: scale(0.7) rotate(-6deg); }
    60%  { transform: scale(1.06) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes aboutRingSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.about-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(248, 252, 251, 0.86) !important;
}

.about-wrap {
    width: min(860px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 4px 24px;
}

/* ── Hero ── */
.about-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 42px 28px 30px;
    border: 1px solid var(--about-line);
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 50% -20%, rgba(38, 168, 132, 0.16), transparent 60%),
        var(--about-glass);
    overflow: hidden;
    opacity: 0;
    animation: aboutReveal .55s var(--about-ease-bounce) .05s forwards;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 62%);
    background-size: 240% 100%;
    animation: aboutSheen 5.5s var(--about-ease) infinite;
    pointer-events: none;
}

@keyframes aboutSheen {
    0%, 55%  { background-position: 130% 0; }
    100%     { background-position: -110% 0; }
}

.about-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    animation: aboutFloat 5s ease-in-out 1.2s infinite;
}

.about-avatar::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #26a884, #7bd8bd, #37b18c, #a8ecd8, #26a884);
    animation: aboutRingSpin 7s linear infinite;
    filter: blur(0.5px);
}

.about-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

.about-avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(20, 122, 99, 0.28);
    opacity: 0;
    animation: aboutAvatarPop .6s var(--about-ease-bounce) .2s forwards;
}

.about-name {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #1a322d 25%, var(--about-accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-role {
    margin: -4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--about-accent-strong);
}

.about-sign {
    margin: 4px 0 0;
    max-width: 560px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--about-muted);
}

.about-sign::before,
.about-sign::after {
    content: '「';
    color: rgba(38, 168, 132, 0.55);
    font-weight: 700;
    margin: 0 4px;
}

.about-sign::after {
    content: '」';
}

/* ── Section title ── */
.about-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 2px 0;
    font-size: 15px;
    font-weight: 750;
    color: #1a322d;
    opacity: 0;
    animation: aboutReveal .5s var(--about-ease-bounce) .25s forwards;
}

.about-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--about-accent), #7bd8bd);
}

.about-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--about-line), transparent);
}

/* ── Link cards ── */
.about-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.about-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border: 1px solid var(--about-line);
    border-radius: 15px;
    background: var(--about-glass);
    text-decoration: none;
    color: var(--about-text);
    overflow: hidden;
    transition: transform .28s var(--about-ease-bounce), box-shadow .24s var(--about-ease), border-color .24s var(--about-ease), background .24s var(--about-ease);
    opacity: 0;
    animation: aboutReveal .5s var(--about-ease-bounce) both;
}

.about-links .about-card:nth-child(1) { animation-delay: .3s; }
.about-links .about-card:nth-child(2) { animation-delay: .38s; }
.about-links .about-card:nth-child(3) { animation-delay: .46s; }

.about-card::after {
    content: '→';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translate(6px, -50%);
    font-size: 17px;
    font-weight: 700;
    color: var(--card-accent, var(--about-accent));
    opacity: 0;
    transition: opacity .22s var(--about-ease), transform .28s var(--about-ease-bounce);
}

.about-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--card-accent, var(--about-accent));
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(20, 48, 42, 0.14);
}

.about-card:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.about-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--card-icon-bg, rgba(38, 168, 132, 0.12));
    transition: transform .3s var(--about-ease-bounce);
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(-4deg);
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--card-accent, var(--about-accent));
}

.about-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 20px;
}

.about-card-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
}

.about-card-desc {
    font-size: 12.5px;
    color: var(--about-muted);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-card.bilibili {
    --card-accent: #fb7299;
    --card-icon-bg: rgba(251, 114, 153, 0.12);
}

.about-card.home {
    --card-accent: #26a884;
    --card-icon-bg: rgba(38, 168, 132, 0.12);
}

.about-card.forum {
    --card-accent: #6366f1;
    --card-icon-bg: rgba(99, 102, 241, 0.12);
}

/* ── Intro / footer ── */
.about-intro {
    padding: 20px 24px;
    border: 1px solid var(--about-line);
    border-radius: 15px;
    background: var(--about-glass);
    font-size: 13.5px;
    line-height: 2;
    color: var(--about-text);
    opacity: 0;
    animation: aboutReveal .5s var(--about-ease-bounce) .5s forwards;
}

.about-intro strong {
    color: var(--about-accent-strong);
}

.about-footer {
    text-align: center;
    font-size: 12px;
    color: var(--about-muted);
    padding-bottom: 6px;
    opacity: 0;
    animation: aboutReveal .5s var(--about-ease) .6s forwards;
}

.about-footer .heart {
    color: #fb7299;
}

@media (max-width: 640px) {
    .about-hero {
        padding: 30px 16px 24px;
    }

    .about-name {
        font-size: 24px;
    }

    .about-links {
        grid-template-columns: 1fr;
    }
}
