/* resume-site — 双栏简历样式（屏幕 + 打印） */

:root {
    --bg: #f4f6f9;
    --paper: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-text: #e2e8f0;
    --sidebar-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-soft: #dbeafe;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --font: "Inter", "Noto Sans SC", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.page {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    max-width: 920px;
    min-height: 100vh;
    margin: 24px auto;
    background: var(--paper);
    /* 避免阴影 blur 向上扩散在顶部形成“分隔线” */
    box-shadow: 0 18px 18px rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* ── 三栏布局（dev 版 · 一屏无滚动） ── */
@keyframes floatGlow {
    0% {
        background-position:
            0% 0%,
            100% 0%,
            50% 100%;
    }
    50% {
        background-position:
            8% 12%,
            92% -8%,
            45% 92%;
    }
    100% {
        background-position:
            0% 0%,
            100% 0%,
            50% 100%;
    }
}

/* 底色放在 html，避免 body padding / attachment 在视口顶边露出接缝 */
html:has(body.resume-onepage) {
    background-color: #e8edf5;
}

body.resume-onepage {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    background-color: #e8edf5;
    background-image: none;
    /* 整卡在视口内水平+垂直居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* 装饰背景：点阵静态（::before），渐变动态（::after） */
body.resume-onepage::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #e8edf5;
    background-image: radial-gradient(rgba(100, 116, 139, 0.15) 1px, transparent 0);
    background-size: 28px 28px;
}

body.resume-onepage::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: transparent;
    background-image:
        radial-gradient(
            at 0% 0%,
            rgba(99, 102, 241, 0.16) 0px,
            transparent 55%
        ),
        radial-gradient(
            at 100% 0%,
            rgba(14, 165, 233, 0.16) 0px,
            transparent 55%
        ),
        radial-gradient(
            at 50% 100%,
            rgba(244, 63, 94, 0.08) 0px,
            transparent 55%
        );
    background-size:
        140% 140%,
        140% 140%,
        140% 140%;
    animation: floatGlow 20s ease-in-out infinite;
}

body.resume-onepage .page-three-col {
    position: relative;
    z-index: 2;
    transform-origin: center center;
    /* 左侧身份栏稍宽，中右等分，整体视觉更稳 */
    grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1180px;
    width: min(96%, 1180px);
    height: auto;
    min-height: auto;
    margin: 0;
    flex-shrink: 0;
    align-items: stretch;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: var(--paper);
}

/* ── 鼠标微光：跟随光标的柔和探照灯，仅装饰不影响布局 ── */
.mouse-spotlight {
    position: fixed;
    inset: 0;
    z-index: 1; /* Put behind the card container */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(
        650px circle at var(--spot-x, 50%) var(--spot-y, 30%),
        rgba(99, 102, 241, 0.3) 0%,
        rgba(14, 165, 233, 0.22) 35%,
        rgba(244, 63, 94, 0.08) 60%,
        transparent 80%
    );
}

.mouse-spotlight.is-active {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .mouse-spotlight {
        display: none;
    }
}

/* ── 页脚彩蛋：模拟链上出块 ticker，固定于视口底部，不占据文档流高度 ── */
.career-ticker {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 999px;
    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.02);
    white-space: nowrap;
}

.ticker-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: tickerPulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes tickerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ticker-label {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6366f1;
}

.ticker-sep {
    color: #cbd5e1;
    font-size: 10px;
}

