/* ==========================================================================
   site-refresh.css — 公共站（jiyuanqiaoyu）视觉刷新层
   --------------------------------------------------------------------------
   这一层是叠加在 site.css 之上的「质感到收拾」补丁，只做三件事：

     1. Mac 级细节 —— 连续圆角、多层柔和阴影、毛发分割线、毛玻璃导航。
     2. 线条 / 图案 / 图标语汇 —— 点阵底纹、hairline 刻度、菱形标记、
        带线框的图标容器、环形序号，用来稀释大面积纯文字。
     3. 收拢体块 —— 缩小留白、字号与卡片高度，让每一屏更紧凑耐看。

   不改动的内容：信息架构、文案、配色性格（薰衣草紫）。
   字体统一到墨集官网那一套：正文 / 界面无衬线，标题衬线，见 --font-ui / --font-title。

   想整体回退：把 base.html 里这一行的 <link> 删掉即可，site.css 未受影响。
   ========================================================================== */

:root {
    /* --- 色彩：保持原色相，只把灰阶调得更「系统」一点 --- */
    --canvas: #f6f6f8;
    --surface: #ffffff;
    --surface-soft: #f2f1f4;
    --surface-warm: #f6f1f3;
    --text: #33313a;
    --text-strong: #1f1d24;
    --muted: #6f6a75;
    --faint: #928d99;
    --line: #e6e4ea;
    --line-strong: #d5d1da;
    --accent: #7b6a9d;
    --accent-strong: #5f4f80;
    --accent-soft: #f2eef8;
    --accent-line: rgba(123, 106, 157, 0.24);

    /* --- 线条 / 图案 --- */
    --hairline: rgba(31, 29, 36, 0.075);
    --hairline-strong: rgba(31, 29, 36, 0.115);
    --dot: rgba(31, 29, 36, 0.085);
    --grid: 22px;

    /* --- 圆角与阴影：多层低透明度，接近 macOS 观感 --- */
    --radius-xs: 6px;
    --radius-sm: 9px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 1.5px rgba(28, 25, 34, 0.05), 0 1px 1px rgba(28, 25, 34, 0.03);
    --shadow-md: 0 1px 2px rgba(28, 25, 34, 0.05), 0 10px 26px -12px rgba(28, 25, 34, 0.16);
    --shadow-lg: 0 2px 4px rgba(28, 25, 34, 0.05), 0 22px 48px -20px rgba(28, 25, 34, 0.22);

    /* --- 排版：与墨集官网同一套字体（正文无衬线 + 标题衬线） --- */
    --font-ui: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    --font-title: Georgia, "Noto Serif CJK SC", "Songti SC", serif;

    --content: 1080px;
}

/* --------------------------------------------------------------------------
   1. 基础排版
   -------------------------------------------------------------------------- */

body {
    font-family: var(--font-ui);
    font-size: 15.5px;
    line-height: 1.64;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题走墨集官网的衬线栈，正文与界面文字走无衬线栈 */
.brand-copy strong,
.hero h1,
.section-head h2,
.page-heading h1,
.profile-band h2,
.tool-panel h2,
.side-panel h2,
.feature-item h3,
.app-card h3,
.article-item h3,
.resource-link h3,
.original-article-body > strong,
.original-article-subtitle,
.modal-head h2,
.legal-copy h2,
.login-mode h2 {
    font-family: var(--font-title);
    letter-spacing: 0.01em;
    font-weight: 600;
}

/* 菱形小标记：全站所有 eyebrow 统一挂一枚，成本低、辨识度高 */
.eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    background: currentColor;
    border-radius: 1px;
    opacity: 0.6;
    transform: rotate(45deg);
    translate: 0 -1px;
}

.eyebrow {
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
}

/* `.section-head p` / `.page-heading p`（(0,1,1)）会盖掉 `.eyebrow`（(0,1,0)），
   把小标渲染成 14.5px 灰色正文。补一组更高优先级的写法把它兜回来。
   （区块说明段删掉后，这个冲突才暴露出来。） */
