/* ==================== 林克统一单页面 - 旷野之息风格 v3.0 ==================== */
/* 
 * 此文件继承 zelda-theme.css 的变量定义
 * 核心风格：希卡蓝科技 + 水彩天空 + 自然美学
 * 字体：Cinzel (标题) + Noto Serif SC (正文)
 */

/* ==================== 全局基础 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--zelda-cream);
    color: var(--zelda-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== 旷野之息水彩背景 ==================== */
.bg-effects {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -3;
    /* 更精致的吉卜力风格水彩天空渐变 */
    background: 
        /* 云海效果 - 更柔和 */
        radial-gradient(ellipse 130% 55% at 50% 115%, rgba(255,255,255,0.75) 0%, transparent 55%),
        /* 日落渐变 - 更层次丰富 */
        linear-gradient(180deg, 
            #8bd1ed 0%,      /* 清澈天空蓝 */
            #a8d4e8 15%,
            #c8dce5 30%,
            #f0e4cc 45%,     /* 羊皮纸暖色 */
            #e8cba5 60%,
            #ddb48a 75%,     /* 柔和日落橙 */
            #c99480 90%,
            #b8826e 100%
        );
}

/* ==================== v4.0 等高线地形纹理层 ==================== */
.topographic-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0.045;
    pointer-events: none;
}

/* v4.0 远山剪影 + 云海景深 */
.landscape-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cloud-layer {
    position: absolute;
    bottom: 40%;
    left: -100%;
    width: 300%;
    height: 120px;
    background:
        radial-gradient(ellipse 25% 80% at 15% 50%, rgba(255,255,255,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 20% 70% at 45% 60%, rgba(255,255,255,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 30% 60% at 75% 40%, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: cloud-drift 80s linear infinite;
}

@keyframes cloud-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

/* ==================== 水彩纹理叠加 ==================== */
.bg-effects::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    will-change: auto; /* 性能优化：静态元素不需要提升合成层 */
}

/* 扫描线效果 - 更轻柔 + 性能优化 */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.008) 0px,
        rgba(0, 0, 0, 0.008) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1000;
    contain: strict;
}

/* ==================== v4.0 SVG 叶子粒子系统 ==================== */
.leaf-particle {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    animation: leaf-fall linear infinite;
    will-change: transform, opacity;
}

.leaf-particle.bg-leaf {
    width: 10px;
    height: 10px;
    filter: blur(1px);
}

.leaf-particle svg {
    width: 100%;
    height: 100%;
}

/* v4.0 希卡光点 - 底部上升浮动 */
.sheikah-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--sheikah-blue-light);
    border-radius: 50%;
    box-shadow:
        0 0 6px var(--sheikah-blue-light),
        0 0 14px rgba(0, 212, 255, 0.2);
    animation: spark-float 6s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes spark-float {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.8; transform: translateY(-40px) scale(1.1); }
}

/* ==================== 飘落树叶 + 希卡蓝光点粒子 ==================== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
    contain: strict;
}

/* ==================== 减少动画偏好 ====================
 * 尊重用户的辅助设置，当用户启用减少动画时禁用高开销动画
 * v2.0: 更全面的动画控制 + 性能优化
 */
@media (prefers-reduced-motion: reduce) {
    /* 粒子动画完全禁用 */
    .leaf-particle,
    .sheikah-spark,
    .particles {
        display: none !important;
    }
    
    /* 扫描线禁用 */
    .scanlines {
        display: none;
    }
    
    /* 云层动画禁用 */
    .cloud-layer {
        animation: none;
    }
    
    /* 头像相关动画禁用 */
    .avatar-glow,
    .avatar-ring,
    .sheikah-eye-svg {
        animation: none;
    }
    
    /* 滚动显示效果直接显示 */
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    /* 经验条动画禁用 */
    .exp-bar-fill::after {
        animation: none;
    }
    
    /* 所有hover过渡简化 */
    .stat-item:hover,
    .nav-tab:hover,
    .overview-card:hover,
    .cap-card:hover,
    .report-card:hover {
        transform: none;
    }
    
    /* 减少所有过渡效果 */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 性能优化：视口外元素暂停动画 ==================== */
.leaf-particle:not(.in-viewport),
.sheikah-spark:not(.in-viewport) {
    animation-play-state: paused;
}

/* GPU加速层优化：仅对必要元素使用 */
.sidebar,
.top-nav,
.avatar-frame {
    will-change: auto; /* 默认不提升，需要时由JS控制 */
}

/* 滚动时禁用复杂效果 */
.is-scrolling .backdrop-filter,
.is-scrolling .sidebar,
.is-scrolling .top-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==================== 布局容器 ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* ==================== 侧边栏 - 性能优化版 v5.0 ====================
 * 使用单层背景替代多层毛玻璃，减少GPU开销
 */
.sidebar {
    width: 300px;
    background: rgba(24, 28, 33, 0.95); /* 提高透明度代替毛玻璃 */
    backdrop-filter: blur(12px); /* 降低blur半径，从32px降到12px */
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    padding: 16px 18px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 
        4px 0 24px rgba(0, 0, 0, 0.25),
        inset -1px 0 0 rgba(0, 212, 255, 0.06);
    contain: layout style; /* CSS containment 优化 */
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* 头像区 - 更精致更紧凑 */
.avatar-section {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.avatar-frame {
    width: 90px;
    height: 90px;
    position: relative;
    margin: 0 auto 10px;
}

.avatar-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 50%, transparent 70%);
    animation: sheikah-glow-pulse 4s ease-in-out infinite;
}

@keyframes sheikah-glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

.avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 16px rgba(0, 212, 255, 0.25),
        inset 0 0 16px rgba(0, 212, 255, 0.12);
    animation: ring-pulse 5s ease-in-out infinite;
}

