/* ============================================================
   蛋白设计（AI Protein Designer）· Powered by RFdiffusion
   深色科技风，与平台 sidebar 深色主题协调
   ============================================================ */

:root {
    --pd-bg: #0b1220;            /* 页面深底 */
    --pd-bg-2: #0e1728;          /* 面板深底 */
    --pd-card: #111c31;          /* 卡片 */
    --pd-card-hover: #16233c;
    --pd-line: #1e2c44;          /* 描边 */
    --pd-line-soft: #223250;
    --pd-text: #e6edf7;
    --pd-muted: #8ca2bc;
    --pd-dim: #5d6f8c;
    --pd-accent: #3b82f6;        /* 主蓝 */
    --pd-accent-2: #60a5fa;
    --pd-cyan: #22d3ee;          /* 科技青 */
    --pd-violet: #8b5cf6;        /* 科技紫 */
    --pd-success: #34d399;
    --pd-warn: #fbbf24;
    --pd-radius: 14px;
}

/* 覆盖平台浅色 body 为深色 */
.pd-main {
    background: var(--pd-bg);
    color: var(--pd-text);
    min-height: 100vh;
    padding: 28px 32px 64px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.pd-main * { box-sizing: border-box; }

/* ============ 顶部标题区 ============ */
.pd-hero {
    padding: 8px 0 28px;
    border-bottom: 1px solid var(--pd-line);
    margin-bottom: 26px;
}
.pd-hero-inner { max-width: none; margin: 0 auto; }

.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--pd-accent-2);
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .28);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.pd-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pd-cyan);
    box-shadow: 0 0 8px var(--pd-cyan);
    animation: pdPulse 2.2s ease-in-out infinite;
}
@keyframes pdPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.pd-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -.01em;
    background: linear-gradient(120deg, #f1f6ff 20%, var(--pd-accent-2) 55%, var(--pd-cyan) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pd-subtitle {
    font-size: 15px;
    color: var(--pd-muted);
    margin: 0 0 6px;
}
.pd-en {
    font-size: 13px;
    color: var(--pd-dim);
    margin: 0;
    letter-spacing: .02em;
}

/* ============ 通用 section ============ */
.pd-section { max-width: none; margin: 0 auto 30px; }
.pd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.pd-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pd-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-section-title::before {
    content: '';
    width: 4px; height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--pd-accent-2), var(--pd-cyan));
}
.pd-section-hint { font-size: 12px; color: var(--pd-dim); }

/* ============ 任务卡片区 ============ */
.pd-task-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.pd-task-card {
    position: relative;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-card);
    padding: 18px 16px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    min-height: 118px;
}
.pd-task-card:hover { border-color: var(--pd-line-soft); background: var(--pd-card-hover); }
.pd-task-card.available {
    border-color: rgba(59, 130, 246, .55);
    background: linear-gradient(180deg, rgba(59,130,246,.14), rgba(59,130,246,.03));
    box-shadow: 0 0 0 1px rgba(59,130,246,.18), 0 8px 28px rgba(37, 99, 235, .18);
}
.pd-task-card.available:hover { box-shadow: 0 0 0 1px rgba(59,130,246,.32), 0 10px 34px rgba(37, 99, 235, .28); }

.pd-task-icon {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1;
}
.pd-task-name { font-size: 14px; font-weight: 700; color: var(--pd-text); margin-bottom: 5px; }
.pd-task-desc { font-size: 12px; color: var(--pd-muted); line-height: 1.5; margin: 0; }

.pd-task-ribbon {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--pd-dim);
    border: 1px solid var(--pd-line-soft);
    border-radius: 6px;
    padding: 2px 7px;
}
.pd-task-card.available .pd-task-ribbon {
    color: var(--pd-cyan);
    border-color: rgba(34, 211, 238, .4);
    background: rgba(34, 211, 238, .08);
}

/* ============ 主工作区（左右布局） ============ */
.pd-workspace {
    max-width: none;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    align-items: stretch;
}

/* --- 左侧输入面板 --- */
.pd-input {
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-bg-2);
    padding: 22px;
    display: flex;
    flex-direction: column;
}
.pd-input-head { margin-bottom: 20px; }
.pd-input-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--pd-text); }
.pd-input-sub { font-size: 12px; color: var(--pd-muted); margin: 0; }

.pd-field { margin-bottom: 20px; }
.pd-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--pd-muted);
    margin-bottom: 9px;
    letter-spacing: .02em;
}
.pd-field-label .en { color: var(--pd-dim); font-weight: 500; margin-left: 6px; }

