/* ===== 全局 CSS 变量（Linear Aesthetic 暗色精密主题） ===== */
        :root {
            /* [兼容] 流式根字号：屏越宽字越大，限制在 14px~18px 之间，避免不同设备默认 16px 漂移 */
            font-size: clamp(14px, 0.6vw + 11px, 18px);
            --font: "Inter", "Geist Sans", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei UI", sans-serif;
            --canvas: #CFE5EB;
            --glass-bg: rgba(255, 255, 255, 0.045);
            --glass-border: rgba(255, 255, 255, 0.08);
            --text-primary: #EDEDEF;
            --text-secondary: #8A8F98;
            --accent: #6366F1;
            --accent-glow: #A855F7;
            --accent-weak: rgba(99, 102, 241, 0.18);
        }

        /* 使用 border-box 盒模型，便于布局计算 */
        * {
            box-sizing: border-box
        }

        /* 页面主体：近黑底色 + Inter/Geist 字体系列 */
        body {
            margin: 0;
            font-family: var(--font);
            background: var(--canvas);
            color: var(--text-primary);
            letter-spacing: -0.01em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            padding-bottom: 40px;
            position: relative;
            overflow-x: hidden;
        }

        /* ===== 暗色叠加层 + 靛蓝/紫色多色环境光晕 ===== */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 90% 65% at 15% 15%, rgba(99, 102, 241, 0.10) 0%, transparent 55%),
                radial-gradient(ellipse 70% 85% at 85% 20%, rgba(168, 85, 247, 0.07) 0%, transparent 55%),
                radial-gradient(ellipse 80% 60% at 50% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
                var(--canvas);
            pointer-events: none;
            z-index: -2;
        }

        /* 极细科技网格层：中心清晰 → 四周淡出，营造精密感 */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: 44px 44px;
            -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
            pointer-events: none;
            z-index: -2;
        }

        /* ===== 极光光晕层：静态模糊色块（去除动画降低GPU开销） ===== */
        .bg-aurora {
            position: fixed;
            inset: -20%;
            pointer-events: none;
            z-index: -2;
            filter: blur(40px);
            opacity: 0.45;
            background:
                radial-gradient(42% 38% at 30% 34%, rgba(99, 102, 241, 0.20) 0%, transparent 70%),
                radial-gradient(38% 42% at 72% 26%, rgba(168, 85, 247, 0.16) 0%, transparent 70%),
                radial-gradient(45% 40% at 62% 82%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

        /* ===== 背景粒子层：轻量 Canvas 星尘 ===== */
        .bg-particles {
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
        }

        /* ===== 顶部导航（透明 + 胶囊式 TAB + 1px 白线分隔 + 粘性） ===== */
        .site-header {
            width: 100%;
            background: transparent;
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            margin: 0;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 0;
        }

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

        .brand {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text-primary);
            text-decoration: none;
            letter-spacing: -0.02em;
            transition: color 150ms ease;
        }

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

        /* 胶囊式 TAB 容器：外围 1px 白线包裹 */
        .nav-links {
            display: flex;
            gap: 2px;
            align-items: center;
            flex-wrap: wrap;
            padding: 4px;
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .nav-links .nav-item {
            position: relative;
        }

        /* 未选中态：置灰、缩小、变细 */
        .nav-link {
            position: relative;
            color: rgba(255, 255, 255, 0.55);
            text-decoration: none;
            padding: 6px 16px;
            transition: color 200ms ease, background 200ms ease, transform 200ms ease, font-size 200ms ease;
            font-weight: 400;
            font-size: 0.88rem;
            display: inline-block;
            cursor: pointer;
            letter-spacing: -0.01em;
            border-radius: 999px;
            white-space: nowrap;
        }

        .nav-link:hover {
            color: rgba(255, 255, 255, 0.92);
            background: rgba(255, 255, 255, 0.1);
        }

        /* 选中态：放大、加粗、高亮反白 */
        .nav-link.active {
            color: #111111;
            background: #FFFFFF;
            font-weight: 700;
            font-size: 0.95rem;
            transform: scale(1.06);
            box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
        }

        /* 联系我下拉菜单：纯白背景 + 渐入渐出 */
        .nav-links .dropdown-menu {
            position: absolute;
            top: calc(100% + 0.5rem);
            left: 50%;
            min-width: 120px;
            margin: 0;
            padding: 0.4rem;
            list-style: none;
            background: #FFFFFF;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-6px);
            transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
            pointer-events: none;
            z-index: 30;
        }

        /* 由 JS 控制 .open 类触发，实现 hover 250ms 延迟收回 + click 锁定 */
        .nav-links .nav-item.open .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }

        .nav-links .dropdown-menu a {
            display: block;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            white-space: nowrap;
            color: #1D1D1F;
            font-size: 0.91rem;
            text-decoration: none;
            transition: background 150ms ease, color 150ms ease;
        }

        .nav-links .dropdown-menu a:hover,
        .nav-links .dropdown-menu a:focus {
            background: rgba(0, 0, 0, 0.05);
            color: #000000;
        }

        /* ===== 页面主体布局：CSS Grid 三栏 1:2:1 + 侧栏 sticky 跟随 ===== */
        .site-main {
            padding: 1.5rem;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            position: relative;
        }

        /* 大屏 (>1024px)：三列 1:2:1，gap 控制间距 */
        .site-main .layout {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 1.5rem;
            width: 100%;
            position: relative;
        }

        /* 左侧栏：sticky 跟随滚动 */
        .left-column {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            min-width: 0;
            position: sticky;
            top: 80px;
            z-index: 10;
        }

        /* 右侧栏：sticky 跟随滚动 */
        .right-column {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            min-width: 0;
            position: sticky;
            top: 80px;
            z-index: 10;
        }

        /* 中间内容栈：自适应填充 */
        .center-stack {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            min-width: 0;
            position: relative;
            z-index: 10;
        }

        /* ===== 个人资料卡片（Linear 微边框 + 微弱环境光） ===== */
        .profile-card {
            width: 100%;
            height: auto;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-primary);

            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
            position: relative;
            transition: border-color 220ms ease, box-shadow 220ms ease;
        }

        .profile-card:hover {
            border-color: rgba(255, 255, 255, 0.14);
            box-shadow: 0 0 48px rgba(99, 102, 241, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
        }

        /* 个人介绍卡片 */
        .middle-card {
            width: 100%;
            height: 200px;
            min-width: 0;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-align: left;
            font-family: var(--font);
            font-size: 1.05rem;
            position: relative;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
            transition: border-color 220ms ease;
        }

        .middle-card:hover {
            border-color: rgba(255, 255, 255, 0.14);
        }

        .photo-wall-card {
            width: 100%;
            background: transparent;
            border: none;
            border-radius: 16px;
            padding: 24px 24px 28px;
            box-shadow: none;
            position: relative;
            overflow: visible;
        }

        .photo-wall-rope {
            position: absolute;
            top: 30px;
            left: -18px;
            right: -18px;
            height: 160px;
            pointer-events: none;
            z-index: 1;
        }

        .photo-wall-frame {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 44px;
        }

        .photo-wall-item {
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.55);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
            background: transparent;
            min-height: 120px;
            transform: rotate(-2deg);
            transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
        }

        .photo-wall-item:nth-child(2n) {
            transform: rotate(2deg);
        }

        .photo-wall-item:hover {
            transform: rotate(0deg) scale(1.03);
            border-color: rgba(168, 133, 247, 0.45);
            box-shadow: 0 6px 24px rgba(99, 102, 241, 0.14);
        }

        .photo-wall-item img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .calendar-panel {
            width: 100%;
            height: auto;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 16px;
            color: var(--text-primary);
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
        }

        .calendar-panel h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .calendar-panel .month-year {
            margin: 0.2rem 0 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .calendar-panel .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
        }

        .calendar-panel .calendar-actions {
            display: flex;
            gap: 0.4rem;
        }

        .calendar-panel .calendar-actions button {
            width: 34px;
            height: 26px;
            border: none;
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 150ms ease, color 150ms ease;
        }

        .calendar-panel .calendar-actions button:hover {
            background: rgba(255, 255, 255, 0.12);
            color: var(--text-primary);
        }

        .calendar-panel .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 4px;
        }

        .calendar-panel .calendar-day-name {
            text-align: center;
            font-size: 0.72rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 6px 0 4px;
        }

        .calendar-panel .calendar-day {
            min-height: 30px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding: 5px;
            color: var(--text-primary);
            position: relative;
            transition: background 150ms ease;
            cursor: pointer;
        }

        .calendar-panel .calendar-day:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .calendar-panel .calendar-day--today {
            background: rgba(99, 102, 241, 0.18);
            border: 1px solid rgba(99, 102, 241, 0.35);
            box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
        }

        .calendar-panel .calendar-day--outside {
            color: rgba(237, 237, 239, 0.3);
        }

        .calendar-panel .calendar-day span {
            display: block;
            font-size: 0.74rem;
            font-weight: 600;
            line-height: 1;
        }

        .calendar-panel .calendar-day .schedule-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
        }

        .calendar-panel .schedule-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 6px rgba(99, 102, 241, 0.55);
        }

        /* ===== 响应式布局：两档断点（桌面端优先） ===== */
        /* [兼容] 超宽屏 (≥1600px)：内容封顶 1400px 居中，避免 2K/4K 拉得过宽 */
        @media (min-width:1600px) {
            .site-main {
                max-width: 1400px;
                padding: 2rem;
            }
        }

        /* 中屏 (768px–1024px)：两列，左+中并排，右栏跨整行移至下方 */
        @media (max-width:1024px) {
            .site-main {
                max-width: 1000px;
            }

            .site-main .layout {
                grid-template-columns: 1fr 1fr;
            }

            .left-column {
                position: sticky;
                top: 80px;
            }

            .center-stack {
                grid-column: 2;
            }

            .right-column {
                grid-column: 1 / -1;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 1rem;
                position: static;
            }

            .right-column .calendar-panel,
            .right-column .schedule-card {
                flex: 1 1 320px;
                min-width: 0;
            }
        }

        /* 小屏 (<768px)：单列堆叠，顺序：个人信息 → 图片 → 日历 */
        @media (max-width:768px) {
            .site-main {
                max-width: 100%;
                padding: 1rem;
            }

            .site-main .layout {
                grid-template-columns: 1fr;
                gap: 1.25rem;
            }

            .left-column,
            .right-column,
            .center-stack {
                position: static;
                grid-column: auto;
            }

            .right-column {
                flex-direction: column;
            }

            .right-column .calendar-panel,
            .right-column .schedule-card {
                flex: 0 0 auto;
                min-width: 0;
            }

            .middle-card {
                height: auto;
                min-height: 160px;
                padding: 20px;
            }
        }

        /* [兼容] 小平板/大手机 (≤600px)：在 768 与 480 之间补一档，防卡片过宽 */
        @media (max-width:600px) {
            .site-main {
                padding: 1rem 0.75rem;
            }
            .site-main .layout {
                gap: 1rem;
            }
            .profile-card .avatar {
                width: 96px;
                height: 96px;
            }
        }

        /* 极窄屏 (≤480px)：进一步紧凑化 */
        @media (max-width:480px) {
            .site-header .container {
                padding: 0.6rem 0.75rem;
            }

            .nav-links {
                gap: 0.25rem;
            }

            .nav-link {
                padding: 5px 9px;
                font-size: 0.85rem;
            }

            /* [兼容] 安全区：iPhone 底部 home indicator 不遮挡 */
            body {
                padding-bottom: env(safe-area-inset-bottom, 0px);
            }
        }

        /* ===== 个人资料卡片细节 ===== */
        .profile-card .avatar {
            /* [兼容] 头像流式尺寸：小屏 88px → 大屏 128px */
            width: clamp(88px, 8vw + 40px, 128px);
            height: clamp(88px, 8vw + 40px, 128px);
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 2px solid rgba(255, 255, 255, 0.12);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.04));
        }

        .profile-card h2 {
            margin: 0 0 0.25rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .profile-card p {
            color: var(--text-secondary);
            line-height: 1.55;
            text-align: center;
            font-size: 0.93rem;
        }

        /* ===== 项目卡片（Linear 微光扫过效果） ===== */
        .project-card {
            width: 100%;
            /* [兼容] 卡片宽度流式：小屏 280px → 大屏 400px */
            max-width: clamp(280px, 30vw + 100px, 400px);
            /* [兼容] 卡片高度流式：小屏 84px → 大屏 110px */
            height: clamp(84px, 4vw + 60px, 110px);
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text-primary);
            text-decoration: none;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
            transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.025) 50%, transparent 70%);
            transform: translateX(-100%);
            transition: transform 500ms ease;
        }

        .project-card:hover::before {
            transform: translateX(100%);
        }

        .project-card:hover {
            transform: translateY(-2px);
            border-color: rgba(99, 102, 241, 0.25);
            box-shadow: 0 0 32px rgba(99, 102, 241, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35);
        }

        .project-card .project-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.5rem;
        }

        .project-card h3 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .project-card p {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.55;
            font-size: 0.91rem;
        }

        .project-jt {
            margin: 0;
            font-size: 17px;
        }

        /* ===== 今日日程卡片 ===== */
        .schedule-card {
            width: 100%;
            min-height: 160px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--text-primary);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
        }

        .schedule-card h3 {
            margin: 0 0 0.6rem;
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }

        .schedule-card-body {
            max-width: 420px;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            justify-content: center;
            align-items: center;
        }

        .schedule-card-body p {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.55;
            font-size: 0.91rem;
        }

        /* [兼容] 触屏设备：关闭 hover 粘滞效果，避免点击后高亮卡住 */
        @media (hover: none) and (pointer: coarse) {
            .nav-link:hover,
            .project-card:hover,
            .middle-card:hover {
                transform: none;
            }
            .nav-link:hover::after {
                width: 0;
            }
        }

        /* [兼容] 图片防溢出兜底：任何 img 不超出容器 */
        img {
            max-width: 100%;
            height: auto;
        }