/* 神庙螺旋旋转动画 - 更柔和 */
.avatar-ring::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--sheikah-blue-light);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--sheikah-blue-light);
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(180deg); }
}

.avatar-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background: linear-gradient(150deg, #1a2a3a 0%, #0d1a26 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    border: 1.5px solid rgba(0, 212, 255, 0.25);
    overflow: hidden;
}

.level-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--zelda-gold) 0%, var(--zelda-gold-dark) 100%);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    padding: 3px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(212, 168, 42, 0.4);
    letter-spacing: 0.5px;
}

.character-name {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--sheikah-blue-light);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    margin-bottom: 2px;
}

.character-title {
    color: var(--text-muted);
    font-size: 10px;
    margin: 4px 0 8px;
    letter-spacing: 0.5px;
}

.character-tags {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tag {
    padding: 3px 10px;
    font-size: 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tag-gold {
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--zelda-gold);
    color: var(--zelda-gold-light);
}

.tag-cyan, .tag-green {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--sheikah-blue);
    color: var(--sheikah-blue-light);
}

/* 数据面板 - 更精致 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-item {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.stat-item:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: var(--sheikah-glow-subtle);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 20px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--sheikah-blue-light);
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 雷达图面板 - 更精致 */
.radar-panel, .trend-mini-panel {
    background: rgba(18, 22, 28, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
}

.panel-title {
    font-family: var(--font-title);
    font-size: 10px;
    color: rgba(0, 212, 255, 0.7);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.radar-wrap {
    height: 150px;
    position: relative; /* 确保chart.js能正确计算尺寸 */
}

.radar-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.trend-mini-wrap {
    height: 80px;
    position: relative;
}

.trend-mini-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* 成就迷你 - 更精致 */
.achievements-mini {
    background: rgba(212, 168, 42, 0.06);
    border: 1px solid rgba(212, 168, 42, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
}

.ach-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ach-mini-item {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, rgba(212, 168, 42, 0.15), rgba(212, 168, 42, 0.3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.ach-mini-item:hover {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: var(--shadow-glow-gold);
}

.ach-mini-item.locked {
    background: rgba(18, 22, 28, 0.4);
    border: 1px dashed rgba(0, 212, 255, 0.15);
    opacity: 0.35;
}

/* 更新信息 */
.update-info {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--sheikah-blue-dark);
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    margin-left: 300px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 300px);
    overflow-x: hidden;
}

/* ==================== 顶部导航 - 性能优化版 v5.0 ==================== */
.top-nav {
    position: sticky;
    top: 0;
    background: rgba(24, 28, 33, 0.92); /* 提高不透明度 */
    backdrop-filter: blur(10px); /* 降低 blur 半径 */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
    padding: 0 24px;
    display: flex;
    gap: 4px;
    z-index: 99;
    height: 56px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    contain: layout style; /* CSS containment 优化 */
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-tab:hover {
    background: rgba(0, 212, 255, 0.06);
    color: var(--sheikah-blue-light);
}

/* 激活状态 - 更精致的希卡蓝 */
.nav-tab.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--sheikah-blue-light);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 0 12px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sheikah-blue), transparent);
    border-radius: 1px;
}

.nav-icon {
    font-size: 18px;
}

/* ==================== 内容区块 ==================== */
.content-section {
    display: none;
    padding: 28px;
    flex: 1;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    overflow-x: hidden;
}

.content-section.active {
    display: block;
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid rgba(107, 83, 68, 0.2);
}

.section-header.mini {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, var(--sheikah-blue-dark), var(--sheikah-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-glow-blue);
}

.section-title {
    font-family: var(--font-title);
    font-size: 21px;
    font-weight: 600;
    color: var(--zelda-brown);
    letter-spacing: 2px;
}

.section-date {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--sheikah-blue);
}

