/*```css
/* =====================================================
   全局变量
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --text: #ffffff;

    --muted: rgba(255,255,255,0.72);

    --card: rgba(10,10,18,0.55);

    --card-hover: rgba(20,20,30,0.72);

    --border: rgba(255,255,255,0.14);

    --accent: #9b6cff;

    --accent-2: #20d9ff;

    --nav-bg: rgba(5,5,10,0.62);

    --overlay: rgba(3,3,8,0.58);

    --button-text: #ffffff;
}


body.light {

    --text: #17171d;

    --muted: rgba(20,20,30,0.68);

    --card: rgba(255,255,255,0.62);

    --card-hover: rgba(255,255,255,0.80);

    --border: rgba(0,0,0,0.12);

    --accent: #7047e8;

    --accent-2: #009fc0;

    --nav-bg: rgba(255,255,255,0.66);

    --overlay: rgba(255,255,255,0.40);

    --button-text: #ffffff;
}



/* =====================================================
   基础
===================================================== */

html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    color: var(--text);

    background: #08080c;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;

    line-height: 1.7;

    overflow-x: hidden;

    transition:
        color 0.35s ease;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}



/* =====================================================
   背景图片
===================================================== */

.background {

    position: fixed;

    inset: 0;

    z-index: -100;

    overflow: hidden;

    pointer-events: none;
}


.background-image {

    position: absolute;

    inset: 0;

    background-image:
        url("background.png");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    transform: scale(1.03);

    transition:
        filter 0.5s ease;
}


.background-overlay {

    position: absolute;

    inset: 0;

    background: var(--overlay);

    backdrop-filter:
        blur(2px);

    -webkit-backdrop-filter:
        blur(2px);

    transition:
        background 0.35s ease;
}


.background-glow {

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    filter: blur(130px);

    opacity: 0.16;
}


.glow-1 {

    left: -250px;

    top: -200px;

    background: var(--accent);
}


.glow-2 {

    right: -250px;

    bottom: -200px;

    background: var(--accent-2);
}



/* =====================================================
   导航栏
===================================================== */

.navbar {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 100;

    background:
        var(--nav-bg);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    transition:
        background 0.35s ease;
}


.nav-container {

    max-width: 1150px;

    margin: auto;

    padding:
        16px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;
}


.logo span {
    color: var(--accent);
}


nav {

    display: flex;

    align-items: center;

    gap: 17px;
}


nav a {

    position: relative;

    color: var(--muted);

    font-size: 13px;

    transition:
        color 0.2s ease;
}


nav a:hover,
nav a.active {

    color: var(--text);
}


/* =====================================================
   导航栏下划线过渡
===================================================== */

nav a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    transition:
        color 0.25s ease;
}

nav a:hover,
nav a.active {
    color: var(--text);
}


/* 默认没有横线 */

nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    border-radius: 2px;

    background: var(--accent);

    transform: translateX(-50%);

    transition:
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 当前页面 */

nav a.active::after {
    width: 100%;
}

.nav-actions {

    display: flex;

    gap: 8px;
}


.nav-actions button {

    width: 38px;

    height: 38px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--card);

    color:
        var(--text);

    cursor: pointer;

    font-size: 17px;

    transition:
        0.2s ease;
}


.nav-actions button:hover {

    transform:
        translateY(-2px);

    background:
        var(--card-hover);
}


#menu-toggle {
    display: none;
}



/* =====================================================
   首页 Hero
===================================================== */

.hero {

    max-width: 1150px;

    min-height: 100vh;

    margin: auto;

    padding:
        150px 25px 80px;

    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    gap: 70px;

    align-items: center;
}


.status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        6px 13px;

    border:
        1px solid var(--border);

    background:
        var(--card);

    border-radius: 999px;

    color:
        var(--muted);

    font-size: 13px;

    backdrop-filter:
        blur(10px);
}


.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
        0 0 12px #4ade80;
}


.hero h1 {

    margin-top: 25px;

    font-size:
        clamp(42px, 6vw, 76px);

    line-height: 1.05;

    letter-spacing: -3px;
}


.gradient-text {

    display: block;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-2)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero h2 {

    margin-top: 18px;

    min-height: 40px;

    font-size: 23px;

    color:
        var(--muted);
}


.cursor {

    color:
        var(--accent);

    animation:
        cursorBlink 1s infinite;
}