.ticker-item {
    font-size: 10px;
    font-weight: 500;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    color: #475569;
    min-width: 210px;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.ticker-item.is-leaving {
    opacity: 0;
    transform: translateY(-3px);
}

@media (max-width: 720px) {
    .career-ticker {
        display: none;
    }
}

body.resume-onepage .sidebar-left,
body.resume-onepage .main-center,
body.resume-onepage .rail-right {
    /* Remove internal scrolling, let them grow */
    height: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
}

/* 侧栏内容顶对齐，深色背景随列等高拉满 */
body.resume-onepage .sidebar-left {
    min-height: 100%;
    height: auto;
    align-self: stretch;
    background: var(--sidebar-bg);
}

body.resume-onepage .sidebar-left .sidebar-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* B: rail-body fills height with single section */
body.resume-onepage .rail-right .rail-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

/* B: single right-rail block stretches to fill */
body.resume-onepage .rail-right .rail-body .block {
    flex: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

body.resume-onepage .rail-right .rail-body .block .content {
    flex: none;
}

/* Gradient fades removed as card height now perfectly fits content */

.page-three-col .sidebar-left {
    position: static;
    max-height: none;
}

body.resume-onepage .sidebar-left {
    padding: 20px 16px 16px;
    align-self: stretch;
}

body.resume-onepage .profile {
    margin-top: -3px;
}

body.resume-onepage .profile .name {
    font-size: 24px;
    margin-bottom: 4px;
}

body.resume-onepage .profile .title {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

body.resume-onepage .sidebar-left .contact {
    margin-bottom: 16px;
    padding-bottom: 12px;
    gap: 6px;
}

body.resume-onepage .contact-link {
    font-size: 11px;
    padding: 0;
}

body.resume-onepage .sidebar .block {
    margin-bottom: 0;
}

body.resume-onepage .sidebar .block h2 {
    font-size: 10px;
    margin-bottom: 7px;
    padding-bottom: 5px;
}

body.resume-onepage .sidebar .content {
    font-size: 11px;
}

body.resume-onepage .sidebar .content li {
    margin-bottom: 4px;
    line-height: 1.45;
}

body.resume-onepage .block-intro .intro-text p {
    font-size: 11px;
    line-height: 1.5;
}

body.resume-onepage .skill-group {
    margin-bottom: 8px;
}

body.resume-onepage .skill-group h3 {
    font-size: 9px;
    margin-bottom: 5px;
}

body.resume-onepage .skill-tag {
    font-size: 10px;
    padding: 2px 6px;
}

body.resume-onepage .skill-tags {
    gap: 4px;
}

body.resume-onepage .main-center {
    padding: 20px 22px 16px 20px;
    min-width: 0;
    border-right: none;
    background: var(--paper);
}

body.resume-onepage .rail-right {
    padding: 20px 16px 16px;
    min-width: 0;
    border-left: none;
    background: var(--paper);
}

/* 三栏：左深色身份栏 + 中右白底内容区 */
body.resume-onepage .page-three-col {
    gap: 0;
}

body.resume-onepage .page-three-col .sidebar-left {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.resume-onepage .rail-right .rail-body .block + .block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

body.resume-onepage .rail-right .block {
    margin-bottom: 0;
}
.career-gantt {
    margin-bottom: 10px;
    padding: 6px 8px 5px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.career-gantt-track {
    position: relative;
    height: 18px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 3px;
}

.career-segment {
    position: absolute;
    top: 2px;
    height: 14px;
    background: var(--seg-color);
    border-radius: 3px;
    min-width: 4px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.career-segment span {
    font-size: 7px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.career-gantt-axis {
    display: flex;
    justify-content: space-between;
    font-size: 7.5px;
    font-weight: 500;
    color: var(--muted);
    padding: 0 1px;
}

/* 时间线正文：沿用紧凑列表排版，仅用彩色圆点 + 彩色标签区分阶段 */
.timeline-flow {
    position: relative;
    border-left: 1.5px solid #e2e8f0;
    padding-left: 16px;
    margin-left: 4px;
}

.timeline-flow h3 {
    position: relative;
    margin: 12px 0 3px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    line-height: 1.3;
}

.timeline-flow h3:first-child {
    margin-top: 0;
}

.timeline-flow h3::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--item-color, #6366f1);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px
        color-mix(in srgb, var(--item-color, #6366f1) 25%, transparent);
}

.timeline-company-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--item-color, var(--text));
}

.timeline-meta {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
}

.timeline-date-badge {
    font-size: 8.5px;
    font-weight: 600;
    color: #fff;
    background: var(--item-color, var(--accent));
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    margin-left: auto;
}

/* ── 经历卡片 / 项目卡片：扫读优先，详情可折叠 ── */
.exp-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.exp-card,
.proj-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 11px 8px;
    background: #fff;
    transition:
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.exp-card {
    border-left: 3px solid var(--item-color, var(--accent));
}

.exp-card:hover,
.proj-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: color-mix(
        in srgb,
        var(--item-color, var(--accent)) 35%,
        var(--border)
    );
}

.exp-card-head,
.proj-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin-bottom: 5px;
}

.exp-company {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--item-color, var(--text));
}

.exp-role {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
}

.exp-date {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: var(--item-color, var(--accent));
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: auto;
    white-space: nowrap;
}

.proj-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.proj-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
}

.proj-period,
.proj-status {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    margin-left: auto;
}

.proj-period {
    color: var(--muted);
    background: #f1f5f9;
}

.proj-status {
    color: #fff;
    background: #10b981;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}

.card-tag {
    font-size: 9px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.exp-summary,
.proj-summary {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 6px;
}

.proj-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.proj-links a {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 1px 7px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 999px;
    transition: background 0.15s ease;
}

.proj-links a:hover {
    background: var(--accent-soft);
}

.proj-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.metric-chip {
    font-size: 9.5px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 4px;
}

.card-details {
    margin-top: 2px;
}

.card-details > summary {
    list-style: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 0;
}

.card-details > summary::-webkit-details-marker {
    display: none;
}

.card-details > summary::before {
    content: "▸";
    font-size: 9px;
    transition: transform 0.18s ease;
}

.card-details[open] > summary::before {
    transform: rotate(90deg);
}

.card-details > summary::after {
    content: "展开详情";
}

.card-details[open] > summary::after {
    content: "收起";
}

.card-details ul,
.card-details p {
    margin: 5px 0 0;
    padding-left: 14px;
}

.blog-card .blog-embed-hint {
    margin-top: 6px;
    font-size: 9.5px;
    color: var(--muted);
}

.blog-embed-wrap {
    margin-top: 6px;
    height: 420px; /* 固定更高高度：让“整个板块/列表”尽量一次可见 */
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.blog-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: transparent;
}

.card-details ul {
    padding-left: 16px;
}

.card-details li {
    font-size: 10.5px;
    line-height: 1.5;
    margin-bottom: 3px;
    color: var(--text);
}

body.resume-onepage .main-center .content .exp-summary,
body.resume-onepage .main-center .content .proj-summary,
body.resume-onepage .rail-right .content .proj-summary {
    font-size: 11px;
}

body.resume-onepage .main-center .block h2,
body.resume-onepage .rail-right .block h2 {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 10px;
    padding-bottom: 4px;
}

body.resume-onepage .main-center .content p {
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.45;
}

body.resume-onepage .main-center .content ul {
    padding-left: 14px;
    margin: 3px 0 8px;
}

body.resume-onepage .main-center .content li {
    font-size: 10.5px;
    margin-bottom: 3px;
    line-height: 1.45;
}

body.resume-onepage .rail-right .block {
    margin-bottom: 0;
}

/* Already styled in group block above */

body.resume-onepage .rail-right .content h3 {
    font-size: 13px;
    margin: 14px 0 4px;
    line-height: 1.35;
}

body.resume-onepage .rail-right .content h3:first-child {
    margin-top: 0;
}

body.resume-onepage .rail-right .content p {
    font-size: 11.5px;
    margin-bottom: 5px;
    line-height: 1.45;
}

body.resume-onepage .rail-right .content ul {
    padding-left: 14px;
    margin: 4px 0 0;
}

body.resume-onepage .rail-right .content li {
    font-size: 11px;
    margin-bottom: 5px;
    line-height: 1.5;
}

body.resume-onepage .rail-right .content hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border);
}

body.resume-onepage .main-center .content code,
body.resume-onepage .rail-right .content code {
    font-size: 10px;
    padding: 0 3px;
}

.rail-right {
    background: #f8fafc;
    border-left: 1px solid var(--border);
    padding: 28px 20px 36px;
    display: flex;
    flex-direction: column;
}

.rail-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rail-right .block h2 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}

.rail-right .content h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin: 14px 0 4px;
    line-height: 1.35;
}