.section-stats {
    font-size: 12px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.section-stats span {
    font-family: var(--font-mono);
    color: var(--sheikah-blue);
}

/* ==================== 日报概览卡片 - 精致羊皮纸风格 ==================== */
.daily-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.overview-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1px solid rgba(107, 83, 68, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.overview-card:hover {
    border-color: rgba(212, 168, 42, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ov-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}

.ov-icon.green { background: rgba(93, 138, 74, 0.2); }
.ov-icon.blue { background: rgba(0, 212, 255, 0.15); }
.ov-icon.orange { background: rgba(255, 140, 66, 0.2); }
.ov-icon.purple { background: rgba(155, 89, 182, 0.15); }

.ov-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--zelda-brown);
}

.ov-label {
    font-size: 11px;
    color: var(--zelda-brown);
    opacity: 0.7;
    margin-top: 5px;
}

/* ==================== 亮点面板 - 性能优化版 v5.0 ==================== */
.highlights-panel, .daily-detail-panel, .trend-chart-panel {
    background: rgba(24, 28, 33, 0.88); /* 半透明背景代替毛玻璃 */
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    contain: content; /* CSS containment 优化 */
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.panel-icon {
    font-size: 18px;
}

.panel-title-text {
    font-family: var(--font-title);
    font-size: 12px;
    color: rgba(0, 212, 255, 0.8);
    letter-spacing: 1.5px;
    flex: 1;
}

.view-full-link {
    font-size: 11px;
    color: var(--zelda-gold-light);
    text-decoration: none;
    transition: color 0.3s;
}

.view-full-link:hover {
    color: var(--zelda-gold);
    text-shadow: var(--gold-glow);
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.highlight-item {
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    font-size: 12px;
    color: var(--sheikah-blue-light);
    transition: all var(--transition-fast);
}

.highlight-item:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-1px);
}

/* ==================== 能力变化卡片 ==================== */
.capability-changes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.cap-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1px solid rgba(107, 83, 68, 0.15);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cap-card:hover {
    border-color: rgba(212, 168, 42, 0.5);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cap-card.skill { border-left: 3px solid var(--sheikah-blue); }
.cap-card.knowledge { border-left: 3px solid var(--zelda-gold); }
.cap-card.memory { border-left: 3px solid var(--sheikah-orange); }

.cap-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cap-icon {
    font-size: 20px;
}

.cap-name {
    font-size: 12px;
    color: var(--zelda-brown);
    opacity: 0.8;
}

.cap-body {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cap-current {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--zelda-brown);
}

.cap-card.skill .cap-current { color: var(--sheikah-blue); }
.cap-card.knowledge .cap-current { color: var(--zelda-gold-dark); }
.cap-card.memory .cap-current { color: var(--sheikah-orange); }

.cap-change {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.cap-change.positive {
    background: rgba(93, 138, 74, 0.2);
    color: var(--zelda-green);
}

.cap-change.neutral {
    background: rgba(107, 83, 68, 0.1);
    color: var(--zelda-brown);
    opacity: 0.6;
}

/* ==================== 趋势图表 ==================== */
.trend-chart-wrap {
    padding: 20px;
    height: 250px;
}

/* ==================== 历史时间线 ==================== */
.reports-timeline {
    position: relative;
    padding-left: 30px;
}

.reports-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--sheikah-blue), var(--zelda-gold), var(--sheikah-orange));
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--sheikah-blue);
    border: 2px solid var(--zelda-cream);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--sheikah-blue);
}

.timeline-item:nth-child(even) .timeline-dot {
    background: var(--zelda-gold);
    box-shadow: 0 0 10px var(--zelda-gold);
}

.timeline-item:nth-child(3n) .timeline-dot {
    background: var(--sheikah-orange);
    box-shadow: 0 0 10px var(--sheikah-orange);
}

/* 报告卡片 - v4.0 精致羊皮纸风格 */
.report-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1px solid rgba(107, 83, 68, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.report-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-md), 0 0 16px rgba(0, 212, 255, 0.1);
    transform: translateX(4px);
}

.report-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(107, 83, 68, 0.12);
    background: rgba(107, 83, 68, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-date {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    color: var(--zelda-brown);
}

.report-day {
    padding: 4px 10px;
    background: rgba(107, 83, 68, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: var(--zelda-brown);
    margin-left: 10px;
}

.report-stats {
    display: flex;
    gap: 20px;
}

.report-stat {
    text-align: center;
}

.report-stat-num {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--sheikah-blue);
}

.report-stat-lbl {
    font-size: 9px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.report-body {
    padding: 15px 20px;
}

.report-caps {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.report-cap {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    text-align: center;
    flex: 1;
    border: 1px solid var(--zelda-brown);
}

.report-cap-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.report-cap.skill .report-cap-value { color: var(--sheikah-blue); }
.report-cap.knowledge .report-cap-value { color: var(--zelda-gold-dark); }
.report-cap.memory .report-cap-value { color: var(--sheikah-orange); }

.report-cap-change {
    font-size: 10px;
}

.report-cap-change.up { color: var(--zelda-green); }
.report-cap-change.down { color: var(--zelda-red); }
.report-cap-change.none { color: var(--zelda-brown); opacity: 0.5; }

.report-cap-label {
    font-size: 9px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.report-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.report-highlight-tag {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--sheikah-blue-dark);
    border-radius: 6px;
    font-size: 11px;
    color: var(--sheikah-blue);
}

.report-footer {
    padding: 12px 20px;
    background: rgba(107, 83, 68, 0.05);
    display: flex;
    justify-content: flex-end;
}

.view-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(145deg, var(--sheikah-blue-dark), var(--sheikah-blue));
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.25);
}

.view-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

/* ==================== 树状图系统 v4.0 ==================== */
.tree-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12), var(--shadow-glow-blue);
}

