/* ============ 字幕时间轴工具：st-* ============ */

/* ---------- Hero ---------- */
.st-hero {
    margin: 18px 0 26px;
    padding: 22px;
    background: linear-gradient(135deg, #f2f0ff 0%, #f6fbff 55%, #fff6fb 100%);
    border: 1px solid #e6e6f7;
    border-radius: 18px;
}
.st-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.st-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-logo {
    width: 46px;
    height: 46px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(90, 80, 190, .16);
}
.st-title { font-size: 20px; font-weight: 800; color: #1f2b45; letter-spacing: .3px; }
.st-tagline { font-size: 13px; color: #6b7a96; margin-top: 2px; }
.st-privacy {
    font-size: 12px;
    color: #2f7d55;
    background: #e8f7ef;
    border: 1px solid #c6ead8;
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
}

/* ---------- 输入区 ---------- */
.st-drop {
    border: 2px dashed #b9c6dc;
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(255, 255, 255, .65);
    transition: border-color .2s, background .2s;
    margin-bottom: 14px;
}
.st-drop.is-drag { border-color: #2b62d9; background: rgba(223, 233, 255, .8); }
.st-drop-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.st-drop-title { margin: 4px 0 6px; color: #1f2b45; font-size: 15px; font-weight: 600; }
.st-drop-desc { color: #6b7a96; font-size: 12.5px; line-height: 1.8; margin: 0 auto 12px; max-width: 560px; }
.st-drop-btn {
    border: 0;
    border-radius: 10px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #2b62d9;
    color: #fff;
}
.st-drop-btn:hover { background: #1e4cb8; }

.st-paste { margin-bottom: 16px; }
.st-textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid #c5d1e3;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #1a2b4a;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    resize: vertical;
    outline: none;
}
.st-textarea:focus { border-color: #2b62d9; box-shadow: 0 0 0 3px rgba(43, 98, 217, .12); }

/* ---------- 两栏 ---------- */
.st-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 1024px) {
    .st-grid { grid-template-columns: 1fr; }
}

/* ---------- 卡片 ---------- */
.st-card {
    background: #fff;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.st-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.st-card-head b { font-size: 14px; color: #1a2b4a; }
.st-card-info { color: #6b7a96; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- 字段 ---------- */
.st-field { margin-bottom: 12px; }
.st-field:last-child { margin-bottom: 0; }
.st-label { display: block; color: #4a587a; font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.st-note { color: #6b7a96; font-size: 12px; margin: 4px 0 0; line-height: 1.7; }
.st-inline-note { display: block; color: #8a94ab; font-size: 11.5px; margin-top: 4px; line-height: 1.6; }
.st-input {
    border: 1px solid #c5d1e3;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 13px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
    min-width: 0;
}
.st-input:focus { border-color: #2b62d9; }
.st-select {
    border: 1px solid #c5d1e3;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 13px;
    color: #1a2b4a;
    background: #fff;
    outline: none;
}
.st-row-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-row-line .st-input { flex: 1; min-width: 70px; }
.st-unit { color: #6b7a96; font-size: 12px; }

/* ---------- 段控件 ---------- */
.st-seg {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    background: #eef3fc;
    border-radius: 10px;
    padding: 4px;
}
.st-seg.col3 { grid-template-columns: repeat(3, 1fr); }
.st-seg-btn {
    border: 0;
    background: transparent;
    padding: 6px;
    font-size: 12.5px;
    color: #4a587a;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 500;
}
.st-seg-btn:hover { color: #1a2b4a; }
.st-seg-btn.active { background: #fff; color: #1a2b4a; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* ---------- 按钮 ---------- */
.st-btn {
    border: 1px solid #c5d1e3;
    background: #fff;
    color: #1a2b4a;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.st-btn:hover { background: #f7faff; border-color: #2b62d9; }
.st-btn.primary { background: #2b62d9; color: #fff; border-color: #2b62d9; }
.st-btn.primary:hover { background: #1e4cb8; border-color: #1e4cb8; }
.st-mini-btn {
    border: 1px solid #c5d1e3;
    background: #fff;
    color: #2b62d9;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.st-mini-btn:hover { background: #eef3fc; border-color: #2b62d9; }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 字幕列表 ---------- */
.st-list { max-height: 620px; overflow-y: auto; }
.st-row {
    display: grid;
    grid-template-columns: 26px 44px 196px 1fr 48px 26px;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid #e3e8f1;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.st-row:hover { border-color: #c5d1e3; }
.st-row.is-sel { background: #f2f7ff; border-color: #9dbcf5; }
.st-pick { display: flex; align-items: center; justify-content: center; }
.st-pick input { accent-color: #2b62d9; width: 14px; height: 14px; }
.st-idx {
    color: #8a94ab;
    font-size: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.st-time { display: flex; align-items: center; gap: 4px; }
.st-time i { color: #b9c6dc; font-style: normal; font-size: 12px; }
.st-ti {
    width: 86px;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    padding: 4px 5px;
    font-size: 11.5px;
    color: #1a2b4a;
    font-family: ui-monospace, Consolas, monospace;
    outline: none;
}
.st-ti:focus { border-color: #2b62d9; }
.st-tx {
    width: 100%;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #1a2b4a;
    resize: vertical;
    min-height: 26px;
    outline: none;
    font-family: inherit;
}
.st-tx:focus { border-color: #2b62d9; }
.st-dur {
    color: #8a94ab;
    font-size: 11.5px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.st-del {
    border: 0;
    background: transparent;
    color: #b9c6dc;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 3px 4px;
    border-radius: 5px;
}
.st-del:hover { color: #c0392b; background: rgba(192, 57, 43, .08); }
.st-tl {
    grid-column: 1 / -1;
    height: 4px;
    background: #eef3fc;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.st-tl i {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #2b62d9, #4c8af0);
    border-radius: 2px;
    min-width: 2px;
}

.st-empty {
    color: #b9c6dc;
    font-size: 14px;
    text-align: center;
    padding: 40px 10px;
}
.st-more {
    color: #8a94ab;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    background: #f7faff;
    border-radius: 8px;
    border: 1px dashed #dbe3f0;
}

/* ---------- 状态 ---------- */
.st-status { margin-top: 10px; color: #4a587a; font-size: 13px; }
.st-status.is-ok { color: #2b62d9; }
.st-status.is-warn { color: #c0392b; }

/* ---------- 简介块 / 免责 ---------- */
.st-info-block { margin-bottom: 26px; }
.st-info-block .detail-icon {
    --icon-bg: linear-gradient(135deg, #7c3aed, #06b6d4);
    --icon-shadow: rgba(124, 58, 237, .3);
}
.st-disclaim {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff8ea;
    border: 1px solid #f3e2b8;
    font-size: 12.5px;
    line-height: 1.8;
    color: #8a6516;
}
