/* ============================================================================
   resume.css —— 在线简历制作（程序员 / IDE 风格）
   区块：
     1) 布局骨架（顶栏 / 侧边编辑面板 / 预览区 / 状态栏）
     2) 表单控件（字段 / 列表卡片 / 按钮 / 开关 / 单选组）
     3) 简历模板（classic / tech / terminal / modern / dark / github / minimal / matrix / paper 九套）
     4) 打印适配
   设计基调：深色 IDE（VS Code 系），等宽字体细节，绿色主强调，A4 白纸预览
   ========================================================================== */

/* ---------- 1) 布局骨架 ---------- */
.rs-wrap {
    align-items: start;
}

.rs-wrap .content {
    min-width: 0;
}

/* ================================================================
   整屏固定布局（桌面端 ≥1101px）：
   页面整体不滚动 —— header / footer 固定，编辑器卡片与右侧 sidebar
   各自内部滚动（与 interview 面试题页 iv-doc 同一套机制）
   ================================================================ */
@media (min-width: 1101px) {
    body.page-resume {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    main.main.page-resume {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }

    .page-resume .rs-wrap {
        flex: 1;
        min-height: 0;
        margin: 0 auto;
        width: 100%;
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
        /* 单行 grid 行高钉死为容器高，避免子项按内容高度导致底部留白 */
        grid-template-rows: minmax(0, 1fr);
        gap: var(--space-32);
        overflow: hidden;
        padding: var(--space-12) var(--space-16);
    }

    .page-resume .rs-wrap > .content {
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* 覆盖 pages.css 的 .main-wrapper > .content 底板样式（24px padding/边框/背景），
           rs-app 卡片自带边框背景，这里保持透明贴满 */
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* 编辑器卡片：在 content 内纵向撑满（自适应高度，非固定 100vh） */
    .page-resume .rs-app {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    /* 右侧 sidebar：整栏内部滚动，不参与页面滚动 */
    .page-resume .sidebar {
        position: static;
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(93, 151, 67, .35) transparent;
        padding-right: var(--space-6);
        display: flex;
        flex-direction: column;
    }

    .page-resume .sidebar .widget {
        flex: none;
    }

    /* 简历优化建议卡：占满侧边栏剩余高度 */
    .page-resume .sidebar .rs-widget-grow {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .page-resume .rs-widget-grow .widget-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        /* 内容超出时内部滚动（隐藏滚动条，不破坏"侧边栏无滚动条"承诺） */
        overflow-y: auto;
        scrollbar-width: none;
    }

    .page-resume .rs-widget-grow .widget-content::-webkit-scrollbar {
        display: none;
    }

    .page-resume .rs-tips-list {
        flex: 1 1 auto;
    }

    .page-resume .rs-tip-bottom {
        margin-top: auto;
        padding-top: var(--space-8);
        border-top: 1px dashed var(--rs-border);
    }

    .page-resume .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .page-resume .sidebar::-webkit-scrollbar-thumb {
        border-radius: var(--radius-4);
        background: rgba(93, 151, 67, .30);
    }

    /* 侧边栏内容整体装下：压缩 widget 间距，避免出现滚动条 */
    .page-resume .sidebar .widget {
        margin-bottom: var(--space-10);
    }

    .page-resume .sidebar .widget:last-child {
        margin-bottom: 0;
    }

    .page-resume .sidebar .widget-content {
        padding-top: var(--space-2);
    }

    .page-resume .rs-help-list li {
        padding: 3px 0 3px 16px;
        font-size: var(--fs-11);
        line-height: 1.5;
    }

    .page-resume .rs-widget-tip {
        margin-top: var(--space-6);
        font-size: var(--fs-11);
    }
}


.rs-app {
    --rs-bg: #f5f6f8;
    --rs-panel: #ffffff;
    --rs-panel-2: #f1f3f6;
    --rs-border: #e5e9ef;
    --rs-border-2: #d5dbe4;
    --rs-text: #2e3340;
    --rs-text-dim: #7c8494;
    --rs-accent: #5d9743;
    --rs-accent-soft: rgba(93, 151, 67, .12);
    --rs-danger: #e5484d;
    --rs-mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height, 64px) - 64px);
    min-height: 560px;
    border-radius: var(--radius-16);
    border: 1px solid var(--rs-border);
    background: var(--rs-bg);
    color: var(--rs-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow: hidden;
    box-shadow: 0 14px 40px -22px rgba(31, 42, 58, .28);
}

/* ---------- 顶栏 ---------- */
.rs-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    height: 54px;
    padding: 0 14px;
    background: var(--rs-panel);
    border-bottom: 1px solid var(--rs-border);
    flex-shrink: 0;
    z-index: 20;
}

.rs-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    min-width: 0;
}

.rs-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-8);
    background: var(--rs-accent-soft);
    color: var(--rs-accent);
    font-family: var(--rs-mono);
    font-weight: 700;
    font-size: var(--fs-14);
}

.rs-logo-text b {
    display: block;
    font-family: var(--rs-mono);
    font-size: var(--fs-13);
    color: var(--rs-text);
    line-height: 1.2;
}

.rs-logo-text span {
    display: block;
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    line-height: 1.2;
    white-space: nowrap;
}

.rs-topbar-center {
    display: flex;
    align-items: center; gap: var(--space-16);
    margin: 0 auto;
}

.rs-tool-group {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.rs-tool-label {
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    letter-spacing: .04em;
    white-space: nowrap;
}

.rs-select-wrap {
    position: relative;
}

.rs-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--rs-panel-2);
    color: var(--rs-text);
    border: 1px solid var(--rs-border-2);
    border-radius: var(--radius-8);
    font-size: var(--fs-13);
    font-family: var(--rs-mono);
    padding: var(--space-6) var(--space-28) var(--space-6) var(--space-10);
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease;
}

.rs-select:hover, .rs-select:focus {
    border-color: var(--rs-accent);
}

.rs-select-wrap::after {
    content: "▾";
    position: absolute;
    right: var(--space-8);
    top: 50%;
    transform: translateY(-52%);
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    pointer-events: none;
}

.rs-accents {
    display: flex;
    gap: var(--space-6);
}

.rs-accent {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--c);
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.rs-accent:hover {
    transform: scale(1.15);
}

.rs-accent.is-active {
    box-shadow: 0 0 0 2px var(--rs-bg), 0 0 0 4px var(--c);
}