.tree-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0, 212, 255, 0.04);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    flex-wrap: wrap;
}

.tree-panel .panel-stats {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.tree-panel .panel-stats span {
    font-family: var(--font-mono);
    color: var(--sheikah-blue-light);
}

.tree-container {
    padding: 0;
    overflow-x: auto;
    position: relative;
    min-height: 200px;
    max-width: 100%;
}

.tree-graph {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    width: fit-content;
    min-width: 100%;
    padding: 20px 20px;
    gap: 20px;
}

.tree-graph.skill-tree-layered,
.tree-graph.memory-tree-layered {
    flex-direction: column;
    align-items: stretch;
}

/* 根节点 */
.tree-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.root-node {
    width: 80px;
    height: 80px;
    background: rgba(30, 35, 40, 0.9);
    border: 3px solid var(--sheikah-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s;
}

.root-node:hover {
    transform: scale(1.1);
    box-shadow: var(--sheikah-glow);
}

.root-node .node-icon { font-size: 28px; }
.root-node .node-level {
    position: absolute;
    bottom: -8px;
    background: var(--zelda-dark);
    border: 2px solid var(--sheikah-blue);
    border-radius: 10px;
    padding: 1px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--sheikah-blue-light);
}

.root-line {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--sheikah-blue) 0%, rgba(0, 212, 255, 0.3) 100%);
}

/* 分支容器 */
.branches {
    display: flex;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

.branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sheikah-blue-dark), transparent);
}

/* 分支 */
.branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

.branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--sheikah-blue-dark) 0%, currentColor 100%);
    transform: translateX(-50%);
}

.branch-leaf {
    padding-top: 40px;
}

/* 分类节点 - 支持展开折叠 */
.category-node {
    width: 70px;
    height: 70px;
    background: rgba(30, 35, 40, 0.9);
    border: 2px solid;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.category-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px currentColor;
}

/* 展开/折叠指示器 */
.category-node .toggle-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--zelda-dark);
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.branch.collapsed .toggle-indicator {
    transform: translateX(-50%) rotate(180deg);
}

.category-node .cat-icon { font-size: 24px; margin-bottom: 2px; }
.category-node .cat-name { font-size: 9px; color: var(--text-muted); text-align: center; max-width: 60px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-node .cat-level {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--zelda-dark);
    border: 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
}
.category-node .cat-count {
    position: absolute;
    bottom: -10px;
    background: rgba(0,0,0,0.8);
    border: 1px solid;
    border-radius: 8px;
    padding: 1px 6px;
    font-size: 9px;
}

/* 叶子节点容器 - 支持展开折叠动画 */
.leaves {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    max-width: 200px;
    position: relative;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.branch.collapsed .leaves {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.leaves::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, currentColor 0%, rgba(0, 212, 255, 0.2) 100%);
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.branch.collapsed .leaves::before {
    opacity: 0;
}

/* 叶子节点 */
.leaf-node {
    width: 50px;
    height: 50px;
    background: rgba(30, 35, 40, 0.9);
    border: 2px solid;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.leaf-node:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px currentColor;
    z-index: 10;
}

.leaf-node .leaf-icon { font-size: 18px; }
.leaf-node .leaf-name {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaf-node .leaf-level {
    position: absolute;
    bottom: -6px;
    background: var(--zelda-dark);
    border: 1px solid;
    border-radius: 6px;
    padding: 0 4px;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
}

/* 等级颜色 - 旷野之息风格：希卡橙(未完成)到希卡蓝(完成) */
.lv1 { --node-color: var(--sheikah-orange); }
.lv2 { --node-color: var(--sheikah-orange-light); }
.lv3 { --node-color: #4ecdc4; }
.lv4 { --node-color: var(--sheikah-blue); }
.lv5 { --node-color: var(--sheikah-blue-light); }

.skill-tree .branch { color: var(--sheikah-blue); }
.knowledge-tree .branch { color: var(--zelda-gold); }
.memory-tree .branch { color: var(--sheikah-orange); }

/* ============================================
   塞尔达风格三层/四层架构样式 v3.0
   水平展开布局 - 思维导图风格
   灵感来源：旷野之息希卡石板UI
   ============================================ */

/* 层级分支容器 - 水平布局 */
.layer-branches {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    align-items: flex-start;
    width: 100%;
}

.layer-branch.zelda-layer {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 280px;
    flex-shrink: 0;
    position: relative;
}

/* 层级头部 - 希卡石板风格 */
.layer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(30, 35, 40, 0.8) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    border: 2px solid var(--layer-color, var(--sheikah-blue));
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* 希卡科技发光边框效果 */
.layer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--layer-color, var(--sheikah-blue)) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.layer-header:hover {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(40, 45, 50, 0.9) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    box-shadow: 
        0 0 15px color-mix(in srgb, var(--layer-color, var(--sheikah-blue)) 30%, transparent),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.layer-header:hover::before {
    opacity: 0.1;
}

/* 层级图标 */
.layer-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 4px var(--layer-color, var(--sheikah-blue)));
}

/* 层级名称 */
.layer-name {
    font-family: var(--font-chinese), var(--font-main);
    font-size: 0.95em;
    font-weight: 600;
    color: var(--layer-color, var(--sheikah-blue));
    text-shadow: 0 0 8px color-mix(in srgb, var(--layer-color, var(--sheikah-blue)) 50%, transparent);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* 层级计数徽章 */
.layer-count {
    margin-left: auto;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--layer-color, var(--sheikah-blue)) 20%, transparent);
    border: 1px solid var(--layer-color, var(--sheikah-blue));
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 600;
    color: var(--layer-color, var(--sheikah-blue));
}

