/* ========================================
   Sylvy HomePage - 融合样式
   ======================================== */

:root {
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --text-color: #e6edf3;
    --text-muted: #8b949e;
    --accent-color: #58a6ff;
    --accent-hover: #79b8ff;
    --border-color: #30363d;
    --card-bg: #21262d;
    --card-hover: #30363d;
    --header-bg: rgba(13, 17, 23, 0.9);
    --transition: all 0.3s ease;
    --reveal-bg: #e6edf3;
    --reveal-text: #0d1117;
    --reveal-accent: #0969da;
    --reveal-muted: #57606a;
    --pattern-color: rgba(255, 255, 255, 0.03);
    --online-color: #22c55e;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --bg-secondary: #f6f8fa;
    --text-color: #24292f;
    --text-muted: #57606a;
    --accent-color: #0969da;
    --accent-hover: #218bff;
    --border-color: #d0d7de;
    --card-bg: #ffffff;
    --card-hover: #f3f4f6;
    --header-bg: rgba(255, 255, 255, 0.9);
    --reveal-bg: #0d1117;
    --reveal-text: #e6edf3;
    --reveal-accent: #58a6ff;
    --reveal-muted: #8b949e;
    --pattern-color: rgba(0, 0, 0, 0.04);
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--text-muted);
}

.theme-btn:hover {
    color: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(88, 166, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 50%, rgba(121, 184, 255, 0.04) 0%, transparent 50%);
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.navbar {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    padding: 10px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    will-change: transform, opacity;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.whisper {
    font-size: 0.85em;
    opacity: 0.6;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
    min-height: 1.6em;
}

.hero-avatar-container {
    margin-bottom: 24px;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
    margin-left: 4px;
}

/* ========================================
   Hero Reveal Layer
   ======================================== */
.hero-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--reveal-bg);
    clip-path: circle(0px at -300px -300px);
    will-change: clip-path;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--reveal-text);
    --text-color: var(--reveal-text);
    --text-muted: var(--reveal-muted);
    --accent-color: var(--reveal-accent);
}

.hero-reveal .hero-reveal-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-reveal .hero-avatar-container {
    margin-bottom: 24px;
    opacity: 1;
    animation: none;
}

.hero-reveal .hero-avatar {
    border-color: var(--reveal-muted);
}

/* ========================================
   Hero Background Pattern
   ======================================== */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    --pattern-bg: var(--bg-color);
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 50% at center, transparent 0%, var(--pattern-bg) 75%);
    pointer-events: none;
}

.hero-reveal .hero-bg-pattern {
    --pattern-bg: var(--reveal-bg);
    --pattern-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero-reveal .hero-bg-pattern {
    --pattern-color: rgba(255, 255, 255, 0.03);
}

.pattern-row {
    white-space: nowrap;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--pattern-color);
    letter-spacing: 0.3em;
    line-height: 1.8;
    user-select: none;
    pointer-events: none;
}

.pattern-row:nth-child(even) {
    margin-left: -3em;
}

/* ========================================
   Hero Quote
   ======================================== */