.rs-switch {
    position: relative;
    width: 34px;
    height: 19px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--rs-border-2);
    background: var(--rs-panel-2);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, border-color .25s ease;
}

.rs-switch span {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--rs-text-dim);
    transition: left .25s ease, background .25s ease;
}

.rs-switch[aria-checked="true"] {
    background: var(--rs-accent-soft);
    border-color: var(--rs-accent);
}

.rs-switch[aria-checked="true"] span {
    left: var(--space-16);
    background: var(--rs-accent);
}

.rs-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-shrink: 0;
}
.rs-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-8);
    border: 1px solid var(--rs-border-2);
    background: var(--rs-panel-2);
    color: var(--rs-text);
    font-size: var(--fs-12);
    font-family: var(--rs-mono);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, transform .1s ease;
}

.rs-btn:hover {
    border-color: var(--rs-accent);
    color: var(--rs-accent);
}

.rs-btn:active {
    transform: translateY(1px);
}

.rs-btn-primary {
    background: var(--rs-accent-soft);
    border-color: var(--rs-accent);
    color: var(--rs-accent);
    font-weight: 700;
}

.rs-btn-primary:hover {
    background: var(--rs-accent);
    color: #08130b;
}

.rs-btn-clear:hover {
    border-color: var(--rs-danger);
    color: var(--rs-danger);
}

/* ---------- 主体 ---------- */
.rs-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ---------- 左侧编辑面板 ---------- */
.rs-sidebar {
    width: 420px;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    background: var(--rs-panel);
    border-right: 1px solid var(--rs-border);
    overflow: hidden;
}

.rs-tabs {
    display: flex;
    gap: var(--space-2);
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--rs-border);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.rs-tab {
    display: inline-flex;
    align-items: center; gap: var(--space-4);
    padding: var(--space-6) var(--space-10);
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--rs-text-dim);
    font-size: var(--fs-12);
    font-family: var(--rs-mono);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
    border-bottom: none;
}

.rs-tab:hover {
    color: var(--rs-text);
    background: var(--rs-panel-2);
}

.rs-tab.is-active {
    color: var(--rs-accent);
    background: var(--rs-bg);
    border-color: var(--rs-border);
    border-bottom-color: var(--rs-bg);
    font-weight: 700;
}

.rs-editor {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-16) var(--space-16) 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--rs-border-2) transparent;
}

.rs-editor::-webkit-scrollbar {
    width: 8px;
}

.rs-editor::-webkit-scrollbar-thumb {
    background: var(--rs-border-2);
    border-radius: var(--radius-4);
}

/* 编辑区块 */
.rs-pane {
    display: none;
}

.rs-pane.is-active {
    display: block;
    animation: rsPaneIn .22s ease;
}

@keyframes rsPaneIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.rs-pane-head {
    display: flex;
    align-items: baseline;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.rs-pane-head h3 {
    margin: 0;
    font-size: var(--fs-15);
    font-weight: 700;
    color: var(--rs-text);
}

.rs-pane-head code {
    font-family: var(--rs-mono);
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    background: var(--rs-panel-2);
    padding: var(--space-2) var(--space-8);
    border-radius: var(--radius-6);
    border: 1px solid var(--rs-border);
}

.rs-pane-tip {
    font-size: var(--fs-12);
    line-height: 1.7;
    color: var(--rs-text-dim);
    background: var(--rs-panel-2);
    border: 1px dashed var(--rs-border-2);
    border-radius: var(--radius-12);
    padding: var(--space-10) var(--space-12);
    margin-bottom: var(--space-16);
}

.rs-pane-tip b {
    color: var(--rs-accent);
    font-family: var(--rs-mono);
    font-weight: 600;
}

/* 字段 */
.rs-field {
    display: block; margin-bottom: var(--space-12);
}

.rs-f-label {
    display: block;
    font-size: var(--fs-11);
    color: var(--rs-text-dim); margin-bottom: var(--space-4);
    letter-spacing: .03em;
}

.rs-input,
.rs-textarea,
.rs-input:focus,
.rs-textarea:focus,
.rs-input::placeholder,
.rs-textarea::placeholder {
    color: #aab2c0;
}

.rs-textarea {
    resize: vertical;
    min-height: 76px;
    line-height: var(--lh-ui);
    font-family: var(--rs-mono);
    font-size: var(--fs-12);
}

.rs-hint {
    font-size: var(--fs-11);
    color: #9aa3b2;
    margin-top: var(--space-4);
}

.rs-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

/* 单选组（学历等） */
.rs-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.rs-radio {
    display: inline-flex;
    align-items: center; gap: var(--space-4);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-pill);
    border: 1px solid var(--rs-border-2);
    background: var(--rs-bg);
    color: var(--rs-text-dim);
    font-size: var(--fs-12);
    cursor: pointer;
    transition: all .2s ease;
}

.rs-radio:hover {
    color: var(--rs-text);
    border-color: var(--rs-border-2);
}

.rs-radio input {
    display: none;
}

.rs-radio.is-on {
    background: var(--rs-accent-soft);
    border-color: var(--rs-accent);
    color: var(--rs-accent);
    font-weight: 600;
}

/* 列表卡片（教育/工作/项目/技能/证书/开源） */
.rs-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.rs-list-item {
    background: var(--rs-panel-2);
    border: 1px solid var(--rs-border);
    border-radius: var(--radius-12);
    padding: var(--space-12);
    position: relative;
}

.rs-list-item-head {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.rs-list-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-13);
    font-weight: 600;
    font-family: var(--rs-mono);
}

.rs-list-item-title::before {
    content: "◆ ";
    color: var(--rs-accent);
}

.rs-list-item-ops {
    display: flex;
    gap: var(--space-4);
    opacity: .55;
    transition: opacity .2s ease;
}

.rs-list-item:hover .rs-list-item-ops {
    opacity: 1;
}

.rs-ops-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-6);
    border: 1px solid var(--rs-border-2);
    background: var(--rs-bg);
    color: var(--rs-text-dim);
    font-size: var(--fs-12);
    cursor: pointer;
    transition: all .2s ease;
}

.rs-ops-btn:hover {
    color: var(--rs-accent);
    border-color: var(--rs-accent);
}

.rs-ops-btn.is-danger:hover {
    color: var(--rs-danger);
    border-color: var(--rs-danger);
}