/* 展开/折叠指示器 */
.layer-toggle {
    font-size: 0.65em;
    color: var(--layer-color, var(--sheikah-blue));
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.layer-branch.collapsed .layer-toggle {
    transform: rotate(-90deg);
}

.layer-header:hover .layer-toggle {
    opacity: 1;
}

/* 子节点容器 - 垂直排列 */
.layer-children {
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid color-mix(in srgb, var(--layer-color, var(--sheikah-blue)) 30%, transparent);
    transition: all var(--transition-normal);
    max-height: 2000px;
    overflow: visible;
}

.layer-branch.collapsed .layer-children {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

/* 子分类分支 - 塞尔达风格 */
.layer-children .branch {
    margin-bottom: 8px;
}

.layer-children .category-node {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(20, 25, 30, 0.6) 100%);
    border-radius: 6px;
    transition: all var(--transition-fast);
    padding: 6px 10px;
    font-size: 0.9em;
}

.layer-children .category-node:hover {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(30, 35, 40, 0.7) 100%);
    box-shadow: 0 0 10px color-mix(in srgb, currentColor 25%, transparent);
}

/* 叶子节点优化 - 紧凑布局 */
.layer-children .leaves {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.layer-children .leaf-node {
    background: rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
    padding: 3px 8px;
    font-size: 0.8em;
}

.layer-children .leaf-node:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px color-mix(in srgb, currentColor 30%, transparent);
    transform: scale(1.05);
}

/* 记忆树特殊样式 */
.memory-tree-layered .layer-header {
    border-color: var(--layer-color, var(--sheikah-orange));
}

.memory-tree-layered .layer-icon {
    filter: drop-shadow(0 0 4px var(--layer-color, var(--sheikah-orange)));
}

/* 技能树特殊样式 */
.skill-tree-layered .layer-header {
    border-color: var(--layer-color, var(--sheikah-blue));
}

/* 水平滚动条样式 */
.layer-branches::-webkit-scrollbar {
    height: 6px;
}

.layer-branches::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.layer-branches::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--sheikah-blue) 50%, transparent);
    border-radius: 3px;
}

.layer-branches::-webkit-scrollbar-thumb:hover {
    background: var(--sheikah-blue);
}

/* 响应式调整 - 只在非常小的屏幕才垂直 */
@media (max-width: 480px) {
    .layer-branches {
        flex-direction: column !important;
        overflow-x: visible;
    }
    
    .layer-branch.zelda-layer {
        min-width: 100%;
        max-width: 100%;
    }
    
    .layer-header {
        padding: 8px 10px;
    }
    
    .layer-name {
        font-size: 0.9em;
    }
    
    .layer-children {
        padding-left: 10px;
    }
}

/* 树形控件按钮 */
.tree-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 8px;
}

.tree-btn {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--sheikah-blue);
    border-radius: 4px;
    color: var(--sheikah-blue);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tree-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* 技能详情面板 - 毛玻璃 */
.skill-detail-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-lg);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-xl), 0 0 32px rgba(0, 212, 255, 0.15);
}

.skill-detail-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.skill-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.skill-panel-icon {
    font-size: 24px;
}

.skill-panel-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--sheikah-blue);
}

.skill-panel-level {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 212, 255, 0.2);
    color: var(--sheikah-blue);
}

