/* view_pdf_html.php 样式 */

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* ============ 主题系统 ============ */
:root {
    --view-bg: #f5f7fa;
    --view-page-bg: #ffffff;
    --view-text: #1f2937;
}
body[data-theme="paper"]    { --view-bg: #f5f5f5; --view-page-bg: #ffffff; --view-text: #1f2937; }
body[data-theme="eye-care"] { --view-bg: #e8efd9; --view-page-bg: #f7f9ec; --view-text: #2e3a1f; }
body[data-theme="sepia"]    { --view-bg: #efe4d2; --view-page-bg: #f7efd9; --view-text: #5b4636; }
body[data-theme="dark"]     { --view-bg: #1a1a1a; --view-page-bg: #2a2a2a; --view-text: #d4d4d4; }

body { background: var(--view-bg); color: var(--view-text); }

/* ============ 顶部工具栏 ============ */
.vp-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}
body[data-theme="dark"] .vp-topbar { background: rgba(42, 42, 42, 0.92); border-color: #444; }
.vp-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    color: #1f2937;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.15s;
}
.vp-back:hover { background: #e5e7eb; }
body[data-theme="dark"] .vp-back { background: #3a3a3a; color: #d4d4d4; border-color: #444; }

.vp-title-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--view-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.vp-topbar-actions { display: flex; gap: 6px; }
.vp-topbar-btn {
    padding: 5px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}
.vp-topbar-btn:hover { background: #e5e7eb; }
body[data-theme="dark"] .vp-topbar-btn { background: #3a3a3a; color: #d4d4d4; border-color: #444; }
body[data-theme="dark"] .vp-topbar-btn:hover { background: #4a4a4a; }

/* 2026-07-25：访问范围标识 chip（私密/公开/会员） */
.vp-public-chip {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    user-select: none;
}

/* ============ 文档内容 ============ */
.vp-wrap {
    /* 2026-08-02：vp-content 容器过窄，改为跟随屏幕自适应（最大 1280px，屏宽 95%） */
    max-width: min(1280px, 95vw);
    margin: 16px auto;
    padding: 0 16px 40px;
}
.vp-content {
    background: var(--view-page-bg);
    border-radius: 10px;
    padding: 24px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    color: var(--view-text);
    font-size: calc(15px * var(--vp-font-scale, 1));
    line-height: 1.6;
}
.vp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}
.vp-empty h2 { margin-bottom: 8px; }
.vp-doc {
    font-size: 1em;
}
.vp-doc .vp-heading {
    margin: 1.2em 0 0.6em;
    color: var(--view-text);
    font-weight: 600;
}
.vp-doc h1.vp-heading { font-size: 1.8em; }
.vp-doc h2.vp-heading { font-size: 1.4em; }
.vp-doc h3.vp-heading { font-size: 1.15em; }
.vp-doc .vp-text {
    margin: 0.6em 0;
    color: var(--view-text);
}
.vp-doc .vp-box {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.02);
}
.vp-doc .vp-space { height: 12px; }
.vp-doc .vp-hr { border: none; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.vp-doc .vp-img { max-width: 100%; height: auto; border-radius: 4px; }
.vp-doc .vp-row { margin: 4px 0; }
.vp-doc .vp-list { padding-left: 24px; margin: 6px 0; }
.vp-doc .vp-list.vp-list-no-num { list-style: none; padding-left: 0; margin: 4px 0; }
.vp-doc .vp-list.vp-list-no-num > li { position: relative; padding: 4px 0 4px 16px; margin: 0; line-height: 1.7; }
.vp-doc .vp-list.vp-list-no-num > li + li { margin-top: 6px; }
.vp-doc .vp-list.vp-list-no-num > li > .vp-list-title { font-weight: 700; color: #0f172a; }
.vp-doc .vp-list.vp-list-no-num > li > ul.vp-list-nested { margin-top: 6px; padding-left: 0; }
.vp-doc .vp-list.vp-list-nested > li { padding: 3px 0 3px 16px; margin: 0; line-height: 1.7; border-left: 2px solid rgba(148, 163, 184, 0.35); }
.vp-doc .vp-list.vp-list-nested > li + li { margin-top: 2px; }
body[data-theme="dark"] .vp-doc .vp-list.vp-list-no-num > li > .vp-list-title { color: #e2e8f0; }
body[data-theme="dark"] .vp-doc .vp-list.vp-list-nested > li { border-left-color: rgba(148, 163, 184, 0.25); }
.vp-doc .vp-quote {
    border-left: 3px solid #3b82f6;
    padding: 6px 12px;
    margin: 10px 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0 4px 4px 0;
    color: var(--view-text);
}
.vp-doc .vp-raw {
    background: rgba(0, 0, 0, 0.04);
    padding: 12px;
    border-radius: 6px;
    overflow: auto;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-all;
}
body[data-theme="dark"] .vp-doc .vp-raw { background: rgba(255, 255, 255, 0.05); }
.vp-doc .vp-empty-block {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 30px 0;
}
.vp-doc table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}
.vp-doc table td, .vp-doc table th {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    vertical-align: top;
}

/* ============ 留言区 ============ */
.vp-messages {
    background: var(--view-page-bg);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--view-text);
}
.vp-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.vp-msg-head h2 {
    margin: 0;
    font-size: 18px;
    color: var(--view-text);
}
.vp-msg-hint { font-size: 12px; color: #6b7280; }

.vp-msg-form { margin-bottom: 18px; }
.vp-msg-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: transparent;
    color: var(--view-text);
}
.vp-msg-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.vp-msg-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.vp-msg-tip { font-size: 12px; color: #6b7280; }
.vp-btn {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.vp-btn:hover { background: #f9fafb; }
body[data-theme="dark"] .vp-btn { background: #3a3a3a; color: #d4d4d4; border-color: #444; }
.vp-btn-primary {
    background: linear-gradient(to bottom, #3b82f6, #1e40af);
    color: #fff;
    border-color: #1e40af;
    font-weight: 500;
}
.vp-btn-primary:hover { background: linear-gradient(to bottom, #60a5fa, #2563eb); }
.vp-btn-primary:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
}
.vp-msg-status { margin-top: 6px; font-size: 12px; min-height: 18px; color: #6b7280; }
.vp-msg-status.ok { color: #16a34a; }
.vp-msg-status.err { color: #dc2626; }
.vp-msg-login {
    padding: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    margin-bottom: 18px;
    text-align: center;
    color: #92400e;
}
.vp-msg-login a { color: #1e40af; text-decoration: underline; }
.vp-msg-list { display: flex; flex-direction: column; gap: 10px; }
.vp-msg-loading, .vp-msg-empty {
    text-align: center;
    color: #9ca3af;
    padding: 18px 0;
    font-size: 13px;
}
.vp-msg-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
}
.vp-msg-meta { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.vp-msg-meta b { color: var(--view-text); }
.vp-msg-time { color: #9ca3af; margin-left: 6px; }
.vp-msg-content { color: var(--view-text); font-size: 14px; line-height: 1.55; word-break: break-word; }
.vp-msg-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
    font-weight: 500;
}
.vp-badge-admin { background: #fef3c7; color: #92400e; }
.vp-badge-author { background: #dbeafe; color: #1e40af; }

/* ============ FAB 浮动按钮（主题/字号/回到顶部） ============ */
.vp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 80;
}
.vp-fab__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, transform 0.15s;
}
.vp-fab__btn:hover { background: #f3f4f6; transform: scale(1.05); }
body[data-theme="dark"] .vp-fab__btn { background: rgba(42, 42, 42, 0.96); color: #d4d4d4; border-color: #444; }

/* ============ 主题选择面板 ============ */
.vp-theme-panel {
    position: fixed;
    right: 70px;
    bottom: 16px;
    z-index: 91;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}
.vp-theme-panel.is-open { display: flex; }
body[data-theme="dark"] .vp-theme-panel { background: #2a2a2a; border-color: #444; }
.vp-theme-panel__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.vp-theme-panel__item:hover { background: #f3f4f6; }
.vp-theme-panel__item.is-active { background: #eff6ff; color: #2563eb; font-weight: 600; }
body[data-theme="dark"] .vp-theme-panel__item { color: #d4d4d4; }
body[data-theme="dark"] .vp-theme-panel__item.is-active { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.vp-theme-panel__swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
}
.vp-theme-panel__swatch--paper    { background: #fff; }
.vp-theme-panel__swatch--eye-care { background: #f7f9ec; }
.vp-theme-panel__swatch--sepia    { background: #f7efd9; }
.vp-theme-panel__swatch--dark     { background: #2a2a2a; }

/* ============ 字号缩放指示器 ============ */
.vp-font-indicator {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 90;
}
.vp-font-indicator.is-show { opacity: 1; }

/* ============ MD 模式渲染样式（funny_grid.MD_Content 字段） ============ */
/* 2026-07-19 新增：用户用 MD 模式粘贴的源码渲染样式，与 vp-doc 视觉一致但更紧凑 */
.vp-md-source .vp-md-h1,
.vp-md-source .vp-md-h2,
.vp-md-source .vp-md-h3,
.vp-md-source .vp-md-h4,
.vp-md-source .vp-md-h5,
.vp-md-source .vp-md-h6 {
    margin: 18px 0 10px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
}
.vp-md-source .vp-md-h1 { font-size: 1.8em; border-bottom: 2px solid rgba(148, 163, 184, 0.3); padding-bottom: 8px; }
.vp-md-source .vp-md-h2 { font-size: 1.45em; border-bottom: 1px solid rgba(148, 163, 184, 0.2); padding-bottom: 6px; }
.vp-md-source .vp-md-h3 { font-size: 1.22em; }
.vp-md-source .vp-md-h4 { font-size: 1.08em; }
.vp-md-source .vp-md-h5 { font-size: 1em; }
.vp-md-source .vp-md-h6 { font-size: 0.92em; color: #64748b; }

.vp-md-source .vp-md-p {
    margin: 10px 0;
    line-height: 1.75;
    color: #1e293b;
}
.vp-md-source .vp-md-p strong { color: #0f172a; }
.vp-md-source .vp-md-p em { color: #475569; }

.vp-md-source .vp-md-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.5), transparent);
    margin: 20px 0;
}

.vp-md-source .vp-md-list {
    list-style: none;
    padding-left: 24px;
    margin: 8px 0;
    counter-reset: vp-md-ol;
}
.vp-md-source ol.vp-md-list { counter-reset: vp-md-ol; }
.vp-md-source ol.vp-md-list > .vp-md-li { counter-increment: vp-md-ol; }
.vp-md-source ol.vp-md-list > .vp-md-li::before {
    content: counter(vp-md-ol) ".";
    position: absolute;
    left: 0;
    width: 22px;
    text-align: right;
    color: #2563eb;
    font-weight: 700;
}
.vp-md-source ul.vp-md-list > .vp-md-li::before {
    content: "●";
    position: absolute;
    left: 4px;
    color: #64748b;
    font-size: 0.85em;
}
.vp-md-source .vp-md-li {
    position: relative;
    padding: 2px 0 2px 22px;
    margin: 0;
    line-height: 1.7;
}
.vp-md-source .vp-md-list .vp-md-list { margin: 4px 0; }
.vp-md-source .vp-md-li > .vp-md-list { padding-left: 20px; }

.vp-md-source .vp-md-quote {
    margin: 12px 0;
    padding: 10px 16px;
    background: rgba(148, 163, 184, 0.08);
    border-left: 4px solid #94a3b8;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}
.vp-md-source .vp-md-quote p { margin: 0; }

.vp-md-source .vp-md-code {
    display: block;
    margin: 12px 0;
    padding: 12px 16px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
}
.vp-md-source .vp-md-inline-code {
    padding: 1px 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 4px;
    font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
    font-size: 0.92em;
    color: #db2777;
}

.vp-md-source .vp-md-table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}
.vp-md-source .vp-md-table th,
.vp-md-source .vp-md-table td {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    line-height: 1.5;
}
.vp-md-source .vp-md-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}
.vp-md-source .vp-md-table tbody tr:nth-child(even) { background: #fafbfc; }

.vp-md-source .vp-md-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.vp-md-source .vp-md-link:hover { color: #1d4ed8; }

/* 暗色主题适配 */
body[data-theme="dark"] .vp-md-source .vp-md-h1,
body[data-theme="dark"] .vp-md-source .vp-md-h2,
body[data-theme="dark"] .vp-md-source .vp-md-h3,
body[data-theme="dark"] .vp-md-source .vp-md-h4,
body[data-theme="dark"] .vp-md-source .vp-md-h5 { color: #e2e8f0; }
body[data-theme="dark"] .vp-md-source .vp-md-h6 { color: #94a3b8; }
body[data-theme="dark"] .vp-md-source .vp-md-p { color: #cbd5e1; }
body[data-theme="dark"] .vp-md-source .vp-md-p strong { color: #f1f5f9; }
body[data-theme="dark"] .vp-md-source .vp-md-p em { color: #94a3b8; }
body[data-theme="dark"] .vp-md-source .vp-md-quote { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border-left-color: #64748b; }
body[data-theme="dark"] .vp-md-source .vp-md-table { background: #1e293b; border-color: rgba(148, 163, 184, 0.2); }
body[data-theme="dark"] .vp-md-source .vp-md-table th { background: #0f172a; color: #e2e8f0; }
body[data-theme="dark"] .vp-md-source .vp-md-table td { border-color: rgba(148, 163, 184, 0.2); }
body[data-theme="dark"] .vp-md-source .vp-md-table tbody tr:nth-child(even) { background: rgba(148, 163, 184, 0.04); }
body[data-theme="dark"] .vp-md-source .vp-md-inline-code { background: rgba(148, 163, 184, 0.15); color: #f472b6; }
body[data-theme="dark"] .vp-md-source ol.vp-md-list > .vp-md-li::before { color: #60a5fa; }
body[data-theme="dark"] .vp-md-source .vp-md-link { color: #60a5fa; }
body[data-theme="dark"] .vp-md-source .vp-md-link:hover { color: #93c5fd; }

/* ============ 响应式 ============ */
@media (max-width: 600px) {
    .vp-topbar { padding: 8px 12px; flex-wrap: wrap; }
    .vp-title-text { font-size: 14px; }
    .vp-topbar-btn { padding: 4px 8px; font-size: 11px; }
    .vp-content { padding: 16px 18px; }
    .vp-fab { right: 12px; bottom: 12px; }
    .vp-fab__btn { width: 40px; height: 40px; font-size: 13px; }
    .vp-theme-panel { right: 56px; bottom: 12px; }
    .vp-md-source .vp-md-h1 { font-size: 1.5em; }
    .vp-md-source .vp-md-h2 { font-size: 1.25em; }
    .vp-md-source .vp-md-h3 { font-size: 1.1em; }
    .vp-md-source .vp-md-table { font-size: 13px; }
    .vp-md-source .vp-md-table th,
    .vp-md-source .vp-md-table td { padding: 6px 8px; }
}

/* ============ 2026-08-02：领域 Domain chip + Music Embed 简谱嵌入 ============ */
.vp-domain-chip {
    margin-left: 4px;
}

/* Music 嵌入容器 */
.vp-music-embed {
    border: 1px solid #d4c5a0;
    border-radius: 6px;
    background: #fffbf0;
    margin: 16px 0;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(120, 90, 50, 0.08);
}
body[data-theme="dark"] .vp-music-embed {
    background: #2a2a2a;
    border-color: #555;
}
.vp-music-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #d4c5a0;
}
body[data-theme="dark"] .vp-music-toolbar { border-bottom-color: #555; }
.vp-music-btn {
    background: #c0392b;
    color: #fff;
    border: 1px solid #a02818;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.vp-music-btn:hover { background: #a93226; }
.vp-music-btn:active { transform: translateY(1px); }
.vp-music-time {
    margin-left: auto;
    font-family: "Consolas", monospace;
    font-size: 13px;
    color: #6b7280;
}
.vp-music-status {
    font-size: 12px;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
}
.vp-music-status.ok { color: #16a34a; background: rgba(22, 163, 74, 0.1); }
.vp-music-status.err { color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.vp-music-score {
    overflow-x: auto;
    max-height: 1200px;
    min-height: 240px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    position: relative;
    /* 2026-08-02：可调整大小（参见 .vp-music-resizer 拖动手柄） */
    box-sizing: border-box;
}

/* 2026-08-02：简谱窗口右下角调整手柄（真实 div，由 music_embed.js 插入） */
.vp-music-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: ns-resize;
    z-index: 20;
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #999 33%, #999 40%,
            transparent 40%, transparent 60%,
            #999 60%, #999 67%,
            transparent 67%, transparent 100%
        ),
        linear-gradient(135deg,
            transparent 0%, transparent 60%,
            #999 60%, #999 67%,
            transparent 67%, transparent 100%
        );
    opacity: 0.55;
    transition: opacity 0.15s;
}
.vp-music-score:hover .vp-music-resizer {
    opacity: 1;
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #c0392b 33%, #c0392b 40%,
            transparent 40%, transparent 60%,
            #c0392b 60%, #c0392b 67%,
            transparent 67%, transparent 100%
        );
}
.vp-music-score.vp-resizing {
    user-select: none;
    -webkit-user-select: none;
}
.vp-music-score.vp-resizing .vp-music-resizer {
    opacity: 1;
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #a02818 33%, #a02818 40%,
            transparent 40%, transparent 60%,
            #a02818 60%, #a02818 67%,
            transparent 67%, transparent 100%
        );
}

body[data-theme="dark"] .vp-music-score { background: #1a1a1a; }
body[data-theme="dark"] .vp-music-resizer {
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #888 33%, #888 40%,
            transparent 40%, transparent 60%,
            #888 60%, #888 67%,
            transparent 67%, transparent 100%
        );
}
body[data-theme="dark"] .vp-music-score:hover .vp-music-resizer {
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #ff8a80 33%, #ff8a80 40%,
            transparent 40%, transparent 60%,
            #ff8a80 60%, #ff8a80 67%,
            transparent 67%, transparent 100%
        );
}
body[data-theme="dark"] .vp-music-score.vp-resizing .vp-music-resizer {
    background-image:
        linear-gradient(135deg,
            transparent 0%, transparent 33%,
            #ff5252 33%, #ff5252 40%,
            transparent 40%, transparent 60%,
            #ff5252 60%, #ff5252 67%,
            transparent 67%, transparent 100%
        );
}
/* music.css 内的所有 .music-* 元素在嵌入容器内也工作，无需额外覆盖 */

