/* ===== Variables ===== */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.95);
    --text-primary: #e6edf3;
    --text-secondary: #c9d1d9;
    --text-muted: #7d8590;
    --accent: #58a6ff;
    --accent-secondary: #a371f7;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    --border: rgba(48, 54, 61, 0.8);
    --border-accent: rgba(88, 166, 255, 0.25);
    --radius: 8px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
}

/* ===== Particles ===== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== Glow Orbs ===== */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(88, 166, 255, 0.15);
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(163, 113, 247, 0.12);
    bottom: 10%;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

 /*===== App ===== */
#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-container {
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    min-height: auto;
    height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem 1rem;
}

.hero-content {
    animation: fadeUp 0.8s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
}

.avatar {
    position: relative;
    width: 102px;
    height: 102px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.title-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    -webkit-text-fill-color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
    line-height: 1.7;
}

/* ===== Main ===== */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0rem 1.5rem 2rem;
}

/* ===== Section 原版样式 100% 恢复 ===== */
.section {
    margin-bottom: 0rem;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.section-header i {
    color: var(--accent);
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-accent), transparent);
}

/* ===== Links ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.25s;
    text-align: center;
}

.link-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.link-card i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.link-card span {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

.link-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 1rem 1.5rem;
}

.footer-bottom {
    text-align: center;
}

.copyright-main {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.copyright-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.copyright-sub .divider {
    opacity: 0.3;
}

.copyright-sub a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.copyright-sub a:hover {
    color: var(--accent);
}

.copyright-sub i {
    color: #f85149;
    font-size: 0.7rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero {
    min-height: auto;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem 1rem;
}


    .title {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 0rem 1.2rem 2rem;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .avatar-container {
        width: 90px;
        height: 90px;
    }

    .avatar {
        width: 82px;
        height: 82px;
    }

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== Selection ===== */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}