.skill-panel-close {
    background: none;
    border: none;
    color: var(--sheikah-blue);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.skill-panel-close:hover {
    opacity: 1;
}

.skill-panel-body {
    padding: 16px;
}

.skill-panel-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.skill-panel-row:last-child {
    margin-bottom: 0;
}

.skill-panel-label {
    font-size: 11px;
    color: #6e7781;
    text-transform: uppercase;
}

.skill-panel-value {
    font-size: 13px;
    color: #e8dcc4;
    line-height: 1.5;
}

/* ==================== 技能树 ==================== */
.skill-category-tabs, .project-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cat-tab {
    padding: 8px 16px;
    background: rgba(238, 228, 208, 0.85);
    border: 1px solid rgba(107, 83, 68, 0.2);
    border-radius: var(--radius-xl);
    color: var(--zelda-brown);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-tab:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--sheikah-blue);
    background: rgba(0, 212, 255, 0.06);
}

.cat-tab.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--sheikah-blue);
    box-shadow: var(--sheikah-glow-subtle);
}

.cat-count {
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.skill-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1.5px solid rgba(107, 83, 68, 0.18);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-md), 0 0 16px rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.skill-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--sheikah-blue-dark);
}

.skill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zelda-brown);
    flex: 1;
}

.skill-level {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--sheikah-blue);
    letter-spacing: 0.5px;
}

.skill-desc {
    font-size: 11px;
    color: var(--zelda-brown);
    opacity: 0.8;
    line-height: 1.5;
}

.skill-source {
    font-size: 10px;
    color: var(--zelda-brown);
    opacity: 0.6;
    margin-top: 8px;
}

/* 知识库 */
.knowledge-section, .memory-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--zelda-brown);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.knowledge-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1.5px solid rgba(107, 83, 68, 0.18);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.knowledge-card:hover {
    border-color: rgba(212, 168, 42, 0.5);
    box-shadow: var(--shadow-md), 0 0 16px rgba(212, 168, 42, 0.1);
    transform: translateY(-2px);
}

.knowledge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.knowledge-icon {
    font-size: 18px;
}

.knowledge-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zelda-brown);
    flex: 1;
}

.knowledge-count {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-sm);
    color: var(--zelda-gold-dark);
}

.knowledge-desc {
    font-size: 10px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

/* 记忆库 */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.memory-card {
    background: linear-gradient(160deg, 
        rgba(238, 228, 208, 0.97) 0%,
        rgba(248, 238, 218, 0.94) 100%
    );
    border: 1.5px solid rgba(107, 83, 68, 0.18);
    border-left: 3px solid var(--sheikah-orange);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.memory-card:hover {
    border-color: rgba(255, 140, 66, 0.5);
    box-shadow: var(--shadow-md), 0 0 12px rgba(255, 140, 66, 0.1);
    transform: translateY(-2px);
}

.memory-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--sheikah-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.memory-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--zelda-brown);
    margin-bottom: 6px;
}

.memory-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.memory-keyword {
    padding: 2px 6px;
    background: rgba(255, 140, 66, 0.15);
    border-radius: 3px;
    font-size: 9px;
    color: var(--sheikah-orange);
}

/* ==================== 项目作品 - 羊皮纸风格 ==================== */
.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(232, 220, 196, 0.95) 0%,
        rgba(245, 230, 200, 0.9) 100%
    );
    border: 2px solid var(--zelda-brown);
    border-radius: var(--radius-md);
}

.p-stat {
    text-align: center;
    flex: 1;
}

.p-stat-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--sheikah-blue);
}

.p-stat-value.green { color: var(--zelda-green); }
.p-stat-value.orange { color: var(--sheikah-orange); }
.p-stat-value.gray { color: var(--zelda-brown); opacity: 0.6; }

.p-stat-label {
    font-size: 11px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: linear-gradient(135deg, 
        rgba(232, 220, 196, 0.95) 0%,
        rgba(245, 230, 200, 0.9) 100%
    );
    border: 2px solid var(--zelda-brown);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--sheikah-blue);
    box-shadow: var(--sheikah-glow);
    transform: translateY(-3px);
}

