/* ===== 基础重置与变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E8E8E8;
    --accent-pink: #FFB6C1;
    --accent-green: #98D8C8;
    --accent-yellow: #F7DC6F;
    --accent-blue: #A8D8EA;
    --accent-purple: #DDA0DD;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-color);
}

.nav-link-primary {
    background: var(--text-primary);
    color: white;
}

.nav-link-primary:hover {
    background: #333;
    color: white;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.mobile-nav-link-primary {
    background: var(--text-primary);
    color: white;
    text-align: center;
}

.mobile-nav-link-primary:hover {
    background: #333;
    color: white;
}

/* 响应式导航 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 12px 20px;
    }

    .index-btn {
        padding: 10px 20px;
        font-size: 15px;
        font-weight: 500;
    }

    .index-btn .dot {
        width: 10px;
        height: 10px;
    }
}

.logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg);
}

.index-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.index-btn:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.index-btn .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== 主容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    font-style: italic;
}

/* ===== Bento Grid 布局 ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    grid-template-areas:
        "info   hero   hero   location"
        "stack  figure figure location"
        "edu    figure figure tags"
        "projects projects projects contact"
        "cert   cert   reading quote";
}

/* 定义每个卡片的区域 */
.card-info { grid-area: info; }
.card-hero { grid-area: hero; }
.card-location { grid-area: location; }
.card-stack { grid-area: stack; }
.card-figure { grid-area: figure; }
.card-edu { grid-area: edu; }
.card-projects { grid-area: projects; }
.card-contact { grid-area: contact; }
.card-tags { grid-area: tags; }
.card-cert { grid-area: cert; }
.card-reading { grid-area: reading; }
.card-quote { grid-area: quote; }

/* ===== 卡片基础样式 ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-color);
    border-radius: 12px;
}

/* ===== 个人信息卡 ===== */
.card-info {
    display: flex;
    flex-direction: column;
}

.persona-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1976D2;
    margin-bottom: 16px;
    width: fit-content;
    border: 1px solid #90CAF9;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    font-size: 64px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 主标题区 ===== */
.card-hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFF9E6, #FFF3CC);
    border: 1px solid #FFE4A1;
}

.hero-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(120deg, var(--accent-pink) 0%, var(--accent-pink) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 4px;
}