.rail-right .content h3:first-child {
    margin-top: 0;
}

.rail-right .content p {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 5px;
    line-height: 1.45;
}

.rail-right .content ul {
    padding-left: 16px;
    margin: 4px 0 0;
}

.rail-right .content li {
    font-size: 11.5px;
    margin-bottom: 4px;
    color: var(--text);
    line-height: 1.4;
}

.rail-right .content a {
    color: var(--accent);
    text-decoration: none;
}

.rail-right .content a:hover {
    text-decoration: underline;
}

.rail-right .block {
    margin-bottom: 22px;
}

.main-center {
    padding: 28px 28px 36px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--paper);
}

/* 侧栏简介 + 技能紧凑样式 */
.block-intro .intro-text p {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--sidebar-text);
    margin: 0;
}

.skill-group {
    margin-bottom: 14px;
}

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

.skill-group h3 {
    font-size: 10px;
    font-weight: 600;
    color: var(--sidebar-muted);
    margin-bottom: 7px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.skill-tag {
    display: inline-block;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-tag-lg {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.skill-tag-sm {
    font-size: 9.5px;
    padding: 1px 6px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-left .block-skills .content {
    margin-top: 2px;
}

.sidebar-left .profile .title {
    margin-bottom: 12px;
}

.sidebar-left .badges {
    margin-bottom: 14px;
}

.sidebar-left .contact {
    margin-bottom: 18px;
    padding-bottom: 16px;
}

/* ── Sidebar ── */
.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
}

.sidebar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #93c5fd;
    text-decoration: none;
    word-break: break-all;
    cursor: pointer;
    padding: 2px 0;
    border-radius: 4px;
    transition:
        color 0.15s,
        background 0.15s;
}

.contact-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.contact-link .icon {
    flex-shrink: 0;
    opacity: 0.85;
    line-height: 1.4;
}

.contact-link .label {
    line-height: 1.4;
}

.profile .name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 4px;
}

.profile .title {
    font-size: 13px;
    color: var(--sidebar-muted);
    margin-bottom: 16px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.sidebar a {
    color: #93c5fd;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

.sidebar .block {
    margin-bottom: 22px;
}

.sidebar .block h2 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-muted);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .content {
    font-size: 12.5px;
    color: var(--sidebar-text);
}

.sidebar .content p {
    margin-bottom: 6px;
}

.sidebar .content ul {
    padding-left: 16px;
    margin: 0;
}

.sidebar .content li {
    margin-bottom: 4px;
}

.sidebar .content strong {
    color: #fff;
    font-weight: 600;
}

/* ── Main ── */
.main {
    padding: 32px 36px 40px;
}

.intro {
    font-size: 14.5px;
    color: var(--muted);
    padding: 14px 16px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    margin-bottom: 28px;
}

.intro p {
    margin: 0;
}

.main .block {
    margin-bottom: 26px;
}

.main .block h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}

.main .content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 4px;
}

