/* =========================================================
   个人主页 - 黑白主题样式（FEERAPI 参考布局）
   结构：顶栏(汉堡在右侧) + 默认折叠侧边栏(仅两菜单) + 首页Banner + 内容卡片
   ========================================================= */
:root {
    --ink: #111111;
    --ink-dark: #000000;
    --ink-soft: rgba(17, 17, 17, .06);
    --text-1: #111111;
    --text-2: #555555;
    --text-3: #9a9a9a;
    --card: #ffffff;
    --card-solid: #ffffff;
    --border: rgba(17, 17, 17, .10);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-md: 0 6px 24px rgba(17, 17, 17, .09);
    --shadow-lg: 0 18px 50px rgba(17, 17, 17, .16);
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar-w: 260px;
    --topbar-h: 56px;
    --banner-h: 260px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
@media (max-width: 900px) {
    :root { --banner-h: 200px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font);
    color: var(--text-1);
    background: #ffffff;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- 通用 ---------- */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; border-radius: 10px;
    background: transparent; color: inherit; cursor: pointer;
    transition: background var(--transition);
}
.icon-btn:hover { background: var(--ink-soft); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--card-solid); color: var(--text-1); font-size: 14px;
    cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: #111111; border-color: #111111; color: #fff; }
.btn-dark:hover { color: #fff; box-shadow: 0 8px 20px rgba(17, 17, 17, .25); }

/* ---------- 顶栏（汉堡在右侧） ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--topbar-h); padding: 0 16px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}
.topbar-title { font-size: 16px; font-weight: 700; letter-spacing: .5px; display: flex; align-items: center; gap: 9px; }
.topbar-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: #fff; }

/* 顶栏导航（桌面端显示，替代侧边栏） */
.topbar-nav { display: none; align-items: center; gap: 6px; }
.tnav-item {
    padding: 7px 18px; border: none; border-radius: 999px;
    background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.tnav-item:hover { background: var(--ink-soft); color: var(--ink); }
.tnav-item.active { background: #111111; color: #fff; }

/* ---------- 侧边栏（默认折叠，从右侧滑出） ---------- */
.sidebar {
    position: fixed; top: var(--topbar-h); right: 0; left: auto; bottom: 0; z-index: 90;
    width: var(--sidebar-w);
    background: var(--card-solid);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
    padding: 14px 12px;
}
.sidebar.open { transform: translateX(0); }

/* 菜单：普通一行一行的导航列表（无按钮边框） */
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-2); font-size: 15px;
    cursor: pointer; text-align: left; transition: all .2s;
}
.menu-item:hover { background: var(--ink-soft); color: var(--ink); }
.menu-item.active { background: var(--ink-soft); color: #111111; font-weight: 700; }
.mi-ico { width: 20px; text-align: center; font-size: 15px; }

/* 遮罩（移动端） */
.sidebar-mask {
    position: fixed; inset: 0; z-index: 85;
    background: rgba(0, 0, 0, .4);
    opacity: 0; pointer-events: none; transition: opacity var(--transition);
}

/* ---------- 主内容区 ---------- */
.main {
    margin-left: 0;
    margin-right: 0;
    min-height: 100vh;
    transition: margin-left var(--transition), margin-right var(--transition);
}
/* 桌面端：无侧边栏，导航在顶栏 */
@media (min-width: 901px) {
    .topbar-nav { display: flex; }
    .sidebar, .sidebar-mask, #sidebarToggle { display: none !important; }
    body.sidebar-open .main { margin-right: var(--sidebar-w); }
}
.content { max-width: 1280px; margin: 0 auto; padding: 0 16px 30px; }

.view { animation: viewIn .4s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 Banner（全宽撑满视口，从顶栏下方开始） ---------- */
.banner {
    position: relative; height: 260px;
    margin-top: var(--topbar-h);
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}
.banner-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transform: scale(1.05);
    transition: opacity 1s ease;
}.banner-mask {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, .12) 60%, rgba(0, 0, 0, 0));
}
body.banner-plain .banner,
.banner.banner-plain { background: #ffffff; }
.banner.banner-plain .banner-bg,
.banner.banner-plain .banner-mask { display: none; }
.banner-title { font-size: 30px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.banner-sub { font-size: 14px; opacity: .9; margin-top: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.banner.banner-plain .banner-text { color: var(--text-1); }
.banner.banner-plain .banner-title, .banner.banner-plain .banner-sub { text-shadow: none; }

/* Banner 中心随机一言 */
.banner-hitokoto {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 82%; max-width: 760px;
    text-align: center; color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
    pointer-events: none;
}
.bh-text {
    display: block; font-size: 19px; font-weight: 500; line-height: 1.9;
}
.bh-from {
    display: block; font-size: 12px; opacity: .85; margin-top: 10px;
    letter-spacing: 1px;
}
.banner.banner-plain .banner-hitokoto { color: var(--text-1); text-shadow: none; }

/* ---------- 通用卡片（纯白） ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.card-hover { transition: all var(--transition); }
.card-hover:hover { transform: translateY(-4px); border-color: #111111; box-shadow: 0 8px 24px rgba(17, 17, 17, .08); }

/* ---------- 个人卡片（头像 + 名称 + 描述，毛玻璃虚化背景） ---------- */
.profile-card {
    position: relative; z-index: 2;
    margin-top: -44px;
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(17, 17, 17, .1);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}
.p-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-wrap {
    position: relative;
    flex: none; width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    background: #f1f1f1;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* 在线状态绿点（参考 UI） */
.avatar-wrap::after {
    content: "";
    position: absolute; right: 1px; bottom: 1px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.p-info { flex: 1; min-width: 200px; }
.p-name { font-size: 22px; font-weight: 800; }

/* 自定义描述（昵称下方，后台可配置） */
.p-desc {
    margin-top: 3px; font-size: 13px; color: var(--text-2); line-height: 1.6;
}

/* 连接按钮（关于我板块内，一行横排，后台填几个显示几个） */
.links {
    display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
}
.links::-webkit-scrollbar { display: none; }
.link-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-1); font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.link-btn i { font-size: 13px; }
.link-btn img { width: 15px; height: 15px; }
.link-btn:hover { border-color: #111111; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(17, 17, 17, .12); }

/* ---------- 区块标题 ---------- */
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 800; margin: 26px 0 12px;
    text-align: left;
}
.section-title .st-ico { font-size: 16px; width: 26px; text-align: center; }
.section-title::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- 热力图（本地生成网格 / 图片） ---------- */
.heatmap-card {
    padding: 16px 18px; overflow: hidden; min-width: 0;
    display: flex; flex-direction: column;
}
.heatmap-card img { width: 100%; display: block; border-radius: 8px; }
/* 网格自适应容器宽度，永不溢出（52 列均分，格子宽高 1:1） */
.heatmap-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, auto);
    grid-auto-columns: 1fr;
    gap: 2px;
    width: 100%;
    flex: 1;
    align-content: center;
}
.hm-cell {
    width: 100%; aspect-ratio: 1; border-radius: 2px;
    background: #ebedf0; /* 无贡献（白灰） */
}
.hm-cell.lv1 { background: #9be9a8; } /* 浅绿 */
.hm-cell.lv2 { background: #40c463; } /* 绿 */
.hm-cell.lv3 { background: #30a14e; } /* 深绿 */
.hm-cell.lv4 { background: #216e39; } /* 最深绿 */
.heatmap-hint { font-size: 12px; color: var(--text-3); margin-top: 10px; text-align: center; }
.hm-placeholder { padding: 30px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* 热力图增强：月份标签 / 统计 / 图例 */
.hm-months {
    display: flex; justify-content: space-between;
    font-size: 10px; color: var(--text-3);
    margin-bottom: 5px; padding: 0 1px;
}
.hm-stats {
    display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    margin-top: 14px; font-size: 12px; color: var(--text-2);
}
.hm-stats b { font-weight: 700; color: var(--text-1); }
.hm-legend {
    display: flex; align-items: center; justify-content: flex-end; gap: 4px;
    margin-top: 10px; font-size: 10px; color: var(--text-3);
}
.hm-legend .lg { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* 热力图 + 关于我：电脑端左右布局（两列等高，内容垂直分布） */
.profile-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 28px;
    align-items: stretch;
    min-width: 0;
}
.profile-cols > .pc-col { min-width: 0; display: flex; flex-direction: column; }
.profile-cols > .pc-col > .card { flex: 1; }
@media (min-width: 901px) {
    .profile-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- 个人信息 ---------- */
.about-card { padding: 18px 20px; }
.about-intro { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.about-motto {
    margin-top: 12px; font-size: 14px; color: var(--text-2);
    border-left: 3px solid #111111; padding-left: 12px;
}
.about-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.about-meta span { display: inline-flex; align-items: center; gap: 6px; }
.about-meta i { color: var(--text-3); width: 16px; text-align: center; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.skill-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; padding: 4px 12px; border-radius: 999px;
    background: #f0f0f0; border: 1px solid var(--border); color: var(--text-2);
}
.skill-ico { width: 13px; height: 13px; }
/* 连接按钮（关于我板块内，一行横排） */
.about-card .links { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- 项目（响应式 1→2→3→4 列，借鉴参考 UI） ---------- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.project-card {
    padding: 16px; display: flex; flex-direction: column; gap: 8px;
    text-decoration: none; color: inherit;
}
.pj-top { display: flex; align-items: center; gap: 10px; }
.ico-box {
    flex: none;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: #f4f4f4; border: 1px solid var(--border);
    color: #111111; font-size: 16px; overflow: hidden;
}
.ico-box i { font-style: normal; line-height: 1; }
.ico-box img { width: 100%; height: 100%; object-fit: cover; }
.pj-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pj-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: #f1f1f1; color: var(--text-2); }
.pj-desc { font-size: 12.5px; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 云厂商横向连续滚动 ---------- */
.cloud-wrap { position: relative; margin-top: 8px; }
.cloud-carousel { overflow: hidden; border-radius: var(--radius); }
.cloud-track {
    display: flex;
    width: max-content;
}
.cloud-track.scrolling { animation: cloudScroll linear infinite; }
.cloud-track.paused { animation-play-state: paused; }
@keyframes cloudScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.cloud-card {
    flex: none; width: 250px; margin-right: 16px;
    padding: 15px; display: flex; flex-direction: column; gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: inherit;
}
.cloud-head { display: flex; align-items: center; gap: 10px; }
.cloud-ico { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
.cloud-ico img { width: 20px; height: 20px; object-fit: contain; }
.cloud-name { font-size: 14px; font-weight: 700; }
.cloud-desc { font-size: 12px; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cloud-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cloud-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: #f1f1f1; color: var(--text-2); }

/* ---------- 标签页视图（导航） ---------- */
.nav-hero {
    margin-top: 70px;
    padding: 22px 26px; display: flex; align-items: center; gap: 14px;
    background: #ffffff;
}
.nav-hero-ico { width: 48px; height: 48px; font-size: 21px; }
.nav-hero-title { font-size: 19px; font-weight: 800; text-align: left; }
.nav-hero-desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.nav-tabs {
    position: sticky; top: var(--topbar-h); z-index: 20;
    display: flex; gap: 10px; padding: 24px 2px 14px; overflow-x: auto;
    background: linear-gradient(180deg, #ffffff 60%, rgba(255,255,255,0));
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
    background: #ffffff; font-size: 13px; cursor: pointer;
    transition: all var(--transition); color: var(--text-2);
}
.nav-tab i { font-size: 12px; }
.nav-tab:hover { border-color: #111111; color: #111111; }
.nav-tab.active { background: #111111; border-color: #111111; color: #fff; box-shadow: 0 4px 14px rgba(17, 17, 17, .25); }

/* 移动端悬浮分类按钮 + 展开菜单 */
.nav-fab {
    position: fixed; right: 18px; bottom: 26px; z-index: 90;
    width: 52px; height: 52px; border-radius: 50%;
    background: #111111; color: #fff; border: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    display: none; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; transition: transform .2s;
}
.nav-fab:active { transform: scale(.9); }
.nav-fab-menu {
    position: fixed; right: 18px; bottom: 90px; z-index: 91;
    background: #ffffff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; width: 200px;
    display: none; flex-direction: column; gap: 2px;
    max-height: 60vh; overflow-y: auto;
}
.nav-fab-menu.open { display: flex; }
.nf-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-2); font-size: 14px;
    cursor: pointer; transition: all .2s; text-align: left;
}
.nf-item i { width: 18px; text-align: center; font-size: 14px; }
.nf-item:hover { background: var(--ink-soft); color: var(--ink); }
.nf-item.active { background: #111111; color: #fff; font-weight: 600; }
@media (max-width: 900px) {
    .nav-fab { display: flex; }
}
@media (min-width: 901px) {
    .nav-fab, .nav-fab-menu { display: none !important; }
}
.nav-layout { display: block; }
.nav-main { min-width: 0; }

/* 标签页独立滚动：Banner / 搜索框 / 侧边导航固定，仅卡片区滚动 */
body.on-nav { overflow: hidden; }
body.on-nav .nav-layout {
    height: calc(100vh - var(--topbar-h) - var(--banner-h) - 24px);
    overflow-y: auto;
}
body.on-nav .nav-search {
    position: sticky; top: 0; z-index: 6;
    background: #ffffff;
    padding: 12px 0 14px;
    margin: 0 0 6px;
}
body.on-nav .nav-side { position: sticky; top: 0; }
.nav-side {
    display: none;
    position: sticky; top: 78px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 10px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}
.ns-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: none; border-radius: 10px;
    background: transparent; color: var(--text-2); font-size: 14px;
    cursor: pointer; transition: all .2s; text-align: left;
}
.ns-item i { width: 18px; text-align: center; font-size: 14px; }
.ns-item:hover { background: var(--ink-soft); color: var(--ink); }
.ns-item.active { background: #111111; color: #fff; font-weight: 600; }
.ns-count { margin-left: auto; font-size: 11px; opacity: .6; }
@media (min-width: 901px) {
    .nav-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; }
    .nav-side { display: block; }
    .nav-tabs { display: none !important; }
}

.nav-search { position: relative; margin: 14px 0 30px; }
.nav-search input {
    width: 100%; padding: 12px 16px 12px 42px;
    border: 1px solid var(--border); border-radius: 14px;
    background: #ffffff; font-size: 14px; color: var(--text-1);
    outline: none; transition: all var(--transition);
}
.nav-search input:focus { border-color: #111111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .06); }
.nav-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-3); }

.nav-section { margin-bottom: 44px; }
.nav-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nav-section-ico { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.nav-section-name { font-size: 17px; font-weight: 700; }
.nav-section-desc { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.nav-section-count { font-size: 12px; color: var(--text-3); background: #f1f1f1; padding: 3px 12px; border-radius: 999px; }

/* 标签页站点卡片（响应式 1→2→3→4 列） */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) { .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1400px) { .nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.site-card {
    padding: 18px; display: flex; align-items: flex-start; gap: 14px;
    text-decoration: none; color: inherit; cursor: pointer;
    transition: all var(--transition);
}
.site-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #111111; }
.site-ico { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; background: #f6f6f6; }
.site-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.site-desc {
    font-size: 12.5px; color: var(--text-3); margin-top: 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 手机端：多列小网格，只显示图标 + 名称 */
@media (max-width: 767px) {
    .nav-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
    .site-card {
        flex-direction: column; align-items: center; text-align: center;
        padding: 12px 8px; gap: 8px;
    }
    .site-ico { width: 40px; height: 40px; font-size: 18px; }
    .site-name { font-size: 12.5px; justify-content: center; }
    .site-desc { display: none; }
    .site-link-tip { display: none; }
}
.site-link-tip { font-size: 11px; color: #111111; opacity: 0; transition: opacity var(--transition); }
.site-card:hover .site-link-tip { opacity: 1; }
.nav-empty { text-align: center; padding: 50px 0; color: var(--text-3); font-size: 14px; }

/* ---------- 空状态 ---------- */
.empty-box { text-align: center; padding: 46px 20px; color: var(--text-3); font-size: 14px; }
.empty-box .empty-ico { font-size: 34px; margin-bottom: 10px; display: block; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 40px; z-index: 200;
    transform: translateX(-50%) translateY(20px);
    background: #111111; color: #fff; font-size: 14px;
    padding: 10px 22px; border-radius: 999px;
    box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
    transition: all var(--transition); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 主内容页脚 ---------- */
.main-footer {
    max-width: 1280px; margin: 40px auto 0; padding: 0 16px;
    text-align: center; font-size: 12px; color: var(--text-3); line-height: 2;
    padding-top: 18px; border-top: 1px dashed var(--border);
}
.main-footer a { color: var(--text-3); text-decoration: none; }
.main-footer a:hover { color: var(--ink); }
.footer-beian { display: inline-flex; align-items: center; gap: 6px; }
.footer-beian img { width: 14px; height: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    body.sidebar-open .main { margin-left: 0; margin-right: 0; }
    body.sidebar-open .sidebar-mask { opacity: 1; pointer-events: auto; }
    .banner { height: 200px; }
    .banner-title { font-size: 24px; }
    .profile-card { margin-top: -36px; padding: 18px; }
    .avatar-wrap { width: 76px; height: 76px; }
    .p-name { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