/* 单选卡片组（长度 / 数量 / 模式） */
.pd-option-grid { display: grid; gap: 9px; }
.pd-option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pd-option-grid.cols-1 { grid-template-columns: 1fr; }

.pd-option {
    border: 1px solid var(--pd-line-soft);
    border-radius: 11px;
    padding: 12px 13px;
    cursor: pointer;
    transition: all .16s ease;
    background: var(--pd-card);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pd-option:hover { border-color: var(--pd-accent-2); }
.pd-option.selected {
    border-color: var(--pd-accent-2);
    background: rgba(59, 130, 246, .12);
    box-shadow: 0 0 0 1px rgba(59,130,246,.3);
}
.pd-option-name { font-size: 13px; font-weight: 700; color: var(--pd-text); }
.pd-option-range { font-size: 11px; color: var(--pd-muted); font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; }
.pd-option.selected .pd-option-name { color: var(--pd-accent-2); }

/* 自由长度区间输入 */
.pd-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-range-input {
    width: 90px;
    padding: 10px 12px;
    border: 1px solid var(--pd-line-soft);
    border-radius: 9px;
    background: var(--pd-card);
    color: var(--pd-text);
    font-size: 14px;
    font-weight: 600;
    font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    text-align: center;
}
.pd-range-input:focus {
    outline: none;
    border-color: var(--pd-accent-2);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .2);
}
.pd-range-sep { color: var(--pd-muted); font-size: 13px; font-weight: 600; }
.pd-range-unit { color: var(--pd-muted); font-size: 13px; font-weight: 600; }
.pd-field-hint {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--pd-dim);
}

/* 未来功能预留输入区（隐藏，点击对应卡片展开） */
.pd-future-panel {
    display: none;
    margin-top: 6px;
    border: 1px dashed var(--pd-line-soft);
    border-radius: 11px;
    padding: 14px;
    background: rgba(139, 92, 246, .04);
}
.pd-future-panel.visible { display: block; }
.pd-future-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--pd-dim);
    font-size: 12px;
}
.pd-future-step:not(:last-child) { border-bottom: 1px dashed var(--pd-line); }
.pd-future-step .arrow { color: var(--pd-violet); font-weight: 700; }
.pd-future-step .tag {
    font-size: 10px; font-weight: 700;
    color: var(--pd-violet);
    border: 1px solid rgba(139, 92, 246, .4);
    border-radius: 5px; padding: 1px 6px;
    background: rgba(139, 92, 246, .1);
}

/* 文件上传区 */
.pd-upload-zone {
    border: 1.5px dashed var(--pd-line-soft);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .18s ease;
    background: var(--pd-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.pd-upload-zone:hover { border-color: var(--pd-accent-2); background: var(--pd-card-hover); }
.pd-upload-zone.has-file { border-style: solid; border-color: var(--pd-success); background: rgba(52, 211, 153, .06); }
.pd-upload-zone input[type="file"] { display: none; }
.pd-upload-icon { font-size: 26px; line-height: 1; }
.pd-upload-name { font-size: 13px; font-weight: 700; color: var(--pd-text); word-break: break-all; }
.pd-upload-zone.has-file .pd-upload-name { color: var(--pd-success); }
.pd-upload-hint { font-size: 11px; color: var(--pd-dim); }

/* 残基选择区 */
.pd-residue-empty {
    font-size: 12px; color: var(--pd-dim);
    border: 1px dashed var(--pd-line-soft);
    border-radius: 10px; padding: 14px; text-align: center;
}
.pd-residue-box {
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    padding: 12px;
    max-height: 240px;
    overflow-y: auto;
    background: var(--pd-card);
}
.pd-chain-group { margin-bottom: 12px; }
.pd-chain-group:last-child { margin-bottom: 0; }
.pd-chain-title {
    font-size: 11px; font-weight: 700; color: var(--pd-muted);
    margin-bottom: 7px; letter-spacing: .03em;
}
.pd-residue-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-residue-chip {
    font-size: 11px; font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    color: var(--pd-muted);
    border: 1px solid var(--pd-line-soft);
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all .14s ease;
    user-select: none;
    background: var(--pd-bg-2);
}
.pd-residue-chip:hover { border-color: var(--pd-accent-2); color: var(--pd-text); }
.pd-residue-chip.selected {
    background: rgba(59, 130, 246, .18);
    border-color: var(--pd-accent-2);
    color: var(--pd-accent-2);
    font-weight: 700;
}
.pd-residue-count {
    font-size: 11px; color: var(--pd-dim); margin-top: 8px;
}
.pd-residue-count:not(:empty)::before { content: ''; }

/* 提交按钮 */
.pd-submit {
    margin-top: auto;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(120deg, var(--pd-accent) 0%, var(--pd-violet) 60%, var(--pd-cyan) 120%);
    background-size: 180% 180%;
    transition: background-position .3s ease, transform .1s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .28);
}
.pd-submit:hover:not(:disabled) { background-position: 100% 50%; box-shadow: 0 10px 30px rgba(99, 102, 241, .36); }
.pd-submit:active:not(:disabled) { transform: translateY(1px); }
.pd-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* --- 提交/重置按钮行 --- */
.pd-btn-row {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.pd-btn-row .pd-submit {
    flex: 1;
    margin-top: 0;
    width: auto;
}
.pd-reset-btn {
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    background: var(--pd-bg-3);
    color: var(--pd-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
}
.pd-reset-btn:hover {
    border-color: var(--pd-accent);
    color: var(--pd-accent);
    background: rgba(59, 130, 246, .08);
}

/* --- 运行中占位 --- */
.pd-running-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    border: 1px dashed var(--pd-line);
    border-radius: 14px;
    background: var(--pd-bg-2);
}
.pd-running-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(59, 130, 246, .2);
    border-top-color: var(--pd-accent);
    border-radius: 50%;
    animation: pd-spin .9s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-running-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pd-text);
}
.pd-running-sub {
    font-size: 13px;
    color: var(--pd-muted);
    text-align: center;
}

