/* 人间道·破局系统 — 风格 part 2: advisor / armory / scenario */

/* 全局 placeholder 统一风格 */
.advisor-input-area textarea::placeholder,
.scenario-input-area textarea::placeholder,
.scenario-create-form input::placeholder,
.scenario-create-form textarea::placeholder,
.vs-topic-area textarea::placeholder {
    color: rgba(201, 169, 97, 0.35);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* ===== AI军师对话页 ===== */
.rjd-back-btn {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rjd-back-btn:hover { background: rgba(201, 169, 97, 0.1); }
.advisor-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}
.advisor-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.advisor-header h2 {
    color: #c9a961;
    font-size: 18px;
    margin: 0;
    letter-spacing: 2px;
}
.advisor-header .advisor-back {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.advisor-header .advisor-new {
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.advisor-upgrade-btn {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.25);
    color: #888;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.advisor-upgrade-btn:hover { color: #c9a961; border-color: rgba(201, 169, 97, 0.5); }
.advisor-upgrade-btn i { margin-right: 3px; }
.advisor-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.advisor-msg {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 10px;
    line-height: 1.7;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.advisor-msg-user {
    align-self: flex-end;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #f5f1e6;
}
.advisor-msg-ai {
    align-self: flex-start;
    background: rgba(20, 18, 28, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.15);
    color: #ddd;
    white-space: normal;
}
.advisor-msg-ai h1, .advisor-msg-ai h2, .advisor-msg-ai h3 { color: #c9a961; margin-top: 0.8em; margin-bottom: 0.4em; }
.advisor-msg-ai h1 { font-size: 1.3em; }
.advisor-msg-ai h2 { font-size: 1.15em; }
.advisor-msg-ai h3 { font-size: 1.05em; }
.advisor-msg-ai p { margin: 0 0 0.8em 0; }
.advisor-msg-ai p:last-child { margin-bottom: 0; }
.advisor-msg-ai ul, .advisor-msg-ai ol { padding-left: 1.5em; margin: 0.4em 0; }
.advisor-msg-ai li { margin: 0.2em 0; }
.advisor-msg-ai blockquote { border-left: 3px solid rgba(201, 169, 97, 0.4); margin: 0.5em 0; padding: 0.3em 0.8em; color: #bbb; }
.advisor-msg-ai code { background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.advisor-msg-ai pre { background: rgba(0, 0, 0, 0.3); padding: 10px 14px; border-radius: 6px; overflow-x: auto; margin: 0.5em 0; }
.advisor-msg-ai pre code { background: none; padding: 0; }
.advisor-msg-ai strong { color: #f5f1e6; }
.advisor-msg-ai table { border-collapse: collapse; margin: 0.5em 0; width: 100%; }
.advisor-msg-ai th, .advisor-msg-ai td { border: 1px solid rgba(201, 169, 97, 0.2); padding: 6px 10px; text-align: left; }
.advisor-msg-ai th { background: rgba(201, 169, 97, 0.1); color: #c9a961; }
.advisor-info-bar {
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    background: rgba(201, 169, 97, 0.05);
    flex-shrink: 0;
}
.advisor-info-tabs {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.advisor-info-tab {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 12px;
    color: #888;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.advisor-info-tab.active {
    color: #c9a961;
    border-bottom-color: #c9a961;
}
.advisor-info-tab:hover { color: #c9a961; }
.advisor-info-tab i { margin-right: 6px; }
.advisor-graph-wrapper { position: relative; }
.advisor-graph-refresh {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(20,18,28,0.8);
    border: 1px solid rgba(201,169,97,0.3);
    border-radius: 4px;
    color: #888;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
}
.advisor-graph-refresh:hover { color: #c9a961; border-color: #c9a961; }
.advisor-graph-refresh.spinning i { animation: spin 0.8s linear infinite; }
.advisor-graph-view-toggle {
    position: absolute;
    top: 8px;
    right: 40px;
    z-index: 10;
    background: rgba(20,18,28,0.8);
    border: 1px solid rgba(201,169,97,0.3);
    border-radius: 4px;
    color: #888;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s;
}
.advisor-graph-view-toggle:hover { color: #c9a961; border-color: #c9a961; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.advisor-info-arrow {
    margin-left: auto;
    font-size: 10px;
    color: #888;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}
.advisor-info-arrow.open { transform: rotate(180deg); }
.advisor-memory-content {
    padding: 10px 16px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 160px;
    overflow-y: auto;
}
.advisor-graph-container {
    height: 420px;
    position: relative;
    background: rgba(0,0,0,0.15);
}
.advisor-graph-detail {
    padding: 8px 16px 10px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.7;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
}
.advisor-graph-detail .char-name {
    color: #c9a961;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}
.advisor-graph-detail .char-role {
    color: #ffd28a;
    font-size: 12px;
    margin-bottom: 4px;
}
.advisor-graph-empty {
    color: #666;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 24px 0;
}
.advisor-summary-content {
    padding: 12px 16px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    color: #ddd;
    font-size: 13px;
}
.advisor-summary-content h1, .advisor-summary-content h2, .advisor-summary-content h3 { color: #c9a961; margin-top: 1em; margin-bottom: 0.5em; }
.advisor-summary-content p { margin: 0.5em 0; }
.advisor-summary-content ul, .advisor-summary-content ol { padding-left: 1.5em; }
.advisor-summary-content strong { color: #f5f1e6; }
.advisor-summary-empty {
    color: #666;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 20px 0;
}
.advisor-summary-actions {
    padding: 8px 16px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    text-align: center;
}
.advisor-summary-btn {
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.advisor-summary-btn:hover { background: rgba(201, 169, 97, 0.25); }
.advisor-summary-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 移动端人物列表 */
.rjd-char-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rjd-char-card {
    background: rgba(30, 26, 38, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
}
.rjd-char-card-user { border-color: rgba(201, 169, 97, 0.4); background: rgba(201, 169, 97, 0.08); }
.rjd-char-name { color: #f5f1e6; font-size: 14px; font-weight: 600; }
.rjd-char-role { color: #ffd28a; font-size: 12px; font-weight: normal; margin-left: 6px; }
.rjd-char-rels { margin-top: 4px; font-size: 12px; }
.rjd-char-bio { color: #aaa; font-size: 12px; margin-top: 4px; line-height: 1.5; }
/* 输入行右侧容器：上下文圆环 + 推演按钮 */
.advisor-input-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 上下文占用圆环：推演按钮左侧的小图标，hover 弹明细卡 */
.advisor-context-ring {
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}
.advisor-context-ring .ring-bg {
    stroke: rgba(201, 169, 97, 0.18);
}
.advisor-context-ring .ring-fg {
    stroke: #c9a961;
    stroke-dasharray: 56.55;
    stroke-dashoffset: 56.55;
    transition: stroke-dashoffset 0.4s ease, stroke 0.3s ease;
}
.advisor-context-ring.warning .ring-fg { stroke: #f0a030; }
.advisor-context-ring.danger .ring-fg { stroke: #f08080; }
/* 上下文占用明细悬浮卡：hover 圆环时展开，修仙暗金风，与 Info Bar 一致 */
.advisor-context-tooltip {
    position: absolute;
    bottom: 78px;
    right: 16px;
    width: 280px;
    background: rgba(20, 18, 28, 0.97);
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 12px 14px;
    z-index: 50;
    backdrop-filter: blur(8px);
    font-size: 12px;
}
.advisor-context-tooltip-title {
    color: #c9a961;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}
.advisor-context-tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.advisor-context-tooltip-row:last-child { margin-bottom: 0; }
.advisor-context-tooltip-row .label {
    width: 78px;
    color: #aaa;
    flex-shrink: 0;
    white-space: nowrap;
}
.advisor-context-tooltip-row .bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.advisor-context-tooltip-row .bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c9a961, #e8d48b);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.advisor-context-tooltip-row .val {
    width: 70px;
    text-align: right;
    color: #f5f1e6;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.advisor-context-tooltip-row .val .pct {
    color: #ffd28a;
    margin-left: 2px;
}
.advisor-context-tooltip-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    color: #888;
    font-size: 11px;
    text-align: center;
    line-height: 1.6;
}
.advisor-context-tooltip-foot strong {
    color: #f5f1e6;
    font-weight: 600;
}
.advisor-input-area {
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding: 12px 16px;
    background: rgba(20, 18, 28, 0.6);
    position: relative;
}
.advisor-input-area textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #f5f1e6;
    resize: none;
    font-size: 14px;
    min-height: 50px;
    outline: none;
}
/* 次级动作工具条：升级作战室 / 立棋约 / 转视频脚本 —— 与输入框、发送行分层排布，移动端不再挤压 */
.advisor-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(201, 169, 97, 0.12);
}
.advisor-action-toolbar .advisor-upgrade-btn,
.advisor-action-toolbar .advisor-convert-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.advisor-action-toolbar .btn-label { white-space: nowrap; }
.advisor-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}
.advisor-input-row .hint { font-size: 11px; color: #888; }
.advisor-send-btn {
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    border: none;
    color: #1a1a2e;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.advisor-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 武器库 ===== */
.armory-page { max-width: 720px; margin: 24px auto; padding: 0 20px; }
.armory-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.armory-header h2 { color: #c9a961; font-size: 22px; letter-spacing: 4px; margin: 0; flex: 1; }
.lesson-list { display: flex; flex-direction: column; gap: 12px; }
.lesson-card {
    padding: 18px 22px;
    background: rgba(30, 26, 38, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}
.lesson-card:hover { border-color: rgba(201, 169, 97, 0.5); background: rgba(40, 32, 50, 0.9); }
.lesson-seq {
    font-size: 24px;
    color: #c9a961;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    border-right: 1px solid rgba(201, 169, 97, 0.2);
    padding-right: 12px;
}
.lesson-body { flex: 1; }
.lesson-title { font-size: 16px; color: #f5f1e6; margin-bottom: 4px; }
.lesson-subtitle { font-size: 12px; color: #aaa; }

/* ===== 课程详情 ===== */
.lesson-detail { max-width: 760px; margin: 16px auto; padding: 0 20px; }
.lesson-detail-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lesson-detail-header h2 { color: #c9a961; font-size: 20px; margin: 0; flex: 1; }
.lesson-detail-back {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.lesson-content {
    line-height: 1.85;
    color: #ddd;
    font-size: 14px;
    background: rgba(20, 18, 28, 0.6);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.1);
}
.lesson-content h1, .lesson-content h2, .lesson-content h3 { color: #c9a961; margin-top: 1.5em; }
.lesson-content p { margin: 0.8em 0; }
.lesson-content ul, .lesson-content ol { padding-left: 1.5em; }
.lesson-content code { background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 3px; }

/* ===== 作战室棋局列表 ===== */
.scenarios-page { max-width: 720px; margin: 24px auto; padding: 0 20px; }
.scenarios-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.scenarios-header h2 { color: #c9a961; font-size: 22px; letter-spacing: 4px; margin: 0; flex: 1; }
.scenario-new-btn {
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    border: none;
    color: #1a1a2e;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.scenario-list { display: flex; flex-direction: column; gap: 12px; }
.scenario-card {
    padding: 16px 20px;
    background: rgba(30, 26, 38, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    cursor: pointer;
}
.scenario-card:hover { border-color: rgba(201, 169, 97, 0.5); }
.scenario-card-title { color: #f5f1e6; font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.sc-card-extra { font-size: 12px; color: #888; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.sc-card-opponent i { color: #f08080; font-size: 10px; margin-right: 3px; }
.sc-card-risk { font-size: 10px; padding: 1px 7px; border-radius: 8px; }
.sc-card-risk-low { color: #79e09a; background: rgba(121,224,154,0.1); }
.sc-card-risk-mid { color: #ffd28a; background: rgba(255,210,138,0.1); }
.sc-card-risk-high { color: #f08080; background: rgba(240,128,128,0.1); }
.sc-card-footer { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #888; }
.sc-card-progress { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.sc-card-progress-fill { height: 100%; background: #c9a961; border-radius: 2px; transition: width 0.3s; }
.sc-card-round { color: #666; min-width: 32px; }
.sc-card-time { margin-left: auto; }
.sc-card-footer .status-active { color: #79e09a; }
.sc-card-footer .status-completed { color: #c9a961; }
.sc-card-footer .status-abandoned { color: #888; }
.scenario-card-meta { font-size: 12px; color: #888; display: flex; gap: 12px; flex-wrap: wrap; }
.scenario-card-meta .status-active { color: #79e09a; }
.scenario-card-meta .status-completed { color: #c9a961; }
.scenario-card-meta .status-abandoned { color: #888; }

/* ===== 新建棋局表单 ===== */
.scenario-create-wrapper { max-width: 560px; margin: 0 auto; padding: 24px 20px; width: 100%; box-sizing: border-box; }
.scenario-create-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.scenario-create-header h2 { color: #c9a961; margin: 0; font-size: 20px; letter-spacing: 3px; }
.scenario-create-form { padding: 24px; background: rgba(20, 18, 28, 0.85); border: 1px solid rgba(201, 169, 97, 0.2); border-radius: 10px; }
.scenario-create-form .form-row { margin-bottom: 14px; }
.scenario-create-form label { display: block; margin-bottom: 6px; color: #c9a961; font-size: 13px; }
.scenario-create-form input, .scenario-create-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 4px;
    padding: 10px 12px;
    color: #f5f1e6;
    font-size: 13px;
    outline: none;
    resize: vertical;
}
.scenario-create-form input:focus, .scenario-create-form textarea:focus { border-color: #c9a961; }
.scenario-create-form .form-actions { display: flex; gap: 8px; margin-top: 16px; }
.scenario-create-form .form-actions button { flex: 1; }

/* ===== 博弈对局界面 ===== */
.scenario-page { display: flex; flex-direction: column; height: 100%; max-width: 920px; margin: 0 auto; width: 100%; }
.scenario-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
}
.scenario-header h3 { flex: 1; color: #c9a961; margin: 0; font-size: 16px; }
.scenario-header-actions { display: flex; gap: 6px; }
.sc-header-btn {
    background: none;
    border: 1px solid rgba(201, 169, 97, 0.2);
    color: #888;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.sc-header-btn:hover { border-color: #c9a961; color: #c9a961; }
.scenario-status-bar {
    padding: 14px 20px;
    background: rgba(20, 18, 28, 0.7);
    display: flex;
    align-items: stretch;
    gap: 0;
    font-size: 13px;
    color: #ddd;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.sc-power-panel { flex: 1; min-width: 0; padding: 4px 0; }
.sc-power-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sc-power-label { color: #888; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.sc-power-label i { font-size: 11px; }
.sc-power-label .fa-chess-king { color: #c9a961; }
.sc-power-label .fa-chess-queen { color: #f08080; }
.sc-power-level { font-size: 13px; font-weight: 600; color: #e8e0d0; display: flex; align-items: center; gap: 4px; }
.sc-trend-up { color: #79e09a; font-size: 10px; }
.sc-trend-down { color: #f08080; font-size: 10px; }
.sc-trend-stable { color: #888; font-size: 10px; }
.sc-power-bar-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.sc-power-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; min-width: 0; }
.sc-power-fill-me { background: linear-gradient(90deg, #6ec6ff, #79e09a); }
.sc-power-fill-op { background: linear-gradient(90deg, #f08080, #ff9a5c); }
.sc-chips { margin-top: 5px; font-size: 11px; color: #c9a961; cursor: pointer; display: flex; align-items: center; gap: 3px; }
.sc-chips:hover { opacity: 0.7; }
.sc-chips i { font-size: 10px; }
.sc-chip {
    font-size: 10px; padding: 2px 8px; border-radius: 10px;
    background: rgba(201,169,97,0.1); color: #c9a961; border: 1px solid rgba(201,169,97,0.2);
    white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}
.sc-chips-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.sc-chips-modal { background: #1e1b2e; border: 1px solid rgba(201,169,97,0.3); border-radius: 12px; padding: 20px; min-width: 260px; max-width: 90vw; max-height: 60vh; overflow-y: auto; }
.sc-chips-modal-title { font-size: 15px; font-weight: 600; color: #e8e0d0; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sc-chips-modal-title i { color: #c9a961; }
.sc-chips-modal-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip-modal-item {
    font-size: 12px; padding: 5px 12px; border-radius: 12px;
    background: rgba(201,169,97,0.12); color: #c9a961; border: 1px solid rgba(201,169,97,0.25);
}
.sc-vs-divider {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900; color: #c9a961; letter-spacing: 2px;
    padding: 0 14px; opacity: 0.6;
}
.sc-risk-panel {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 4px 16px; border-left: 1px solid rgba(201,169,97,0.12); min-width: 80px;
}
.sc-risk-label { font-size: 11px; color: #888; margin-bottom: 6px; }
.sc-risk-bar-track { width: 60px; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.sc-risk-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease, background 0.6s ease; width: 0; }
.risk-fill-low { background: #79e09a; }
.risk-fill-medium { background: linear-gradient(90deg, #ffd28a, #ff9a5c); }
.risk-fill-high { background: linear-gradient(90deg, #f08080, #dc3545); }
.sc-risk-level { font-size: 13px; font-weight: 600; margin-top: 4px; }
.risk-low { color: #79e09a !important; }
.risk-medium { color: #ffd28a !important; }
.risk-high { color: #f08080 !important; }

.sc-prediction {
    padding: 6px 20px 8px;
    font-size: 12px;
    color: #999;
    font-style: italic;
    background: rgba(20, 18, 28, 0.7);
    border-bottom: 1px solid rgba(201, 169, 97, 0.06);
    min-height: 0;
}
.sc-prediction i { color: #c9a961; margin-right: 4px; font-style: normal; }

.sc-trend-chart {
    padding: 10px 20px;
    background: rgba(20, 18, 28, 0.8);
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}
.sc-trend-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: #c9a961; }
.sc-trend-header i { margin-right: 4px; }
.sc-trend-close { background: none; border: none; color: #666; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.sc-trend-close:hover { color: #c9a961; }
#scTrendSvg { width: 100%; height: auto; display: block; }
.sc-trend-legend { display: flex; gap: 16px; margin-top: 6px; font-size: 10px; color: #888; }
.sc-trend-legend i { font-size: 8px; margin-right: 3px; }
.sc-legend-me i { color: #6ec6ff; }
.sc-legend-op i { color: #f08080; }

.scenario-rounds { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.scenario-round {
    padding: 14px 18px;
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    background: rgba(20, 18, 28, 0.55);
}
.scenario-round-user {
    background: rgba(201, 169, 97, 0.08);
    border-color: rgba(201, 169, 97, 0.3);
}
.scenario-round-tag { color: #c9a961; font-size: 12px; margin-bottom: 6px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.sc-badges { display: inline-flex; gap: 5px; margin-left: auto; }
.sc-badge { font-size: 10px; padding: 1px 7px; border-radius: 8px; letter-spacing: 0; }
.sc-badge-rating { background: rgba(201,169,97,0.15); color: #c9a961; }
.sc-badge-risk { background: rgba(255,255,255,0.05); color: #aaa; }
.sc-badge-risk-low { color: #79e09a; background: rgba(121,224,154,0.1); }
.sc-badge-risk-mid { color: #ffd28a; background: rgba(255,210,138,0.1); }
.sc-badge-risk-high { color: #f08080; background: rgba(240,128,128,0.1); }
.scenario-round-content { color: #ddd; line-height: 1.8; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.scenario-round:not(.scenario-round-user) .scenario-round-content { white-space: normal; }

/* 推演分段卡片 */
.sc-section-card { margin-bottom: 12px; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,0.03); border-left: 3px solid rgba(201,169,97,0.3); }
.sc-section-card:last-child { margin-bottom: 0; }
.sc-section-card.sc-analysis { border-left-color: #6ec6ff; }
.sc-section-card.sc-opponent { border-left-color: #f08080; }
.sc-section-card.sc-suggest { border-left-color: #79e09a; }
.sc-section-card.sc-situation { border-left-color: #ffd28a; }
.sc-section-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.sc-section-card.sc-analysis .sc-section-title { color: #6ec6ff; }
.sc-section-card.sc-opponent .sc-section-title { color: #f08080; }
.sc-section-card.sc-suggest .sc-section-title { color: #79e09a; }
.sc-section-card.sc-situation .sc-section-title { color: #ffd28a; }
.sc-section-body { color: #ddd; font-size: 13px; line-height: 1.75; }
.sc-section-body p { margin: 0 0 0.5em 0; }
.sc-section-body p:last-child { margin-bottom: 0; }
.sc-section-body ol, .sc-section-body ul { padding-left: 1.5em; margin: 0.3em 0; }
.sc-section-body li { margin-bottom: 0.3em; }
.sc-section-body strong { color: #f5f1e6; }

/* 建议采纳 */
.sc-suggest-row { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; transition: background 0.15s; }
.sc-suggest-row:hover { background: rgba(121,224,154,0.06); }
.sc-suggest-row label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; color: #ddd; font-size: 13px; line-height: 1.6; }
.sc-suggest-check { margin-top: 3px; accent-color: #79e09a; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.sc-suggest-adopt-btn {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px; padding: 6px 16px;
    background: rgba(121,224,154,0.1); border: 1px solid rgba(121,224,154,0.3);
    color: #79e09a; border-radius: 4px; font-size: 12px; cursor: pointer;
    transition: all 0.2s;
}
.sc-suggest-adopt-btn:hover { background: rgba(121,224,154,0.2); border-color: #79e09a; }

/* 兼容旧的【】格式 */
.scenario-round:not(.scenario-round-user) .scenario-round-content h1,
.scenario-round:not(.scenario-round-user) .scenario-round-content h2,
.scenario-round:not(.scenario-round-user) .scenario-round-content h3 { color: #c9a961; margin-top: 1em; margin-bottom: 0.5em; font-size: 15px; }
.scenario-round:not(.scenario-round-user) .scenario-round-content h4 { color: #c9a961; margin-top: 1em; margin-bottom: 0.4em; font-size: 14px; font-weight: 600; }
.scenario-round:not(.scenario-round-user) .scenario-round-content h4.section-tag { color: #e8c96a; font-size: 14px; font-weight: 700; margin-top: 1.2em; margin-bottom: 0.3em; padding-bottom: 0.3em; border-bottom: 1px solid rgba(201, 169, 97, 0.2); }
.scenario-round:not(.scenario-round-user) .scenario-round-content h4.section-tag:first-child { margin-top: 0; }
.scenario-round:not(.scenario-round-user) .scenario-round-content p { margin: 0 0 0.8em 0; }
.scenario-round:not(.scenario-round-user) .scenario-round-content p:last-child { margin-bottom: 0; }
.scenario-round:not(.scenario-round-user) .scenario-round-content ul,
.scenario-round:not(.scenario-round-user) .scenario-round-content ol { padding-left: 1.5em; margin: 0.4em 0; }
.scenario-round:not(.scenario-round-user) .scenario-round-content blockquote { border-left: 3px solid rgba(201, 169, 97, 0.4); margin: 0.5em 0; padding: 0.3em 0.8em; color: #bbb; }
.scenario-round:not(.scenario-round-user) .scenario-round-content strong { color: #f5f1e6; }
.scenario-round:not(.scenario-round-user) .scenario-round-content code { background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 3px; }
.scenario-round:not(.scenario-round-user) .scenario-round-content pre { background: rgba(0, 0, 0, 0.3); padding: 10px 14px; border-radius: 6px; overflow-x: auto; }

.scenario-input-area {
    padding: 14px 20px;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    background: rgba(20, 18, 28, 0.6);
}
.scenario-input-area textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #f5f1e6;
    font-size: 14px;
    min-height: 60px;
    resize: none;
    outline: none;
}
.scenario-input-row { display: flex; gap: 10px; margin-top: 8px; align-items: center; }
.scenario-input-row .hint { flex: 1; font-size: 11px; color: #888; }
.scenario-move-btn {
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    border: none;
    color: #1a1a2e;
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.scenario-move-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.scenario-complete-btn {
    background: rgba(220, 60, 60, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.4);
    color: #f08080;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.scenario-suggest-btn {
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.scenario-suggest-btn:hover {
    background: rgba(201, 169, 97, 0.25);
    border-color: #c9a961;
}
.scenario-suggest-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 人间道侧栏 ===== */
.rjd-empty-guide {
    text-align: center;
    padding: 30px 16px;
    max-width: 400px;
    margin: 0 auto;
}
.rjd-empty-guide-title {
    color: #c9a961;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.rjd-empty-guide-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.rjd-empty-guide-examples {
    text-align: left;
    background: rgba(201, 169, 97, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
}
.rjd-empty-guide-label {
    color: #c9a961;
    font-size: 11px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.rjd-empty-guide-item {
    color: #bbb;
    font-size: 12px;
    line-height: 1.6;
    padding: 6px 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}
.rjd-empty-guide-item:last-child { border-bottom: none; }
.rjd-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.rjd-template-card {
    background: rgba(201, 169, 97, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.rjd-template-card:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: rgba(201, 169, 97, 0.4);
    transform: translateY(-1px);
}
.rjd-template-icon {
    color: #c9a961;
    font-size: 16px;
    margin-bottom: 6px;
}
.rjd-template-cat {
    color: #c9a961;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.rjd-template-preview {
    color: #999;
    font-size: 11px;
    line-height: 1.5;
}

.rjd-sidebar-tabs {
    display: flex;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    margin-bottom: 8px;
}
.rjd-sidebar-tabs .tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    border-bottom: 2px solid transparent;
}
.rjd-sidebar-tabs .tab.active {
    color: #c9a961;
    border-bottom-color: #c9a961;
}
.rjd-sidebar-list { flex: 1; overflow-y: auto; padding: 0 12px; }
.rjd-sidebar-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.rjd-sidebar-item:hover { background: rgba(201, 169, 97, 0.08); border-color: rgba(201, 169, 97, 0.3); }
.rjd-sidebar-item-title { color: #ddd; font-size: 13px; margin-bottom: 2px; word-break: break-all; }
.rjd-sidebar-item-meta { color: #888; font-size: 11px; }
.rjd-sidebar-item-actions { display: none; margin-top: 4px; }
.rjd-sidebar-item:hover .rjd-sidebar-item-actions { display: flex; gap: 4px; }
@media (max-width: 767px) {
    .rjd-sidebar-item-actions { display: flex; gap: 4px; }
}
@media (hover: none) {
    .rjd-sidebar-item-actions { display: flex; gap: 4px; }
}
.rjd-sidebar-empty { text-align: center; color: #666; padding: 30px 10px; font-size: 12px; }
.rjd-tag-filter-bar {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    padding: 6px 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.rjd-tag-filter-item {
    padding: 3px 8px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
}
.rjd-tag-filter-item:hover { color: #c9a961; }
.rjd-tag-filter-item.active { color: #c9a961; background: rgba(201, 169, 97, 0.12); }
.rjd-tag-badge {
    display: inline-block;
    background: rgba(201, 169, 97, 0.12);
    color: #c9a961;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}
.sidebar-item-tag {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 11px;
}
.sidebar-item-tag:hover { color: #c9a961; }

/* 标签选择弹窗 */
.rjd-tag-pick-modal {
    background: rgba(20,18,28,0.98);
    border: 1px solid rgba(201,169,97,0.3);
    border-radius: 12px;
    padding: 24px 20px;
    max-width: 320px;
    width: 100%;
    text-align: center;
}
.rjd-tag-pick-title {
    color: #c9a961;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.rjd-tag-pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.rjd-tag-pick-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(201,169,97,0.06);
    border: 1px solid rgba(201,169,97,0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #ccc;
    position: relative;
}
.rjd-tag-pick-item:hover {
    background: rgba(201,169,97,0.15);
    border-color: rgba(201,169,97,0.4);
    color: #f5f1e6;
}
.rjd-tag-pick-item.active {
    background: rgba(201,169,97,0.18);
    border-color: #c9a961;
    color: #f5f1e6;
}
.rjd-tag-pick-item i { font-size: 14px; }
.rjd-tag-pick-check {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #c9a961;
    color: #1a1a2e;
    font-size: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rjd-tag-pick-clear {
    background: transparent;
    border: 1px solid rgba(240,128,128,0.3);
    color: #f08080;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    margin-bottom: 8px;
    transition: all 0.15s;
}
.rjd-tag-pick-clear:hover { background: rgba(240,128,128,0.1); }
.rjd-tag-pick-cancel {
    background: transparent;
    border: 1px solid rgba(201,169,97,0.3);
    color: #888;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    transition: all 0.15s;
}
.rjd-tag-pick-cancel:hover { color: #c9a961; border-color: rgba(201,169,97,0.5); }

/* ===== 响应式 ===== */

/* header内嵌侧边栏按钮，仅移动端显示 */
.rjd-header-sidebar-btn { display: none; }

/* ===== Mobile drawer (<=767px) ===== */
.rjd-mobile-fab {
    display: none;
}
.rjd-mobile-drawer-overlay {
    display: none;
}
.rjd-mobile-drawer {
    display: none;
}

@media (max-width: 767px) {
    .rjd-header-sidebar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: rgba(201, 169, 97, 0.12);
        border: 1px solid rgba(201, 169, 97, 0.3);
        color: #c9a961;
        font-size: 14px;
        cursor: pointer;
        margin-left: 4px;
    }
    .rjd-header-sidebar-btn:active { background: rgba(201, 169, 97, 0.25); }

    .rjd-mobile-fab { display: none !important; }

    .rjd-mobile-drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 60;
    }
    .rjd-mobile-drawer-overlay.open { display: block; }

    .rjd-mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: rgba(20, 18, 28, 0.98);
        border-left: 1px solid rgba(201, 169, 97, 0.2);
        z-index: 61;
        transition: right 0.3s ease;
    }
    .rjd-mobile-drawer.open { right: 0; }
    .rjd-mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    }
    .rjd-mobile-drawer-title { color: #c9a961; font-size: 16px; letter-spacing: 2px; font-weight: 600; }
    .rjd-mobile-drawer-close {
        background: transparent;
        border: none;
        color: #888;
        font-size: 18px;
        cursor: pointer;
        padding: 4px 8px;
    }
    .rjd-mobile-drawer-footer {
        padding: 10px 16px;
        border-top: 1px solid rgba(201, 169, 97, 0.15);
        flex-shrink: 0;
    }
    .rjd-mobile-drawer .rjd-sidebar-tabs { margin: 0; }
    .rjd-mobile-drawer .rjd-sidebar-list { padding: 8px 12px; }
}
@media (max-width: 480px) {
    /* 返回按钮 */
    .rjd-back-btn { padding: 8px 12px; font-size: 13px; min-height: 36px; }

    /* AI军师 */
    .advisor-header { padding: 10px 12px; gap: 8px; }
    .advisor-header h2 { font-size: 15px; letter-spacing: 1px; flex: 1; text-align: center; }
    .advisor-header .advisor-new { padding: 8px 10px; font-size: 11px; }
    .advisor-messages { padding: 12px 10px; gap: 10px; }
    .advisor-msg { max-width: 88%; padding: 10px 12px; font-size: 14px; border-radius: 8px; }
    .advisor-input-area { padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    .advisor-input-area textarea { min-height: 44px; padding: 10px 12px; font-size: 16px; }
    .advisor-send-btn { padding: 10px 16px; }
    /* 次级动作工具条：移动端三个按钮各占约 1/3，可换行，触摸目标更大；图标常显、文字精简 */
    .advisor-action-toolbar { gap: 6px; margin-top: 6px; padding-top: 8px; }
    .advisor-action-toolbar .advisor-upgrade-btn,
    .advisor-action-toolbar .advisor-convert-btn {
        flex: 1 1 calc(33.333% - 6px);
        padding: 9px 6px;
        font-size: 11px;
        min-height: 36px;
    }
    .advisor-action-toolbar .btn-label { font-size: 11px; }
    .advisor-input-row .hint { font-size: 11px; flex: 1; min-width: 0; }

    /* 武器库 */
    .armory-page { margin: 16px auto; padding: 0 12px; }
    .armory-header { margin-bottom: 14px; }
    .armory-header h2 { font-size: 18px; letter-spacing: 2px; }
    .lesson-card { padding: 14px 16px; gap: 12px; min-height: 44px; }
    .lesson-seq { font-size: 20px; min-width: 36px; padding-right: 10px; }
    .lesson-title { font-size: 14px; }
    .lesson-subtitle { font-size: 11px; }

    /* 课程详情 */
    .lesson-detail { margin: 10px auto; padding: 0 12px; }
    .lesson-detail-header { gap: 10px; margin-bottom: 14px; }
    .lesson-detail-header h2 { font-size: 17px; }
    .lesson-content { padding: 16px; font-size: 14px; line-height: 1.75; }

    /* 作战室列表 */
    .scenarios-page { margin: 16px auto; padding: 0 12px; }
    .scenarios-header { margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
    .scenarios-header h2 { font-size: 18px; letter-spacing: 2px; }
    .scenario-new-btn { padding: 8px 14px; font-size: 13px; min-height: 36px; }
    .scenario-card { padding: 12px 14px; min-height: 44px; }
    .scenario-card-title { font-size: 14px; }
    .scenario-card-meta { font-size: 11px; gap: 8px; }

    /* 新建棋局 */
    .scenario-create-wrapper { padding: 16px 12px; }
    .scenario-create-header { margin-bottom: 16px; }
    .scenario-create-header h2 { font-size: 17px; }
    .scenario-create-form { margin: 0; padding: 18px 14px; }
    .scenario-create-form input, .scenario-create-form textarea { font-size: 16px; padding: 10px 12px; }

    /* 博弈对局 */
    .scenario-page { max-width: 100%; }
    .scenario-header { padding: 10px 14px; gap: 8px; }
    .scenario-header h3 { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* 「转视频脚本」在移动端与其他三个图标按钮统一为 30×30 图标按钮，文字留给 title 提示，避免拥挤 */
    .sc-convert-btn .btn-label { display: none; }
    .scenario-status-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 0;
    }
    .sc-vs-divider { padding: 0 8px; font-size: 12px; }
    .sc-risk-panel { padding: 4px 10px; border-left: none; border-top: 1px solid rgba(201,169,97,0.1); flex-direction: row; gap: 10px; width: 100%; margin-top: 6px; padding-top: 8px; }
    .sc-risk-label { margin-bottom: 0; }
    .sc-chip { font-size: 9px; padding: 1px 6px; max-width: 80px; }
    .scenario-rounds { padding: 12px 10px; gap: 12px; }
    .scenario-round { padding: 12px 14px; }
    .scenario-round-content { font-size: 14px; }
    .scenario-input-area { padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    .scenario-input-area textarea { min-height: 48px; padding: 10px 12px; font-size: 16px; }
    .scenario-input-row { gap: 8px; flex-wrap: wrap; }
    .scenario-input-row .hint { font-size: 11px; order: 3; flex-basis: 100%; text-align: center; }
    .scenario-move-btn { padding: 10px 16px; min-height: 36px; }
    .scenario-complete-btn { padding: 8px 12px; min-height: 36px; }

    /* 空引导卡片 */
    .rjd-empty-guide { padding: 20px 10px; }
    .rjd-empty-guide-title { font-size: 15px; }
    .rjd-empty-guide-desc { font-size: 12px; }
    .rjd-empty-guide-item { font-size: 12px; }
    .rjd-template-grid { grid-template-columns: 1fr; }

    /* 造势台 */
    .vs-directions { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vs-dir-card { padding: 12px 8px; }
    .vs-dir-card i { font-size: 20px; margin-bottom: 6px; }
    .vs-dir-card span { font-size: 13px; }
    .vs-body { padding: 16px 14px; }
    .vs-topic-area textarea { font-size: 16px; }
    .vs-generate-btn { padding: 12px 20px; font-size: 14px; width: 100%; }
    .vs-generate-row { flex-direction: column; gap: 8px; }
    .vs-cost-hint { text-align: center; }
    .vs-header h2, .vs-result-header h2, .vs-history-header h2 { font-size: 16px; }
    .vs-title-text { font-size: 17px; }
    .vs-script-text { font-size: 14px; line-height: 1.9; }
    .vs-result-actions { flex-direction: column; }
    .vs-streaming, .vs-result-body { padding: 16px 14px; }
    .vs-history-list { padding: 12px 14px; }
    .vs-filter-bar { padding: 0 14px; }
    .vs-filter-tab { padding: 10px 12px; font-size: 12px; }
    .vs-script-card-actions { gap: 0; }
    .vs-script-card-film, .vs-script-card-del { padding: 8px; font-size: 12px; }
}

/* ===== Desktop (1024px+) ===== */
@media (min-width: 1024px) {
    .advisor-page { max-width: 960px; }
    .scenario-page { max-width: 960px; }
    .vs-page, .vs-result-page, .vs-history-page { max-width: 860px; }
    .vs-directions { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Large Desktop (1440px+) ===== */
@media (min-width: 1440px) {
    .advisor-page { max-width: 1060px; }
    .armory-page { max-width: 820px; }
    .scenarios-page { max-width: 820px; }
    .lesson-detail { max-width: 860px; }
    .scenario-page { max-width: 1060px; }
    .vs-page, .vs-result-page, .vs-history-page { max-width: 960px; }
}

/* ===== 造势台 ===== */
.vs-page, .vs-result-page, .vs-history-page {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.vs-header, .vs-result-header, .vs-history-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.vs-header h2, .vs-result-header h2, .vs-history-header h2 {
    flex: 1;
    color: #f5f1e6;
    font-size: 18px;
    margin: 0;
}
.vs-history-btn, .vs-copy-btn {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.vs-history-btn:hover, .vs-copy-btn:hover { background: rgba(201, 169, 97, 0.1); }

/* 方向选择 */
.vs-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}
.vs-direction-label {
    color: #c9a961;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.vs-directions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.vs-dir-card {
    padding: 16px 12px;
    background: rgba(30, 26, 38, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.vs-dir-card:hover {
    border-color: rgba(201, 169, 97, 0.4);
    background: rgba(40, 35, 50, 0.9);
}
.vs-dir-card.selected {
    border-color: #c9a961;
    background: rgba(201, 169, 97, 0.12);
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.15);
}
.vs-dir-card i {
    font-size: 24px;
    color: #c9a961;
    display: block;
    margin-bottom: 8px;
}
.vs-dir-card span {
    color: #f5f1e6;
    font-size: 14px;
}

/* 自定义方向卡片 + 添加入口 (Phase 3.2) */
.vs-dir-card.vs-dir-custom {
    position: relative;
}
.vs-dir-card.vs-dir-custom .vs-dir-del {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    color: #8a7a6a;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.vs-dir-card.vs-dir-custom:hover .vs-dir-del { opacity: 0.85; }
.vs-dir-card.vs-dir-custom .vs-dir-del:hover { color: #f85149; opacity: 1; }
.vs-dir-card.vs-dir-add {
    border: 1px dashed rgba(139, 127, 231, 0.5);
    background: rgba(40, 35, 60, 0.5);
}
.vs-dir-card.vs-dir-add i { color: #8b7fe8; }
.vs-dir-card.vs-dir-add span { color: #b8a0ff; }

/* 话题输入 */
.vs-topic-area {
    margin-bottom: 24px;
}
.vs-topic-area label {
    display: block;
    color: #c9a961;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.vs-topic-area textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    color: #f5f1e6;
    font-size: 14px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
}
.vs-topic-area textarea:focus { border-color: #c9a961; }

/* 生成按钮 */
.vs-generate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.vs-cost-hint {
    color: #888;
    font-size: 12px;
}
.vs-generate-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    border: none;
    border-radius: 6px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}
.vs-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 流式输出 */
.vs-streaming {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.vs-streaming-spinner {
    color: #c9a961;
    font-size: 14px;
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.vs-streaming-text {
    color: #bbb;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 结构化结果 */
.vs-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.vs-section-label {
    color: #c9a961;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.7;
}
.vs-result-title-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.vs-title-text {
    color: #ffd28a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}
.vs-result-hashtags-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.vs-hashtags-text {
    color: #79c0ff;
    font-size: 14px;
    line-height: 1.6;
}
.vs-result-script-section {
    position: relative;
    margin-bottom: 20px;
}
.vs-script-text {
    color: #e8e0d0;
    font-size: 15px;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
    cursor: pointer;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    border: 1px dashed transparent;
    transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.vs-script-text:hover {
    background: rgba(201, 169, 97, 0.06);
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.35);
}
/* 点击编辑提示浮层 */
.vs-script-edit-hint {
    position: absolute;
    top: -2px;
    right: 0;
    color: #c9a961;
    font-size: 12px;
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
    user-select: none;
}
.vs-script-edit-hint i { margin-right: 4px; }
.vs-result-script-section:hover .vs-script-edit-hint { opacity: .85; }
/* 移动端无 hover,常驻提示 + 淡虚线边框暗示可编辑 */
@media (max-width: 767px) {
    .vs-script-edit-hint { opacity: .7; }
    .vs-script-text { border-color: rgba(201, 169, 97, 0.2); }
}
.vs-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
}
.vs-result-actions > button {
    flex: 1 1 118px;
    min-width: 118px;
}
.vs-regen-btn {
    flex: 1;
    padding: 12px 0;
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    border: none;
    border-radius: 6px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.vs-review-btn {
    padding: 12px 0;
    background: rgba(45, 74, 94, 0.72);
    border: 1px solid #4a6e87;
    border-radius: 6px;
    color: #d6e7ff;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.vs-review-btn:hover { background: rgba(58, 93, 117, 0.9); }
.vs-review-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.vs-back-list-btn {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    color: #c9a961;
    cursor: pointer;
    font-size: 14px;
}
.vs-back-list-btn:hover { background: rgba(201, 169, 97, 0.1); }

/* 历史列表 */
.vs-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.vs-script-card {
    padding: 16px 18px;
    background: rgba(30, 26, 38, 0.85);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.vs-script-card:hover {
    border-color: rgba(201, 169, 97, 0.4);
    transform: translateX(4px);
}
.vs-script-card-title {
    color: #f5f1e6;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 500;
}
.vs-script-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}
.vs-script-card-cat {
    color: #c9a961;
    opacity: 0.7;
}
.vs-script-card-del {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
}
.vs-script-card-del:hover { color: #f08080; }

/* 筛选栏 */
.vs-filter-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    padding: 0 20px;
    flex-shrink: 0;
}
.vs-filter-tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.vs-filter-tab:hover { color: #ccc; }
.vs-filter-tab.active {
    color: #c9a961;
    border-bottom-color: #c9a961;
}

/* 拍摄标记 */
.vs-script-card-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
}
.vs-script-card-film {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
}
.vs-script-card-film:hover { color: #79c0ff; }
.vs-script-card-film.active { color: #79e09a; }

.vs-script-card.vs-script-filmed {
    border-left: 3px solid #79e09a;
}
.vs-filmed-badge {
    display: inline-block;
    background: rgba(121, 224, 154, 0.12);
    color: #79e09a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* 结果页拍摄按钮 */
.vs-film-btn {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    color: #c9a961;
    cursor: pointer;
    font-size: 13px;
}
.vs-film-btn:hover { background: rgba(201, 169, 97, 0.1); }
.vs-film-btn.filmed {
    background: rgba(121, 224, 154, 0.1);
    border-color: rgba(121, 224, 154, 0.3);
    color: #79e09a;
}

/* ===== 制作视频按钮 ===== */
.vs-make-video-btn {
    padding: 8px 16px; background: rgba(201, 169, 97, 0.15); border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px; color: #c9a961; cursor: pointer; font-size: 13px;
}
.vs-make-video-btn:hover { background: rgba(201, 169, 97, 0.25); }

/* ===== 制作视频页面 ===== */
.vg-body { padding: 16px; max-width: 600px; margin: 0 auto; }
.vg-script-preview { margin-bottom: 16px; }
.vg-script-text {
    background: rgba(10, 10, 26, 0.6); border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px; padding: 12px; color: #f5f1e6; font-size: 13px; line-height: 1.6;
    max-height: 120px; overflow-y: auto;
}

/* 分段编辑器 */
.vg-loading { text-align: center; padding: 20px; color: #c9a961; font-size: 14px; }
.vg-loading i { margin-right: 8px; }
.vg-seg-edit-card {
    background: rgba(10, 10, 26, 0.5); border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px; padding: 12px; margin-bottom: 8px;
}
.vg-seg-empty { text-align: center; padding: 32px 16px; color: rgba(255,255,255,0.4); font-size: 14px; }
.vg-seg-edit-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.vg-seg-edit-num { color: #c9a961; font-size: 13px; font-weight: 500; }
.vg-seg-del-btn {
    background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 12px;
    opacity: 0.6; padding: 4px 8px;
}
.vg-seg-del-btn:hover { opacity: 1; }
.vg-seg-edit-text {
    width: 100%; background: rgba(10, 10, 26, 0.4); border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 6px; color: #f5f1e6; font-size: 13px; line-height: 1.5;
    padding: 8px 10px; resize: vertical; font-family: inherit;
}
.vg-seg-edit-text:focus { outline: none; border-color: rgba(201, 169, 97, 0.4); }
.vg-add-seg-btn {
    background: none; border: 1px dashed rgba(201, 169, 97, 0.4); color: #c9a961;
    font-size: 12px; cursor: pointer; padding: 2px 10px; border-radius: 4px; margin-left: 10px;
}
.vg-add-seg-btn:hover { background: rgba(201, 169, 97, 0.1); }
.vg-info-row {
    display: flex; gap: 16px; margin-bottom: 16px; font-size: 14px; color: #c9a961;
}

/* 上传区域 */
.vg-upload-area {
    border: 2px dashed rgba(201, 169, 97, 0.3); border-radius: 12px; padding: 32px 16px;
    text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 16px;
    background: rgba(10, 10, 26, 0.3);
}
.vg-upload-area:hover, .vg-upload-area.vg-dragover {
    border-color: rgba(201, 169, 97, 0.6); background: rgba(201, 169, 97, 0.05);
}
.vg-upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #c9a961; }
.vg-upload-placeholder i { font-size: 32px; opacity: 0.6; }
.vg-upload-hint { font-size: 12px; color: #888; }
.vg-upload-preview { position: relative; display: inline-block; }
.vg-upload-preview img { max-width: 200px; max-height: 200px; border-radius: 8px; }
.vg-remove-img {
    position: absolute; top: -8px; right: -8px; width: 24px; height: 24px;
    border-radius: 50%; background: #e74c3c; border: none; color: #fff;
    cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* 视频引擎选择 */
.vg-model-select { display: flex; gap: 12px; margin-bottom: 4px; }
.vg-model-card {
    flex: 1; display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    padding: 14px; border-radius: 10px; border: 2px solid rgba(201, 169, 97, 0.2);
    background: rgba(10, 10, 26, 0.3); transition: all 0.2s; margin-bottom: 0;
}
.vg-model-card:hover { border-color: rgba(201, 169, 97, 0.5); background: rgba(201, 169, 97, 0.05); }
.vg-model-card input[type="radio"] { margin-top: 3px; accent-color: #c9a961; cursor: pointer; }
.vg-model-card:has(input:checked) {
    border-color: #c9a961; background: rgba(201, 169, 97, 0.12);
    box-shadow: 0 0 0 1px rgba(201, 169, 97, 0.3) inset;
}
.vg-model-card-body { display: flex; flex-direction: column; gap: 4px; }
.vg-model-name { color: #c9a961; font-size: 15px; font-weight: bold; }
.vg-model-desc { color: #888; font-size: 12px; line-height: 1.4; }


/* 费用 */
.vg-cost-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 12px; background: rgba(201, 169, 97, 0.08); border-radius: 8px; }
.vg-cost-label { color: #888; font-size: 13px; }
.vg-cost-value { color: #c9a961; font-size: 20px; font-weight: bold; }
.vg-cost-unit { color: #888; font-size: 13px; }

/* 生成按钮 */
.vg-generate-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg, #c9a961, #a88a3a);
    border: none; border-radius: 8px; color: #0a0a1a; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: opacity 0.2s;
}
.vg-generate-btn:hover { opacity: 0.9; }
.vg-generate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 视频生成进度页面 ===== */
.vg-progress-body { padding: 16px; max-width: 600px; margin: 0 auto; }
.vg-progress-overview { margin-bottom: 24px; }
.vg-progress-bar-wrap {
    width: 100%; height: 8px; background: rgba(201, 169, 97, 0.15);
    border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.vg-progress-bar {
    height: 100%; background: linear-gradient(90deg, #c9a961, #e8d48b);
    border-radius: 4px; transition: width 0.5s ease;
}
.vg-progress-text { color: #c9a961; font-size: 14px; text-align: center; }

/* 分段列表 */
.vg-segment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.vg-segment-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: rgba(10, 10, 26, 0.5); border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px;
}
.vg-seg-icon {
    width: 28px; height: 28px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.vg-seg-icon.pending { background: rgba(136, 136, 136, 0.2); color: #888; }
.vg-seg-icon.processing { background: rgba(201, 169, 97, 0.2); color: #c9a961; }
.vg-seg-icon.completed { background: rgba(121, 224, 154, 0.2); color: #79e09a; }
.vg-seg-icon.failed { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.vg-seg-info { color: #f5f1e6; font-size: 14px; }
.vg-seg-status { color: #888; font-size: 12px; margin-left: auto; }
/* 分段操作区（预览/重生成按钮）—— completed/failed 段显示，靠右排列 */
.vg-seg-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vg-seg-action-btn {
    font-size: 11px; padding: 3px 9px; border-radius: 4px; cursor: pointer;
    background: rgba(201, 169, 97, 0.12); border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961; transition: background .15s; white-space: nowrap;
}
.vg-seg-action-btn:hover { background: rgba(201, 169, 97, 0.25); }
/* 窄屏（移动端）：分段卡片允许换行，操作按钮落到第二行 */
@media (max-width: 480px) {
    .vg-segment-card { flex-wrap: wrap; }
    .vg-seg-status { margin-left: 0; width: 100%; order: 3; }
    .vg-seg-actions { width: 100%; order: 4; justify-content: flex-end; margin-top: 6px; }
}

/* 错误 */
.vg-error-area { text-align: center; padding: 20px; }
.vg-error-msg { color: #e74c3c; font-size: 14px; margin-bottom: 12px; }
.vg-retry-btn {
    padding: 10px 24px; background: rgba(201, 169, 97, 0.15); border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px; color: #c9a961; cursor: pointer; font-size: 14px;
}
.vg-retry-btn:hover { background: rgba(201, 169, 97, 0.25); }

/* 结果 */
.vg-result-area { text-align: center; }
.vg-result-area video { width: 100%; max-width: 480px; border-radius: 8px; margin-bottom: 16px; }
.vg-result-actions { display: flex; justify-content: center; gap: 12px; }
.vg-download-btn {
    padding: 10px 24px; background: rgba(201, 169, 97, 0.15); border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px; color: #c9a961; cursor: pointer; font-size: 14px;
}
.vg-download-btn:hover { background: rgba(201, 169, 97, 0.25); }
/* 整段重新生成按钮（次级危险操作，用半透明红色边框区分） */
.vg-regen-all-btn {
    padding: 10px 24px; background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 6px; color: #e06c75; cursor: pointer; font-size: 14px;
}
.vg-regen-all-btn:hover { background: rgba(220, 53, 69, 0.2); }

/* ===== 字幕按钮 + 状态 ===== */
.vg-subtitle-btn {
    padding: 10px 24px; background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px; color: #c9a961;
    cursor: pointer; font-size: 14px;
    transition: all 0.2s;
}
.vg-subtitle-btn:hover:not(:disabled) { background: rgba(201, 169, 97, 0.25); }
.vg-subtitle-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vg-subtitle-status {
    margin-top: 14px;
    color: #c9a961; font-size: 13px;
    text-align: center;
    padding: 10px;
    background: rgba(201, 169, 97, 0.06);
    border-radius: 6px;
}
.vg-subtitle-cancel-btn {
    background: transparent;
    border: 1px solid rgba(245, 241, 230, 0.25);
    color: rgba(245, 241, 230, 0.7);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.vg-subtitle-cancel-btn:hover { background: rgba(245, 241, 230, 0.08); color: #f5f1e6; }

/* ===== 封面图 ===== */
.vg-cover-btn {
    padding: 10px 24px; background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px; color: #c9a961;
    cursor: pointer; font-size: 14px;
    transition: all 0.2s;
}
.vg-cover-btn:hover:not(:disabled) { background: rgba(201, 169, 97, 0.25); }
.vg-cover-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vg-cover-status {
    margin-top: 14px;
    color: #c9a961; font-size: 13px;
    text-align: center;
    padding: 10px;
    background: rgba(201, 169, 97, 0.06);
    border-radius: 6px;
}
.vg-cover-previews {
    margin-top: 14px;
    display: flex; gap: 16px;
    justify-content: center; flex-wrap: wrap;
}
.vg-cover-card {
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
}
.vg-cover-card img {
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.vg-cover-card-9-16 img { width: 135px; height: 240px; object-fit: cover; }
.vg-cover-card-3-4 img  { width: 180px; height: 240px; object-fit: cover; }
.vg-cover-card-label {
    color: rgba(245, 241, 230, 0.7);
    font-size: 12px;
}
.vg-cover-card-download {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 4px;
}
.vg-cover-card-download:hover { background: rgba(201, 169, 97, 0.15); }

/* ===== 造势台 Prompt 设置弹窗 ===== */
.vsp-overlay {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0, 0, 0, 0.65);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    overflow-y: auto;
}
.vsp-card {
    background: rgba(20, 18, 28, 0.98);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
    padding: 20px;
    max-width: 720px; width: 100%;
    max-height: 92vh; overflow-y: auto;
    box-sizing: border-box;
}
.vsp-title {
    color: #c9a961; font-size: 16px; font-weight: 600;
    letter-spacing: 2px; margin-bottom: 14px;
    text-align: center;
}
.vsp-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(201, 169, 97, 0.2); }
.vsp-tab {
    flex: 1; padding: 8px 12px;
    background: transparent; border: none; cursor: pointer;
    color: rgba(245, 241, 230, 0.55); font-size: 13px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.vsp-tab.active { color: #c9a961; border-bottom-color: #c9a961; }
.vsp-pane { padding: 4px 0; }
.vsp-source {
    background: rgba(201, 169, 97, 0.08);
    border-left: 3px solid #c9a961;
    color: rgba(245, 241, 230, 0.8);
    padding: 6px 10px; margin-bottom: 10px;
    font-size: 12px; border-radius: 4px;
}
.vsp-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.vsp-expand-btn {
    background: transparent; border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961; padding: 4px 10px; border-radius: 4px;
    cursor: pointer; font-size: 12px;
}
.vsp-expand-btn:hover { background: rgba(201, 169, 97, 0.1); }
.vsp-counter {
    color: rgba(245, 241, 230, 0.45);
    font-size: 11px; font-family: monospace;
}
.vsp-textarea {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    color: #f5f1e6; padding: 10px;
    font-size: 13px; line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    outline: none; resize: vertical;
    min-height: 100px;
}
.vsp-textarea:focus { border-color: #c9a961; }
.vsp-ph-hint {
    color: rgba(245, 241, 230, 0.45);
    font-size: 11px; margin-top: 4px;
    font-family: monospace;
}
.vsp-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 10px;
}
.vsp-btn {
    background: transparent;
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961;
    padding: 6px 12px; border-radius: 4px;
    cursor: pointer; font-size: 12px;
    transition: all 0.2s;
}
.vsp-btn:hover { background: rgba(201, 169, 97, 0.1); }
.vsp-btn-primary {
    background: linear-gradient(135deg, #c9a961, #b89143);
    border: none; color: #1a1a2e; font-weight: 600;
}
.vsp-btn-primary:hover { opacity: 0.9; background: linear-gradient(135deg, #c9a961, #b89143); }
.vsp-btn-ai {
    background: linear-gradient(135deg, #6b5ce7, #8b7fe8);
    border: none; color: #fff; font-weight: 600;
}
.vsp-btn-ai:hover { opacity: 0.9; background: linear-gradient(135deg, #6b5ce7, #8b7fe8); }
.vsp-gen-modal-overlay {
    position: fixed; inset: 0; z-index: 1001;
    background: rgba(0, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.vsp-gen-modal-card {
    background: rgba(20, 18, 28, 0.98);
    border: 1px solid rgba(138, 127, 232, 0.4);
    border-radius: 12px; padding: 22px;
    max-width: 540px; width: 100%;
    box-sizing: border-box;
}
.vsp-gen-modal-title {
    color: #8b7fe8; font-size: 15px; font-weight: 600;
    letter-spacing: 1px; margin-bottom: 6px;
}
.vsp-gen-modal-hint {
    color: rgba(245, 241, 230, 0.55);
    font-size: 12px; margin-bottom: 12px; line-height: 1.5;
}
.vsp-gen-modal-textarea {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(138, 127, 232, 0.3);
    border-radius: 6px;
    color: #f5f1e6; padding: 10px;
    font-size: 13px; line-height: 1.55;
    outline: none; resize: vertical;
    min-height: 100px; max-height: 280px;
    font-family: inherit;
}
.vsp-gen-modal-textarea:focus { border-color: #8b7fe8; }
.vsp-gen-modal-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 12px;
}
.vsp-preview {
    margin-top: 12px; min-height: 0;
}
.vsp-preview:empty { display: none; }
.vsp-preview pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 6px;
    padding: 10px;
    color: #f5f1e6;
    font-size: 12px;
    white-space: pre-wrap; word-break: break-word;
    max-height: 200px; overflow-y: auto;
    margin: 0;
}
.vsp-preview-cost {
    color: #c9a961; font-size: 12px;
    margin-bottom: 4px;
}
.vsp-preview-error {
    color: #e57373; font-size: 12px;
}
.vsp-footer {
    margin-top: 16px; text-align: right;
}

/* ===== 造势台 话题 AI 生成 ===== */
.vs-topic-actions {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px;
}
.vs-topic-ai-btn {
    background: linear-gradient(135deg, #6b5ce7, #8b7fe8);
    border: none; color: #fff;
    padding: 6px 14px; border-radius: 4px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s;
}
.vs-topic-ai-btn:hover { opacity: 0.9; }
.vs-topic-ai-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vs-topic-ai-hint {
    font-size: 11px; color: rgba(245, 241, 230, 0.5);
    font-family: monospace;
}
.vs-topic-ai-hint:empty { display: none; }

/* 可选:给 AI 生成话题时的参考意见输入框 */
.vs-topic-hint-row {
    margin-top: 8px;
}
.vs-topic-hint-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(139, 127, 232, 0.35);
    border-radius: 6px;
    color: #f5f1e6;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s;
}
.vs-topic-hint-input::placeholder { color: rgba(245, 241, 230, 0.35); }
.vs-topic-hint-input:focus { border-color: #8b7fe8; border-style: solid; }

/* ===== 军师/作战室 一键转视频脚本 按钮 ===== */
.advisor-convert-btn {
    background: transparent;
    border: 1px solid rgba(139, 127, 232, 0.35);
    color: #b3a8f0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s, border-color 0.2s;
}
.advisor-convert-btn:hover { color: #c9b8ff; border-color: rgba(139, 127, 232, 0.7); }
.advisor-convert-btn i { margin-right: 3px; }
.sc-convert-btn {
    color: #b3a8f0;
    border-color: rgba(139, 127, 232, 0.4);
}
.sc-convert-btn:hover { color: #c9b8ff; }
.sc-convert-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 脚本卡片来源标签 */
.vs-script-card-source {
    position: absolute; top: 8px; right: 8px;
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    font-family: monospace; line-height: 1.6;
}
.vs-source-advisor { background: rgba(139, 127, 232, 0.18); color: #b3a8f0; }
.vs-source-scenario { background: rgba(201, 169, 97, 0.18); color: #c9a961; }

/* ===== 造势台 脚本编辑模式 ===== */
.vs-header-actions {
    display: flex; gap: 8px; align-items: center;
}
.vs-edit-btn {
    padding: 6px 12px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #c9a961;
    border-radius: 6px; font-size: 13px;
    cursor: pointer; transition: all 0.2s;
}
.vs-edit-btn:hover { background: rgba(201, 169, 97, 0.25); }
.vs-save-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, #c9a961, #b89143);
    border: none; color: #1a1a2e;
    border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.vs-save-btn:hover { opacity: 0.9; }
.vs-cancel-edit-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(245, 241, 230, 0.25);
    color: rgba(245, 241, 230, 0.7);
    border-radius: 6px; font-size: 13px;
    cursor: pointer;
}
.vs-cancel-edit-btn:hover { background: rgba(245, 241, 230, 0.05); }
.vs-edit-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px;
    color: #f5f1e6; padding: 8px 10px;
    font-size: 14px; outline: none;
    margin-top: 6px;
}
.vs-edit-input:focus { border-color: #c9a961; }
.vs-edit-textarea {
    width: 100%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px;
    color: #f5f1e6; padding: 10px;
    font-size: 14px; line-height: 1.6;
    outline: none; resize: vertical;
    min-height: 200px;
    margin-top: 6px;
    font-family: inherit;
}
.vs-edit-textarea:focus { border-color: #c9a961; }

/* ===== 视频分段时长 input ===== */
.vg-seg-dur-input {
    width: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 4px;
    color: #c9a961;
    padding: 2px 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    outline: none;
    margin: 0 2px;
}
.vg-seg-dur-input:focus { border-color: #c9a961; background: rgba(201, 169, 97, 0.1); }
.vg-seg-dur-input::-webkit-inner-spin-button,
.vg-seg-dur-input::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
.vg-seg-dur-input { -moz-appearance: textfield; }

/* ===== Phase 1.3: 发布数据录入弹窗 + 摘要 ===== */
.vs-metric-btn, .vg-metric-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #2d4a5e, #1c3340);
    color: #d6e7ff;
    border: 1px solid #4a6e87;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.vs-metric-btn:hover, .vg-metric-btn:hover { background: linear-gradient(135deg, #3a5d75, #244556); }

.vs-metric-summary {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(45, 74, 94, 0.45);
    border: 1px solid #4a6e87;
    border-radius: 8px;
    color: #b8d2e8;
    font-size: 13px;
}
.vs-metric-summary b { color: #ffd584; font-weight: 600; }
.vs-metric-summary-line { line-height: 1.6; }

.vs-metric-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.vs-metric-row { display: flex; flex-direction: column; gap: 4px; }
.vs-metric-row label {
    color: #b8d2e8; font-size: 12px;
}
.vs-metric-row input, .vs-metric-row select {
    background: rgba(20, 35, 45, 0.7);
    color: #e6eef7;
    border: 1px solid #4a6e87;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
}
.vs-metric-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-metric-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.vs-metric-grid2 > div, .vs-metric-grid3 > div {
    display: flex; flex-direction: column; gap: 4px;
}
.vs-metric-grid2 label, .vs-metric-grid3 label { color: #b8d2e8; font-size: 12px; }
.vs-metric-grid2 input, .vs-metric-grid3 input {
    background: rgba(20, 35, 45, 0.7);
    color: #e6eef7;
    border: 1px solid #4a6e87;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
}

/* ===== Phase 2.4: V2 质量面板 + 变体切换 ===== */
.vs-advanced-toggle { margin: 6px 0 12px; }
.vs-advanced-toggle a { color: #6a8aa3; font-size: 12px; text-decoration: none; }
.vs-advanced-toggle a:hover { color: #b8d2e8; }
.vs-advanced-fields {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding: 12px;
    background: rgba(30, 50, 65, 0.4);
    border: 1px solid #3a5670; border-radius: 8px;
    margin-bottom: 12px;
}
.vs-adv-row { display: flex; flex-direction: column; gap: 4px; }
.vs-adv-row label { color: #b8d2e8; font-size: 12px; }
.vs-adv-row input, .vs-adv-row select {
    background: rgba(20, 35, 45, 0.7); color: #e6eef7;
    border: 1px solid #4a6e87; border-radius: 6px;
    padding: 6px 10px; font-size: 13px;
}

.vs-quality-panel {
    margin-top: 16px; padding: 14px;
    background: rgba(30, 50, 65, 0.5);
    border: 1px solid #4a6e87; border-radius: 10px;
}
.vs-quality-header { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.vs-quality-total {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 16px; background: rgba(20,35,45,0.6);
    border-radius: 8px; min-width: 90px;
}
.vs-quality-label { color: #8aa5be; font-size: 11px; }
.vs-quality-score { color: #ffd584; font-size: 28px; font-weight: 700; line-height: 1.2; }
.vs-quality-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.vs-quality-status.pass { background: rgba(127,207,155,0.2); color: #7fcf9b; }
.vs-quality-status.warn { background: rgba(255,213,132,0.2); color: #ffd584; }
.vs-quality-dimensions { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 280px; }
.vs-quality-dim { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.vs-quality-dim .dim-label { color: #b8d2e8; width: 50px; }
.vs-quality-dim .dim-bar {
    flex: 1; height: 6px; background: rgba(20,35,45,0.7); border-radius: 3px; overflow: hidden;
}
.vs-quality-dim .dim-fill { height: 100%; transition: width .3s; }
.vs-quality-dim .dim-value { color: #8aa5be; font-size: 11px; min-width: 44px; text-align: right; }

.vs-quality-issues { margin-top: 10px; }
.vs-fatal {
    background: rgba(229,115,115,0.15); color: #e57373;
    padding: 6px 10px; border-radius: 6px; font-size: 12px;
    border-left: 3px solid #e57373; margin-bottom: 6px;
}
.vs-issues-list { font-size: 12px; color: #b8d2e8; }
.vs-issue-item { padding: 4px 0; border-bottom: 1px solid rgba(74,110,135,0.3); }
.vs-issue-item:last-child { border-bottom: none; }
.vs-issue-item i { color: #7fcf9b; font-style: italic; }
.vs-rewrite-hint {
    margin-top: 6px; padding: 6px 10px;
    background: rgba(127,207,155,0.1); border-left: 3px solid #7fcf9b;
    color: #b8d2e8; font-size: 12px; border-radius: 4px;
}

.vs-variant-switcher { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #3a5670; }
.vs-variant-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px; margin-top: 8px;
}
.vs-variant-card {
    padding: 10px; background: rgba(20,35,45,0.6);
    border: 1px solid #4a6e87; border-radius: 6px;
    font-size: 12px; color: #b8d2e8;
}
.vs-variant-card.selected { border-color: #ffd584; background: rgba(255,213,132,0.1); }
.vs-variant-title { color: #d6e7ff; font-weight: 600; margin-bottom: 6px; }
.vs-variant-body {
    color: #8aa5be; line-height: 1.5; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vs-variant-select-btn {
    padding: 4px 10px; background: #2d4a5e; color: #d6e7ff;
    border: 1px solid #4a6e87; border-radius: 4px; cursor: pointer; font-size: 12px;
}
.vs-variant-select-btn:hover { background: #3a5d75; }
.vs-variant-card.selected .vs-variant-select-btn {
    background: rgba(255,213,132,0.2); border-color: #ffd584; color: #ffd584;
    cursor: default;
}

/* ===== Phase 3: 分段卡片 beat 元数据 ===== */
.vg-seg-beat {
    padding: 6px 8px; margin-bottom: 6px;
    background: rgba(45, 74, 94, 0.4);
    border-left: 3px solid #ffd584;
    border-radius: 4px; font-size: 11px;
    color: #b8d2e8;
}
.vg-beat-tag {
    display: inline-block; padding: 2px 8px; margin-bottom: 4px;
    background: rgba(255,213,132,0.2); color: #ffd584;
    border-radius: 10px; font-size: 10px; font-weight: 600;
}
.vg-beat-line {
    line-height: 1.5; margin-top: 2px;
}

/* ===== Phase 3: 发布包弹窗 ===== */
.vs-publish-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #4a3a5e, #2d2440);
    color: #e6d4ff;
    border: 1px solid #6a5a87;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.vs-publish-btn:hover { background: linear-gradient(135deg, #5a4870, #3a2e50); }

.vsp-pkg-section { margin-bottom: 12px; }
.vsp-pkg-label {
    color: #8aa5be; font-size: 11px; margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.vsp-pkg-item {
    padding: 7px 10px; background: rgba(20,35,45,0.6);
    border: 1px solid #3a5670; border-radius: 5px;
    color: #d6e7ff; font-size: 13px; line-height: 1.6;
    margin-bottom: 4px; word-break: break-word;
}
.vsp-pkg-item b { color: #ffd584; font-weight: 600; }
.vsp-pkg-empty { color: #6a8aa3; padding: 7px 10px; font-size: 12px; }

/* 发布包 — 数据预测 + 是否推荐 (Phase 3.1) */
.vsp-regen-btn { color: #b8a0ff; border-color: #6b5ce7; }
.vsp-regen-btn:hover { background: rgba(107,92,231,0.15) !important; }
.vsp-regen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.vsp-recommend {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 12px; border-radius: 6px; margin-bottom: 14px;
    border: 1px solid; font-size: 13px;
}
.vsp-rec-icon { font-size: 18px; }
.vsp-rec-label { font-weight: 700; font-size: 14px; }
.vsp-rec-reason { color: #b8d2e8; font-size: 12px; opacity: 0.85; }
.vsp-rec-yes { background: rgba(46,160,67,0.15); border-color: #2ea043; color: #7ee787; }
.vsp-rec-warn { background: rgba(187,128,9,0.15); border-color: #d29922; color: #e3b341; }
.vsp-rec-no   { background: rgba(248,81,73,0.15); border-color: #f85149; color: #ffa198; }
.vsp-rec-neutral { background: rgba(120,140,160,0.12); border-color: #4a6480; color: #b8d2e8; }

.vsp-pkg-prediction .vsp-pkg-label { color: #c9a961; }
.vsp-pkg-pred-box {
    background: rgba(201,169,97,0.06); border: 1px solid rgba(201,169,97,0.25);
    border-radius: 6px; padding: 4px 10px;
}
.vsp-pkg-pred-row {
    display: flex; gap: 10px; padding: 6px 0;
    border-bottom: 1px dashed rgba(201,169,97,0.15); font-size: 12.5px;
}
.vsp-pkg-pred-row:last-child { border-bottom: none; }
.vsp-pkg-pred-k { color: #8aa5be; min-width: 92px; flex-shrink: 0; }
.vsp-pkg-pred-v { color: #ffe9b0; word-break: break-word; }
.vsp-pkg-updated { color: #6a8aa3; font-size: 11px; margin-top: 10px; text-align: right; }

/* ============================================================
   人间道三大新功能样式 (v1.21.0): 棋约 / 谋略档案 / 对手档案
   风格沿用暗金 #c9a961 + 深紫黑底 rgba(20,18,28)
   ============================================================ */

/* ===== 通用按钮/模态/链接（新功能复用） ===== */
.rjd-btn-primary {
    background: linear-gradient(135deg, #c9a961 0%, #b89143 100%);
    color: #1a1620; border: none; padding: 9px 18px; border-radius: 5px;
    cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex;
    align-items: center; gap: 6px; transition: opacity .15s;
}
.rjd-btn-primary:hover { opacity: 0.88; }
.rjd-btn-ghost {
    background: transparent; border: 1px solid rgba(201, 169, 97, 0.3);
    color: #c9a961; padding: 8px 16px; border-radius: 5px; cursor: pointer;
    font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.rjd-btn-ghost:hover { border-color: rgba(201, 169, 97, 0.6); }
.rjd-modal-overlay {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.7);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.rjd-modal-box {
    background: #1a1620; border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 10px; padding: 22px; width: 100%; max-width: 460px;
    max-height: 86vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.rjd-modal-title { color: #c9a961; font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rjd-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.rjd-form-row { margin-bottom: 14px; }
.rjd-form-row label { display: block; color: #c9a961; font-size: 13px; margin-bottom: 6px; }
.rjd-form-row input, .rjd-form-row select, .rjd-form-row textarea {
    width: 100%; background: rgba(20, 18, 28, 0.7); border: 1px solid rgba(201, 169, 97, 0.2);
    color: #ddd; padding: 9px 11px; border-radius: 5px; font-size: 13px; box-sizing: border-box;
}
.rjd-form-row textarea { resize: vertical; min-height: 60px; }
.rjd-inline-link { color: #c9a961; cursor: pointer; font-size: 12px; margin-left: 6px; opacity: 0.8; }
.rjd-inline-link:hover { opacity: 1; }

/* ===== 棋约列表 ===== */
.cl-filter-bar { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid rgba(201, 169, 97, 0.1); flex-wrap: wrap; }
.cl-filter-item { font-size: 12px; color: #888; padding: 4px 12px; border-radius: 12px; border: 1px solid rgba(201, 169, 97, 0.15); cursor: pointer; }
.cl-filter-item.active { color: #c9a961; border-color: #c9a961; background: rgba(201, 169, 97, 0.1); }
.cl-card { padding: 13px 16px; border: 1px solid rgba(201, 169, 97, 0.12); border-radius: 8px; background: rgba(20, 18, 28, 0.5); cursor: pointer; margin-bottom: 10px; transition: border-color .15s; }
.cl-card:hover { border-color: rgba(201, 169, 97, 0.35); }
.cl-card.cl-overdue { border-color: rgba(240, 128, 128, 0.4); }
.cl-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cl-badge { font-size: 11px; padding: 1px 9px; border-radius: 9px; }
.cl-st-pending { color: #ffd28a; background: rgba(255, 210, 138, 0.12); }
.cl-st-done { color: #79e09a; background: rgba(121, 224, 154, 0.12); }
.cl-st-failed { color: #f08080; background: rgba(240, 128, 128, 0.12); }
.cl-st-partial { color: #8aa5be; background: rgba(138, 165, 190, 0.12); }
.cl-src { font-size: 11px; color: #6a8aa3; margin-left: auto; }
.cl-card-title { color: #e0d8c0; font-size: 14px; line-height: 1.6; word-break: break-word; }
.cl-card-dl { font-size: 12px; margin-top: 5px; }
.cl-card-reviewed { font-size: 11px; color: #79e09a; margin-top: 5px; }

/* ===== 棋约详情 ===== */
.cl-d-section { margin-bottom: 16px; }
.cl-d-label { color: #c9a961; font-size: 12px; margin-bottom: 6px; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.cl-d-action { color: #ffe9b0; line-height: 1.8; font-size: 14px; background: rgba(201, 169, 97, 0.06); padding: 12px; border-radius: 6px; border-left: 3px solid #c9a961; }
.cl-d-context { opacity: 0.85; }
.cl-d-context .cl-d-text { color: #9a9298; font-size: 13px; line-height: 1.7; }
.cl-d-meta { display: flex; gap: 16px; flex-wrap: wrap; color: #888; font-size: 12px; padding: 10px 0; border-top: 1px solid rgba(201, 169, 97, 0.1); }
.cl-d-meta b { color: #c9a961; }
.cl-d-outcome-form textarea { width: 100%; background: rgba(20, 18, 28, 0.7); border: 1px solid rgba(201, 169, 97, 0.2); color: #ddd; padding: 9px 11px; border-radius: 5px; font-size: 13px; box-sizing: border-box; margin-bottom: 8px; resize: vertical; }
.cl-d-status-row { display: flex; gap: 16px; margin-bottom: 10px; }
.cl-d-status-row label { color: #ccc; font-size: 13px; cursor: pointer; }
.cl-d-outcome-done .cl-d-text { color: #ddd; line-height: 1.7; }
.cl-d-note { color: #888; font-size: 12px; margin-top: 6px; }
.cl-d-review .cl-d-text { color: #ddd; line-height: 1.8; font-size: 13px; }
.cl-d-review { border-left: 3px solid #79e09a; padding-left: 12px; }

/* ===== 棋约选择器 ===== */
.cl-pick-box { max-width: 480px; }
.cl-pick-tip { color: #888; font-size: 12px; font-weight: 400; }
.cl-pick-list { margin-bottom: 14px; }
.cl-pick-item { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid rgba(201, 169, 97, 0.12); border-radius: 6px; margin-bottom: 8px; cursor: pointer; color: #ddd; font-size: 13px; line-height: 1.6; }
.cl-pick-item:hover { border-color: rgba(201, 169, 97, 0.3); }
.cl-pick-item input { margin-top: 3px; accent-color: #c9a961; }
.cl-pick-dl label { color: #888; font-size: 12px; display: block; margin-bottom: 4px; }
.cl-pick-dl input { background: rgba(20, 18, 28, 0.7); border: 1px solid rgba(201, 169, 97, 0.2); color: #ddd; padding: 7px 10px; border-radius: 5px; font-size: 13px; color-scheme: dark; }

/* 作战室建议区的「立棋约」按钮 */
.sc-suggest-closure-btn { background: transparent; border: 1px solid rgba(201, 169, 97, 0.3); color: #c9a961; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }
.sc-suggest-closure-btn:hover { border-color: #c9a961; }

/* ===== 谋略档案 ===== */
.sa-section { padding: 16px 18px; border: 1px solid rgba(201, 169, 97, 0.12); border-radius: 8px; background: rgba(20, 18, 28, 0.5); margin-bottom: 12px; }
.sa-section-title { color: #c9a961; font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sa-blind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sa-blind-card { background: rgba(240, 128, 128, 0.08); border: 1px solid rgba(240, 128, 128, 0.25); border-radius: 8px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.sa-blind-card i { color: #f0c060; font-size: 16px; margin-top: 2px; }
.sa-blind-card span { color: #e8d8c0; font-size: 13px; line-height: 1.7; }
.sa-summary { color: #c9a961; font-size: 13px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(201, 169, 97, 0.15); line-height: 1.7; }
.sa-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 480px) { .sa-metric-row { grid-template-columns: 1fr; } }
.sa-metric { background: rgba(201, 169, 97, 0.06); border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 8px; padding: 14px; text-align: center; }
.sa-metric-num { color: #c9a961; font-size: 26px; font-weight: 700; }
.sa-metric-label { color: #c9a961; font-size: 12px; margin-top: 4px; opacity: 0.85; }
.sa-metric-sub { color: #888; font-size: 11px; margin-top: 4px; }
.sa-dist { margin-top: 8px; }
.sa-dist-label { color: #888; font-size: 12px; margin-bottom: 8px; }
.sa-dist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sa-dist-name { color: #c9a961; font-size: 12px; min-width: 50px; }
.sa-dist-bar { flex: 1; height: 8px; background: rgba(201, 169, 97, 0.1); border-radius: 4px; overflow: hidden; }
.sa-dist-fill { height: 100%; background: linear-gradient(90deg, #c9a961, #ffd28a); border-radius: 4px; }
.sa-dist-cnt { color: #888; font-size: 12px; min-width: 24px; text-align: right; }
.sa-insight-box { background: rgba(201, 169, 97, 0.04); }
.sa-insight-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(201, 169, 97, 0.08); }
.sa-insight-k { color: #c9a961; font-size: 12px; min-width: 72px; flex-shrink: 0; padding-top: 2px; }
.sa-insight-v { color: #ddd; font-size: 13px; line-height: 1.7; }
.sa-insight-rec { background: rgba(201, 169, 97, 0.08); padding: 10px; border-radius: 6px; margin-top: 8px; border: 1px solid rgba(201, 169, 97, 0.25); }
.sa-insight-rec .sa-insight-v { color: #ffe9b0; font-weight: 600; }

/* ===== 对手档案 ===== */
.op-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(201, 169, 97, 0.12); border-radius: 8px; background: rgba(20, 18, 28, 0.5); cursor: pointer; margin-bottom: 10px; }
.op-card:hover { border-color: rgba(201, 169, 97, 0.35); }
.op-card-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(201, 169, 97, 0.12); display: flex; align-items: center; justify-content: center; color: #c9a961; font-size: 18px; flex-shrink: 0; }
.op-card-body { flex: 1; min-width: 0; }
.op-card-name { color: #e0d8c0; font-size: 15px; font-weight: 600; }
.op-card-archetype { color: #888; font-size: 12px; margin-top: 2px; }
.op-card-summary { color: #79e09a; font-size: 11px; margin-top: 4px; }
.op-card-arrow { color: #c9a961; opacity: 0.5; }
.op-d-meta { color: #888; font-size: 13px; padding: 4px 0 14px; border-bottom: 1px solid rgba(201, 169, 97, 0.1); margin-bottom: 14px; }
.op-d-section { margin-bottom: 16px; }
.op-d-label { color: #c9a961; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.op-d-text { color: #ddd; line-height: 1.8; font-size: 13px; }
.op-d-summary { background: rgba(201, 169, 97, 0.06); border-radius: 8px; padding: 14px; border-left: 3px solid #c9a961; }
.op-sum-row { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(201, 169, 97, 0.08); }
.op-sum-row:last-child { border-bottom: none; }
.op-sum-k { color: #c9a961; font-size: 12px; min-width: 72px; flex-shrink: 0; padding-top: 2px; }
.op-sum-v { color: #ddd; font-size: 13px; line-height: 1.7; }
.op-scenario-row { display: flex; gap: 12px; padding: 10px; border: 1px solid rgba(201, 169, 97, 0.1); border-radius: 6px; margin-bottom: 6px; cursor: pointer; }
.op-scenario-row:hover { border-color: rgba(201, 169, 97, 0.3); }
.op-scenario-title { color: #ddd; font-size: 13px; flex: 1; }
.op-scenario-status { color: #888; font-size: 12px; }
.op-scenario-round { color: #c9a961; font-size: 12px; }
.op-d-tip { color: #888; font-size: 13px; padding: 8px 0; }

/* 对手选择器（作战室开局） */
.op-pick-box { max-width: 420px; }
.op-pick-list { max-height: 50vh; overflow-y: auto; }
.op-pick-item { padding: 12px; border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.op-pick-item:hover { border-color: #c9a961; background: rgba(201, 169, 97, 0.06); }
.op-pick-name { color: #e0d8c0; font-size: 14px; font-weight: 600; }
.op-pick-archetype { color: #888; font-size: 12px; margin-top: 2px; }

/* ============================================================
   对手档案资料库（列表/详情/六维画像/合并/引入） — 兵法金主调
   ============================================================ */
/* 详情页内容区：自适应高度、由外层页面整体滚动，不在内部出现独立滚动条 */
.opp-detail-body {
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.opp-detail-actions { padding: 0 20px 16px; }
@media (max-width: 640px) {
    .opp-detail-body { padding: 12px 12px; gap: 12px; }
    .opp-detail-actions { padding: 0 12px 12px; }
}
.opp-toolbar-hint {
    color: rgba(201, 169, 97, 0.75);
    font-size: 12px;
    padding: 8px 4px 14px;
    line-height: 1.6;
}
.opp-toolbar-hint i { color: #c9a961; margin-right: 4px; }

.opp-empty-guide {
    text-align: center; padding: 50px 20px; color: #888;
}
.opp-empty-guide i { font-size: 42px; color: rgba(201, 169, 97, 0.4); margin-bottom: 14px; display: block; }
.opp-empty-title { color: #e0d8c0; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.opp-empty-desc { font-size: 13px; line-height: 1.7; max-width: 360px; margin: 0 auto; }

/* 列表卡片 */
.opp-card {
    padding: 14px 16px; border: 1px solid rgba(201, 169, 97, 0.12);
    border-radius: 8px; background: rgba(20, 18, 28, 0.5);
    cursor: pointer; margin-bottom: 10px; transition: border-color 0.2s;
}
.opp-card:hover { border-color: rgba(201, 169, 97, 0.4); }
.opp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opp-card-name { color: #e0d8c0; font-size: 15px; font-weight: 600; }
.opp-card-name i { color: #c9a961; margin-right: 6px; }
.opp-card-arch { color: #888; font-size: 12px; flex-shrink: 0; }
.opp-card-desc { color: rgba(245, 241, 230, 0.6); font-size: 12px; line-height: 1.6; margin: 6px 0 8px; }
.opp-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.opp-card-time { color: #666; font-size: 11px; margin-left: auto; }

.opp-badge { font-size: 10px; padding: 1px 6px; border-radius: 3px; line-height: 1.6; }
.opp-badge-manual { background: rgba(201, 169, 97, 0.12); color: #c9a961; }
.opp-badge-auto { background: rgba(107, 92, 231, 0.18); color: #8b7fe8; }
.opp-badge-merge { background: rgba(121, 224, 154, 0.15); color: #79e09a; }
.opp-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,0.06); color: #aaa; }
.opp-tag i { margin-right: 3px; }

/* 详情分区 */
.opp-section {
    border: 1px solid rgba(201, 169, 97, 0.12);
    border-radius: 10px; padding: 16px; margin-bottom: 14px;
    background: rgba(20, 18, 28, 0.4);
}
.opp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opp-section-title { color: #c9a961; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.opp-section-title i { margin-right: 6px; }
.opp-section-sub { color: #777; font-size: 11px; }
.opp-desc-box { color: #ddd; font-size: 13px; line-height: 1.8; padding: 10px 12px; background: rgba(255,255,255,0.03); border-radius: 6px; }

/* 六维画像网格 */
.opp-dim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .opp-dim-grid { grid-template-columns: 1fr; } }
.opp-dim-card {
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 8px; padding: 12px; background: rgba(255,255,255,0.02);
}
.opp-dim-head { color: #e0d8c0; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.opp-dim-head i { color: #c9a961; margin-right: 5px; }
.opp-dim-hint { color: #666; font-size: 11px; margin-bottom: 8px; line-height: 1.4; }
.opp-dim-known {
    color: rgba(245, 241, 230, 0.85); font-size: 12px; line-height: 1.6;
    padding: 8px 10px; background: rgba(201, 169, 97, 0.05);
    border-left: 2px solid rgba(201, 169, 97, 0.4); border-radius: 4px;
    margin-bottom: 8px; min-height: 18px;
}
.opp-dim-empty { color: #555; font-style: italic; }
.opp-dim-input { font-size: 12px !important; min-height: 44px !important; }
.opp-dim-probes { margin: 8px 0; }
.opp-probe {
    color: #e0d8c0; font-size: 12px; line-height: 1.5;
    padding: 5px 8px; margin-bottom: 4px; border-radius: 4px;
    background: rgba(107, 92, 231, 0.1); border-left: 2px solid #6b5ce7;
}
.opp-probe i { color: #8b7fe8; margin-right: 4px; }
.opp-probe-new { animation: oppProbeFlash 1.2s ease; }
@keyframes oppProbeFlash { 0% { background: rgba(107, 92, 231, 0.35); } 100% { background: rgba(107, 92, 231, 0.1); } }
.opp-dim-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* 棋路总结 */
.opp-summary {
    background: rgba(201, 169, 97, 0.06); border-radius: 8px; padding: 14px;
    border-left: 3px solid #c9a961;
}
.opp-sum-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(201, 169, 97, 0.08); }
.opp-sum-row:last-child { border-bottom: none; }
.opp-sum-k { color: #c9a961; font-size: 12px; min-width: 76px; flex-shrink: 0; padding-top: 2px; }
.opp-sum-k i { margin-right: 4px; }
.opp-sum-v { color: #ddd; font-size: 13px; line-height: 1.7; }
.opp-sum-good { color: #79e09a; }
.opp-sum-bad { color: #e57373; }
.opp-sum-warn { color: #ffb74d; }
.opp-sum-tip { color: #8bd4ff; }
.opp-summary-empty { color: #777; font-size: 13px; padding: 12px 0; line-height: 1.7; }

/* 关联棋局列表 */
.opp-scenario-list { display: flex; flex-direction: column; gap: 6px; }
.opp-scenario-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid rgba(201, 169, 97, 0.1); border-radius: 6px; cursor: pointer;
    font-size: 13px;
}
.opp-scenario-item:hover { border-color: rgba(201, 169, 97, 0.3); background: rgba(201, 169, 97, 0.04); }
.opp-sc-title { color: #ddd; flex: 1; }
.opp-sc-round { color: #c9a961; font-size: 12px; }

/* 危险按钮 */
.opp-danger-btn { border-color: rgba(229, 115, 115, 0.4) !important; color: #e57373 !important; }
.opp-danger-btn:hover { background: rgba(229, 115, 115, 0.1) !important; }

/* 表单 */
.opp-form-row { margin-bottom: 12px; }
.opp-form-row label { display: block; color: #c9a961; font-size: 12px; margin-bottom: 5px; }

/* 合并弹窗 */
.opp-merge-empty { text-align: center; color: #888; padding: 30px; }
.opp-merge-empty i { font-size: 28px; color: #79e09a; display: block; margin-bottom: 10px; }
.opp-merge-pair { border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 8px; padding: 12px; margin-bottom: 14px; }
.opp-merge-pair-title { color: #c9a961; font-size: 12px; margin-bottom: 10px; }
.opp-merge-row { display: flex; gap: 10px; margin-bottom: 10px; }
@media (max-width: 480px) { .opp-merge-row { flex-direction: column; } }
.opp-merge-item { flex: 1; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.opp-merge-item input[type=radio] { margin-top: 4px; accent-color: #c9a961; }
.opp-merge-card { flex: 1; border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 6px; padding: 8px 10px; }
.opp-merge-name { color: #e0d8c0; font-size: 13px; font-weight: 600; }
.opp-merge-arch { color: #888; font-size: 11px; font-weight: normal; }
.opp-merge-desc { color: #999; font-size: 11px; margin: 4px 0; line-height: 1.5; }
.opp-merge-hint { color: #c9a961; font-size: 10px; }

/* 选择器/注入列表项 */
.opp-pick-item, .opp-inject-item {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 6px;
    margin-bottom: 8px; cursor: pointer;
}
.opp-pick-item:hover, .opp-inject-item:hover { border-color: #c9a961; background: rgba(201, 169, 97, 0.06); }
.opp-pick-name { color: #e0d8c0; font-size: 14px; font-weight: 600; flex: 1; }
.opp-pick-name i { color: #c9a961; margin-right: 6px; }
.opp-inject-title { color: #e0d8c0; font-size: 13px; font-weight: 600; flex: 1; }
.opp-inject-meta { color: #777; font-size: 11px; }