.rs-btn-add {
    width: 100%;
    padding: var(--space-10);
    margin-top: var(--space-4);
    border-radius: var(--radius-12);
    border: 1px dashed var(--rs-border-2);
    background: transparent;
    color: var(--rs-text-dim);
    font-size: var(--fs-13);
    font-family: var(--rs-mono);
    cursor: pointer;
    transition: all .2s ease;
}

.rs-btn-add:hover {
    border-color: var(--rs-accent);
    color: var(--rs-accent);
    background: var(--rs-accent-soft);
}

/* 设置页 */
.rs-settings-group {
    margin-bottom: var(--space-20);
}

.rs-settings-group > h4 {
    margin: 0 0 8px;
    font-size: var(--fs-12);
    color: var(--rs-text-dim);
    font-family: var(--rs-mono);
    font-weight: 600;
    letter-spacing: .05em;
}

.rs-toggle-row {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-10) var(--space-12);
    background: var(--rs-panel-2);
    border: 1px solid var(--rs-border);
    border-radius: var(--radius-12);
    margin-bottom: var(--space-8);
    cursor: pointer;
}

.rs-toggle-row .rs-toggle-text {
    flex: 1;
}

.rs-toggle-text b {
    display: block;
    font-size: var(--fs-13);
    font-weight: 600;
}

.rs-toggle-text span {
    display: block;
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    margin-top: var(--space-2);
}

/* ---------- 右侧预览区 ---------- */
.rs-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        radial-gradient(rgba(93, 151, 67, .07) 1px, transparent 1px),
        #f2f4f7;
    background-size: 22px 22px;
}

.rs-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8) var(--space-16);
    border-bottom: 1px solid var(--rs-border);
    flex-shrink: 0;
}

.rs-preview-file {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--rs-mono);
    font-size: var(--fs-12);
    color: var(--rs-text-dim);
}

.rs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rs-accent);
    box-shadow: 0 0 6px var(--rs-accent);
    animation: rsDot 2.2s ease-in-out infinite;
}

@keyframes rsDot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.rs-preview-zoom {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.rs-icon-btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-6);
    border: 1px solid var(--rs-border-2);
    background: var(--rs-panel-2);
    color: var(--rs-text);
    font-size: var(--fs-14);
    font-family: var(--rs-mono);
    cursor: pointer;
    transition: all .2s ease;
}

.rs-icon-btn:hover {
    border-color: var(--rs-accent);
    color: var(--rs-accent);
}

.rs-zoom-val {
    min-width: 46px;
    text-align: center;
    font-family: var(--rs-mono);
    font-size: var(--fs-12);
    color: var(--rs-text);
}

.rs-preview-scroll {
    flex: 1;
    overflow: auto;
    padding: var(--space-20) var(--space-24) 50px;
    scrollbar-width: thin;
    scrollbar-color: var(--rs-border-2) transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rs-preview-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.rs-preview-scroll::-webkit-scrollbar-thumb {
    background: var(--rs-border-2);
    border-radius: var(--radius-6);
}

.rs-sheet-wrap {
    transform-origin: top center;
    transition: transform .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- 状态栏 ---------- */
.rs-statusbar {
    display: flex;
    align-items: center; gap: var(--space-16);
    height: 28px;
    padding: 0 16px;
    background: var(--rs-panel);
    border-top: 1px solid var(--rs-border);
    font-family: var(--rs-mono);
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    flex-shrink: 0;
    z-index: 20;
}

.rs-status-spacer {
    flex: 1;
}

.rs-status-save {
    color: var(--rs-accent);
}

.rs-status-save.is-saving {
    color: var(--rs-text-dim);
    animation: rsBlink 1s step-end infinite;
}

@keyframes rsBlink {
    50% { opacity: .35; }
}

/* ============================================================================
   2) 简历 A4 纸张（多页分页预览）+ 多套模板
   ========================================================================== */
.rs-sheet {
    box-sizing: border-box;
    margin: 0 auto;
    color: #2b2f36;
    font-size: var(--fs-13);
    line-height: var(--lh-ui);
    background: transparent;
    --accent: #22c55e;
}

/* 单张 A4 纸（流式分页后多张竖向排列，页间留白） */
.r-page {
    width: 794px;            /* A4 @96dpi */
    height: 1123px;
    box-sizing: border-box;
    margin: 0 auto 24px;
    background: #fff;
    box-shadow: 0 14px 42px -12px rgba(31, 42, 58, .4), 0 2px 8px rgba(31, 42, 58, .1);
    overflow: hidden;
    position: relative;
}

.r-page:last-child {
    margin-bottom: var(--space-6);
}

.r-page-inner {
    box-sizing: border-box;
    width: 794px;
    padding: 42px 52px 38px;
}

/* 分页块（整块移动，不在块内截断） */
.r-block-head { margin-bottom: var(--space-12);
}

.r-block-item {
    margin-bottom: var(--space-6);
}

.rs-sheet * {
    box-sizing: border-box;
}

/* 头部 */
.rs-sheet .r-head {
    display: flex; gap: var(--space-16);
    align-items: flex-start;
}

.rs-sheet .r-avatar {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: var(--radius-16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-30);
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    overflow: hidden;
}

.rs-sheet .r-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-sheet .r-head-main {
    flex: 1;
    min-width: 0;
}

.rs-sheet .r-name {
    margin: 0;
    font-size: var(--fs-30);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
}

.rs-sheet .r-title {
    margin: 5px 0 0;
    font-size: var(--fs-15);
    font-weight: 600;
    color: var(--accent);
}

.rs-sheet .r-contact {
    margin: 9px 0 0;
    font-size: var(--fs-12);
    color: #5a6270;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-12);
}

.rs-sheet .r-contact span {
    white-space: nowrap;
}

/* 联系方式图标独立字体（避免等宽模板下 Unicode 符号变成方块） */
.rs-sheet .r-contact .r-c-ico {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "PingFang SC", sans-serif;
    font-style: normal; margin-right: var(--space-4);
    font-size: var(--fs-13);
    line-height: 1;
}

/* 简介 */
.rs-sheet .r-summary {
    margin: 14px 0 0;
    padding: var(--space-8) var(--space-12);
    background: #f6f7f9;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: var(--fs-12);
    line-height: var(--lh-ui);
    color: #3d434d;
    white-space: pre-wrap;
}

/* 求职意向一行 */
.rs-sheet .r-intent {
    margin: 8px 0 0;
    font-size: var(--fs-11);
    font-weight: 600;
    color: #3d434d;
    padding: var(--space-4) var(--space-10);
    background: var(--accent-soft);
    border-radius: var(--radius-6);
    display: inline-block;
    line-height: var(--lh-tight);
    max-width: 100%;
    word-break: keep-all;
}
.rs-sheet.rs-tpl-tech .r-intent {
    background: rgba(255, 255, 255, .07);
    color: #cfd9e8;
}
.rs-sheet.rs-tpl-dark .r-intent {
    background: rgba(255, 255, 255, .05);
    color: #aeb9c8;
}

/* 核心优势条目 */
.rs-sheet .r-strength {
    margin: 0;
    padding: var(--space-6) var(--space-12) var(--space-6) var(--space-24);
    position: relative;
    font-size: var(--fs-12);
    line-height: 1.7;
    color: #3d434d;
    background: #fafbfc;
    border: 1px solid #eef0f4;
    border-radius: var(--radius-8);
}
.rs-sheet .r-strength::before {
    content: "★";
    position: absolute;
    left: var(--space-10);
    top: var(--space-6);
    color: var(--accent);
    font-size: var(--fs-12);
}
.rs-sheet .r-strength + .r-strength {
    margin-top: var(--space-6);
}
.rs-sheet.rs-tpl-dark .r-strength {
    background: #161d27;
    border-color: #26303d;
    color: #aeb9c8;
}

/* 兴趣爱好一行 */
.rs-sheet .r-hobby {
    margin: 10px 0 0;
    font-size: var(--fs-12);
    color: #5a6270;
    line-height: 1.7;
}
.rs-sheet .r-hobby b {
    color: var(--accent);
    margin-right: var(--space-4);
}
.rs-sheet.rs-tpl-dark .r-hobby {
    color: #7f8b9c;
}

/* 模块 */
.rs-sheet .r-section {
    margin-top: var(--space-16);
}

.rs-sheet .r-sec-title {
    display: flex;
    align-items: center; gap: var(--space-8);
    margin: 18px 0 9px;
    font-size: var(--fs-14);
    font-weight: 800;
    letter-spacing: .04em;
    color: #22262c;
    page-break-after: avoid;
    break-after: avoid;
}

.rs-sheet .r-sec-title:first-child {
    margin-top: 0;
}

.rs-sheet .r-sec-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e6ea;
}

.rs-sheet .r-sec-title .r-sec-ico {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-6);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: var(--fs-13);
    font-weight: 700;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Segoe UI", "PingFang SC", sans-serif;
    flex-shrink: 0;
}