@keyframes cursorBlink {

    50% {
        opacity: 0;
    }

}


.hero-description {

    max-width: 650px;

    margin-top: 20px;

    color:
        var(--muted);
}


.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        12px 20px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.btn:hover {

    transform:
        translateY(-3px);
}


.btn.primary {

    color:
        var(--button-text);

    background:
        var(--accent);

    border-color:
        var(--accent);
}


.btn.secondary {

    background:
        var(--card);

    color:
        var(--text);
}


.socials {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 27px;

    color:
        var(--muted);

    font-size: 14px;
}


.socials a:hover {

    color:
        var(--accent);
}



/* =====================================================
   Terminal
===================================================== */

.terminal {

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        rgba(0,0,0,0.58);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.3);

    backdrop-filter:
        blur(10px);
}


.terminal-header {

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    border-bottom:
        1px solid rgba(255,255,255,0.1);

    color:
        rgba(255,255,255,0.65);

    font-size: 12px;
}


.terminal-buttons {

    position: absolute;

    left: 15px;

    display: flex;

    gap: 7px;
}


.terminal-buttons span {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #555;
}


.terminal-body {

    min-height: 340px;

    padding: 25px;

    font-family:
        "Cascadia Code",
        "JetBrains Mono",
        Consolas,
        monospace;

    font-size: 13px;
}


.green {
    color: #4ade80;
}


.blue {
    color: #60a5fa;
}


.white {
    color: #fff;
}


.command {

    margin-top: 15px;

    color: #ddd;
}


.output {

    margin-bottom: 15px;

    color: #9ca3af;
}


.blink {

    animation:
        cursorBlink 1s infinite;
}



/* =====================================================
   普通 Section
===================================================== */

.section {

    max-width: 1150px;

    margin: auto;

    padding:
        110px 25px;
}


.section-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 45px;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 2px;
}


.section-title span {
    color: var(--accent);
}



/* =====================================================
   关于
===================================================== */

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}


.about-text h2 {

    margin-bottom: 25px;

    font-size: 38px;

    line-height: 1.2;
}


.about-text p {

    margin-bottom: 15px;

    color:
        var(--muted);
}


.about-text strong {

    color:
        var(--text);
}


.small-note {

    opacity: 0.8;
}


.about-stats {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}


.stat-card {

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.stat-card:hover {

    transform:
        translateY(-5px);

    background:
        var(--card-hover);
}


.stat-card strong {

    display: block;

    font-size: 32px;

    color:
        var(--accent);
}


.stat-card span {

    color:
        var(--muted);

    font-size: 13px;
}



/* =====================================================
   Friends
===================================================== */

.friends-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.friend-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);

    transition:
        0.25s ease;
}


.friend-card:hover {

    transform:
        translateY(-6px);

    background:
        var(--card-hover);

    border-color:
        rgba(155,108,255,0.5);
}


.friend-card.large {

    padding: 30px;
}


.friend-icon {

    width: 55px;

    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background:
        rgba(155,108,255,0.12);

    font-size: 25px;
}


.friend-info h3 {

    font-size: 18px;
}


.friend-info p {

    color:
        var(--muted);

    font-size: 13px;
}


.friend-info small {

    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    opacity: 0.6;

    font-size: 11px;
}


.friend-arrow {

    margin-left: auto;

    color:
        var(--muted);

    font-size: 23px;
}


.friend-card:hover
.friend-arrow {

    color:
        var(--accent);
}


.friend-note {

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);
}


.note-icon {

    font-size: 35px;

    margin-bottom: 12px;
}


.friend-note h3 {

    margin-bottom: 8px;
}


.friend-note p {

    color:
        var(--muted);

    font-size: 14px;
}



/* =====================================================
   Projects
===================================================== */

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.project-card {

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);

    transition:
        0.25s ease;
}


.project-card:hover {

    transform:
        translateY(-7px);

    background:
        var(--card-hover);

    border-color:
        rgba(155,108,255,0.5);
}


.project-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.folder {

    font-size: 30px;
}


.project-links a {

    color:
        var(--muted);

    font-size: 23px;
}


.project-links a:hover {

    color:
        var(--accent);
}


.project-card h3 {

    margin-top: 25px;

    font-size: 21px;
}


.project-card p {

    margin-top: 10px;

    color:
        var(--muted);

    font-size: 14px;
}


.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