p.eyebrow,
.section-head p.eyebrow,
.page-heading p.eyebrow,
.hero p.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   2. 顶栏 / 导航：毛玻璃 + 线性图标 + 药丸态
   -------------------------------------------------------------------------- */

/* 毛玻璃放在顶栏的伪元素上，而不是 .site-header 自身。
   原因：带 backdrop-filter 的元素会成为毛玻璃祖先（backdrop root），
   其内部溢出的子元素（移动端展开的导航面板）会被渲染成半透明，
   下层内容透出来形成重影。挂到伪元素上就绕开了这个陷阱。 */
.site-header {
    position: sticky;
    border-bottom: 1px solid var(--hairline);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* 移动端导航面板从顶栏下方溢出。只要顶栏里存在毛玻璃，那片毛玻璃底图会
   一并铺到溢出的面板区域上，把下层内容透成重影。面板展开期间退回实底。 */
body.menu-open .site-header::before {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 内容不足一屏时也要把页脚压到底部，随顶栏高度同步收 */
.page-shell {
    min-height: calc(100vh - 60px);
}

.nav-shell {
    min-height: 60px;
    gap: 18px;
}

.brand {
    gap: 9px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgba(28, 25, 34, 0.06);
}

.brand-copy strong {
    font-size: 17px;
}

.brand-copy small {
    margin-top: 2px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
}

.nav-link {
    min-height: 32px;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #5f5a66;
    font-size: 13.5px;
    font-weight: 500;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav-link .icon {
    width: 15px;
    height: 15px;
    color: var(--faint);
    transition: color 0.16s ease;
}

.nav-link:hover {
    border-color: transparent;
    background: rgba(31, 29, 36, 0.045);
    color: var(--text-strong);
}

.nav-link:hover .icon {
    color: var(--accent);
}

.nav-link.active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 600;
}

.nav-link.active .icon {
    color: var(--accent);
}

.menu-toggle .icon {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   3. Hero：点阵底纹 + 真实数据刻度条
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
    background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(123, 106, 157, 0.06), transparent 68%),
        var(--surface);
}

.hero::before,
.page-heading::before,
.section-ink::before,
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: var(--grid) var(--grid);
    pointer-events: none;
}

.hero::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 76% at 50% 38%, #000 8%, transparent 74%);
    mask-image: radial-gradient(ellipse 60% 76% at 50% 38%, #000 8%, transparent 74%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), 760px);
    padding: 54px 0 48px;
}

.hero-mark {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgba(28, 25, 34, 0.06),
        0 12px 26px -14px rgba(28, 25, 34, 0.32);
}

.hero h1 {
    font-size: 46px;
    line-height: 1.1;
}

.hero-lead {
    max-width: 620px;
    margin-top: 14px;
    color: #5d5866;
    font-size: 16px;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 22px;
    gap: 9px;
}

/* --------------------------------------------------------------------------
   4. 按钮
   -------------------------------------------------------------------------- */

.button {
    min-height: 38px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease,
        box-shadow 0.16s ease, transform 0.12s ease;
}

.button:active {
    transform: scale(0.985);
}