.project-header {
    padding: 20px;
    border-bottom: 1px solid var(--zelda-brown);
    background: rgba(107, 83, 68, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--sheikah-blue-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.project-title-area {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    color: var(--zelda-brown);
    margin-bottom: 2px;
}

.project-subtitle {
    font-size: 11px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.project-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.status-deployed {
    background: rgba(0, 212, 255, 0.15);
    color: var(--sheikah-blue);
    border: 1px solid var(--sheikah-blue);
}

.status-development {
    background: rgba(255, 140, 66, 0.15);
    color: var(--sheikah-orange);
    border: 1px solid var(--sheikah-orange);
}

.status-archived {
    background: rgba(107, 83, 68, 0.15);
    color: var(--zelda-brown);
    border: 1px solid var(--zelda-brown);
    opacity: 0.7;
}

.project-body {
    padding: 20px;
}

.project-section {
    margin-bottom: 12px;
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-section-label {
    font-size: 10px;
    color: var(--zelda-brown);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.project-section-content {
    font-size: 12px;
    color: var(--zelda-brown);
    line-height: 1.5;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-highlight {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--sheikah-blue-dark);
    border-radius: 6px;
    font-size: 10px;
    color: var(--sheikah-blue);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 3px 8px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--zelda-gold-dark);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--zelda-gold-dark);
}

.project-footer {
    padding: 15px 20px;
    background: rgba(107, 83, 68, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-date {
    font-size: 11px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--sheikah-blue-dark), var(--sheikah-blue));
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: var(--sheikah-glow);
}

.project-link.disabled {
    background: rgba(107, 83, 68, 0.2);
    color: var(--zelda-brown);
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 关于我 ==================== */
.about-content {
    display: grid;
    gap: 20px;
}

.about-card {
    background: linear-gradient(135deg, 
        rgba(232, 220, 196, 0.95) 0%,
        rgba(245, 230, 200, 0.9) 100%
    );
    border: 2px solid var(--zelda-brown);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(107, 83, 68, 0.08);
    border-bottom: 1px solid var(--zelda-brown);
}

.card-icon {
    font-size: 20px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 14px;
    color: var(--zelda-brown);
    letter-spacing: 1px;
}

.card-body {
    padding: 20px;
}

.intro-text {
    font-size: 14px;
    color: var(--zelda-brown);
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-text strong {
    color: var(--sheikah-blue);
}

.intro-list {
    list-style: none;
}

.intro-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--zelda-brown);
    font-size: 13px;
}

.intro-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sheikah-blue);
    font-weight: 600;
}

.intro-list li strong {
    color: var(--zelda-brown);
    font-weight: 700;
}

/* 任务项 */
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--zelda-brown);
}

.task-time {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--sheikah-blue-dark), var(--sheikah-blue));
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--zelda-brown);
    margin-bottom: 4px;
    font-size: 13px;
}

.task-desc {
    font-size: 12px;
    color: var(--zelda-brown);
    opacity: 0.8;
    line-height: 1.5;
}

/* 成就网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--zelda-gold-dark);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.achievement-item.unlocked {
    border-color: var(--zelda-gold);
}

.achievement-item.unlocked:hover {
    border-color: var(--zelda-gold);
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
}

.achievement-item.locked {
    opacity: 0.4;
    filter: grayscale(0.5);
}

.ach-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--zelda-gold-dark), var(--zelda-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ach-info {
    flex: 1;
    min-width: 0;
}

.ach-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--zelda-brown);
}

.ach-desc {
    font-size: 10px;
    color: var(--zelda-brown);
    opacity: 0.7;
}

.ach-date {
    font-size: 9px;
    color: var(--zelda-gold-dark);
    margin-top: 2px;
}

/* 配置表格 */
.config-table {
    width: 100%;
    border-collapse: collapse;
}

.config-table th,
.config-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--zelda-brown);
}

.config-table th {
    width: 150px;
    font-weight: 600;
    color: var(--zelda-brown);
    font-size: 12px;
    background: rgba(107, 83, 68, 0.05);
}

.config-table td {
    color: var(--zelda-brown);
    font-size: 13px;
}

.config-table tr:last-child th,
.config-table tr:last-child td {
    border-bottom: none;
}

/* ==================== Tooltip - 希卡石板风格 ==================== */
.tooltip {
    position: fixed;
    z-index: 9999;
    width: 280px;
    background: linear-gradient(135deg, 
        rgba(30, 35, 40, 0.98) 0%, 
        rgba(40, 45, 55, 0.95) 100%
    );
    border: 2px solid var(--sheikah-blue);
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
    box-shadow: var(--sheikah-glow), 0 10px 40px rgba(0, 0, 0, 0.6);
}

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

.tip-header {
    padding: 12px;
    border-bottom: 1px solid var(--sheikah-blue-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
}

.tip-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tip-title {
    flex: 1;
}

.tip-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.tip-type {
    font-size: 10px;
    color: var(--text-muted);
}

.tip-type-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tip-source-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
/* 林克定制 - 紫色调 */
.tip-source-badge[data-type="link"] {
    background: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.4);
}
/* 快手定制 - 橙色调 */
.tip-source-badge[data-type="ks"] {
    background: rgba(251, 146, 60, 0.25);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.4);
}
/* 个人定制 - 绿色调 */
.tip-source-badge[data-type="sl"] {
    background: rgba(74, 222, 128, 0.25);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.4);
}
/* 通用 - 蓝灰色调 */
.tip-source-badge[data-type="generic"] {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
/* 兼容旧类型 */
.tip-source-badge[data-type="builtin"] {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.3);
}
.tip-source-badge[data-type="custom"] {
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.tip-source-badge[data-type="platform"] {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.tip-source-badge[data-type="other"] {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.tip-level {
    text-align: right;
}

.tip-lv-num {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--sheikah-blue-light);
}

.tip-lv-max {
    font-size: 10px;
    color: var(--text-muted);
}

.tip-body {
    padding: 12px;
}

.tip-metrics-section { margin-bottom: 10px !important; }
.tip-metrics-row {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(200, 220, 240, 0.08);
}
.tip-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-right: 1px solid rgba(200, 220, 240, 0.08);
}
.tip-metric:last-child { border-right: none; }
.tip-metric-val {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--sheikah-blue-light);
}
.tip-metric-label {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.tip-section {
    margin-bottom: 10px;
}

.tip-section:last-child {
    margin-bottom: 0;
}

.tip-section-title {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sheikah-blue-light);
    margin-bottom: 4px;
}