.tags span,
.skill-list span {

    padding:
        5px 10px;

    border-radius: 7px;

    background:
        rgba(155,108,255,0.12);

    color:
        var(--accent);

    font-size: 12px;
}


.project-button {

    display: inline-block;

    margin-top: 20px;

    color:
        var(--accent);

    font-size: 13px;

    font-weight: 700;
}


.project-button:hover {

    text-decoration:
        underline;
}



/* =====================================================
   Skills
===================================================== */

.skills-container {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}


.skill-category {

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);

    transition:
        0.25s ease;
}


.skill-category:hover {

    transform:
        translateY(-5px);
}


.skill-category h3 {

    margin-bottom: 20px;
}


.skill-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}



/* =====================================================
   兴趣
===================================================== */

.interest-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 15px;
}


.interest {

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--card);

    backdrop-filter:
        blur(10px);

    transition:
        0.25s ease;
}


.interest:hover {

    transform:
        translateY(-5px);

    background:
        var(--card-hover);
}


.interest > div {

    margin-bottom: 15px;

    font-size: 35px;
}


.interest h3 {

    font-size: 17px;
}


.interest p {

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 13px;
}



/* =====================================================
   独立页面 Hero
===================================================== */

.page-main {

    padding-top: 80px;
}


.page-hero {

    max-width: 1150px;

    min-height: 55vh;

    margin: auto;

    padding:
        100px 25px 60px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


.page-hero h1 {

    margin-top: 25px;

    font-size:
        clamp(50px, 7vw, 85px);

    line-height: 1;

    letter-spacing: -3px;
}


.page-hero p {

    max-width: 650px;

    margin-top: 25px;

    color:
        var(--muted);

    font-size: 16px;
}



/* =====================================================
   Contact
===================================================== */

.contact {

    text-align: center;
}


.contact .section-title {

    justify-content: center;
}


.contact-box {

    max-width: 700px;

    margin: auto;

    padding:
        60px 30px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        var(--card);

    backdrop-filter:
        blur(15px);
}


.small-title {

    color:
        var(--accent);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;
}


.contact-box h2 {

    margin:
        10px 0;

    font-size: 42px;
}


.contact-box > p {

    color:
        var(--muted);
}


.contact-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}



/* =====================================================
   Footer
===================================================== */

footer {

    padding:
        50px 20px;

    border-top:
        1px solid var(--border);

    color:
        var(--muted);

    text-align: center;

    font-size: 13px;
}


footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


.copyright {

    margin-top: 8px;

    opacity: 0.65;
}

/* =====================================================
   返回顶部
===================================================== */

#back-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 45px;

    height: 45px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--card);

    color:
        var(--text);

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    backdrop-filter:
        blur(10px);

    transition:
        0.25s ease;
}


#back-top.show {

    opacity: 1;

    pointer-events: auto;
}



/* =====================================================
   滚动动画
===================================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);
}



/* =====================================================
   平板
===================================================== */

@media (max-width: 950px) {

    nav {
        gap: 10px;
    }


    nav a {
        font-size: 12px;
    }


    .hero {

        grid-template-columns:
            1fr;

    }


    .hero-card {

        order: -1;

    }


    .interest-grid {

        grid-template-columns:
            repeat(2,1fr);

    }

}



/* =====================================================
   手机导航
===================================================== */

@media (max-width: 800px) {

    #menu-toggle {

        display: block;

    }


    nav {

        position: absolute;

        top: 70px;

        left: 15px;

        right: 15px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background:
            var(--nav-bg);

        border:
            1px solid var(--border);

        border-radius: 14px;

        backdrop-filter:
            blur(20px);

    }


    nav.active {

        display: flex;

    }


    nav a {

        padding:
            12px;

        font-size: 14px;

    }


    nav a.active::after {

        display: none;

    }


    .about-grid {

        grid-template-columns:
            1fr;

    }


    .projects-grid {

        grid-template-columns:
            1fr;

    }


    .friends-grid {

        grid-template-columns:
            1fr;

    }


    .skills-container {

        grid-template-columns:
            1fr;

    }

}



/* =====================================================
   小手机
===================================================== */