/* --- 设计结果面板 --- */
.pd-results-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-results-head { display: flex; align-items: center; justify-content: space-between; }
.pd-results-title { font-size: 15px; font-weight: 700; color: var(--pd-text); }
.pd-results-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.pd-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--pd-line);
    border-radius: 10px;
    background: var(--pd-bg-2);
}
.pd-result-name { flex: 1; font-size: 13px; color: var(--pd-text); font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-result-size { font-size: 12px; color: var(--pd-muted); min-width: 60px; text-align: right; }
.pd-btn-sm {
    border: 1px solid var(--pd-line);
    background: var(--pd-bg-3);
    color: var(--pd-text);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.pd-btn-sm:hover { background: var(--pd-accent); color: #fff; border-color: var(--pd-accent); }
.pd-btn-ghost { background: transparent; }
.pd-btn-ghost:hover { background: rgba(59, 130, 246, .15); color: var(--pd-accent); border-color: var(--pd-accent); }
.pd-design-viewer-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-design-viewer-title { font-size: 13px; font-weight: 600; color: var(--pd-text); }
.pd-design-3d {
    width: 100%;
    height: 600px;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #0a1120;
    position: relative;
}
.pd-viz-block {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-viz-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pd-text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pd-line);
}
/* 结果区「可视化结果」标题行（标题 + 重置按钮同一行） */
.pd-viz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pd-line);
}
.pd-viz-head .pd-viz-title { padding-bottom: 0; border-bottom: none; }
.pd-viz-current {
    font-size: 13px;
    font-weight: 600;
    color: var(--pd-accent);
    font-family: ui-monospace, monospace;
}

/* --- 右侧结构预览面板 --- */
.pd-viewer {
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-bg-2);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    overflow: hidden;
}
.pd-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--pd-line);
}
.pd-viewer-title { font-size: 13px; font-weight: 700; color: var(--pd-text); }
.pd-viewer-engine {
    font-size: 10px; font-weight: 700;
    color: var(--pd-dim);
    border: 1px solid var(--pd-line-soft);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: .05em;
}
/* 面板头右侧工具条 + 「重置视图」按钮 */
.pd-viewer-tools { display: flex; align-items: center; gap: 8px; }
.pd-reset-btn {
    font-family: inherit;
    font-size: 11px; font-weight: 600;
    color: var(--pd-text);
    background: rgba(59, 130, 246, .12);
    border: 1px solid var(--pd-line-soft);
    border-radius: 6px;
    padding: 3px 10px;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pd-reset-btn:hover { background: var(--pd-accent); color: #fff; border-color: var(--pd-accent); }
.pd-reset-btn:disabled { opacity: .45; cursor: not-allowed; background: transparent; color: var(--pd-dim); border-color: var(--pd-line-soft); }
.pd-viewer-stage {
    flex: 1;
    position: relative;
    min-height: 420px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(59,130,246,.08), transparent 65%),
        #0a1120;
}

/* 空状态 */
.pd-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}
.pd-empty-icon {
    width: 74px; height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 32px;
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.22);
    margin-bottom: 6px;
}
.pd-empty-title { font-size: 15px; font-weight: 700; color: var(--pd-text); margin: 0; }
.pd-empty-desc { font-size: 12px; color: var(--pd-dim); max-width: 300px; margin: 0; line-height: 1.6; }

