        /* ==================== 1. 全局基础与暗夜主题样式 ==================== */
        html { scrollbar-gutter: stable; }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
        body {
            background-color: #121212; /* 深黑基底，避开 #000000 */
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: rgba(255, 255, 255, 0.87); /* 降低透明度至 87% 的纯白，防眩光 */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 0;
        }
        body.has-navbar {
            justify-content: flex-start;
        }
        .hidden { display: none !important; }

        /* 语言切换按钮组件 */
        .lang-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.87);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            outline: none;
        }
        .lang-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: #0a84ff;
            color: #0a84ff;
        }

        /* ==================== 2. 暗色顶部导航栏 ==================== */
        .top-navbar {
            position: fixed; top: 0; left: 0; width: 100%; height: 64px;
            background: rgba(30, 30, 30, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: center; align-items: center;
            z-index: 1000; transform: translateY(-100%); opacity: 0; pointer-events: none;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .top-navbar.nav-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
        .nav-container { width: 100%; max-width: 1200px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
        .nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
        .brand-avatar { width: 28px; height: 28px; background: #2c2c2e; color: rgba(255, 255, 255, 0.87); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
        .brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: rgba(255, 255, 255, 0.87); }
        .nav-right-group { display: flex; align-items: center; gap: 24px; }
        .nav-links { display: flex; gap: 24px; }
        .nav-link { font-size: 14px; color: #8E8E93; text-decoration: none; font-weight: 500; cursor: pointer; padding: 4px 0; transition: color 0.2s ease; background: none; border: 0; font-family: inherit; white-space: nowrap; }
        .nav-link:hover, .nav-link.active { color: #0a84ff; }

        /* ==================== 3. 视图 1：个人主页菜单卡片 ==================== */
        .profile-card {
            position: relative;
            background: #1E1E1E; /* 浅黑卡片基底 */
            width: calc(100% - 40px); max-width: 420px;
            padding: 40px 32px; border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); text-align: center;
            animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            margin: 40px 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .profile-lang-switcher {
            position: absolute;
            top: 20px;
            right: 20px;
        }
        .avatar-placeholder { width: 80px; height: 80px; background: #2c2c2e; color: rgba(255, 255, 255, 0.87); font-size: 32px; font-weight: 600; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 24px auto; }
        .name { font-size: 24px; font-weight: 600; margin-bottom: 8px; color: rgba(255, 255, 255, 0.87); }
        .bio { font-size: 15px; color: #8E8E93; margin-bottom: 36px; }
        .links-container { display: flex; flex-direction: column; gap: 14px; }
        .link-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px; background: #2c2c2e; border: 1px solid transparent; border-radius: 14px; text-decoration: none; color: rgba(255, 255, 255, 0.87); font-size: 15px; font-weight: 500; font-family: inherit; transition: all 0.2s ease; cursor: pointer; }
        .link-item:hover { background: #3a3a3c; border-color: rgba(255, 255, 255, 0.15); transform: scale(1.01); }
        .link-left { display: flex; align-items: center; gap: 12px; }
        .link-left i { font-size: 20px; color: #8E8E93; }
        .arrow-icon { font-size: 16px; color: #8E8E93; transition: transform 0.2s ease; }
        .link-item:hover .arrow-icon { transform: translateX(3px); color: #0a84ff; }

        /* ==================== 4. 视图 2：项目橱窗 ==================== */
        .projects-split-container {
            display: flex;
            width: 100%; max-width: 1160px;
            padding: 0 20px; gap: 24px;
            animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            margin-top: 104px; margin-bottom: 50px;
            align-items: flex-start;
        }

        .projects-sidebar {
            flex: 0 0 288px;
            background: #1E1E1E;
            padding: 20px;
            border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            gap: 14px;
            max-height: calc(100vh - 150px);
            overflow-y: auto;
        }

        .projects-sidebar .card-header {
            display: flex;
            align-items: center;
            position: relative;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .projects-sidebar .back-btn {
            position: absolute; left: 0; color: #8E8E93; font-size: 24px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; line-height: 1;
        }
        .projects-sidebar .back-btn:hover { color: rgba(255, 255, 255, 0.87); }
        .projects-sidebar .page-title { font-size: 20px; font-weight: 600; width: 100%; text-align: center; color: rgba(255, 255, 255, 0.87); }

        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .project-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 14px;
            background: #2c2c2e;
            border: 1px solid transparent;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            color: inherit;
            font-family: inherit;
        }

        .project-item:hover {
            background: #3a3a3c;
            border-color: rgba(255, 255, 255, 0.15);
        }

        /* 选中态：左侧蓝色指示条 + 轻微蓝色投影，取代整块描边 */
        .project-item.active {
            background: #2c2c2e;
            border-color: rgba(10, 132, 255, 0.35);
            box-shadow: inset 3px 0 0 #0a84ff, 0 4px 12px rgba(10, 132, 255, 0.12);
        }

        /* 未上线项目：标题降权 + 右侧小圆点，与可用项目一眼区分 */
        .project-item.is-wip .project-item-title {
            color: rgba(255, 255, 255, 0.55);
        }

        .project-item.is-wip::after {
            content: "";
            width: 5px; height: 5px;
            border-radius: 50%;
            background: #8E8E93;
            margin-left: auto;
            flex-shrink: 0;
        }

        .project-item-icon {
            width: 38px;
            height: 38px;
            background: #3a3a3c;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: rgba(255, 255, 255, 0.87);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .project-item.active .project-item-icon {
            background: #0a84ff;
            color: #ffffff;
        }

        .project-item-title {
            font-size: 15px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.87);
        }

        .project-item.active .project-item-title {
            color: #0a84ff;
        }

        .projects-detail-panel {
            flex: 1;
            /* 允许作为 flex 子项收缩，防止源码预览等宽内容撑破布局 */
            min-width: 0;
            background: #1E1E1E;
            padding: 32px 36px;
            border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            min-height: 460px;
            max-height: calc(100vh - 150px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        /* 移动端详情屏返回按钮（桌面端隐藏） */
        .detail-back-btn {
            display: none;
            align-items: center;
            gap: 2px;
            background: none;
            border: 0;
            padding: 0 0 16px 0;
            color: #8E8E93;
            font-family: inherit;
            font-size: 13px;
            cursor: pointer;
            align-self: flex-start;
        }
        .detail-back-btn:hover { color: #0a84ff; }
        .detail-back-btn i { font-size: 18px; }

        .detail-header-group {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .detail-large-icon {
            width: 56px;
            height: 56px;
            background: #2c2c2e;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: rgba(255, 255, 255, 0.87);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            flex-shrink: 0;
        }

        .detail-title {
            font-size: 24px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.87);
            letter-spacing: -0.4px;
            flex-shrink: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ==================== 项目预览切换器（轮播导航） ==================== */
        .detail-switcher {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }

        .detail-nav-btn {
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #2c2c2e;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 20px;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
        }

        .detail-nav-btn:hover {
            background: #3a3a3c;
            color: rgba(255, 255, 255, 0.92);
        }

        .detail-nav-btn:active { transform: scale(0.92); }

        .detail-counter {
            font-size: 12px;
            font-weight: 600;
            color: #8E8E93;
            min-width: 52px;
            text-align: center;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.5px;
            user-select: none;
        }

        /* 切换过渡动画：内容区按方向滑入 */
        .detail-content {
            will-change: transform, opacity;
            /* 允许 flex 子项收缩，防止代码区 min-width:auto 撑破容器 */
            min-width: 0;
            max-width: 100%;
        }

        @keyframes detailSlideFromRight {
            from { opacity: 0; transform: translateX(28px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        @keyframes detailSlideFromLeft {
            from { opacity: 0; transform: translateX(-28px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        .detail-content.slide-from-right {
            animation: detailSlideFromRight 0.28s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .detail-content.slide-from-left {
            animation: detailSlideFromLeft 0.28s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* ==================== 应用内嵌预览（CodeLeaf） ==================== */
        .app-embed-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        .app-embed-header .integrated-section-title { margin-bottom: 0; }

        .app-embed-open {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            background: #2c2c2e;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 9px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .app-embed-open:hover { color: #0a84ff; border-color: rgba(10, 132, 255, 0.4); background: rgba(10, 132, 255, 0.08); }

        .app-embed-wrap {
            position: relative;
            max-width: 100%;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: #1c1c1e;
        }

        /* 加载进度条：覆盖在应用区顶部，完成后淡出隐藏 */
        .code-progress {
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: rgba(255, 255, 255, 0.08);
            z-index: 2;
            transition: opacity 0.3s ease;
        }

        .code-progress-bar {
            height: 100%;
            width: 0%;
            background: #0a84ff;
            border-radius: 2px;
            transition: width 0.15s ease;
        }

        /* 不确定长度模式：来回滑动动画 */
        .code-progress.indeterminate .code-progress-bar {
            width: 40%;
            animation: progressSlide 1.1s ease-in-out infinite;
        }

        @keyframes progressSlide {
            0%   { margin-left: -40%; }
            100% { margin-left: 100%; }
        }

        /* 完成态：淡出后隐藏 */
        .code-progress.done { opacity: 0; }
        .code-progress.hidden { display: none; }

        /* "应用启动中"提示：下载完成后、iframe 渲染前显示 */
        .app-embed-status {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 14px;
            color: #8E8E93;
            background: #1c1c1e;
            z-index: 1;
            transition: opacity 0.3s ease;
        }

        .app-embed-status.hidden { display: none; }

        .app-embed-spinner {
            display: inline-block;
            animation: embedSpin 0.9s linear infinite;
        }

        @keyframes embedSpin { to { transform: rotate(360deg); } }

        .app-embed-frame {
            display: block;
            width: 100%;
            height: 640px;
            border: 0;
            background: #1c1c1e;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .app-embed-frame.ready { opacity: 1; }

        .app-embed-frame.failed { opacity: 1; height: 220px; }

        .detail-desc {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.75;
            max-width: 640px;
            margin-bottom: 26px;
        }

        .integrated-section {
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        .integrated-section-title {
            font-size: 13px;
            font-weight: 600;
            color: #8E8E93;
            letter-spacing: 0.3px;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* 子项固定两列网格，卡片等高、箭头固定列宽，避免长短标题造成的错位 */
        .integrated-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .integrated-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            min-height: 72px;
            background: #2c2c2e;
            border: 1px solid transparent;
            border-radius: 14px;
            text-decoration: none;
            color: rgba(255, 255, 255, 0.87);
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
            cursor: pointer;
        }

        .integrated-card:hover {
            background: #3a3a3c;
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-1px);
        }

        .integrated-card-left {
            display: flex;
            align-items: center;
            gap: 12px;
            overflow: hidden;
        }

        .integrated-card-icon {
            font-size: 20px;
            color: #8E8E93;
            flex-shrink: 0;
            transition: color 0.2s ease;
        }

        .integrated-card:hover .integrated-card-icon {
            color: #0a84ff;
        }

        .integrated-card-info {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .integrated-card-title {
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .integrated-card-desc {
            font-size: 12px;
            color: #8E8E93;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .integrated-card-arrow {
            font-size: 16px;
            color: #8E8E93;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .integrated-card:hover .integrated-card-arrow {
            transform: translateX(3px);
            color: #0a84ff;
        }

        /* ==================== 5. 视图 3：博客文章双栏布局 ==================== */
        .blog-split-container {
            display: flex;
            width: 100%; max-width: 1140px;
            padding: 0 20px; gap: 28px;
            animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            margin-top: 104px; margin-bottom: 50px;
            align-items: flex-start;
        }
        @keyframes fadeIn { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: scale(1); } }
        .blog-sidebar { flex: 0 0 320px; background: #1E1E1E; padding: 24px; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 150px); overflow-y: auto; }
        .blog-sidebar-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: rgba(255, 255, 255, 0.87); padding-left: 4px; }
        .blog-sidebar-item { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 20px; background: #2c2c2e; border: 1px solid transparent; border-radius: 14px; cursor: pointer; transition: all 0.2s ease; text-align: left; font-family: inherit; }
        .blog-sidebar-item:hover { background: #3a3a3c; border-color: rgba(255, 255, 255, 0.15); }
        .blog-sidebar-item.active { background: #2c2c2e; border-color: #0a84ff; box-shadow: 0 4px 12px rgba(10, 132, 255, 0.15); }
        .blog-sidebar-item.active .sidebar-item-title { color: #0a84ff; }
        .sidebar-item-title { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.87); line-height: 1.4; }
        .sidebar-item-date { font-size: 12px; color: #8E8E93; }
        .sidebar-item-summary { font-size: 12px; color: #8E8E93; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

        .blog-preview-panel { flex: 1; background: #1E1E1E; padding: 40px; border-radius: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); min-height: 450px; display: flex; flex-direction: column; max-height: calc(100vh - 150px); overflow-y: auto; }
        .preview-title { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; color: rgba(255, 255, 255, 0.87); }
        .preview-meta { display: flex; gap: 16px; font-size: 13px; color: #8E8E93; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 16px; }
        .preview-meta-item { display: flex; align-items: center; gap: 4px; }

        .preview-body { font-size: 16px; color: rgba(255, 255, 255, 0.87); line-height: 1.7; flex: 1; }
        .preview-body p { margin-bottom: 16px; }
        .preview-body h1, .preview-body h2, .preview-body h3 { color: rgba(255, 255, 255, 0.87); margin: 28px 0 14px 0; font-weight: 600; }
        .preview-body h1 { font-size: 22px; }
        .preview-body h2 { font-size: 20px; }
        .preview-body h3 { font-size: 18px; }
        .preview-body ul, .preview-body ol { padding-left: 22px; margin-bottom: 18px; }
        .preview-body li { margin-bottom: 8px; }
        .preview-body code { background: #2c2c2e; padding: 3px 6px; border-radius: 6px; font-size: 14px; font-family: monospace; color: #e0e0e0; }
        .preview-body pre { background: #2c2c2e; padding: 16px; border-radius: 12px; overflow-x: auto; margin-bottom: 18px; }
        .preview-body pre code { background: transparent; padding: 0; font-size: 13px; }
        .preview-body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
        .preview-body blockquote { border-left: 4px solid #3a3a3c; padding-left: 16px; color: #8E8E93; font-style: italic; margin-bottom: 18px; }

        /* ==================== 6. 视图 4：关于我 (单页落地页样式) ==================== */
        .about-container {
            width: 100%;
            max-width: 1140px;
            padding: 0 20px;
            animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            margin-top: 104px;
            margin-bottom: 50px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* Hero 头部个人简介卡片（左右布局） */
        .about-hero {
            background: #1E1E1E;
            padding: 48px;
            border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 36px;
        }

        .about-hero-main {
            display: flex;
            align-items: center;
            gap: 36px;
            flex: 1;
        }

        .about-hero-avatar {
            width: 110px;
            height: 110px;
            background: #2c2c2e;
            color: rgba(255, 255, 255, 0.87);
            font-size: 44px;
            font-weight: 600;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        .about-hero-info {
            flex: 1;
        }

        .about-hero-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 6px;
            letter-spacing: -0.8px;
            color: rgba(255, 255, 255, 0.87);
        }

        .about-hero-subtitle {
            font-size: 16px;
            color: #0a84ff;
            font-weight: 600;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .about-hero-desc {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .about-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .about-tag {
            background: #2c2c2e;
            color: rgba(255, 255, 255, 0.87);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* 右侧社交/联系方式模块样式 */
        .about-hero-socials {
            flex-shrink: 0;
            width: 270px;
            padding-left: 32px;
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .socials-title {
            font-size: 13px;
            font-weight: 600;
            color: #8E8E93;
            letter-spacing: 0.5px;
            margin-bottom: 2px;
        }

        .socials-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .social-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            background: #2c2c2e;
            border: 1px solid transparent;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.87);
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .social-item:hover {
            background: #3a3a3c;
            border-color: rgba(255, 255, 255, 0.15);
            color: #0a84ff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: translateY(-1px);
        }

        .social-item i {
            font-size: 16px;
            color: #8E8E93;
            transition: color 0.2s ease;
        }

        .social-item:hover i {
            color: #0a84ff;
        }

        .about-grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        .about-card {
            background: #1E1E1E;
            padding: 36px;
            border-radius: 24px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
        }

        .about-card-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.87);
            letter-spacing: -0.3px;
        }

        .about-card-title i {
            font-size: 24px;
            color: #0a84ff;
        }

        .about-card-p {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.8;
            margin-bottom: 16px;
        }

        .about-card-p:last-child {
            margin-bottom: 0;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 12px;
            margin-top: 8px;
        }

        .skill-pill {
            background: #2c2c2e;
            padding: 12px 16px;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.87);
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s ease;
        }

        .skill-pill:hover {
            background: #3a3a3c;
        }

        .skill-pill i {
            font-size: 18px;
            color: #8E8E93;
        }

        /* 底部 CTA 容器与双按钮样式 */
        .cta-banner {
            background: #2c2c2e;
            color: rgba(255, 255, 255, 0.87);
            padding: 40px;
            border-radius: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            gap: 24px;
        }

        .cta-text h3 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 6px;
            color: rgba(255, 255, 255, 0.87);
        }

        .cta-text p {
            font-size: 14px;
            color: #8E8E93;
        }

        .cta-buttons {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .cta-button {
            background: #0a84ff;
            color: #ffffff;
            padding: 12px 24px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            border: none;
            outline: none;
            font-family: inherit;
        }

        .cta-button:hover {
            background: #0077ed;
            transform: scale(1.02);
        }

        /* 微信按钮专用调色 */
        .cta-button-wechat {
            background: #30d158;
            color: #000000;
        }

        .cta-button-wechat:hover {
            background: #28b84c;
            transform: scale(1.02);
        }

        /* ==================== 7. 全屏通栏级底栏 ==================== */
        .site-footer {
            width: 100%;
            background: transparent;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 30px 0;
            margin-top: auto;
            display: flex;
            justify-content: center;
            animation: fadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        }
        .footer-container {
            width: 100%;
            max-width: 1200px;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #8E8E93;
        }
        .footer-left { font-weight: 400; }
        .footer-right { display: flex; gap: 24px; }
        .footer-right a, .footer-right button { color: #8E8E93; text-decoration: none; transition: color 0.2s ease; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
        .footer-right a:hover, .footer-right button:hover { color: #0a84ff; }

        /* ==================== 8. 响应式布局 (移动端恢复极简平铺) ==================== */
        @media (max-width: 850px) {
            .projects-split-container {
                flex-direction: column;
                /* 覆盖桌面端 flex-start：列布局下按可用宽度拉伸，防止宽内容（源码预览）撑破 */
                align-items: stretch;
                background: #1E1E1E;
                width: calc(100% - 32px);
                max-width: 560px;
                padding: 24px 20px;
                border-radius: 24px;
                box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
                border: 1px solid rgba(255, 255, 255, 0.05);
                margin-top: 96px;
                margin-bottom: 40px;
                gap: 0;
            }
            .projects-sidebar {
                flex: none;
                width: 100%;
                padding: 0;
                background: transparent;
                box-shadow: none;
                border: none;
                max-height: none;
                overflow: visible;
            }
            .projects-sidebar .card-header { padding-bottom: 12px; }
            /* 移动端列表改为单列行式布局：图标 + 标题 + 状态点，最易点按 */
            .projects-list {
                display: flex;
                flex-direction: column;
                gap: 8px;
                margin-top: 14px;
            }
            .project-item {
                flex-direction: row;
                justify-content: flex-start;
                padding: 12px 14px;
                border-radius: 14px;
                gap: 12px;
                text-align: left;
            }
            .project-item-icon {
                width: 38px;
                height: 38px;
                border-radius: 10px;
                font-size: 19px;
                box-shadow: none;
            }
            .project-item-title { font-size: 14.5px; }
            .project-item.active {
                background: #2c2c2e;
                border-color: rgba(10, 132, 255, 0.35);
                box-shadow: inset 3px 0 0 #0a84ff;
            }
            .project-item.active .project-item-icon {
                background: #0a84ff;
                color: #ffffff;
            }
            .project-item.active .project-item-title {
                color: #0a84ff;
            }

            /* 移动端改为「列表 ⇄ 详情」两屏结构，详情不再被隐藏 */
            .projects-detail-panel {
                display: none;
                padding: 0;
                background: transparent;
                border: none;
                box-shadow: none;
                min-height: 0;
                max-height: none;
                overflow: visible;
            }
            .projects-split-container.show-detail .projects-sidebar { display: none; }
            .projects-split-container.show-detail .projects-detail-panel { display: flex; }
            .detail-back-btn { display: inline-flex; }
            .detail-header-group { gap: 12px; margin-bottom: 16px; padding-bottom: 16px; flex-wrap: nowrap; }
            .detail-large-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 22px; flex-shrink: 0; }
            .detail-title { font-size: 19px; }
            /* 切换器在窄屏下略微收紧，保持单行不换行 */
            .detail-switcher { gap: 0; margin-left: auto; }
            .detail-nav-btn { width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
            .detail-counter { min-width: 44px; font-size: 11px; }
            .detail-desc { font-size: 14.5px; margin-bottom: 20px; }
            /* 应用内嵌预览移动端适配 */
            .app-embed-header { flex-direction: column; align-items: flex-start; gap: 10px; }
            .app-embed-frame { height: 58vh; min-height: 420px; }
            .integrated-grid { grid-template-columns: 1fr; gap: 10px; }
            .integrated-card { min-height: 0; padding: 14px; }
            .integrated-card:hover { transform: none; box-shadow: none; }

            .blog-split-container { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 84px; }
            /* 移动端：文章列表改为横向滑动卡片，避免纵向堆叠拥挤 */
            .blog-sidebar { flex: none; max-height: none; overflow: visible; }
            #sidebar-list-container { display: flex; flex-direction: row; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
            .blog-sidebar-item { min-width: 230px; max-width: 230px; flex-shrink: 0; scroll-snap-align: start; }
            .blog-preview-panel { padding: 28px 24px; max-height: none; }
            .preview-title { font-size: 22px; }

            /* 关于我 响应式适配 */
            .about-hero { flex-direction: column; text-align: center; padding: 36px 24px; gap: 24px; }
            .about-hero-main { flex-direction: column; gap: 20px; width: 100%; }
            .about-hero-info { display: flex; flex-direction: column; align-items: center; }
            .about-hero-socials {
                width: 100%;
                padding-left: 0;
                border-left: none;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                padding-top: 24px;
            }
            .socials-grid { grid-template-columns: repeat(4, 1fr); }
            .about-tags { justify-content: center; }
            .about-grid-2 { grid-template-columns: 1fr; }
            .about-card { padding: 28px 24px; }
            .cta-banner { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
            .cta-buttons { justify-content: center; width: 100%; }

            .footer-container { flex-direction: column; gap: 12px; text-align: center; padding: 0 24px; }
        }

        @media (max-width: 640px) { .nav-container { padding: 0 24px; } .nav-links { gap: 16px; } .brand-name { display: none; } }
        @media (max-width: 500px) {
            .socials-grid { grid-template-columns: repeat(2, 1fr); }
        }

        /* ==================== 9. "即将上线"标记样式 ==================== */
        /* 未上线：虚线边框弱化，但不降低文字可读性 */
        .integrated-card.wip { cursor: default; background: rgba(44, 44, 46, 0.55); border-style: dashed; border-color: rgba(255, 255, 255, 0.14); }
        .integrated-card.wip .integrated-card-title { color: rgba(255, 255, 255, 0.72); }
        .integrated-card.wip:hover { background: rgba(44, 44, 46, 0.55); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; transform: none; }
        .integrated-card.wip:hover .integrated-card-icon { color: #8E8E93; }
        .wip-badge { font-size: 11px; font-weight: 500; color: #8E8E93; background: #3a3a3c; padding: 4px 10px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
        .detail-title .wip-badge { vertical-align: middle; margin-left: 10px; font-size: 12px; }

        /* ==================== 10. 无障碍支持 ==================== */
        /* 键盘导航焦点样式 */
        :focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }
        /* 用户偏好减少动态效果时关闭过渡与动画 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ==================== 11. 自定义主页背景（Discord 风格 splash） ==================== */
        /* 由 main.js 读取 site-config.json 后设置 --bg-image / --bg-overlay / --bg-blur
           仅在主页视图（body.bg-custom）时显示；image 字段也可填 CSS 渐变 */
        body.bg-custom::before {
            content: "";
            position: fixed; inset: 0; z-index: -2;
            background: var(--bg-image) center / cover no-repeat;
            filter: blur(var(--bg-blur, 0px));
            transform: scale(1.03); /* 模糊时防止边缘露白 */
        }
        body.bg-custom::after {
            content: "";
            position: fixed; inset: 0; z-index: -1;
            background: rgba(0, 0, 0, var(--bg-overlay, 0.45));
            pointer-events: none;
        }
        /* 主页卡片升级为毛玻璃 */
        body.bg-custom .profile-card {
            background: rgba(30, 30, 30, 0.72);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-color: rgba(255, 255, 255, 0.1);
        }

/* 自定义头像图片：铺满圆形占位容器（导航栏 / 主页名片 / 关于页） */
.brand-avatar img,
.avatar-placeholder img,
.about-hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