@media (max-width: 500px) {

    .nav-container {

        padding:
            14px 18px;

    }


    .hero {

        padding:
            125px 18px 70px;

    }


    .section {

        padding:
            80px 18px;

    }


    .page-hero {

        padding:
            100px 18px 50px;

    }


    .hero h1 {

        font-size: 45px;

    }


    .page-hero h1 {

        font-size: 50px;

    }


    .hero h2 {

        font-size: 20px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .btn {

        width: 100%;

    }


    .interest-grid {

        grid-template-columns:
            1fr;

    }


    .about-stats {

        grid-template-columns:
            1fr 1fr;

    }


    .contact-box h2 {

        font-size: 32px;

    }


    .terminal-body {

        font-size: 10px;

        padding: 20px;

    }

}

/* =================================
   Friends
================================= */

.friends-content {
    align-items: center;
}


/* 右边链接 */

.friends-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* 让友链卡片保持原本 project-card 风格 */

.friend-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.friend-link h3 {
    margin-bottom: 8px;
}


.friend-link p {
    margin-bottom: 15px;
}


/* 手机端 */

@media (max-width: 768px) {

    .friends-content {
        grid-template-columns: 1fr;
    }

}
/* =====================================================
   朋友页面
===================================================== */

.friends-page {
    padding-top: 140px;
}


/* =====================================================
   朋友介绍
===================================================== */

.friend-introduction {
    display: grid;

    grid-template-columns:
        230px 1fr;

    gap: 45px;

    align-items: center;

    margin-bottom: 70px;
}


/* =====================================================
   朋友头像
===================================================== */

.friend-avatar {
    position: relative;

    width: 230px;
    height: 230px;

    overflow: hidden;

    border-radius: 22px;

    border:
        1px solid var(--border);

    background:
        var(--card);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,0.25);
}


.friend-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.avatar-fallback {
    position: absolute;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    font-size: 70px;

    background:
        var(--card);
}


.friend-avatar.avatar-error
.avatar-fallback {
    display: flex;
}



/* =====================================================
   朋友介绍文字
===================================================== */

.friend-description h1 {
    font-size:
        clamp(38px, 5vw, 60px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 15px;
}


.friend-description p {
    max-width: 700px;

    margin-bottom: 13px;

    color:
        var(--muted);

    font-size: 15px;
}


.friend-description strong {
    color:
        var(--text);
}


.friend-question {
    color:
        var(--accent) !important;

    font-weight: 700;

    font-size: 18px !important;
}



/* =====================================================
   朋友标签
===================================================== */

.friend-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 22px;
}


.friend-tags span {
    padding:
        6px 11px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        var(--card);

    color:
        var(--accent);

    font-size: 12px;
}



/* =====================================================
   Friend Database
===================================================== */

.friends-database-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 8px;

    font-size: 25px;

    font-weight: 800;
}


.friends-database-title span {
    font-size: 28px;
}


.friends-database-description {
    margin-bottom: 30px;

    color:
        var(--muted);

    font-size: 14px;
}



/* =====================================================
   友链网格
===================================================== */

.friends-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}



/* =====================================================
   友链卡片
===================================================== */

.friend-card {
    min-height: 105px;

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        var(--card);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

    text-decoration: none;

    color: inherit;
}


.friend-link:hover {
    transform:
        translateY(-6px);

    background:
        var(--card-hover);

    border-color:
        rgba(155,108,255,0.5);
}



/* =====================================================
   友链图标
===================================================== */

.friend-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(155,108,255,0.12);

    font-size: 25px;
}



/* =====================================================
   友链文字
===================================================== */

.friend-info {
    min-width: 0;
}


.friend-info h3 {
    font-size: 18px;

    margin: 0;
}


.friend-info p {
    margin:
        3px 0 0;

    color:
        var(--muted);

    font-size: 13px;
}


.friend-info small {
    display: block;

    margin-top: 2px;

    color:
        var(--muted);

    opacity: 0.6;

    font-size: 11px;
}



/* =====================================================
   友链箭头
===================================================== */