.tip-desc {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
}

.tip-source {
    font-size: 11px;
    color: var(--sheikah-blue-light);
    font-weight: 500;
}

.tip-upgrade {
    font-size: 11px;
    color: var(--zelda-gold-light);
    line-height: 1.5;
    background: rgba(201, 162, 39, 0.15);
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--zelda-gold);
}

.tip-progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0;
}

.tip-progress-fill {
    height: 100%;
    background: var(--sheikah-blue);
    border-radius: 3px;
}

.tip-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
}

/* ==================== Loading 动画 - 神庙传送风格 ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--zelda-brown);
    gap: 15px;
}

.loading::before {
    content: '🔮';
    font-size: 32px;
    animation: shrine-spin 2s linear infinite;
}

.loading::after {
    content: '加载中...';
    font-size: 12px;
    color: var(--sheikah-blue);
    letter-spacing: 2px;
}

@keyframes shrine-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ==================== 三角力装饰 ==================== */
.triforce-decoration {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.triforce {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--zelda-gold);
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.6));
    animation: triforce-glow 3s ease-in-out infinite;
}

.triforce:nth-child(2) { animation-delay: 0.3s; }
.triforce:nth-child(3) { animation-delay: 0.6s; }

@keyframes triforce-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.4)); }
    50% { filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.8)); }
}

/* ==================== v4.0 Scroll Reveal ==================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 错开延迟 */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==================== v5.0 补全hover反馈 ==================== */
/* 统一hover风格：上浮 + 边框微发光 + 阴影加深 */
.report-highlight-tag:hover,
.tech-tag:hover,
.about-card:hover,
.report-day:hover,
.task-item:hover,
.example-card:hover,
.howto-channel:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.12);
}

.report-highlight-tag,
.tech-tag,
.about-card,
.report-day,
.task-item,
.example-card,
.howto-channel {
    transition: all var(--transition-normal);
}

/* ==================== v4.0 鼠标跟随光效 ==================== */
/* 使用 ::after 伪元素实现，避免覆盖卡片自身 background */
.stat-item,
.overview-card,
.cap-card,
.value-card,
.highlight-card,
.work-card-mini {
    position: relative;
}

.mouse-glow-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 120px at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(0, 212, 255, 0.06),
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

/* ==================== v4.0 希卡之眼装饰 ==================== */
.sheikah-eye-svg {
    width: 36px;
    height: 36px;
    animation: eye-pulse 3s ease-in-out infinite;
}

@keyframes eye-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3)); opacity: 0.7; }
    50% { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6)); opacity: 1; }
}

/* ==================== v4.0 希卡分割线 ==================== */
.sheikah-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0;
    gap: 10px;
}

/* 侧边栏内分割线更紧凑 */
.sidebar .sheikah-divider {
    margin: 8px 0;
}

/* ==================== v5.0 统计值稀有度着色 ==================== */
.sidebar .stat-value.rarity-legendary {
    color: var(--zelda-gold, #ffd700);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.sidebar .stat-value.rarity-epic {
    color: #c4b5fd;
    text-shadow: 0 0 8px rgba(196, 181, 253, 0.3);
}
.sidebar .stat-value.rarity-rare {
    color: var(--sheikah-blue-light, #7dd3fc);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}
.sidebar .stat-value.rarity-common {
    color: #86efac;
    text-shadow: 0 0 6px rgba(134, 239, 172, 0.2);
}

.sheikah-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.3) 30%,
        rgba(0, 212, 255, 0.3) 70%,
        transparent
    );
}

.sheikah-divider .diamond {
    width: 8px;
    height: 8px;
    background: var(--sheikah-blue);
    transform: rotate(45deg);
    opacity: 0.5;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .daily-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capability-changes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: -300px;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
    
    .top-nav {
        overflow-x: auto;
    }
    
    .nav-text {
        display: none;
    }
    
    .daily-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* v4.0 移动端性能优化：隐藏高开销背景层 */
    .topographic-layer {
        display: none;
    }
    
    .cloud-layer {
        animation: none;
    }
    
    .landscape-layer {
        height: 20vh;
    }
    
    /* 希卡分割线在移动端稍微收窄 */
    .sheikah-divider {
        margin: 18px 0;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        width: 40px;
        height: 40px;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid var(--sheikah-blue);
        border-radius: var(--radius-sm);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 600px) {
    .daily-overview {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        flex-wrap: wrap;
    }
    
    .p-stat {
        flex: 1 1 45%;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* ==================== 汉堡菜单按钮（默认隐藏） ==================== */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }
}
