/* AI 视频总结页面样式(2026-08-31 新增)。
 * 复用 theme.css / ai-writer.css 中的 --accent / --accent-grad 等 token,
 * 仅补充本页面独有的布局与组件。
 */

/* ---------- Hero ---------- */
.vs-hero {
    padding: 56px 20px 36px;
    text-align: center;
}
.vs-subtitle-strong {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

/* ---------- 主容器 ---------- */
.vs-main {
    padding-top: 8px;
    padding-bottom: 60px;
    max-width: 1080px;
}

/* ---------- 通用卡片 ---------- */
.vs-input-card,
.vs-output-card,
.vs-empty-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 28px;
    margin-bottom: 24px;
}

/* ---------- 输入区:tabs + textarea + actions ---------- */
.vs-tabs {
    display: inline-flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 12px;
}
.vs-tab {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.vs-tab.is-active {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.vs-tab.is-disabled {
    color: #c4c9d0;
    cursor: not-allowed;
    background: transparent;
}

.vs-help {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.vs-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    background: #fafbfc;
}
.vs-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background: #fff;
}

.vs-input-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}
.vs-quota strong {
    color: #0ea5e9;
    font-weight: 700;
}

.vs-actions-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}
.vs-btn {
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.vs-btn.primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.vs-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }
.vs-btn.primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.vs-btn.ghost {
    background: #f3f4f6;
    color: #4b5563;
}
.vs-btn.ghost:hover { background: #e5e7eb; }

/* ---------- 输出卡片头 ---------- */
.vs-output-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 22px;
}
.vs-output-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vs-output-star {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #fff;
    font-weight: 800;
}
.vs-output-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.vs-output-loading {
    width: 16px; height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: vs-spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }

.vs-output-actions {
    display: flex;
    gap: 8px;
}
.vs-icon-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.18s ease;
}
.vs-icon-btn:hover { border-color: #0ea5e9; color: #0ea5e9; }
.vs-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 概览区:一句话 + 核心观点 + 标签 ---------- */
.vs-overview { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.vs-one-sentence {
    background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 18px 22px;
    border-left: 4px solid #0ea5e9;
}
.vs-one-sentence-label {
    display: block;
    font-size: 12px;
    color: #0369a1;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.vs-one-sentence-text {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0c4a6e;
    line-height: 1.55;
}
.vs-sub-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: #334155;
    font-weight: 700;
}
.vs-sub-title i { color: #0ea5e9; margin-right: 6px; }
.vs-core-points-list,
.vs-section-list {
    margin: 0; padding: 0;
    list-style: none;
}
.vs-core-points-list li,
.vs-section-list li {
    position: relative;
    padding: 10px 12px 10px 28px;
    color: #1f2937;
    line-height: 1.65;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 6px;
    font-size: 14px;
}
.vs-core-points-list li::before,
.vs-section-list li::before {
    content: "";
    position: absolute;
    left: 12px; top: 17px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}
.vs-tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-tag-chip {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
}
.vs-empty-tip {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

/* ---------- 章节 tab ---------- */
.vs-tabs-section {
    background: #fafbfc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.vs-section-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    margin-bottom: 16px;
}
.vs-section-tab {
    border: 0;
    background: transparent;
    padding: 10px 16px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}
.vs-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 11px;
    padding: 0 6px;
}
.vs-section-tab.is-active { color: #0ea5e9; border-bottom-color: #0ea5e9; }
.vs-section-tab.is-active .vs-section-num { background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%); color: #fff; }
.vs-section-panels { min-height: 100px; }
.vs-section-panel { display: none; }
.vs-section-panel.is-active { display: block; animation: vs-fade-in 0.32s ease; }
@keyframes vs-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 原始文案折叠 ---------- */
.vs-original {
    border-top: 1px dashed #e5e7eb;
    padding-top: 14px;
    margin-top: 8px;
}
.vs-original summary {
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.vs-original summary::-webkit-details-marker { display: none; }
.vs-original-tip { color: #94a3b8; font-size: 12px; }
.vs-original[open] summary { color: #0ea5e9; }
.vs-original-body {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    max-height: 360px;
    overflow-y: auto;
}

/* ---------- 错误条 ---------- */
.vs-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 13px;
}

/* ---------- 空状态 ---------- */
.vs-empty-card {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}
.vs-empty-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
    color: #0ea5e9;
    font-size: 26px;
    margin-bottom: 14px;
}
.vs-empty-text { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.vs-empty-sub { font-size: 13px; color: #94a3b8; }

/* ---------- 底部 ---------- */
.vs-footer {
    text-align: center;
    padding: 24px 0 40px;
    color: #94a3b8;
    font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .vs-input-card,
    .vs-output-card,
    .vs-empty-card { padding: 18px; }
    .vs-hero { padding: 36px 16px 24px; }
    .vs-output-head { flex-direction: column; gap: 10px; align-items: flex-start; }
    .vs-section-tabs { gap: 0; }
    .vs-section-tab { padding: 8px 10px; font-size: 12px; }
}
/* ============================================================
   Hooks 重写列表(2026-09-01 新增)
   ============================================================ */

.rh-hooks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rh-hook-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7f8fb;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rh-hook-item:hover {
    background: #fff;
    border-color: #d9dde8;
}

.rh-hook-num {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a3d, #ff6a3d);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0;
}

.rh-hook-text {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #2a2f3a;
    word-break: break-word;
}

.rh-hook-copy {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid #d9dde8;
    background: #fff;
    color: #4a4f5a;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rh-hook-copy:hover {
    background: #ff8a3d;
    color: #fff;
    border-color: #ff8a3d;
}

.rh-hook-copy.is-copied,
.rh-hook-copy[aria-disabled="true"] {
    background: #e7f8ee;
    color: #2f9e4f;
    border-color: #cfe6d6;
    cursor: default;
}

.rh-hook-copy[aria-disabled="true"]:hover {
    background: #e7f8ee;
    color: #2f9e4f;
    border-color: #cfe6d6;
}

.rh-hook-empty .rh-hook-text {
    color: #a4a8b3;
    font-style: italic;
}

.rh-empty-tip {
    padding: 28px 18px;
    text-align: center;
    color: #a4a8b3;
    background: #f7f8fb;
    border: 1px dashed #e2e6ee;
    border-radius: 10px;
    list-style: none;
}

.vs-sub-title-inline {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    font-weight: 400;
    color: #8a8f99;
    vertical-align: middle;
}

/* ============================================================
   Scripts 重写输出块(2026-09-01 新增)
   ============================================================ */
.rs-script {
    padding: 22px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.85;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
    min-height: 120px;
}
.rs-section-tag {
    display: inline-block;
    padding: 1px 9px;
    margin-right: 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: baseline;
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.25);
}
.rs-empty-tip {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}
.vs-badge-new {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
}
