/* ==================== yueling nav - 样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fff5f7;
    --bg-secondary: #ffe4ec;
    --bg-gradient-1: #ffeef5;
    --bg-gradient-2: #e8f4ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 182, 193, 0.5);
    --card-shadow: rgba(255, 105, 180, 0.15);
    --text-primary: #5a4a5c;
    --text-secondary: #8b7a8d;
    --text-accent: #ff6b9d;
    --accent-1: #ff8fab;
    --accent-2: #7ecfff;
    --accent-3: #ffd93d;
    --badge-bg: linear-gradient(135deg, #ff8fab 0%, #7ecfff 100%);
    --chip-bg: rgba(255, 255, 255, 0.9);
    --chip-border: rgba(255, 143, 171, 0.4);
    --hover-transform: translateY(-8px) rotate(1deg);
    --trail-color-1: rgba(255, 143, 171, 0.4);
    --trail-color-2: rgba(126, 207, 255, 0.4);
    --trail-color-3: rgba(255, 217, 61, 0.3);
}

[data-theme="dark"] {
    --bg-primary: #1a1425;
    --bg-secondary: #2d1f3d;
    --bg-gradient-1: #1a1425;
    --bg-gradient-2: #0f0c1a;
    --card-bg: rgba(45, 35, 65, 0.8);
    --card-border: rgba(147, 112, 219, 0.4);
    --card-shadow: rgba(147, 112, 219, 0.25);
    --text-primary: #f0e6ff;
    --text-secondary: #b8a9c9;
    --text-accent: #ff9ecd;
    --accent-1: #ff6b9d;
    --accent-2: #9d7bff;
    --accent-3: #ffd93d;
    --badge-bg: linear-gradient(135deg, #ff6b9d 0%, #9d7bff 100%);
    --chip-bg: rgba(45, 35, 65, 0.9);
    --chip-border: rgba(147, 112, 219, 0.5);
    --trail-color-1: rgba(255, 107, 157, 0.5);
    --trail-color-2: rgba(157, 123, 255, 0.5);
    --trail-color-3: rgba(255, 217, 61, 0.4);
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-primary) 100%);
    font-family: 'Nunito', 'ZCOOL KuaiLe', -apple-system, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    padding: 2rem 1.5rem;
    line-height: 1.6;
    transition: all 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

#trailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

@media (pointer: coarse), (max-width: 1024px) {
    #trailCanvas {
        display: none;
    }
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--card-shadow);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px var(--card-shadow);
}

.blog-entry {
    position: fixed;
    top: 1.5rem;
    right: 5rem;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #0a0a0a;
    border: 2px solid #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
}

.blog-entry::before {
    content: '>_';
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #00ff41;
    font-weight: bold;
}

.blog-entry:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    border-color: #00ff41;
}

.blog-tooltip {
    position: absolute;
    top: 60px;
    right: 0;
    background: #0a0a0a;
    color: #00ff41;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid #2a2a2a;
}

.blog-entry:hover .blog-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .blog-entry {
        top: 1rem;
        right: 4rem;
        width: 45px;
        height: 45px;
    }
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 1rem;
        right: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    margin: 3rem 0 2.5rem;
    position: relative;
}

.mascot {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

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

.badge {
    display: inline-block;
    background: var(--badge-bg);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.clock-container {
    text-align: center;
    margin: 1.2rem 0 0.8rem;
    padding: 0.3rem;
}
.clock-time {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: "Fira Code", monospace;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 6px;
    line-height: 1.2;
}
.clock-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 2px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 600;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-chip {
    background: var(--chip-bg);
    border: 2px solid var(--chip-border);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px var(--card-shadow);
    transition: all 0.3s ease;
}

.stat-chip:hover {
    transform: translateY(-3px) scale(1.02);
}

.stat-chip strong {
    color: var(--text-accent);
}

.music-section {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.12);
    border: 1px solid rgba(255, 182, 193, 0.25);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.music-header {
    padding: 6px 14px;
    background: rgba(255, 107, 157, 0.08);
    border-bottom: 1px solid rgba(255, 182, 193, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-header .m-icon { font-size: 14px; }
.music-header .m-name { font-size: 13px; font-weight: 600; color: #ff6b9d; }
.music-header .m-hint { font-size: 11px; color: #999; margin-left: auto; }

.music-entry {
    display: block;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.music-entry .m-mascot { font-size: 48px; margin-bottom: 12px; }
.music-entry .m-title { font-size: 16px; font-weight: 600; color: var(--text-accent); margin-bottom: 6px; }
.music-entry .m-sub { font-size: 13px; color: #999; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 2.5rem 0 1.5rem 0;
    padding: 0 0.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '*';
    color: var(--accent-1);
}

.subtle-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--chip-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 2px solid var(--chip-border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 1.8rem;
    border: 3px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--card-shadow);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: var(--hover-transform);
    border-color: var(--accent-1);
    box-shadow: 0 15px 40px var(--card-shadow);
}

.project-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-accent);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 143, 171, 0.1) 0%, rgba(126, 207, 255, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.blog-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    border-color: #2a2a2a;
    position: relative;
}

.blog-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    padding: 2px;
    background: linear-gradient(135deg, #00ff41 0%, #00b8ff 50%, #bd00ff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.blog-icon::before {
    content: '>_';
    font-family: 'Fira Code', monospace;
    font-size: 18px;
    color: #00ff41;
    font-weight: bold;
}

.blog-card .card-title {
    color: #e0e0e0;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
}

.blog-card .card-desc {
    color: #888888;
}

.blog-card .card-meta {
    background: rgba(42, 42, 42, 0.5);
    color: #00ff41;
    font-family: 'Fira Code', monospace;
}

.coming-card {
    opacity: 0.7;
    cursor: default;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.5) 100%);
}

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

.coming-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd93d 0%, #ff8fab 100%);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 2rem;
    border: 3px solid var(--card-border);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.heart {
    color: #ff6b9d;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

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

.deco-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
}

.star {
    position: absolute;
    color: var(--accent-1);
    font-size: 1.2rem;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 768px) {
    body { padding: 1rem; }
    .hero { margin: 2rem 0 2rem; }
    .mascot { font-size: 3rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .clock-time { font-size: 2rem; letter-spacing: 4px; }
    .clock-date { font-size: 0.75rem; }
    .stats-row { gap: 0.6rem; }
    .stat-chip {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    .section-title { font-size: 1.3rem; }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .project-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    .card-icon { font-size: 2rem; }
    .card-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .stat-chip { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .section-header { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    #trailCanvas { display: none; }
}