/* 经历条目 */
.rs-sheet .r-entry { margin-bottom: var(--space-10);
    padding-left: var(--space-12);
    border-left: 2px solid #e8eaee;
}

.rs-sheet .r-entry-head {
    display: flex;
    align-items: baseline;
    gap: var(--space-10);
    flex-wrap: wrap;
    min-width: 0;
}

.rs-sheet .r-entry-head h3 {
    margin: 0;
    font-size: var(--fs-13);
    font-weight: 700;
    color: #1f2329;
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
}

.rs-sheet .r-entry-role {
    font-size: var(--fs-12);
    font-weight: 600;
    color: var(--accent);
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
}

.rs-sheet .r-entry-date {
    margin-left: auto;
    font-size: var(--fs-11);
    color: #79808c;
    font-family: var(--rs-mono);
    white-space: nowrap;
}

.rs-sheet .r-entry-list {
    margin: 6px 0 0;
    padding-left: var(--space-16);
}

.rs-sheet .r-entry-list li {
    font-size: var(--fs-12);
    line-height: var(--lh-ui);
    color: #3d434d;
    margin-bottom: 1px;
}

/* 行级分页要点（每行独立块，页面可写满且行不跨页） */
.rs-sheet .r-line {
    margin: 0;
    padding: 1px 0 1px 16px;
    position: relative;
    font-size: var(--fs-12);
    line-height: var(--lh-ui);
    color: #3d434d;
}
.rs-sheet .r-line::before {
    content: "";
    position: absolute;
    left: var(--space-2);
    top: var(--space-6);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.rs-sheet.rs-tpl-dark .r-line {
    color: #aeb9c8;
}
.rs-sheet.rs-tpl-tech .r-tech-main .r-line {
    color: #3d434d;
}

.rs-sheet .r-entry-meta {
    margin: 5px 0 0;
    font-size: var(--fs-12);
    color: #5a6270;
}

.rs-sheet .r-entry-link {
    display: inline-block;
    margin-top: var(--space-4);
    font-size: var(--fs-11);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--rs-mono);
    word-break: break-all;
}