.hero-quote {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.hero-quote p {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* hero-reveal层中的hero-quote */
.hero-reveal .hero-quote {
    opacity: 0.5;
    animation: none;
}

/* ========================================
   About Quote (底部格言)
   ======================================== */
.about-quote {
    margin-top: 48px;
    text-align: center;
    padding: 20px 0 0;
}

.about-quote p {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.quote-animate {
    opacity: 0.1;
    transform: translateY(40px) scale(0.92);
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ========================================
   通用容器和标题
   ======================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.about::before {
    top: -80px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.about::after {
    bottom: -80px;
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-row {
    display: flex;
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: var(--tilt-transform, none);
}

.bento-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 60px rgba(88, 166, 255, 0.06);
    border-color: var(--accent-color);
}

.top-row {
    flex-wrap: wrap;
}

.profile-card {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
}

.username-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.bio-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.online-indicator {
    width: 16px;
    height: 16px;
    background: var(--online-color);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--text-muted);
    margin-left: auto;
}

.profile-social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1rem;
}

.social-btn:hover {
    background: var(--accent-color);
    color: white;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.interaction-grid {
    display: flex;
    gap: 20px;
}

.like-card {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
}

.like-icon {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    opacity: 0.7;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.like-count {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.like-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
}

.badge-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
    animation: fishSwim 3s ease-in-out infinite;
}

@keyframes fishSwim {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(4px) rotate(5deg); }
    75% { transform: translateX(-4px) rotate(-5deg); }
}

.badge-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.bottom-row {
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 0;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bug-collector {
    position: relative;
    overflow: hidden;
}

.bug-collector::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(255, 71, 87, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.terminal-block {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .terminal-block {
    background: rgba(0, 0, 0, 0.06);
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.15);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-body {
    padding: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-style: italic;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s ease;
}

.stack-card {
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(88, 166, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.stack-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.stack-icons i {
    transition: var(--transition);
}

.stack-icons i:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.poet-card {
    position: relative;
    overflow: hidden;
}

.poet-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(88, 166, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.poet-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.poet-lines p {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-muted);
    padding: 6px 12px;
    border-left: 2px solid var(--border-color);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.poet-lines p:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

/* ========================================
   Timeline Section
   ======================================== */
.timeline {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse 50% 40% at 85% 20%, rgba(88, 166, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(121, 184, 255, 0.04) 0%, transparent 70%);
}

.timeline::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 1px, var(--border-color) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at center, transparent 0%, var(--bg-color) 75%);
    pointer-events: none;
    z-index: 1;
}

.timeline-track {
    position: relative;
    padding-left: 48px;
    max-width: 640px;
    margin: 0 auto;
    z-index: 1;
}

.timeline > .container {
    position: relative;
    z-index: 3;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--border-color) 30%, var(--border-color) 70%, transparent);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -48px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-item:first-child .timeline-dot {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.3);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-color);
    box-shadow: 0 0 16px rgba(88, 166, 255, 0.4);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline-months {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.timeline-month {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.month-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
    padding: 3px 12px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.timeline-month p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    padding-left: 16px;
    position: relative;
}

.timeline-month p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.5;
}

.timeline-month p + p {
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 2px;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse 45% 50% at 5% 30%, rgba(88, 166, 255, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 70%, rgba(121, 184, 255, 0.05) 0%, transparent 70%);
}

.projects::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -120px;
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.projects > .container {
    position: relative;
    z-index: 3;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
    border-radius: 14px;
    background: var(--card-bg);
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    background: var(--text-color);
    transform: translateX(6px);
}

.project-item:hover .project-name {
    color: var(--bg-color);
}

.project-item:hover .project-desc {
    color: var(--bg-color);
    opacity: 0.7;
}

.project-item:hover .project-arrow {
    color: var(--bg-color);
    transform: translateX(8px);
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.35s ease;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.35s ease;
}

.project-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.35s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.view-more {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.view-more:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 20px 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    background-image:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(88, 166, 255, 0.04) 0%, transparent 60%);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer p {
    margin: 8px 0;
}

.footer a {
    color: var(--accent-color);
    transition: var(--transition);
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================
   弹幕消息
   ======================================== */
.danmaku-message {
    position: fixed;
    background: var(--text-primary);
    color: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
    animation: float-up 3.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes float-up {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -250%) scale(0.8);
    }
}

/* ========================================
   几何装饰元素
   ======================================== */
.geo-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.geo {
    position: absolute;
    opacity: 0.1;
    will-change: transform;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: var(--size, 20px) solid transparent;
    border-right: var(--size, 20px) solid transparent;
    border-bottom: calc(var(--size, 20px) * 1.732) solid var(--accent-color);
    animation: geoFloat var(--dur, 20s) ease-in-out infinite alternate;
}

.geo-square {
    width: calc(var(--size, 20px) * 2);
    height: calc(var(--size, 20px) * 2);
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    animation: geoSpin var(--dur, 25s) linear infinite;
}

.geo-diamond {
    width: calc(var(--size, 20px) * 1.6);
    height: calc(var(--size, 20px) * 1.6);
    border: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: geoFloat var(--dur, 22s) ease-in-out infinite alternate;
}

.geo-circle {
    width: calc(var(--size, 20px) * 2);
    height: calc(var(--size, 20px) * 2);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: geoPulse var(--dur, 18s) ease-in-out infinite alternate;
}

.geo-cross {
    width: calc(var(--size, 20px) * 2);
    height: calc(var(--size, 20px) * 2);
    position: absolute;
    animation: geoSpin var(--dur, 30s) linear infinite;
}

.geo-cross::before,
.geo-cross::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    border-radius: 1px;
}

.geo-cross::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.geo-cross::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.geo-ring {
    width: calc(var(--size, 20px) * 3);
    height: calc(var(--size, 20px) * 3);
    border: 1.5px solid var(--accent-color);
    border-radius: 50%;
    animation: geoFloat var(--dur, 24s) ease-in-out infinite alternate;
}

.geo-dots {
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow:
        12px 0 0 var(--accent-color),
        24px 0 0 var(--accent-color),
        0 12px 0 var(--accent-color),
        12px 12px 0 var(--accent-color),
        24px 12px 0 var(--accent-color);
    animation: geoPulse var(--dur, 16s) ease-in-out infinite alternate;
}

@keyframes geoFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(8deg); }
}

@keyframes geoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes geoPulse {
    0% { transform: scale(1); opacity: 0.1; }
    100% { transform: scale(1.15); opacity: 0.15; }
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroSubIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-content {
    animation: fadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-avatar-container {
    animation: heroTitleIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.hero-title {
    opacity: 0;
    animation: heroTitleIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.25s both;
}

.hero-subtitle {
    opacity: 0;
    animation: heroSubIn 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.45s both;
}

.hero-tagline {
    opacity: 0;
    animation: heroSubIn 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.6s both;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.section-title.scroll-reveal {
    transform: translateY(50px) scale(0.92);
    filter: blur(10px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.section-title.scroll-reveal.visible {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.timeline-item.scroll-reveal {
    transform: translateX(-40px) translateY(20px);
    filter: blur(4px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.timeline-item.scroll-reveal.visible {
    transform: translateX(0) translateY(0);
    filter: blur(0);
}

.project-item.scroll-reveal:nth-child(odd) {
    transform: translateX(-30px) translateY(20px);
    filter: blur(3px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.project-item.scroll-reveal:nth-child(even) {
    transform: translateX(30px) translateY(20px);
    filter: blur(3px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.project-item.scroll-reveal.visible {
    transform: translateX(0) translateY(0);
    filter: blur(0);
}

.header {
    opacity: 0;
    transform: translateY(-20px);
    animation: headerSlide 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

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

.bento-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

.footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .project-item {
        padding: 20px 16px;
    }

    .bento-row {
        flex-direction: column;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .profile-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .project-name {
        font-size: 1.05rem;
    }

    .project-desc {
        font-size: 0.8rem;
    }
}