.button-primary {
    background: linear-gradient(180deg, #3c3844, #24222a);
    box-shadow: 0 1px 2px rgba(28, 25, 34, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.button-primary:hover {
    background: linear-gradient(180deg, #474351, #2d2a34);
}

.button-secondary,
.button-outline,
.button-muted {
    border-color: var(--line-strong);
    background: linear-gradient(180deg, #ffffff, #faf9fb);
    box-shadow: 0 1px 1.5px rgba(28, 25, 34, 0.06), inset 0 1px 0 #ffffff;
    font-weight: 500;
}

.button-secondary:hover,
.button-outline:hover,
.button-muted:hover {
    border-color: #c3bccd;
    background: linear-gradient(180deg, #ffffff, #f6f5f9);
}

.button-ink {
    background: var(--accent);
    box-shadow: 0 1px 2px rgba(28, 25, 34, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   5. 区块与标题：hairline + 强调刻度
   -------------------------------------------------------------------------- */

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 40px 0;
}

.section-ink {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background-color: var(--surface-soft);
}

.section-ink::before {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.section-ink > .content-shell,
.page-heading > .content-shell,
.site-footer > .footer-shell,
.site-footer > .footer-bottom {
    position: relative;
    z-index: 1;
}

.section-head {
    position: relative;
    gap: 20px;
    margin-bottom: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline-strong);
}

/* 左上角一段强调刻度，替代原来的空白起始 */
.section-head::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.section-head h2 {
    font-size: 27px;
}

.section-head p,
.page-heading p {
    max-width: 640px;
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.7;
}

.page-heading h1 {
    font-size: 32px;
}

.text-link {
    gap: 4px;
    font-size: 13.5px;
    font-weight: 600;
}

.text-link .icon,
.article-category-nav .icon,
.original-article-link .icon {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   6. 页面头部
   -------------------------------------------------------------------------- */

.page-heading {
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.page-heading::before {
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
    mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.page-heading > .content-shell {
    padding-top: 38px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--hairline);
}

.article-category-nav {
    gap: 2px;
    padding: 3px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.article-category-nav a {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
}

.article-count {
    padding: 3px 10px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   7. 卡片族：统一圆角 / 线框 / 阴影，并整体收窄
   -------------------------------------------------------------------------- */

.feature-grid,
.resource-grid,
.resource-strip,
.article-grid {
    gap: 12px;
}

.feature-item {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff, #fdfcfe);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feature-item:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 图标从「实心色块」改为「细线方框 + 淡色底」 */
.feature-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 1.5px rgba(28, 25, 34, 0.05);
}

.feature-icon .icon {
    width: 20px;
    height: 20px;
}

.tone-coral {
    border-color: #f0dfe4;
    background: #fbf2f4;
    color: #94596a;
}

.tone-green {
    border-color: #dfeae5;
    background: #f0f6f3;
    color: #4f7263;
}

.tone-gold {
    border-color: #eee5cf;
    background: #faf5e9;
    color: #7d6a3c;
}

.tone-blue {
    border-color: #dfe7f0;
    background: #f0f4f9;
    color: #526c85;
}

.feature-item h3 {
    margin-top: 2px;
    font-size: 16.5px;
}

.feature-item p {
    min-height: 0;
    margin-top: 5px;
    /* 右下角是细线圆形箭头，给文字留出让位空间，避免压字 */
    padding-right: 26px;
    font-size: 12.5px;
    line-height: 1.6;
}

/* 箭头改为细线圆形按钮 */
.feature-arrow {
    right: 14px;
    bottom: 14px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    opacity: 0.9;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease,
        opacity 0.18s ease;
}

.feature-arrow .icon {
    width: 13px;
    height: 13px;
}

.feature-item:hover .feature-arrow {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    opacity: 1;
}

/* --- 应用卡片 --- */

.app-grid {
    gap: 12px;
}

/* 桌面端收到 3 列：作品刚好一行排满，不再留出半行空洞 */
@media (min-width: 1021px) {
    .app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 纯卡片没有操作行，等高排布时把内容居中，避免底部出现空档 */
.app-card-plain {
    align-items: center;
}

.app-card {
    min-height: 0;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.app-mark {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgba(28, 25, 34, 0.05);
}

.app-icon-image {
    border-radius: var(--radius-md);
}

.app-meta {
    gap: 6px;
    margin-bottom: 7px;
}

.tag {
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xs);
    background: var(--surface-soft);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.tag.release {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: #66568a;
}

.app-card h3 {
    font-size: 19px;
}

.app-card p {
    margin: 6px 0 12px;
    font-size: 13.5px;
    line-height: 1.6;
}

.app-actions {
    gap: 16px;
}

/* --- 文章卡片 --- */

.article-item {
    min-height: 0;
    padding: 15px 16px 15px 56px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-item:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

/* 序号套一圈细线，替代裸数字 */
.article-item .article-index {
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.article-item h3 {
    margin-top: 5px;
    font-size: 16.5px;
}

.article-item p {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.6;
}

.article-item-original {
    border-top-color: var(--accent-line);
    background: linear-gradient(180deg, #fdfcfe, #ffffff);
}

/* --- 原创长文卡 --- */

.original-article-list {
    gap: 12px;
}

.original-article-card {
    height: 236px;
    min-height: 210px;
    border-color: var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.original-article-card:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.original-article-cover {
    box-shadow: inset -1px 0 0 var(--hairline);
}

.original-article-body {
    padding: 22px 26px;
}

.original-article-meta {
    gap: 6px 10px;
    font-size: 11.5px;
}

.original-article-body > strong {
    margin-top: 10px;
    font-size: 21px;
    line-height: 1.35;
}

.original-article-subtitle {
    margin-top: 4px;
    font-size: 14.5px;
}

.original-article-description {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.65;
}

.original-article-link {
    margin-top: 13px;
    font-size: 13.5px;
}

/* --- 阅读资源条 --- */

.resource-link {
    min-height: 0;
    padding: 14px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.resource-link:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.resource-link > .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.resource-link h3 {
    margin: 9px 0 2px;
    font-size: 15.5px;
}

.resource-link p {
    font-size: 11.5px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. 个人主页带
   -------------------------------------------------------------------------- */

.profile-band {
    gap: 40px;
}

.profile-band h2 {
    margin: 4px 0 7px;
    font-size: 26px;
}

.profile-actions {
    gap: 9px;
}

.profile-actions a,
.profile-actions button {
    min-height: 58px;
    gap: 11px;
    padding: 10px 13px;
    border-color: var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.profile-actions a:hover,
.profile-actions button:hover {
    border-color: var(--accent-line);
    background: #fdfcfe;
    box-shadow: var(--shadow-md);
}

.profile-actions > * > .icon {
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.profile-actions strong {
    font-size: 14px;
}

.profile-actions small {
    margin-top: 2px;
    font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   9. 面板 / 表单 / 提示
   -------------------------------------------------------------------------- */

.tool-panel,
.side-panel,
.login-mode,
.drop-zone,
.result-row,
.resource-card,
.admin-console,
.admin-login-panel,
.modal-panel,
.qr-frame {
    border-color: var(--hairline);
    border-radius: var(--radius-md);
}

.tool-panel,
.login-mode {
    box-shadow: var(--shadow-sm);
}

.side-panel {
    background: var(--surface-soft);
}

.tool-panel h2,
.side-panel h2 {
    font-size: 21px;
}

.notice {
    padding: 13px 15px;
    border-color: var(--accent-line);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: #5b5370;
    font-size: 13.5px;
}

.field {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 106, 157, 0.14);
}

.status-line {
    font-size: 13.5px;
}

.empty-state {
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
}

.empty-state .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
}

.journey-list li > span {
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   10. 页脚
   -------------------------------------------------------------------------- */

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
}

.site-footer::before {
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 62%);
    mask-image: linear-gradient(180deg, #000, transparent 62%);
}

.footer-shell {
    gap: 40px;
    padding: 30px 0;
}

/* 列之间的细竖线 */
.footer-shell > * + * {
    padding-left: 32px;
    border-left: 1px solid var(--hairline);
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.7;
}

.footer-links a {
    font-size: 13.5px;
}

.footer-profiles > strong {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.profile-link-list {
    gap: 5px 8px;
}

.profile-link-list a {
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    font-size: 13px;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.profile-link-list .icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.profile-link-list a:hover {
    border-color: var(--hairline);
    background: var(--surface-soft);
    color: var(--text-strong);
}

.footer-bottom {
    padding: 13px 0 18px;
    border-top: 1px solid var(--hairline);
    font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   11. 弹窗
   -------------------------------------------------------------------------- */

.modal-panel {
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
}

.modal-head h2 {
    font-family: var(--font-title);
}

/* --------------------------------------------------------------------------
   12. 响应式：与上面的收拢保持一致
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
    /* 顶栏带 backdrop-filter，其内部的 fixed 子元素会被改换包含块并在合成层上
       出现「面板半透明」的错位；改成挂在 sticky 顶栏下方的绝对定位更稳。 */
    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 12px 20px 18px;
        border-bottom: 1px solid var(--hairline);
        background: var(--surface);
        box-shadow: 0 18px 36px -22px rgba(28, 25, 34, 0.28);
    }

    .nav-link {
        min-height: 44px;
        padding: 8px 2px;
        border: 0;
        border-bottom: 1px solid var(--hairline);
        border-radius: 0;
        gap: 8px;
    }

    .nav-link .icon {
        width: 16px;
        height: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent;
    }

    .nav-link.active {
        border-bottom-color: var(--accent);
    }

    /* site.css 在这一档把个人主页带收成单列，间距要跟着收回 */
    .profile-band {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 720px) {
    /* 这一档要重新声明，否则会被上面收窄后的基础值盖住 site.css 的移动端意图 */
    .content-shell,
    .nav-shell,
    .hero-inner,
    .footer-shell,
    .footer-bottom {
        width: min(calc(100% - 28px), var(--content));
    }

    .nav-shell {
        min-height: 56px;
    }

    .primary-nav {
        max-height: calc(100vh - 56px);
    }

    /* 顶栏变矮后，锚点定位的补偿值跟着收 */
    .article-section {
        scroll-margin-top: 68px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .hero-inner {
        padding: 40px 0 34px;
    }

    .hero-mark {
        width: 54px;
        height: 54px;
        margin-bottom: 15px;
        border-radius: 13px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-lead {
        margin-top: 12px;
        font-size: 15px;
    }

    .hero-actions {
        margin-top: 19px;
    }

    .section {
        padding: 38px 0;
    }

    .section-tight {
        padding: 30px 0;
    }

    .feature-grid,
    .resource-grid,
    .resource-strip {
        gap: 10px;
    }

    .article-grid {
        gap: 9px;
    }

    .article-section-head {
        gap: 10px;
    }

    /* 窄屏原创长文卡必须退回单列自适应高度，否则封面会压住正文 */
    .original-article-card {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .section-head {
        margin-bottom: 18px;
        padding-top: 15px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .page-heading h1 {
        font-size: 26px;
    }

    .page-heading > .content-shell {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    .section-head p,
    .page-heading p {
        font-size: 13.5px;
    }

    .feature-item {
        min-height: 0;
        padding: 14px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }

    .feature-icon .icon {
        width: 18px;
        height: 18px;
    }

    .feature-item h3 {
        font-size: 15.5px;
    }

    .feature-item p {
        font-size: 12px;
    }

    .feature-arrow {
        right: 11px;
        bottom: 11px;
        width: 22px;
        height: 22px;
    }

    .resource-grid .feature-item {
        min-height: 0;
    }

    .article-item {
        padding: 13px 14px 13px 50px;
    }

    .article-item .article-index {
        top: 13px;
        left: 13px;
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .article-item h3 {
        font-size: 16px;
    }

    .app-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .app-mark {
        width: 50px;
        height: 50px;
    }

    .app-card h3 {
        font-size: 18px;
    }

    .resource-link {
        min-height: 0;
        padding: 13px;
    }

    .resource-link > .icon {
        width: 30px;
        height: 30px;
        padding: 7px;
    }

    .resource-link h3 {
        margin-top: 8px;
        font-size: 15px;
    }

    .original-article-body {
        padding: 18px 17px 20px;
    }

    .original-article-body > strong {
        font-size: 19px;
    }

    .original-article-subtitle {
        font-size: 14px;
    }

    .profile-band h2 {
        font-size: 23px;
    }

    .footer-shell {
        gap: 24px;
        padding: 24px 0;
    }

    .footer-shell > * + * {
        padding-left: 0;
        border-left: 0;
    }

    .tool-panel,
    .side-panel,
    .login-mode {
        padding: 18px;
    }

    .tool-panel h2,
    .side-panel h2 {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-actions .button {
        font-size: 13.5px;
    }

    .app-actions {
        gap: 10px;
    }

    .app-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .app-mark {
        width: 46px;
        height: 46px;
    }

    .article-item {
        padding: 12px 13px 12px 47px;
    }

    .article-item .article-index {
        width: 24px;
        height: 24px;
        font-size: 10.5px;
    }
}