/* 3D 结构渲染容器 */
#pd-3d-viewer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============ 结果预留区 ============ */
.pd-results { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: var(--pd-bg-2); overflow: hidden; }

/* 工作流条 */
.pd-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--pd-line);
}
.pd-flow-step {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.pd-flow-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -7px; top: 50%;
    transform: translateY(-50%);
    color: var(--pd-dim);
    font-size: 16px;
    z-index: 1;
}
.pd-flow-step .step-idx { font-size: 10px; font-weight: 700; color: var(--pd-dim); letter-spacing: .06em; }
.pd-flow-step .step-name { font-size: 13px; font-weight: 700; color: var(--pd-text); }
.pd-flow-step .step-tag {
    font-size: 10px; font-weight: 700; margin-top: 2px;
    display: inline-block; align-self: flex-start;
    border-radius: 5px; padding: 1px 7px;
}
.pd-flow-step.current .step-tag { color: var(--pd-cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); }
.pd-flow-step.future .step-tag { color: var(--pd-dim); background: rgba(93,111,140,.1); border: 1px solid var(--pd-line-soft); }
.pd-flow-step.future .step-name { color: var(--pd-muted); }

/* 结果占位卡片 */
.pd-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
}
.pd-metric {
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    padding: 16px;
    background: var(--pd-card);
}
.pd-metric-label { font-size: 11px; font-weight: 700; color: var(--pd-muted); margin-bottom: 8px; }
.pd-metric-value {
    font-size: 20px; font-weight: 800;
    color: var(--pd-dim);
    font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
.pd-metric-placeholder { font-size: 12px; color: var(--pd-dim); }

/* ============ 残基信息 tooltip ============ */
.pd-atom-tooltip {
    position: fixed;
    z-index: 4000;
    pointer-events: none;
    background: rgba(13, 22, 38, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .12s ease, transform .12s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 260px;
}
.pd-atom-tooltip.show { opacity: 1; transform: translateY(0); }
.pd-tip-resn { font-size: 14px; font-weight: 800; color: #ffffff; letter-spacing: .01em; }
.pd-tip-chain { font-size: 12px; color: #8ca2bc; }
.pd-tip-hint { font-size: 11px; color: #22d3ee; margin-top: 2px; }

/* ============ Toast ============ */
.pd-toast {
    position: fixed; top: 20px; right: 20px;
    padding: 13px 22px;
    border-radius: 10px;
    color: #fff; font-weight: 700; font-size: 13px;
    z-index: 3000;
    transform: translateX(150%);
    transition: transform .3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pd-toast.show { transform: translateX(0); }
.pd-toast.success { background: #059669; }
.pd-toast.error { background: #dc2626; }
.pd-toast.warning { background: #d97706; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
    .pd-task-grid { grid-template-columns: repeat(3, 1fr); }
    .pd-workspace { grid-template-columns: 1fr; }
    .pd-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .pd-main { padding: 18px 16px 48px; }
    .pd-title { font-size: 26px; }
    .pd-task-grid { grid-template-columns: 1fr 1fr; }
    .pd-option-grid.cols-3 { grid-template-columns: 1fr; }
    .pd-flow { grid-template-columns: 1fr 1fr; }
    .pd-flow-step::after { display: none; }
}

/* 积分余额徽章 + 计费说明 */
.pd-points-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(77, 163, 255, 0.12);
    border: 1px solid rgba(77, 163, 255, 0.35);
    color: #7fc0ff;
    font-size: 13px;
    font-weight: 600;
}
.pd-billing-hint {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 140, 66, 0.08);
    border: 1px solid rgba(255, 140, 66, 0.2);
    color: #c9a16a;
    font-size: 12px;
    line-height: 1.5;
}

/* ── 阶段B 手机端补充（2026-10-01） ── */
@media (max-width: 768px) {
  /* 字号保底（原本 10~11px） */
  .pd-task-ribbon, .pd-future-step .tag, .pd-viewer-engine, .pd-flow-step .step-idx,
  .pd-flow-step .step-tag, .pd-option-range, .pd-field-hint, .pd-upload-hint,
  .pd-chain-title, .pd-residue-chip, .pd-residue-count, .pd-metric-label { font-size: 12px; }
}
@media (max-width: 480px) {
  /* 卡片从 2 列改单列，避免文字挤成糊 */
  .pd-task-grid { grid-template-columns: 1fr; }
  .pd-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* 中断/超时任务的部分结果提示 */
.pd-partial-warn {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(240, 160, 60, 0.12);
  border: 1px solid rgba(240, 160, 60, 0.45);
  color: #f0b060;
  font-size: 13px;
  line-height: 1.5;
}