.main .content h3:first-child {
    margin-top: 0;
}

.main .content p {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
}

.main .content p strong {
    color: var(--text);
    font-weight: 500;
}

.main .content ul {
    padding-left: 18px;
    margin: 6px 0 0;
}

.main .content li {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text);
}

.main .content a {
    color: var(--accent);
    text-decoration: none;
}

.main .content a:hover {
    text-decoration: underline;
}

.main .content code {
    font-size: 12px;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Print / PDF（在线版以屏幕展示为主，PDF 建议用 Typora 导出） ── */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background: #fff;
        font-size: 11px;
    }

    .mouse-spotlight,
    .career-ticker,
    body.resume-onepage::before,
    body.resume-onepage::after {
        display: none !important;
    }

    html:has(body.resume-onepage),
    body.resume-onepage {
        background: #fff;
        min-height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .page,
    .page-three-col {
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .page-three-col {
        grid-template-columns: 180px 1fr 1fr;
    }

    .sidebar,
    .rail-right {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 打印时强制展开所有折叠详情 */
    .card-details {
        display: block !important;
    }
    .card-details > summary {
        display: none !important;
    }
    .card-details > *:not(summary) {
        display: block !important;
    }
    .card-details ul {
        display: block !important;
        padding-left: 16px !important;
    }
    .card-details li {
        display: list-item !important;
    }

    .exp-card,
    .proj-card {
        break-inside: avoid;
        box-shadow: none !important;
    }

    a[href^="http"],
    a[href^="https"],
    a[href^="tel"] {
        color: inherit !important;
        text-decoration: none !important;
    }
}

@media (max-width: 900px) {
    .page-three-col {
        grid-template-columns: 1fr;
    }

    .main-center {
        border-right: none;
    }

    .rail-right {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 720px) {
    .page {
        grid-template-columns: 1fr;
        margin: 0;
        border-radius: 0;
    }

    .sidebar {
        padding: 24px 20px;
    }

    .main {
        padding: 24px 20px;
    }
}