.hero-title .highlight-secondary {
    background: linear-gradient(120deg, var(--accent-green) 0%, var(--accent-green) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 4px;
}

.hero-title em {
    font-style: italic;
    color: #E91E63;
}

.emoji-icon {
    display: inline-block;
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* ===== 状态面板卡（扩展版） ===== */
.card-location {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

/* 状态信息列表 */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(4px);
}

.status-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 求职状态 */
.job-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #A5D6A7;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.job-title {
    font-size: 13px;
    font-weight: 600;
    color: #2E7D32;
}

.job-desc {
    font-size: 11px;
    color: #4CAF50;
}

/* 语言能力 */
.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.lang-tag {
    padding: 5px 10px;
    background: var(--bg-color);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.lang-tag.native {
    background: #FFF3E0;
    border-color: #FFCC80;
    color: #E65100;
    font-weight: 500;
}

/* 快速统计 */
.quick-stats {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 12px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #1565C0;
}

.stat-label {
    font-size: 10px;
    color: #1976D2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 装饰 */
.decoration-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.star {
    font-size: 18px;
    color: var(--accent-yellow);
    animation: twinkle 2s infinite;
}

.star:nth-child(2) { animation-delay: 0.3s; color: var(--accent-pink); }
.star:nth-child(3) { animation-delay: 0.6s; }
.star:nth-child(4) { animation-delay: 0.9s; color: var(--accent-green); }
.star:nth-child(5) { animation-delay: 1.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.letter-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -10px;
    margin-top: auto;
}

.big-letter {
    font-size: 64px;
    font-weight: 800;
    line-height: 0.9;
    opacity: 0.7;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

/* ===== 技能栈卡 ===== */
.card-stack {
    display: flex;
    flex-direction: column;
}

.retro-device {
    background: #2D2D2D;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.device-screen {
    background: #1A1A1A;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #2D2D2D;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #3D3D3D;
    transform: translateX(4px);
}

.skill-icon {
    font-size: 18px;
}

.skill-name {
    font-size: 13px;
    color: #E0E0E0;
    font-weight: 500;
}

.device-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.device-buttons .btn {
    width: 24px;
    height: 12px;
    background: #555;
    border-radius: 4px;
    box-shadow: 0 2px 0 #333;
}

/* ===== 形象展示区 ===== */
.card-figure {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #FFF5F5, #FFF0F3);
    border: 1px solid #FFD1DC;
}

.figure-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}

.character {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character-head {
    font-size: 100px;
    z-index: 2;
}

.character-laptop {
    font-size: 60px;
    margin-top: -20px;
    z-index: 1;
    animation: typing 1s infinite alternate;
}

@keyframes typing {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

.sparkles {
    position: absolute;
    top: 10%;
    right: 10%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sparkle {
    font-size: 24px;
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== 教育背景卡 ===== */
.card-edu {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border: 1px solid #CE93D8;
}

.edu-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #FFFFFF;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #7B1FA2;
    margin-bottom: 12px;
    width: fit-content;
}

.edu-major {
    font-size: 18px;
    font-weight: 700;
    color: #4A148C;
    margin-bottom: 12px;
}

.edu-detail {
    font-size: 12px;
    color: #6A1B9A;
    line-height: 1.9;
}

/* ===== 项目经验卡 ===== */
.card-projects {
    grid-column: span 2;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border: 1px solid #A5D6A7;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

.project-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.project-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1B5E20;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 12px;
    color: #2E7D32;
}

/* ===== 联系方式卡 ===== */
.card-contact {
    display: flex;
    flex-direction: column;
}

.contact-content {
    margin-top: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.social-item:hover {
    transform: translateY(-4px);
}

.social-item:hover .social-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-detail {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}

.contact-detail a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-detail a:hover {
    border-color: var(--text-primary);
}

/* ===== 个性标签云 ===== */
.card-tags {
    background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
    border: 1px solid #FFE0B2;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    font-size: calc(12px * var(--tag-size));
    font-weight: 500;
    color: var(--tag-color);
    border: 2px solid var(--tag-color);
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    transform: scale(1.05) rotate(-2deg);
    background: var(--tag-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== 证书与荣誉 ===== */
.card-cert {
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border: 1px solid #CE93D8;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(4px);
}

.cert-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-name {
    font-size: 13px;
    font-weight: 600;
    color: #4A148C;
}

.cert-desc {
    font-size: 11px;
    color: #7B1FA2;
}

/* ===== 正在阅读 ===== */
.card-reading {
    background: linear-gradient(135deg, #E8EAF6, #C5CAE9);
    border: 1px solid #9FA8DA;
}

.reading-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.book-cover {
    flex-shrink: 0;
}

.book-spine-mini {
    width: 60px;
    height: 85px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.book-spine-mini::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.3);
}

.book-title-mini {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.book-author-mini {
    font-size: 9px;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
}

.book-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A237E;
}

.progress-percent {
    font-size: 13px;
    font-weight: 700;
    color: #3949AB;
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5C6BC0, #3949AB);
    border-radius: 3px;
    transition: width 1s ease;
}

.book-quote {
    font-size: 12px;
    color: #5C6BC0;
    font-style: italic;
    line-height: 1.5;
    margin-top: 4px;
}

/* ===== 座右铭卡片 ===== */
.card-quote {
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-quote::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-25%, -25%) rotate(0deg); }
    50% { transform: translate(-25%, -25%) rotate(180deg); }
}

.quote-content {
    position: relative;
    z-index: 1;
}

.quote-mark {
    font-size: 48px;
    font-family: Georgia, serif;
    color: rgba(255,255,255,0.3);
    line-height: 1;
    margin-bottom: -10px;
}

.quote-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 12px;
}

.quote-author {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--border-color);
}

.footer-credit {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--accent-pink);
}

.footer .heart {
    color: #E91E63;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.2); }
    20% { transform: scale(1); }
    30% { transform: scale(1.2); }
}

/* ===== 本地时间显示 ===== */
.local-time {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.local-time .time-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: var(--bg-color);
    border-radius: 12px;
}

.local-time .time-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ===== 移动端适配 ===== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "hero     hero"
            "info     location"
            "stack    figure"
            "edu      tags"
            "projects projects"
            "contact  cert"
            "reading  quote";
    }

    .card-projects {
        grid-column: span 2;
    }

    .hero-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 16px 20px;
    }

    .container {
        padding: 0 16px 24px;
    }

    /* 移动端单列布局 */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "figure"
            "info"
            "location"
            "stack"
            "tags"
            "projects"
            "edu"
            "cert"
            "contact"
            "reading"
            "quote";
        gap: 16px;
    }

    .local-time {
        display: flex;
    }

    .card {
        padding: 20px;
    }

    .card-projects {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.5;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-item {
        flex-direction: row;
        text-align: left;
        padding: 12px 16px;
    }

    .project-icon {
        font-size: 28px;
        margin-bottom: 0;
        margin-right: 12px;
    }

    .big-letter {
        font-size: 48px;
    }

    .character-head {
        font-size: 80px;
    }

    .social-links {
        gap: 24px;
    }

    .social-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .footer {
        padding: 24px;
    }

    /* 移动端状态面板优化 */
    .card-location .letter-decoration {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .card-location .decoration-stars {
        justify-content: center;
        margin-bottom: 12px;
    }

    .quick-stats {
        padding: 10px;
    }

    .stat-num {
        font-size: 18px;
    }

    /* 证书卡片移动端 */
    .cert-item {
        padding: 8px;
    }

    .cert-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* 阅读卡片移动端 */
    .reading-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-progress {
        width: 100%;
    }

    /* 座右铭卡片 */
    .quote-text {
        font-size: 15px;
    }

    /* 移动端标题调整 */
    .card-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .persona-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .name {
        font-size: 22px;
    }

    .bio {
        font-size: 13px;
    }

    .hint {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* ===== Digital Garden 页面样式 ===== */
.digital-garden-view {
    max-width: 800px;
    margin: 0 auto;
}

.garden-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.back-btn:hover {
    background: var(--bg-color);
    transform: translateX(-4px);
}

.garden-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.garden-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.garden-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.garden-card-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: var(--bg-color);
    border-radius: 12px;
    display: inline-block;
}

/* Jam 音乐模块 */
.garden-jam {
    grid-column: span 1;
    background: linear-gradient(135deg, #F8F4FF, #F0E8FF);
}

.jam-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jam-visual {
    position: relative;
    width: 60px;
    height: 60px;
}

.vinyl-disc {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333 0%, #111 50%, #333 100%);
    position: absolute;
    top: 5px;
    left: 5px;
    animation: spin 4s linear infinite;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--accent-pink);
    border-radius: 50%;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.jam-waves {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.jam-waves span {
    width: 3px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.jam-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.jam-waves span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.jam-waves span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.jam-waves span:nth-child(4) { height: 10px; animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.jam-info {
    flex: 1;
}

.jam-song {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.jam-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.jam-time {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 500;
}

/* NOW 待办 */
.garden-now {
    grid-column: span 1;
    background: linear-gradient(135deg, #F0FFF4, #E6FFED);
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.todo-item.checked {
    color: var(--text-muted);
    text-decoration: line-through;
}

.todo-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    flex-shrink: 0;
}

.todo-item.checked .todo-check {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

/* Pokemon 随机器 */
.garden-pokemon {
    grid-column: span 1;
    text-align: center;
    background: linear-gradient(135deg, #FFF5F5, #FFEBEE);
}

.pokemon-display {
    padding: 20px 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pokemon-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pokemon-silhouette {
    font-size: 80px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.pokemon-types {
    display: flex;
    gap: 8px;
}

.type-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.roll-dice-btn {
    width: 100%;
    padding: 12px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.roll-dice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.roll-dice-btn:active {
    transform: scale(0.98);
}

.roll-dice-btn:disabled {
    cursor: not-allowed;
}

/* 物品展示 */
.garden-belongings {
    grid-column: span 1;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
}

.belongings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.item {
    font-size: 32px;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.item:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.9);
}

/* Library */
.garden-library {
    grid-column: span 2;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

.library-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--text-primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.8);
}

.book-shelf {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.book-shelf::-webkit-scrollbar {
    height: 4px;
}

.book-shelf::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.book-placeholder {
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    position: relative;
}

.book-spine {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.book-spine::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.3);
}

.book-status {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-pink);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* 移动端 Garden 适配 */
@media (max-width: 640px) {
    .garden-grid {
        grid-template-columns: 1fr;
    }
    
    .garden-card {
        grid-column: span 1 !important;
    }
    
    .garden-title {
        font-size: 20px;
    }
    
    .belongings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
}