.friend-arrow {
    margin-left: auto;

    flex-shrink: 0;

    color:
        var(--muted);

    font-size: 23px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.friend-link:hover .friend-arrow {
    color:
        var(--accent);

    transform:
        translate(3px, -3px);
}



/* =====================================================
   空槽位
===================================================== */

.empty-friend {
    opacity: 0.45;

    cursor: default;
}


.empty-friend:hover {
    transform:
        translateY(-3px);

    background:
        var(--card);

    border-color:
        var(--border);
}


.empty-friend .friend-arrow {
    font-size: 22px;
}



/* =====================================================
   手机端
===================================================== */

@media (max-width: 800px) {

    .friends-page {
        padding-top: 110px;
    }


    .friend-introduction {

        grid-template-columns:
            1fr;

        gap: 25px;

        align-items: start;

    }


    .friend-avatar {

        width: 180px;

        height: 180px;

        margin: 0 auto;

    }


    .friend-description {

        text-align: center;

    }


    .friend-description p {

        margin-left: auto;

        margin-right: auto;

    }


    .friend-tags {

        justify-content: center;

    }


    .friends-grid {

        grid-template-columns:
            1fr;

    }

}



/* =====================================================
   小手机
===================================================== */

@media (max-width: 500px) {

    .friend-avatar {

        width: 150px;

        height: 150px;

    }


    .friend-description h1 {

        font-size: 38px;

    }


    .friend-card {

        padding: 18px;

    }

}
/* =====================================================
   朋友页面
===================================================== */

.friends-page {
    padding-top: 140px;
}


/* =====================================================
   我的介绍
===================================================== */

.friend-introduction {
    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 45px;

    align-items: center;

    margin-bottom: 70px;
}


/* =====================================================
   我的头像
===================================================== */

.friend-avatar {
    position: relative;

    width: 230px;
    height: 230px;

    overflow: hidden;

    border-radius: 22px;

    border: 1px solid var(--border);

    background: var(--card);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.25);
}


.friend-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.avatar-fallback {
    position: absolute;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    font-size: 70px;

    background: var(--card);
}


.friend-avatar.avatar-error
.avatar-fallback {
    display: flex;
}



/* =====================================================
   我的介绍文字
===================================================== */

.friend-description h1 {
    font-size:
        clamp(38px, 5vw, 60px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 15px;
}


.friend-description p {
    max-width: 700px;

    margin-bottom: 13px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


.friend-description strong {
    color: var(--text);
}


.friend-question {
    color: var(--accent) !important;

    font-weight: 700;

    font-size: 18px !important;
}



/* =====================================================
   我的标签
===================================================== */

.friend-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 22px;
}


.friend-tags span {
    padding:
        6px 11px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        var(--card);

    color:
        var(--accent);

    font-size: 12px;
}



/* =====================================================
   Friend Database
===================================================== */

.friends-database-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 8px;

    font-size: 25px;

    font-weight: 800;
}


.friends-database-title span {
    font-size: 28px;
}


.friends-database-description {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 14px;
}



/* =====================================================
   朋友网格
===================================================== */

.friends-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}



/* =====================================================
   朋友卡片
===================================================== */

.friend-card {
    min-height: 150px;

    display: flex;

    align-items: flex-start;

    gap: 17px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        var(--card);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

    text-decoration: none;

    color: inherit;
}


.friend-card:hover {
    transform:
        translateY(-6px);

    background:
        var(--card-hover);

    border-color:
        rgba(155, 108, 255, 0.5);
}



/* =====================================================
   朋友头像
===================================================== */

.friend-icon {
    width: 75px;
    height: 75px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 16px;

    border:
        1px solid var(--border);

    background:
        rgba(155, 108, 255, 0.12);
}


.friend-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}



/* =====================================================
   朋友信息
===================================================== */

.friend-info {
    min-width: 0;

    flex: 1;
}


.friend-info h3 {
    margin: 0;

    font-size: 18px;

    line-height: 1.3;
}