/* 技能（进度条 / 标签 两种样式） */
.rs-sheet .r-skill {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.rs-sheet .r-skill-name {
    flex: 0 1 110px;
    min-width: 0;
    font-size: var(--fs-12);
    font-weight: 600;
    color: #2b2f36;
    line-height: var(--lh-tight);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.rs-sheet .r-skill-bar {
    flex: 1 1 auto;
    min-width: 60px;
    height: 6px;
    border-radius: var(--radius-4);
    background: #eceff3;
    overflow: hidden;
}

.rs-sheet .r-skill-bar i {
    display: block;
    height: 100%;
    border-radius: var(--radius-4);
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
}

.rs-sheet .r-skill-level {
    flex: 0 0 32px;
    font-size: var(--fs-11);
    color: #79808c;
    text-align: right;
    font-family: var(--rs-mono);
}

.rs-sheet .r-tags {
    display: flex;
    flex-wrap: wrap; gap: var(--space-6);
}

.rs-sheet .r-tags span {
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: #2b2f36;
    font-size: var(--fs-11);
    font-weight: 500;
}

/* ---------- 模板 1：极简经典 ---------- */
.rs-sheet.rs-tpl-classic {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.rs-sheet.rs-tpl-classic .r-head {
    border-bottom: 2px solid #22262c; padding-bottom: var(--space-16);
}

/* ---------- 模板 2：科技双栏 ---------- */
.rs-sheet.rs-tpl-tech {
    padding: 0;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.rs-sheet.rs-tpl-tech .r-tech-side {
    width: 250px;
    flex-shrink: 0;
    background: #17202e;
    color: #d7e2f0;
    padding: 40px var(--space-24) 36px;
}

.rs-sheet.rs-tpl-tech .r-tech-main {
    flex: 1;
    min-width: 0;
    padding: var(--space-40) 38px 36px;
}

.rs-sheet.rs-tpl-tech .r-head {
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-4);
}

.rs-sheet.rs-tpl-tech .r-avatar {
    width: 92px;
    height: 92px;
    font-size: 36px;
    border-radius: 50%;
    margin-bottom: var(--space-16);
}

.rs-sheet.rs-tpl-tech .r-name {
    color: #fff;
    font-size: var(--fs-26);
}

.rs-sheet.rs-tpl-tech .r-title {
    margin-top: var(--space-4);
}

.rs-sheet.rs-tpl-tech .r-contact {
    flex-direction: column;
    align-items: flex-start; gap: var(--space-6); margin-top: var(--space-16);
    padding-top: var(--space-16);
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #b8c6d8;
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-tech .r-contact span {
    display: inline-flex;
    align-items: center; gap: var(--space-6);
}

.rs-sheet.rs-tpl-tech .r-contact .r-c-ico {
    color: var(--accent);
    font-family: var(--rs-mono);
}

.rs-sheet.rs-tpl-tech .r-summary {
    margin-top: var(--space-16);
    background: rgba(255, 255, 255, .06);
    border-left-color: var(--accent);
    color: #cfd9e8;
}

.rs-sheet.rs-tpl-tech .r-skill-name {
    width: 76px;
}

/* ---------- 模板 3：终端代码风 ---------- */
.rs-sheet.rs-tpl-terminal {
    font-family: var(--rs-mono);
    color: #1e2428;
}

.rs-sheet.rs-tpl-terminal .r-page:first-child .r-term-bar {
    display: flex;
    align-items: center; gap: var(--space-6);
    height: 34px;
    padding: 0 16px;
    background: #1c2126;
    border-radius: 0;
    margin: -42px -52px var(--space-16);
    width: 794px;
}

.rs-sheet.rs-tpl-terminal .r-term-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.rs-sheet.rs-tpl-terminal .r-term-bar i:nth-child(1) { background: #ff5f57; }
.rs-sheet.rs-tpl-terminal .r-term-bar i:nth-child(2) { background: #febc2e; }
.rs-sheet.rs-tpl-terminal .r-term-bar i:nth-child(3) { background: #28c840; }

.rs-sheet.rs-tpl-terminal .r-term-path {
    margin-left: var(--space-10);
    font-size: var(--fs-11);
    color: #7d8792;
    letter-spacing: .04em;
}

.rs-sheet.rs-tpl-terminal .r-head {
    gap: var(--space-16);
}

.rs-sheet.rs-tpl-terminal .r-avatar {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-12);
    font-size: var(--fs-26);
    background: #1c2126;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.rs-sheet.rs-tpl-terminal .r-name {
    font-size: var(--fs-26);
    letter-spacing: .01em;
}

.rs-sheet.rs-tpl-terminal .r-name::before {
    content: "$ ";
    color: var(--accent);
}

.rs-sheet.rs-tpl-terminal .r-title {
    font-size: var(--fs-13);
    font-family: var(--rs-mono);
    letter-spacing: .02em;
}

.rs-sheet.rs-tpl-terminal .r-contact {
    font-family: var(--rs-mono);
    font-size: var(--fs-11);
    color: #57606a;
}

.rs-sheet.rs-tpl-terminal .r-summary {
    background: #f4f6f8;
    border-left: 3px solid var(--accent);
    font-family: var(--rs-mono);
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-terminal .r-sec-title {
    font-family: var(--rs-mono);
    font-size: var(--fs-14);
}

.rs-sheet.rs-tpl-terminal .r-sec-title::before {
    content: "# ";
    color: var(--accent);
}

.rs-sheet.rs-tpl-terminal .r-sec-title::after {
    background: #dfe3e8;
}

.rs-sheet.rs-tpl-terminal .r-entry-head h3 {
    font-size: var(--fs-12);
}

.rs-sheet.rs-tpl-terminal .r-entry-head h3::before {
    content: "▸ ";
    color: var(--accent);
}

.rs-sheet.rs-tpl-terminal .r-entry-role {
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-terminal .r-entry-list li {
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-terminal .r-skill-name {
    font-size: var(--fs-11);
}

/* ---------- 模板 4：现代卡片 ---------- */
.rs-sheet.rs-tpl-modern {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #fdfdfe 100%);
}

.rs-sheet.rs-tpl-modern .r-head {
    background: linear-gradient(120deg, var(--accent-soft), #fff 65%);
    border-radius: var(--radius-16); padding: var(--space-24) ;
    border: 1px solid var(--accent-border2);
}

.rs-sheet.rs-tpl-modern .r-avatar {
    border-radius: 50%;
}

.rs-sheet.rs-tpl-modern .r-name {
    font-size: var(--fs-26);
}

.rs-sheet.rs-tpl-modern .r-summary {
    background: #fff;
    border: 1px solid #eef0f4;
    border-left: 3px solid var(--accent);
}

.rs-sheet.rs-tpl-modern .r-section {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--radius-16);
    padding: var(--space-16) var(--space-20) var(--space-10); margin-top: var(--space-12);
}

.rs-sheet.rs-tpl-modern .r-sec-title {
    margin-bottom: var(--space-12);
}

.rs-sheet.rs-tpl-modern .r-sec-title .r-sec-ico {
    background: var(--accent);
    color: #fff;
}

.rs-sheet.rs-tpl-modern .r-entry {
    border-left: 2px solid var(--accent-border3);
}

.rs-sheet.rs-tpl-modern .r-entry-head h3 {
    font-size: var(--fs-13);
}

/* ---------- 模板 5：暗夜终端 ---------- */
.rs-sheet.rs-tpl-dark {
    color: #c9d4e0;
    font-family: var(--rs-mono);
}

.rs-sheet.rs-tpl-dark .r-page { background: #10151c; }
.rs-sheet.rs-tpl-dark .r-head {
    border-bottom: 1px solid #232c38; padding-bottom: var(--space-16);
}

.rs-sheet.rs-tpl-dark .r-avatar {
    background: linear-gradient(135deg, var(--accent), #0b2b1a);
    border: 1px solid var(--accent-border4);
}

.rs-sheet.rs-tpl-dark .r-name {
    color: #fff;
    font-size: var(--fs-26);
}

.rs-sheet.rs-tpl-dark .r-title {
    color: var(--accent);
    font-size: var(--fs-13);
}

.rs-sheet.rs-tpl-dark .r-contact {
    color: #7f8b9c;
}

.rs-sheet.rs-tpl-dark .r-summary {
    background: #161d27;
    border-left-color: var(--accent);
    color: #aeb9c8;
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-dark .r-sec-title {
    color: #e6edf5;
}

.rs-sheet.rs-tpl-dark .r-sec-title::after {
    background: #232c38;
}

.rs-sheet.rs-tpl-dark .r-entry {
    border-left-color: #26303d;
}

.rs-sheet.rs-tpl-dark .r-entry-head h3 {
    color: #fff;
}

.rs-sheet.rs-tpl-dark .r-entry-role {
    color: var(--accent);
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-dark .r-entry-date {
    color: #5d6a7c;
}

.rs-sheet.rs-tpl-dark .r-entry-list li {
    color: #aeb9c8;
    font-size: var(--fs-11);
}

.rs-sheet.rs-tpl-dark .r-skill-name {
    color: #e6edf5;
}

.rs-sheet.rs-tpl-dark .r-skill-bar {
    background: #1d2530;
}

.rs-sheet.rs-tpl-dark .r-skill-level {
    color: #5d6a7c;
}

.rs-sheet.rs-tpl-dark .r-tags span {
    background: #161d27;
    border-color: #26303d;
    color: #c9d4e0;
}

.rs-sheet.rs-tpl-dark .r-entry-link {
    color: var(--accent);
}

/* 响应式：窄屏 / 内容区收窄时编辑器自适应 */
@media (max-width: 1360px) {
    .rs-sidebar {
        width: 380px;
        min-width: 380px;
    }

    .rs-topbar {
        gap: var(--space-10);
    }

    .rs-topbar-center {
        gap: var(--space-12);
    }

    .rs-btn {
        padding: var(--space-6) var(--space-8);
        font-size: var(--fs-12);
    }

    .rs-tool-group { gap: var(--space-4);
    }

    .rs-topbar-left .rs-logo-text span {
        display: none;
    }
}

@media (max-width: 1100px) {
    .rs-app {
        height: auto;
        min-height: 0;
    }

    .rs-topbar {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-8) var(--space-12);
    }

    .rs-topbar-center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin: 8px 0 0;
        flex-wrap: wrap;
        row-gap: var(--space-8);
    }

    .rs-body {
        flex-direction: column;
    }

    .rs-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid var(--rs-border);
    }

    .rs-preview {
        min-height: 420px;
    }

    .rs-preview-scroll {
        padding: var(--space-16) var(--space-16) 36px;
    }
}

/* 打印适配：只输出 A4 简历，隐藏编辑器与侧边栏 */
@media print {
    /* 屏幕态由页面级选择器写死了宽高、背景、边框与阴影，打印前需逐项还原成白纸，故统一 !important */
    .header,
    .rs-topbar,
    .rs-sidebar,
    .rs-statusbar,
    .rs-preview-toolbar,
    .sidebar,
    .footer,
    .back-to-top {
        display: none !important;
    }

    body,
    .main,
    .main-wrapper,
    .rs-wrap,
    .content,
    .rs-app,
    .rs-body,
    .rs-preview {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        display: block !important;
        border-radius: 0 !important;
    }

    .rs-preview-scroll {
        overflow: visible !important;
        padding: 0 !important;
    }

    .rs-sheet-wrap {
        transform: none !important;
    }

    .rs-sheet {
        background: transparent !important;
    }

    .r-page {
        width: 210mm;
        height: 297mm;
        margin: 0;
        box-shadow: none;
        overflow: hidden;
        page-break-after: always;
        break-after: page;
    }

    .r-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .r-page-inner {
        width: 210mm;
        padding: 11mm 13mm 10mm;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

/* ============================================================================
   右侧 sidebar 简历设置卡片（浅色，与站点 widget 卡片风格统一）
   ========================================================================== */
.rs-widget .widget-title {
    font-size: var(--fs-14);
}

.rs-widget .widget-content {
    padding-top: var(--space-2);
}

/* sidebar 内的开关行（紧凑） */
.rs-widget .rs-toggle-row {
    padding: var(--space-8) var(--space-10);
    margin-bottom: var(--space-6);
}

.rs-widget .rs-toggle-row:last-child {
    margin-bottom: 0;
}

.rs-widget .rs-toggle-text b {
    font-size: var(--fs-12);
}

.rs-widget .rs-toggle-text span {
    font-size: var(--fs-11);
}

/* 技能样式 / 数据备份 */
.rs-widget .rs-radio {
    background: #fff;
}

.rs-widget-btns {
    display: flex;
    gap: var(--space-8);
}

.rs-widget-btns .rs-btn {
    flex: 1;
    justify-content: center;
    padding: var(--space-6);
    font-size: var(--fs-12);
}

.rs-widget-tip {
    font-size: var(--fs-11);
    color: var(--rs-text-dim);
    line-height: var(--lh-ui);
    margin: 10px 0 0;
}

/* ========== 右侧快捷工具卡片 ========== */
.rs-help-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.rs-help-list li {
    position: relative;
    padding: 5px 0 5px 18px;
    font-size: var(--fs-12);
    line-height: 1.7;
    color: var(--rs-text);
}

.rs-help-list li::before {
    content: "▸";
    position: absolute;
    left: var(--space-2);
    top: var(--space-4);
    color: var(--rs-accent);
}

.rs-help-list li b {
    color: var(--rs-accent);
    font-family: var(--rs-mono);
    font-weight: 600;
}

/* ---------- 模板 6：GitHub README 风 ---------- */
.rs-sheet.rs-tpl-github {
    font-family: var(--rs-mono);
    color: #24292f;
}
.rs-sheet.rs-tpl-github .r-page { background: #ffffff; }
.rs-sheet.rs-tpl-github .r-head { gap: var(--space-20); }
.rs-sheet.rs-tpl-github .r-avatar {
    width: 82px; height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #0d5c1f);
    font-size: var(--fs-30);
}
.rs-sheet.rs-tpl-github .r-name { font-size: var(--fs-26); font-weight: 700; letter-spacing: 0; }
.rs-sheet.rs-tpl-github .r-title { font-size: var(--fs-13); color: #57606a; font-weight: 400; }
.rs-sheet.rs-tpl-github .r-intent {
    background: #f6f8fa;
    color: #24292f;
    border: 1px solid #d0d7de;
    border-radius: var(--radius-6);
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-github .r-contact { gap: var(--space-6) var(--space-8); }
.rs-sheet.rs-tpl-github .r-contact span {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-10);
    font-size: var(--fs-11);
    color: #57606a;
    display: inline-flex;
    align-items: center; gap: var(--space-4);
}
.rs-sheet.rs-tpl-github .r-contact .r-c-ico { color: var(--accent); }
.rs-sheet.rs-tpl-github .r-summary {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-6);
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-github .r-sec-title { font-size: var(--fs-14); font-weight: 700; }
.rs-sheet.rs-tpl-github .r-sec-title::after { background: #d0d7de; }
.rs-sheet.rs-tpl-github .r-entry-head h3 { font-size: var(--fs-12); font-weight: 600; }
.rs-sheet.rs-tpl-github .r-entry-role { font-size: var(--fs-11); color: #57606a; }
.rs-sheet.rs-tpl-github .r-entry-date { color: #8c959f; }
.rs-sheet.rs-tpl-github .r-line { color: #57606a; font-size: var(--fs-11); }
.rs-sheet.rs-tpl-github .r-line::before { background: var(--accent); }
.rs-sheet.rs-tpl-github .r-strength {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: var(--radius-6);
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-github .r-skill-name { font-size: var(--fs-11); font-weight: 600; }
.rs-sheet.rs-tpl-github .r-skill-bar { background: #eaeef2; }
.rs-sheet.rs-tpl-github .r-tags span {
    background: #f6f8fa;
    border-color: #d0d7de;
    border-radius: var(--radius-pill);
    font-size: var(--fs-11);
}

/* ---------- 模板 7：极简留白 ---------- */
.rs-sheet.rs-tpl-minimal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #3a3f47;
}
.rs-sheet.rs-tpl-minimal .r-page { background: #ffffff; }
.rs-sheet.rs-tpl-minimal .r-head { gap: var(--space-20); }
.rs-sheet.rs-tpl-minimal .r-avatar {
    border-radius: 50%;
    background: #eef0f2;
    color: #9aa1ab;
    font-weight: 300;
    font-size: var(--fs-28);
}
.rs-sheet.rs-tpl-minimal .r-name {
    font-size: var(--fs-32);
    font-weight: 200;
    letter-spacing: .06em;
    color: #1f242b;
}
.rs-sheet.rs-tpl-minimal .r-title {
    font-weight: 400;
    letter-spacing: .14em;
    font-size: var(--fs-14);
    color: #9aa1ab;
    margin-top: var(--space-8);
}
.rs-sheet.rs-tpl-minimal .r-intent {
    background: none;
    padding: 0;
    font-weight: 300;
    letter-spacing: .06em;
    color: #9aa1ab;
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-minimal .r-contact { color: #9aa1ab; font-weight: 300; font-size: var(--fs-11); }
.rs-sheet.rs-tpl-minimal .r-contact .r-c-ico { color: #c3c8cf; }
.rs-sheet.rs-tpl-minimal .r-summary {
    background: none;
    border-left: none;
    border-radius: 0;
    padding: 0;
    color: #6b7280;
    font-weight: 300;
    letter-spacing: .02em;
}
.rs-sheet.rs-tpl-minimal .r-sec-title {
    font-weight: 400;
    letter-spacing: .22em;
    font-size: var(--fs-13);
    color: #9aa1ab;
}
.rs-sheet.rs-tpl-minimal .r-sec-title .r-sec-ico { display: none; }
.rs-sheet.rs-tpl-minimal .r-sec-title::after { background: #f0f1f3; height: 1px; }
.rs-sheet.rs-tpl-minimal .r-entry-head h3 { font-weight: 500; font-size: var(--fs-13); color: #2b3038; }
.rs-sheet.rs-tpl-minimal .r-entry-role { font-weight: 300; color: #9aa1ab; }
.rs-sheet.rs-tpl-minimal .r-entry-date { color: #c3c8cf; font-weight: 300; }
.rs-sheet.rs-tpl-minimal .r-line { color: #6b7280; font-weight: 300; }
.rs-sheet.rs-tpl-minimal .r-line::before { background: #c3c8cf; }
.rs-sheet.rs-tpl-minimal .r-strength {
    background: none;
    border: none;
    border-radius: 0;
    padding-left: 0;
    font-weight: 300;
    color: #6b7280;
}
.rs-sheet.rs-tpl-minimal .r-strength::before { color: #c3c8cf; }
.rs-sheet.rs-tpl-minimal .r-skill-name { font-weight: 400; color: #3a3f47; }
.rs-sheet.rs-tpl-minimal .r-skill-bar { background: #f0f1f3; }
.rs-sheet.rs-tpl-minimal .r-skill-level { color: #c3c8cf; }
.rs-sheet.rs-tpl-minimal .r-tags span {
    background: none;
    border-color: #e5e7ea;
    border-radius: var(--radius-pill);
    font-weight: 300;
    color: #6b7280;
}
.rs-sheet.rs-tpl-minimal .r-hobby { color: #9aa1ab; font-weight: 300; }

/* ---------- 模板 8：矩阵霓虹 ---------- */
.rs-sheet.rs-tpl-matrix {
    font-family: var(--rs-mono);
    color: #c8ffe0;
}
.rs-sheet.rs-tpl-matrix .r-page {
    background: #030a06;
    position: relative;
    isolation: isolate;
}
.rs-sheet.rs-tpl-matrix .r-page::before {
    content: "010011 1010 11010 011001 0101 00110 011010 101 01100 1001 010110 001 10110 0101 11010 011 1010 001101 0110 10010 110 00101 0101";
    position: absolute;
    inset: 0;
    color: rgba(0, 255, 65, .045);
    font-size: var(--fs-13);
    line-height: 20px;
    letter-spacing: 2px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--rs-mono);
    z-index: 0;
}
.rs-sheet.rs-tpl-matrix .r-page::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .18) 3px 4px);
    pointer-events: none;
    z-index: 2;
}
.rs-sheet.rs-tpl-matrix .r-page-inner { position: relative; z-index: 1; }
.rs-sheet.rs-tpl-matrix .r-avatar {
    border: 2px solid var(--accent);
    background: rgba(0, 255, 65, .08);
    color: var(--accent);
    border-radius: var(--radius-6);
    box-shadow: 0 0 16px rgba(0, 255, 65, .35);
    font-size: var(--fs-26);
}
.rs-sheet.rs-tpl-matrix .r-name {
    color: var(--accent);
    font-size: var(--fs-26);
    text-shadow: 0 0 14px rgba(0, 255, 65, .55);
    letter-spacing: .02em;
}
.rs-sheet.rs-tpl-matrix .r-title { color: #00e676; font-size: var(--fs-13); }
.rs-sheet.rs-tpl-matrix .r-intent {
    background: rgba(0, 255, 65, .08);
    color: #a8fcc4;
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-matrix .r-contact span { color: #7dffab; }
.rs-sheet.rs-tpl-matrix .r-contact .r-c-ico { color: var(--accent); }
.rs-sheet.rs-tpl-matrix .r-summary {
    background: rgba(0, 255, 65, .06);
    border-left-color: var(--accent);
    color: #a8fcc4;
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-matrix .r-sec-title { color: var(--accent); text-shadow: 0 0 10px rgba(0, 255, 65, .4); }
.rs-sheet.rs-tpl-matrix .r-sec-title::after { background: rgba(0, 255, 65, .3); }
.rs-sheet.rs-tpl-matrix .r-entry-head h3 { color: #d8ffe6; }
.rs-sheet.rs-tpl-matrix .r-entry-role { color: #00e676; }
.rs-sheet.rs-tpl-matrix .r-entry-date { color: #3e8f5c; }
.rs-sheet.rs-tpl-matrix .r-line { color: #a8fcc4; }
.rs-sheet.rs-tpl-matrix .r-line::before { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.rs-sheet.rs-tpl-matrix .r-strength {
    background: rgba(0, 255, 65, .05);
    border-color: rgba(0, 255, 65, .22);
    color: #c8ffe0;
}
.rs-sheet.rs-tpl-matrix .r-strength::before { color: var(--accent); }
.rs-sheet.rs-tpl-matrix .r-skill-name { color: #d8ffe6; }
.rs-sheet.rs-tpl-matrix .r-skill-bar { background: rgba(0, 255, 65, .14); }
.rs-sheet.rs-tpl-matrix .r-skill-level { color: #3e8f5c; }
.rs-sheet.rs-tpl-matrix .r-tags span {
    background: rgba(0, 255, 65, .07);
    border-color: rgba(0, 255, 65, .3);
    color: #a8fcc4;
}
.rs-sheet.rs-tpl-matrix .r-hobby { color: #7dffab; }
.rs-sheet.rs-tpl-matrix .r-hobby b { color: var(--accent); }

/* ---------- 模板 9：复古纸张 ---------- */
.rs-sheet.rs-tpl-paper {
    font-family: Georgia, "Songti SC", "SimSun", serif;
    color: #3d3425;
}
.rs-sheet.rs-tpl-paper .r-page { background: #faf6ec; }
.rs-sheet.rs-tpl-paper .r-avatar {
    border-radius: var(--radius-4);
    background: linear-gradient(135deg, var(--accent), #8b6b4a);
    font-family: var(--font-serif);
    font-size: var(--fs-28);
}
.rs-sheet.rs-tpl-paper .r-name {
    font-size: var(--fs-30);
    font-weight: 700;
    letter-spacing: .06em;
    color: #2c2417;
}
.rs-sheet.rs-tpl-paper .r-title {
    color: #8b6b4a;
    font-style: italic;
    font-size: var(--fs-14);
    letter-spacing: .04em;
}
.rs-sheet.rs-tpl-paper .r-intent {
    background: rgba(139, 107, 74, .09);
    color: #5c4a30;
    font-size: var(--fs-11);
}
.rs-sheet.rs-tpl-paper .r-contact { color: #6d5a42; }
.rs-sheet.rs-tpl-paper .r-contact .r-c-ico { color: #8b6b4a; }
.rs-sheet.rs-tpl-paper .r-summary {
    background: rgba(139, 107, 74, .07);
    border-left-color: #8b6b4a;
    border-radius: 0;
    color: #5c4a30;
}
.rs-sheet.rs-tpl-paper .r-sec-title { color: #2c2417; }
.rs-sheet.rs-tpl-paper .r-sec-title::after { background: #dccdb2; }
.rs-sheet.rs-tpl-paper .r-entry { border-left-color: #dccdb2; }
.rs-sheet.rs-tpl-paper .r-entry-head h3 { color: #2c2417; }
.rs-sheet.rs-tpl-paper .r-entry-role { color: #8b6b4a; font-style: italic; font-weight: 400; }
.rs-sheet.rs-tpl-paper .r-entry-date { color: #9b8a6c; }
.rs-sheet.rs-tpl-paper .r-line { color: #5c4a30; }
.rs-sheet.rs-tpl-paper .r-line::before { background: #8b6b4a; }
.rs-sheet.rs-tpl-paper .r-strength {
    background: rgba(139, 107, 74, .05);
    border-color: #e3d7c2;
    color: #5c4a30;
}
.rs-sheet.rs-tpl-paper .r-strength::before { color: #8b6b4a; }
.rs-sheet.rs-tpl-paper .r-skill-name { color: #2c2417; }
.rs-sheet.rs-tpl-paper .r-skill-bar { background: #e8ddc9; }
.rs-sheet.rs-tpl-paper .r-skill-level { color: #9b8a6c; }
.rs-sheet.rs-tpl-paper .r-tags span {
    background: rgba(139, 107, 74, .07);
    border-color: #dccdb2;
    color: #5c4a30;
}
.rs-sheet.rs-tpl-paper .r-hobby { color: #6d5a42; }
.rs-sheet.rs-tpl-paper .r-hobby b { color: #8b6b4a; }

/* ========== 预览页码角标 ========== */
.r-page-num {
    position: absolute;
    right: var(--space-20);
    bottom: var(--space-12);
    font-size: var(--fs-11);
    color: #c0c6d0;
    font-family: var(--rs-mono);
    letter-spacing: .06em;
    -webkit-user-select: none;
    user-select: none;
}
.rs-sheet.rs-tpl-dark .r-page-num,
.rs-sheet.rs-tpl-matrix .r-page-num { color: rgba(255, 255, 255, .32); }
.rs-sheet.rs-tpl-paper .r-page-num { color: #b8a98c; }
.rs-sheet.rs-tpl-minimal .r-page-num { color: #d8dbe0; }
.rs-sheet.rs-tpl-terminal .r-page-num { color: #b8bec9; }

/* ========== PDF 导出态：隐藏预览页码与纸张阴影，避免渲染进 PDF ========== */
.rs-sheet.rs-exporting .r-page-num {
    display: none;
}

.rs-sheet.rs-exporting .r-page {
    box-shadow: none;
    margin: 0;
}