.friend-info p {
    margin:
        5px 0 0;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


.friend-info small {
    display: block;

    margin-top: 4px;

    color:
        var(--muted);

    opacity: 0.65;

    font-size: 11px;
}



/* =====================================================
   朋友链接
===================================================== */

.friend-links {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}


.friend-links a {
    display: inline-flex;

    align-items: center;

    padding:
        6px 10px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(155, 108, 255, 0.08);

    color:
        var(--accent);

    text-decoration: none;

    font-size: 11px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.friend-links a:hover {
    transform:
        translateY(-2px);

    background:
        rgba(155, 108, 255, 0.16);

    border-color:
        rgba(155, 108, 255, 0.5);
}



/* =====================================================
   手机端
===================================================== */

@media (max-width: 800px) {

    .friends-page {
        padding-top: 110px;
    }


    .friend-introduction {

        grid-template-columns: 1fr;

        gap: 25px;

        align-items: start;

    }


    .friend-avatar {

        width: 180px;

        height: 180px;

        margin: 0 auto;

    }


    .friend-description {

        text-align: center;

    }


    .friend-description p {

        margin-left: auto;

        margin-right: auto;

    }


    .friend-tags {

        justify-content: center;

    }


    .friends-grid {

        grid-template-columns: 1fr;

    }

}



/* =====================================================
   小手机
===================================================== */

@media (max-width: 500px) {

    .friend-avatar {

        width: 150px;

        height: 150px;

    }


    .friend-description h1 {

        font-size: 38px;

    }


    .friend-card {

        padding: 18px;

    }


    .friend-icon {

        width: 60px;

        height: 60px;

        border-radius: 13px;

    }


    .friend-info h3 {

        font-size: 17px;

    }

}
/* =====================================================
   404 页面
===================================================== */

.error-page {
    min-height: calc(100vh - 180px);

    display: flex;
    align-items: center;
    justify-content: center;
}


.error-content {
    width: 100%;
}


/* 图片 + 文字横向排列 */

.error-main {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 55px;

    max-width: 950px;

    margin: 0 auto;

    padding: 40px;
}


/* 404 图片 */

.error-image-link {
    flex-shrink: 0;

    display: block;

    width: 360px;

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid var(--border);

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.error-image-link:hover {
    transform: translateY(-6px);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35);
}


.error-image {
    width: 100%;

    height: auto;

    display: block;
}


/* 右边文字 */

.error-text {
    flex: 1;

    min-width: 0;
}


.error-code {
    font-size: clamp(70px, 9vw, 120px);

    font-weight: 900;

    line-height: 0.9;

    letter-spacing: -6px;

    color: var(--accent);

    margin-bottom: 20px;
}


.error-text h1 {
    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.15;

    margin-bottom: 18px;
}


.error-message {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 12px;
}


.error-hint {
    color: var(--muted);

    opacity: 0.55;

    font-size: 12px;

    margin-bottom: 25px;
}


/* 按钮 */

.error-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.error-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 18px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.error-button:hover {
    transform: translateY(-3px);
}


.error-button.primary {
    background: var(--accent);

    color: white;
}


.error-button.secondary {
    border: 1px solid var(--border);

    background: var(--card);

    color: var(--text);
}


.error-button.secondary:hover {
    background: var(--card-hover);

    border-color:
        rgba(155,108,255,0.5);
}


/* =====================================================
   手机端
===================================================== */

@media (max-width: 800px) {

    .error-page {
        min-height: auto;

        padding-top: 80px;

        padding-bottom: 80px;
    }


    .error-main {
        flex-direction: column;

        gap: 30px;

        padding: 20px;

        text-align: center;
    }


    .error-image-link {
        width: min(360px, 90vw);
    }


    .error-text {
        width: 100%;
    }


    .error-code {
        font-size: 80px;

        letter-spacing: -4px;
    }


    .error-actions {
        justify-content: center;
    }

}
/* =====================================================
   彩蛋密码页面
===================================================== */

.password-screen {
    width: 100%;

    max-width: 600px;

    margin: 0 auto;

    padding: 40px 20px;

    text-align: center;
}


.password-icon {
    font-size: 75px;

    margin-bottom: 20px;
}


.password-screen h1 {
    font-size: clamp(32px, 5vw, 50px);

    margin: 25px 0 15px;
}


.password-screen > p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


.password-form {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 30px auto 15px;

    max-width: 500px;
}


.password-form input {
    flex: 1;

    min-width: 0;

    padding: 12px 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background: var(--card);

    color: var(--text);

    font-size: 14px;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.password-form input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px
        rgba(155,108,255,0.12);
}


.password-form input::placeholder {
    color: var(--muted);

    opacity: 0.7;
}


.password-error {
    display: none;

    color: #ff6b81 !important;

    font-size: 13px !important;

    margin-top: 10px;
}


.back-home {
    display: inline-block;

    margin-top: 20px;

    color: var(--muted);

    text-decoration: none;

    font-size: 13px;

    transition: color 0.2s ease;
}


.back-home:hover {
    color: var(--accent);
}


/* =====================================================
   彩蛋内容
===================================================== */

.easter-page {
    min-height: calc(100vh - 180px);

    display: flex;

    align-items: center;

    justify-content: center;
}


.easter-content {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding: 40px 20px;

    text-align: center;
}


.easter-icon {
    font-size: 80px;

    margin-bottom: 25px;

    animation: egg-float 2s ease-in-out infinite;
}


@keyframes egg-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}


.easter-content h1 {
    font-size: clamp(32px, 5vw, 55px);

    margin: 25px 0 15px;
}


.easter-content > p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


.easter-box {
    margin: 30px auto;

    padding: 25px;

    max-width: 500px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--card);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.2);
}


.easter-box p {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 20px;

    font-weight: 800;
}


.easter-box small {
    color: var(--muted);

    font-size: 13px;
}


.easter-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}


/* =====================================================
   手机端
===================================================== */

@media (max-width: 600px) {

    .password-form {
        flex-direction: column;
    }


    .password-form button {
        width: 100%;
    }


    .password-icon {
        font-size: 65px;
    }


    .easter-icon {
        font-size: 65px;
    }

}
/* =====================================================
解密页面
===================================================== */

.decrypt-page {
padding-top: 140px;
}

.decrypt-container {
width: 100%;
max-width: 850px;
margin: 0 auto;
}

.decrypt-card {
padding: 28px;
border: 1px solid var(--border);
border-radius: 18px;
background: var(--card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.decrypt-card-title {
font-size: 25px;
font-weight: 800;
margin-bottom: 10px;
}

.decrypt-description {
color: var(--muted);
line-height: 1.8;
font-size: 14px;
margin-bottom: 25px;
}

.decrypt-description strong {
color: var(--accent);
}

/* =====================================================
文件上传
===================================================== */

.msc-upload {
position: relative;
display: block;
padding: 40px 20px;
text-align: center;
border: 2px dashed var(--border);
border-radius: 15px;
cursor: pointer;
transition:
border-color 0.25s ease,
background 0.25s ease;
}

.msc-upload:hover {
border-color: var(--accent);
background: rgba(155, 108, 255, 0.06);
}

.msc-upload input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}

.msc-upload-icon {
font-size: 42px;
margin-bottom: 10px;
}

.msc-upload-title {
font-size: 17px;
font-weight: 700;
}

.msc-upload-hint {
margin-top: 6px;
color: var(--muted);
font-size: 12px;
}

.msc-file-name {
margin-top: 12px;
color: var(--accent);
font-size: 13px;
text-align: center;
}

/* =====================================================
错误提示
===================================================== */

.decrypt-error {
display: none;
margin-top: 15px;
padding: 12px 15px;
border-radius: 10px;
background: rgba(255, 80, 80, 0.08);
color: #ff6b6b;
font-size: 13px;
}

.decrypt-error.show {
display: block;
}

/* =====================================================
解密结果
===================================================== */

.decrypt-result {
display: none;
margin-top: 20px;
}

.decrypt-result.show {
display: block;
}

.decrypt-output {
padding: 18px;
border: 1px solid var(--border);
border-radius: 12px;
background: rgba(0, 0, 0, 0.08);
white-space: pre-wrap;
word-break: break-word;
line-height: 1.7;
font-family: Consolas, "Microsoft YaHei", monospace;
font-size: 14px;
}

/* =====================================================
Bilibili 结果
===================================================== */

.bilibili-results {
display: none;
margin-top: 25px;
}

.bilibili-title {
font-size: 19px;
font-weight: 800;
margin-bottom: 12px;
}

.bilibili-list {
display: flex;
flex-direction: column;
gap: 10px;
}

.bilibili-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;

padding: 14px 16px;

border: 1px solid var(--border);
border-radius: 12px;

background: var(--card);
color: inherit;

text-decoration: none;

transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;

}

.bilibili-link:hover {
transform: translateY(-3px);
border-color: rgba(155, 108, 255, 0.5);
background: var(--card-hover);
}

.bilibili-link strong {
display: block;
color: var(--accent);
font-size: 14px;
}

.bilibili-link small {
display: block;
margin-top: 3px;
color: var(--muted);
font-size: 11px;
}

.bilibili-link > span {
color: var(--muted);
font-size: 20px;
flex-shrink: 0;
}

/* =====================================================
手机端
===================================================== */

@media (max-width: 800px) {

.decrypt-page {
    padding-top: 110px;
}

.decrypt-card {
    padding: 20px;
}

}

@media (max-width: 500px) {

.decrypt-card-title {
    font-size: 22px;
}

.msc-upload {
    padding: 32px 15px;
}

}
/* =========================
           Friends Main
           ========================= */

.friends-main-page {
     min-height: 100vh;
     padding: 120px 20px 60px;
 }

.friends-main-container {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
}

        /* 顶部标题 */
        .friends-main-header {
            text-align: center;
            margin-bottom: 45px;
        }

        .friends-main-header h1 {
            margin: 0 0 12px;
            font-size: 38px;
            font-weight: 800;
        }

        .friends-main-header p {
            margin: 0;
            color: var(--muted);
            font-size: 15px;
        }

        /* 快捷操作 */
        .friends-main-actions {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 45px;
        }

        .friends-main-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;

            min-width: 150px;
            padding: 12px 20px;

            border: 1px solid var(--border);
            border-radius: 12px;

            background: var(--card);
            color: var(--text);

            text-decoration: none;
            font-size: 14px;

            transition:
                transform 0.25s ease,
                border-color 0.25s ease,
                background 0.25s ease;
        }

        .friends-main-button:hover {
            transform: translateY(-3px);
            border-color: var(--accent);
            background: var(--card-hover);
        }

        .friends-main-button.primary {
            border-color: var(--accent);
            background: var(--accent);
            color: white;
        }

        .friends-main-button.primary:hover {
            filter: brightness(1.08);
        }

        /* 管理区域 */
        .friends-manager {
            margin-bottom: 50px;
        }

        .friends-manager-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;

            margin-bottom: 18px;
        }

        .friends-manager-title h2 {
            margin: 0;
            font-size: 22px;
        }

        .friends-manager-title span {
            color: var(--muted);
            font-size: 13px;
        }

        /* 朋友列表 */
        .friends-main-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .friends-main-card {
            position: relative;

            display: flex;
            align-items: center;
            gap: 15px;

            padding: 18px;

            border: 1px solid var(--border);
            border-radius: 16px;

            background: var(--card);

            text-decoration: none;
            color: var(--text);

            transition:
                transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
        }

        .friends-main-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        }

        .friends-main-avatar {
            width: 64px;
            height: 64px;

            flex-shrink: 0;

            border-radius: 14px;

            object-fit: cover;

            background: var(--card-hover);

            border: 1px solid var(--border);
        }

        .friends-main-info {
            min-width: 0;
            flex: 1;
        }

        .friends-main-name {
            margin: 0 0 5px;

            font-size: 16px;
            font-weight: 700;

            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .friends-main-description {
            margin: 0;

            color: var(--muted);

            font-size: 13px;
            line-height: 1.5;

            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .friends-main-arrow {
            color: var(--muted);
            font-size: 20px;

            transition:
                transform 0.25s ease,
                color 0.25s ease;
        }

        .friends-main-card:hover .friends-main-arrow {
            transform: translateX(4px);
            color: var(--accent);
        }

        /* 添加朋友 */
        .friends-add-card {
            display: flex;
            align-items: center;
            justify-content: center;

            min-height: 102px;

            border: 1px dashed var(--border);
            border-radius: 16px;

            color: var(--muted);

            text-decoration: none;

            transition:
                border-color 0.25s ease,
                color 0.25s ease,
                background 0.25s ease;
        }

        .friends-add-card:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--card);
        }

        .friends-add-content {
            text-align: center;
        }

        .friends-add-icon {
            display: block;
            margin-bottom: 5px;
            font-size: 25px;
        }

        .friends-add-text {
            font-size: 13px;
        }

        /* 提示 */
        .friends-main-note {
            padding: 20px;

            border: 1px solid var(--border);
            border-radius: 16px;

            background: var(--card);

            color: var(--muted);

            font-size: 13px;
            line-height: 1.7;
        }

        .friends-main-note strong {
            color: var(--text);
        }

        /* 页脚 */
        .friends-main-footer {
            margin-top: 60px;

            text-align: center;

            color: var(--muted);
            font-size: 12px;
        }

        /* =========================
           Mobile
           ========================= */

        @media (max-width: 850px) {
            .friends-main-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .friends-main-page {
                padding: 100px 15px 40px;
            }

            .friends-main-header h1 {
                font-size: 30px;
            }

            .friends-main-grid {
                grid-template-columns: 1fr;
            }

            .friends-manager-title {
                align-items: flex-start;
                flex-direction: column;
                gap: 5px;
            }

            .friends-main-actions {
                flex-direction: column;
            }

            .friends-main-button {
                width: 100%;
            }
        }




























































































































