/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0D9488;
    --primary-light: #14B8A6;
    --primary-dark: #0F766E;
    --primary-bg: #F0FDFA;
    --accent: #F59E0B;
    --accent-light: #FEF3C7;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --danger: #EF4444;
    --success: #22C55E;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: 0.2s ease;
}

html { font-size: 14px; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
}

#app { display: flex; flex-direction: column; height: 100vh; }

/* ===== Top Bar ===== */
.top-bar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-light);
}
.brand .avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-info h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}
.brand-info .tag {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 1px 8px;
    border-radius: 100px;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.date-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
}
.btn-follow {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.btn-follow:hover { background: var(--primary-dark); }

/* ===== Main Container ===== */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    padding: 12px 0;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.nav-section { flex: 1; }
.nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 2px 0;
}
.nav-item:hover { background: var(--primary-bg); }
.nav-item.active {
    background: var(--primary-bg);
    border-left-color: var(--primary);
}
.nav-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.nav-text { flex: 1; min-width: 0; }
.nav-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}
.nav-sub {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
.nav-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-secondary);
    margin-top: 4px;
}
.nav-badge.auto { background: #FEF3C7; color: #B45309; }
.nav-badge.video { background: #FEE2E2; color: #B91C1C; }
.nav-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-dark);
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.status-note {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== Content Area ===== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: var(--bg);
}

/* ===== Pages ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== Page Header ===== */
.page-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.page-header.simple {
    padding: 16px 24px;
}
.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.page-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* Auto Update Bar */
.auto-update-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #F0FDF4;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 12px;
    color: #166534;
    flex-wrap: wrap;
}
.update-icon { font-size: 16px; }
.update-meta {
    display: flex;
    gap: 16px;
    margin-left: auto;
}
.meta-item { font-size: 11px; color: #15803D; }

/* Page Title Bar */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-icon { font-size: 20px; }
.title-tag {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 2px 10px;
    border-radius: 100px;
}
.btn-refresh, .btn-refresh-hot, .btn-fetch-bbc, .btn-fetch-workout,
.btn-ai-review, .btn-ai-adapt, .btn-new-workflow, .btn-publish-all,
.btn-extract, .btn-record, .btn-add-plan, .btn-add-memo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-refresh:hover, .btn-refresh-hot:hover, .btn-fetch-bbc:hover,
.btn-fetch-workout:hover, .btn-ai-review:hover, .btn-ai-adapt:hover,
.btn-new-workflow:hover, .btn-publish-all:hover, .btn-extract:hover,
.btn-record:hover, .btn-add-plan:hover, .btn-add-memo:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.filter-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: white;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #FFFBEB;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.5;
}
.info-icon { font-size: 18px; flex-shrink: 0; }

/* ===== Cards ===== */
.card-list { display: flex; flex-direction: column; gap: 14px; }
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

/* Inspiration Card */
.inspiration-card { position: relative; }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.card-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}
.card-tag.hot { background: #FEE2E2; color: #B91C1C; }
.card-tag.ai { background: #E0E7FF; color: #3730A3; }
.card-tag.parenting { background: #DCFCE7; color: #166534; }
.card-tag.growth { background: #FCE7F3; color: #9D174D; }
.card-tag.tech { background: #E0F2FE; color: #075985; }
.card-tag.interview { background: #FEF3C7; color: #92400E; }

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-section {
    margin-top: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}
.card-section h5 {
    font-size: 12px;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 600;
}
.card-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-card.primary {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.btn-card.secondary {
    background: var(--bg);
    color: var(--text-secondary);
}
.btn-card.accent {
    background: var(--accent-light);
    color: #92400E;
}
.btn-card:hover { transform: translateY(-1px); opacity: 0.9; }

/* ===== Plan Page ===== */
.plan-container { max-width: 700px; }
.plan-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.plan-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.plan-input:focus { border-color: var(--primary); }
.plan-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.stat-item {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.plan-item.done { opacity: 0.6; }
.plan-item.done .plan-text { text-decoration: line-through; }
.plan-checkbox {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.plan-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}
.plan-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}
.plan-text { flex: 1; font-size: 14px; }
.plan-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
}
.plan-item:hover .plan-delete { opacity: 1; }
.plan-delete:hover { color: var(--danger); }

/* ===== Extract Page ===== */
.extract-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.step-item {
    flex: 1;
    display: flex;
    gap: 10px;
    padding: 14px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    opacity: 0.5;
    transition: var(--transition);
}
.step-item.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}
.step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.step-item.active .step-num {
    background: var(--primary);
    color: white;
}
.step-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.step-content p {
    font-size: 11px;
    color: var(--text-secondary);
}
.quick-examples {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.quick-examples h4 { font-size: 13px; margin-bottom: 10px; color: var(--text-secondary); }
.example-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.example-tag {
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.example-tag:hover { border-color: var(--primary); background: var(--primary-bg); }

/* 对标跳转提示banner */
.benchmark-jump-banner {
    display: none;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}
.benchmark-jump-banner .bj-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.benchmark-jump-banner .bj-content {
    flex: 1;
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.6;
}
.benchmark-jump-banner .bj-content strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}
.benchmark-jump-banner .bj-content p {
    margin: 0;
    opacity: 0.9;
}
.benchmark-jump-banner .bj-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #60A5FA;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s;
}
.benchmark-jump-banner .bj-close:hover {
    background: #DBEAFE;
    color: #1E40AF;
}

.extract-input-area {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.extract-input-area h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.extract-input-area textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
}
.extract-input-area textarea:focus { border-color: var(--primary); }
.extract-options {
    margin-top: 12px;
    padding: 12px 0;
}
.option-label { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.style-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.style-tag {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.style-tag:hover { border-color: var(--primary); }
.style-tag.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.extract-result {
    margin-top: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.extract-result h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-bg);
}
.result-section {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}
.result-section h5 {
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.result-section pre {
    white-space: pre-wrap;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: inherit;
    line-height: 1.7;
}

/* ===== Extract Page - New ===== */
.extract-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.extract-input-row .extract-input-group {
    flex: 1;
}
.extract-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.extract-input-group.full {
    margin-bottom: 12px;
}
.extract-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.label-required {
    color: var(--danger);
    margin-left: 2px;
}
.label-hint {
    font-weight: 400;
    color: var(--text-light);
    font-size: 12px;
}
.extract-input-group input[type="text"] {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.extract-input-group input[type="text"]:focus {
    border-color: var(--primary);
}
.extract-tool-hint {
    font-size: 12px;
    color: var(--text-light);
    padding: 10px 14px;
    background: #F0FDFA;
    border-radius: var(--radius);
    border: 1px dashed var(--primary-light);
}
.extract-tool-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Link input with auto-extract button */
.link-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.link-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.link-input-wrapper input[type="text"]:focus { border-color: var(--primary); }
.btn-auto-extract {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-auto-extract:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-auto-extract:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Extract tools group */
.extract-tools-group { min-width: 0; }
.extract-tool-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tool-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}
.tool-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}
.tool-btn span { font-size: 14px; }

/* Extract status area */
.extract-status {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.6;
}
.extract-status.loading {
    background: #EFF6FF;
    border: 1px solid #93C5FD;
    color: #1D4ED8;
}
.extract-status.success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}
.extract-status.hint {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    color: #92400E;
}
.extract-status.error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}
.status-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #93C5FD;
    border-top-color: #1D4ED8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* Options row layout */
.extract-options {
    margin-top: 12px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.extract-options-left { flex: 1; min-width: 0; }
.btn-paste-clipboard {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #FEF3C7;
    border: 1.5px solid #FCD34D;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #92400E;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-paste-clipboard:hover { background: #FDE68A; }

/* Mode selector cards */
.extract-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.extract-mode-card {
    padding: 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.extract-mode-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.extract-mode-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 14, 165, 233), 0.15);
}
.mode-icon { font-size: 32px; margin-bottom: 8px; }
.mode-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.mode-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Copy Prompt button */
.btn-copy-prompt {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.btn-copy-prompt:hover {
    background: var(--primary-bg);
}

/* Result sections */
.result-section {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.result-section.highlight {
    border-color: var(--primary);
    background: #F0FDFA;
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-bg);
}
.result-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.result-actions {
    display: flex;
    gap: 8px;
}
.btn-copy, .btn-add-plan {
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
}
.btn-copy:hover, .btn-add-plan:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-add-plan {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-add-plan:hover {
    background: var(--primary-dark);
    color: white;
}

.script-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.result-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}
.result-content.original-text {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    border: 1px solid var(--border-light);
}
.result-content.script-text {
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-light);
    white-space: pre-wrap;
}
.result-content.title-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.result-content.shooting-guide {
    padding: 12px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* Analysis grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.analysis-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.analysis-value {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ===== 结果区双栏布局 ===== */
.result-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-top: 16px;
    align-items: start;
}
.result-original-sidebar {
    position: sticky;
    top: 20px;
}
.result-original-sidebar .original-text {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.result-main-content {
    min-width: 0;
}

/* ===== 分镜脚本样式 ===== */
.script-scene {
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: var(--transition);
}
.script-scene:last-child { margin-bottom: 0; }
.script-scene:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.scene-visual {
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--primary-bg);
    border-radius: 8px;
    line-height: 1.6;
}
.scene-narrator {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    padding-left: 4px;
}
.scene-dialogue {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    padding: 8px 0;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

/* ===== 脚本流式文本（连续口播文案，无分镜卡片）===== */
.script-flow-text {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.script-flow-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}
.flow-visual {
    display: block;
    margin: 8px 0;
    padding: 10px 16px;
    background: #EFF6FF;
    border-radius: 8px;
    color: #1E40AF;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 脚本分段样式（完整版：画面+旁白+台词）===== */
.script-seg {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-light);
}
.script-seg:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.seg-visual {
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding: 8px 14px;
    background: #F0FDFA;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}
.seg-tone {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    padding-left: 4px;
    font-weight: 500;
}
.seg-line {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    padding: 8px 0;
}

/* ===== 纯净版口播文案（隐藏画面描述，只留台词）===== */
.script-flow-text.clean-mode {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
    padding: 20px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    white-space: normal;
}
.script-flow-text.clean-mode br {
    display: block;
    content: "";
    margin-bottom: 12px;
}

/* ===== 模式切换按钮 ===== */
.btn-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-mode-toggle:hover {
    background: var(--primary-bg);
}
.btn-mode-toggle.clean-active {
    background: var(--primary);
    color: white;
}
.btn-copy-clean {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #FEF3C7;
    border: 1.5px solid #FCD34D;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #92400E;
    white-space: nowrap;
    transition: var(--transition);
}
.btn-copy-clean:hover {
    background: #FDE68A;
}

/* ===== 钩子卡片网格 ===== */
.hooks-intro {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.hooks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.hook-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}
.hook-card:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.hook-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.hook-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    padding-top: 4px;
}
.hook-copy {
    align-self: flex-end;
    padding: 4px 12px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.hook-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* ===== 辅助信息区 ===== */
.result-auxiliary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* ===== 操作栏 ===== */
.result-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.btn-save-memo, .btn-retry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-save-memo {
    background: var(--primary-bg);
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
}
.btn-save-memo:hover { background: var(--primary); color: white; }
.btn-retry {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-retry:hover { border-color: var(--primary); color: var(--primary); }
.btn-retry-small {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.btn-retry-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Title item */
.title-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.title-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.title-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.title-text {
    flex: 1;
    font-size: 13px;
    color: var(--text);
}
.title-copy {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-light);
}
.title-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Shooting guide sections */
.shoot-section {
    margin-bottom: 12px;
}
.shoot-section:last-child {
    margin-bottom: 0;
}
.shoot-section h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.shoot-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Result actions bar */
.result-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.btn-save-memo, .btn-retry {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-save-memo {
    background: var(--primary);
    color: white;
    border: none;
}
.btn-save-memo:hover {
    background: var(--primary-dark);
}
.btn-retry {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-retry:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Hot Page ===== */
.hot-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}
.hot-tab {
    padding: 10px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.hot-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.hot-intro {
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.hot-intro h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.hot-intro p { font-size: 12px; color: #92400E; line-height: 1.5; margin-bottom: 10px; }

/* Hot Card */
.hot-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.hot-card-rank {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
}
.hot-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0;
}
.hot-card-reason {
    padding: 10px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    margin: 8px 0;
}
.hot-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ===== Review Page ===== */
.review-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 12px;
}
.review-title {
    display: flex;
    gap: 12px;
    flex: 1;
}
.review-icon { font-size: 28px; }
.review-title h3 { font-size: 16px; font-weight: 600; }
.review-title p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.btn-link:hover { background: var(--primary-bg); }
.review-stats-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}
.review-stat-card {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.review-stat-card .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.review-stat-card .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}
.review-card iframe {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* ===== Memo Page ===== */
.memo-container { max-width: 700px; }
.memo-input-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.memo-title-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
}
.memo-title-input:focus { border-color: var(--primary); }
.memo-category-select {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
    color: var(--text);
}
.memo-content-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    margin-bottom: 10px;
}
.memo-content-input:focus { border-color: var(--primary); }
.memo-list { display: flex; flex-direction: column; gap: 10px; }
.memo-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}
.memo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.memo-card-title { font-size: 14px; font-weight: 600; }
.memo-card-category {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--primary-bg);
    color: var(--primary);
}
.memo-card-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.memo-card-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== Workout Page ===== */
.workout-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}
.auto-badge {
    font-size: 11px;
    padding: 3px 10px;
    background: #F0FDF4;
    color: #166534;
    border-radius: 100px;
}
.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.workout-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.workout-card:hover { box-shadow: var(--shadow-md); }
.workout-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-bg), #E0F2FE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.workout-info { padding: 14px 16px; }
.workout-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.workout-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.workout-actions {
    display: flex;
    gap: 8px;
}
.btn-workout,
a.btn-workout {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-workout.start {
    background: var(--primary);
    color: white;
}
.btn-workout.checkin {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-workout:hover { opacity: 0.85; }

/* ===== English Page ===== */
.english-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}
.english-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-bbc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.btn-bbc:hover { background: var(--primary-bg); }
.english-stats-bar {
    padding: 10px 14px;
    background: #F0FDF4;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #166534;
}
.english-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.english-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.english-card:hover { box-shadow: var(--shadow-md); }
.english-card-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    min-width: 40px;
}
.english-card-info { flex: 1; }
.english-card-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.english-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}
.english-card-actions { display: flex; gap: 8px; }

/* ===== Parenting Page ===== */
.parenting-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.parenting-cat {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: white;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.parenting-cat:hover { border-color: var(--primary); }
.parenting-cat.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.parenting-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

/* ===== Benchmark Accounts ===== */
.benchmark-section {
    margin-bottom: 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.benchmark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.benchmark-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.benchmark-tip {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    display: block;
}
.btn-add-benchmark {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px dashed var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-add-benchmark:hover { background: var(--primary); color: white; }

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: var(--surface, #fff);
    border-radius: var(--radius, 16px);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.25s ease;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-main, #1a1a2e);
}
.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light, #9ca3af);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.modal-close:hover {
    background: var(--bg, #f3f4f6);
    color: var(--text-main, #1a1a2e);
}
.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border, #e5e7eb);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main, #1a1a2e);
}
.form-group .required {
    color: #ef4444;
    margin-left: 2px;
}
.form-group input,
.form-group select {
    padding: 9px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg, #f9fafb);
    color: var(--text-main, #1a1a2e);
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary, #0D9488);
    background: #fff;
}
.btn-modal-cancel {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--bg, #f9fafb);
    color: var(--text-main, #1a1a2e);
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-modal-cancel:hover {
    background: var(--border, #e5e7eb);
}
.btn-modal-confirm {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    background: var(--primary, #0D9488);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-modal-confirm:hover {
    background: #0f766e;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.benchmark-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.benchmark-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.benchmark-card:hover { box-shadow: var(--shadow-sm); }
.benchmark-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg);
    gap: 10px;
    flex-wrap: wrap;
}
.bh-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}
.bh-name {
    font-size: 14px;
    font-weight: 600;
}
.bh-name-link {
    color: var(--text-main, #1a1a2e);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.bh-name-link:hover {
    color: #2563eb;
    text-decoration: underline;
}
.bh-platform {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--primary-bg);
    color: var(--primary);
    margin-left: 4px;
}
.bh-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-light);
    flex-wrap: wrap;
}
.bh-cat {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 500;
}
.bh-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-bh-visit {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}
.btn-bh-visit:hover { border-color: var(--primary); color: var(--primary); }
.btn-bh-refresh, .btn-bh-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-bh-refresh:hover { background: var(--primary-bg); }
.btn-bh-remove:hover { background: #FEE2E2; color: #DC2626; }
.benchmark-videos {
    padding: 8px 14px 12px;
}
.bv-header {
    font-size: 11px;
    color: var(--text-light);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-add-video {
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px dashed var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-video:hover {
    background: var(--primary);
    color: white;
}
.benchmark-video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.benchmark-video-item:last-child { border-bottom: none; }
.bv-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bv-info {
    flex: 1;
    min-width: 0;
}
.bv-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}
.bv-title:hover { color: var(--primary); }
.bv-meta {
    display: flex;
    gap: 10px;
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-light);
}
.btn-bv-extract {
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-bv-extract:hover { opacity: 0.85; }
.bv-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    padding: 12px;
}

/* ===== Knowledge Base ===== */
.kb-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kb-last-update {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 100px;
}
.kb-refresh-btn {
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.kb-refresh-btn:hover { opacity: 0.85; }
.kb-stats-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.kb-stat-chip {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-secondary);
}
.kb-stat-chip b { color: var(--primary); font-weight: 600; }
.kb-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    border-left: 3px solid transparent;
    transition: var(--transition);
    animation: kbFadeIn 0.4s ease forwards;
}
.kb-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}
@keyframes kbFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.kb-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.kb-cat-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}
.kb-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-light);
}
.kb-source {
    font-size: 11px;
    color: var(--text-light);
}
.kb-date {
    font-size: 11px;
    color: var(--text-light);
    margin-left: auto;
}
.kb-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.kb-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}
.kb-card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}
.kb-read-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.kb-read-link:hover { text-decoration: underline; }

/* AI信息总结卡片 */
.kb-ai-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.kb-ai-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #8b5cf6);
}
.kb-ai-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.kb-ai-summary-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0c4a6e;
}
.kb-ai-summary-hint {
    font-size: 11px;
    font-weight: 400;
    color: #0369a1;
    margin-left: 4px;
}
.kb-ai-icon { font-size: 18px; }
.kb-copy-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.kb-copy-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.kb-copy-btn:active { transform: translateY(0); }
.kb-ai-summary-body {
    font-size: 13px;
    line-height: 1.8;
    color: #075985;
    white-space: pre-wrap;
    word-break: break-all;
    background: white;
    border-radius: 10px;
    padding: 14px 16px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e0f2fe;
}

/* ===== Workflow Page ===== */
.workflow-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.workflow-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}
.workflow-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--primary-bg);
}
.workflow-info { flex: 1; }
.workflow-info h4 { font-size: 14px; font-weight: 600; }
.workflow-info p { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.workflow-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 100px;
}
.workflow-status.running {
    background: #F0FDF4;
    color: #166534;
}

/* ===== Publish Page ===== */
.publish-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.publish-source, .publish-targets {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.publish-source h4, .publish-targets h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-bg);
}
.source-inputs .input-group { margin-bottom: 12px; }
.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--primary); }
.cover-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
}
.platform-list { display: flex; flex-direction: column; gap: 12px; }
.platform-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.platform-card:hover { border-color: var(--primary); }
.platform-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.platform-icon { font-size: 20px; }
.platform-name { font-size: 14px; font-weight: 600; }
.platform-meta { font-size: 11px; color: var(--text-secondary); }
.platform-content {
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

/* ===== Mobile ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 200;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.mobile-menu-btn span {
    width: 20px; height: 2px;
    background: white;
    border-radius: 1px;
}
.overlay { display: none; }

@media (max-width: 768px) {
    .top-bar { padding: 0 16px; }
    .top-bar .brand-info h1 { font-size: 14px; }
    .top-bar .tag { display: none; }
    .top-bar .date-badge { display: none; }
    .top-bar .btn-follow { font-size: 11px; padding: 6px 12px; }

    .mobile-menu-btn { display: flex; }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 150;
        width: 280px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { left: 0; }
    .overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 140;
        background: rgba(0,0,0,0.4);
    }
    .overlay.open { display: block; }

    .content { padding: 12px 12px; }
    .publish-container { grid-template-columns: 1fr; }
    .workout-grid { grid-template-columns: 1fr; }
    .review-stats-row { flex-direction: column; }
    .extract-steps { flex-direction: column; }
    .extract-input-row { flex-direction: column; gap: 10px; }
    .link-input-wrapper { flex-direction: column; }
    .btn-auto-extract { width: 100%; padding: 10px; justify-content: center; }
    .extract-tool-btns { flex-direction: column; }
    .tool-btn { width: 100%; justify-content: center; }
    .extract-options { flex-direction: column; align-items: stretch; }
    .btn-paste-clipboard { width: 100%; justify-content: center; }
    .page-title-bar { flex-direction: column; align-items: flex-start; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.card, .page-header { animation: fadeIn 0.3s ease; }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: var(--text);
    color: white;
    border-radius: 100px;
    font-size: 13px;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

/* ===== 每日计划看板 ===== */
.plan-board {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 80px);
}
.plan-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.plan-right {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 看板头部 */
.plan-board-header {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.plan-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.plan-title-row h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.plan-header-actions {
    display: flex;
    gap: 8px;
}
.btn-plan-export {
    padding: 6px 14px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
}
.btn-plan-export:hover { background: #F9FAFB; }
.btn-plan-add {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.btn-plan-add:hover { background: var(--primary-dark); }

/* 筛选栏 */
.plan-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.plan-filter {
    padding: 5px 14px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.plan-filter:hover { background: #F0FDFA; border-color: var(--primary-light); }
.plan-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 新增任务表单 */
.task-form {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.task-form input[type="text"],
.task-form input[type="time"],
.task-form input[type="number"],
.task-form select {
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}
.task-form input[type="text"]:focus,
.task-form select:focus {
    border-color: var(--primary);
}
.task-form-row {
    display: flex;
    gap: 8px;
}
.task-form-row select,
.task-form-row input {
    flex: 1;
}
.task-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}
.btn-cancel {
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}
.btn-save {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* 任务列表 */
.plan-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 420px);
}

/* 任务卡片 */
.task-card {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}
.task-card.done { opacity: 0.55; }
.task-card.done .task-title { text-decoration: line-through; color: var(--text-light); }

.task-check {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.task-check:hover { border-color: var(--primary); }
.task-check.checked {
    background: var(--primary);
    border-color: var(--primary);
}
.task-check.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-body { flex: 1; min-width: 0; }
.task-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}
.task-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.task-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.task-tag.cat-work { background: #DBEAFE; color: #1E40AF; }
.task-tag.cat-growth { background: #D1FAE5; color: #065F46; }
.task-tag.cat-content { background: #FCE7F3; color: #9D174D; }
.task-tag.prio-high { background: #FEE2E2; color: #991B1B; }
.task-tag.prio-medium { background: #FEF3C7; color: #92400E; }
.task-tag.prio-low { background: #ECFDF5; color: #065F46; }
.task-tag.status-todo { background: #F3F4F6; color: #4B5563; }
.task-tag.status-doing { background: #DBEAFE; color: #1E40AF; }
.task-tag.status-done { background: #D1FAE5; color: #065F46; }
.task-time {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 进度条 */
.task-progress-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.task-progress-bar-bg {
    flex: 1;
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}
.task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #2DD4BF);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.task-progress-text {
    font-size: 11px;
    color: var(--text-light);
    min-width: 36px;
    text-align: right;
}

/* 任务操作 */
.task-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.task-btn {
    padding: 3px 10px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-secondary);
}
.task-btn:hover { background: #F9FAFB; }
.task-btn.primary { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.task-btn.danger { color: var(--danger); border-color: #FECACA; }
.task-btn.danger:hover { background: #FEF2F2; }
.task-delete {
    padding: 4px;
    background: none;
    border: none;
    color: #D1D5DB;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: auto;
}
.task-delete:hover { color: var(--danger); }

/* 底部统计栏 */
.plan-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.plan-stat-card {
    background: white;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.plan-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.plan-stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 各赛道耗时 */
.plan-category-times {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.plan-category-times h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-weight: 500;
}
.time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.time-row:last-child { margin-bottom: 0; }
.time-label {
    font-size: 12px;
    color: var(--text);
    width: 80px;
    flex-shrink: 0;
}
.time-bar-bg {
    flex: 1;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}
.time-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.time-bar[data-cat="work"] { background: #3B82F6; }
.time-bar[data-cat="growth"] { background: #10B981; }
.time-bar[data-cat="content"] { background: #EC4899; }
.time-val {
    font-size: 11px;
    color: var(--text-light);
    width: 32px;
    text-align: right;
    flex-shrink: 0;
}

/* ===== 右侧：日历 ===== */
.calendar-card,
.timeline-card,
.schedule-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.calendar-tabs {
    display: flex;
    gap: 4px;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 2px;
}
.cal-tab {
    padding: 4px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
}
.cal-tab.active {
    background: white;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cal-prev, .cal-next {
    width: 28px;
    height: 28px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.cal-weekday {
    font-size: 11px;
    color: var(--text-light);
    padding: 4px;
    font-weight: 500;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    color: var(--text);
}
.cal-day:hover { background: #F0FDFA; }
.cal-day.other-month { color: #D1D5DB; }
.cal-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.cal-day.has-task::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}
.cal-day.today.has-task::after { background: white; }

.calendar-legend {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-secondary);
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}
.legend-dot.work { background: #3B82F6; }
.legend-dot.growth { background: #10B981; }
.legend-dot.content { background: #EC4899; }
.legend-dot.today { background: var(--primary); }

/* 时间轴 */
.timeline-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text);
}
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.timeline-slot {
    background: #F9FAFB;
    border-radius: 6px;
    padding: 6px 4px;
    text-align: center;
    font-size: 10px;
    color: var(--text-light);
    min-height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.timeline-slot.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}
.timeline-slot .slot-time { font-size: 9px; }
.timeline-slot .slot-label { font-size: 10px; }

/* 行程排期 */
.schedule-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text);
}
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.schedule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 12px;
}
.schedule-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.schedule-dot.work { background: #3B82F6; }
.schedule-dot.growth { background: #10B981; }
.schedule-dot.content { background: #EC4899; }
.schedule-time {
    color: var(--text-light);
    font-size: 11px;
    min-width: 70px;
}
.schedule-text {
    color: var(--text);
    flex: 1;
}
.schedule-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    padding: 16px;
}

/* 响应式 */
@media (max-width: 900px) {
    .plan-board { flex-direction: column; }
    .plan-right { width: 100%; }
    .plan-task-list { max-height: none; }

    /* Extract mobile adjustments */
    .extract-mode-selector { grid-template-columns: 1fr; }
    .result-split { grid-template-columns: 1fr; }
    .result-original-sidebar { position: static; }
    .result-original-sidebar .original-text { max-height: 200px; }
    .hooks-grid { grid-template-columns: 1fr; }
    .result-auxiliary { grid-template-columns: 1fr; }
    .script-scene { padding: 12px; }
    .scene-dialogue { font-size: 14px; }
    .script-flow-text { font-size: 14px; padding: 14px 16px; }
    .script-flow-text.clean-mode { font-size: 15px; }
    .flow-visual { font-size: 13px; padding: 8px 12px; }
    .seg-line { font-size: 14px; }
    .seg-visual { font-size: 12px; padding: 6px 10px; }
    .btn-mode-toggle, .btn-copy-clean { font-size: 11px; padding: 5px 8px; }
}

/* ===== IELTS English Study System ===== */
.ielts-phase-bar {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow-x: auto;
}
.ielts-phase-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: var(--bg);
    opacity: 0.6;
    transition: var(--transition);
}
.ielts-phase-item.active {
    background: var(--primary-bg);
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary);
}
.ielts-phase-item.done {
    opacity: 1;
    background: #F0FDF4;
}
.ielts-phase-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: white;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
}
.ielts-phase-item.active .ielts-phase-dot { background: var(--primary); }
.ielts-phase-item.done .ielts-phase-dot { background: #22C55E; }
.ielts-phase-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.ielts-phase-date { font-size: 10px; color: var(--text-secondary); }

.ielts-today-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.ielts-today-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ielts-today-sub { font-size: 13px; color: var(--text-secondary); }
.ielts-today-right { display: flex; align-items: center; gap: 12px; }
.ielts-timer-box {
    text-align: center;
    padding: 8px 16px;
    background: var(--primary-bg);
    border-radius: var(--radius);
}
.ielts-timer-display { font-size: 22px; font-weight: 700; color: var(--primary); font-family: monospace; }
.ielts-timer-label { font-size: 10px; color: var(--text-secondary); }
.ielts-timer-btn {
    padding: 8px 16px;
    border-radius: 100px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.ielts-timer-btn:hover { opacity: 0.85; }

.ielts-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.ielts-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.ielts-section-header h3 { font-size: 15px; font-weight: 700; }
.ielts-section-tip { font-size: 12px; color: var(--text-secondary); }
.ielts-toggle-busy {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary);
    cursor: pointer;
}
.ielts-toggle-busy input { cursor: pointer; }

.ielts-task-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ielts-task-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}
.ielts-task-item:hover { background: #F0FDFA; }
.ielts-task-item.done { opacity: 0.5; text-decoration: line-through; }
.ielts-task-item input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.ielts-daily-structure {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 12px;
    background: #FFFBEB;
    border-radius: var(--radius-sm);
}
.ielts-time-block {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 100px;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
}
.ielts-time-min { font-weight: 700; color: var(--primary); }
.ielts-time-label { color: var(--text-secondary); }

.ielts-bbc-guide {
    padding: 10px 14px;
    background: #F0FDF4;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #166534;
    margin-bottom: 12px;
}

.ielts-vocab-guide {
    padding: 10px 14px;
    background: #FEF3C7;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #92400E;
    margin-bottom: 12px;
}
.ielts-vocab-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.ielts-vocab-card {
    padding: 14px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}
.ielts-vocab-card:hover { box-shadow: var(--shadow-md); }
.ielts-vocab-phrase { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ielts-vocab-meaning { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.ielts-vocab-detail { font-size: 11px; color: var(--text); line-height: 1.6; }
.ielts-vocab-detail div { margin-bottom: 3px; }
.ielts-vocab-source { font-size: 10px; color: var(--text-light); margin-top: 6px; }

.ielts-speaking-box { padding: 14px; background: var(--bg); border-radius: var(--radius); }
.ielts-speaking-prompt {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    border-left: 3px solid #8B5CF6;
}
.ielts-speaking-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ielts-speaking-records { display: flex; flex-direction: column; gap: 6px; }
.ielts-record-item {
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}
.ielts-record-empty { font-size: 12px; color: var(--text-light); padding: 8px; }

.ielts-writing-toggle { display: flex; gap: 6px; }
.ielts-wtype-btn {
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: white;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.ielts-wtype-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.ielts-writing-box { padding: 14px; background: var(--bg); border-radius: var(--radius); }
.ielts-writing-prompt {
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 12px;
    border-left: 3px solid #F59E0B;
    line-height: 1.6;
}
.ielts-writing-area {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}
.ielts-writing-area:focus { outline: none; border-color: var(--primary); }
.ielts-writing-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ielts-writing-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.ielts-writing-checklist label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ielts-writing-checklist input { accent-color: var(--primary); }

.ielts-resource-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ielts-res-tab {
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: white;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.ielts-res-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.ielts-resource-list { display: flex; flex-direction: column; gap: 6px; }
.ielts-resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
}
.ielts-resource-item:hover { background: #F0FDFA; }
.ielts-resource-title { font-weight: 500; }
.ielts-resource-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--primary-bg);
    color: var(--primary);
}

.ielts-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.ielts-stat-card {
    text-align: center;
    padding: 16px 10px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: var(--transition);
}
.ielts-stat-card:hover { box-shadow: var(--shadow-md); }
.ielts-stat-num { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.ielts-stat-label { font-size: 11px; color: var(--text-secondary); }

.ielts-btn-primary {
    padding: 8px 16px;
    border-radius: 100px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.ielts-btn-primary:hover { opacity: 0.85; }
.ielts-btn-secondary {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.ielts-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.ielts-btn-small {
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 11px; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.ielts-btn-small:hover { background: var(--primary-bg); }

@media (max-width: 768px) {
    .ielts-phase-bar { gap: 6px; padding: 10px; }
    .ielts-phase-item { min-width: 70px; padding: 8px 4px; }
    .ielts-phase-name { font-size: 10px; }
    .ielts-phase-date { font-size: 9px; }
    .ielts-today-bar { flex-direction: column; align-items: flex-start; }
    .ielts-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ielts-vocab-list { grid-template-columns: 1fr; }
    .ielts-writing-checklist { grid-template-columns: 1fr; }
    .ielts-daily-structure { gap: 6px; }
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-box { border-radius: 16px 16px 0 0; max-width: 100%; animation: slideUp 0.25s ease; }
    .modal-body { padding: 16px; gap: 12px; }
    .modal-footer { padding: 10px 16px 20px; }
    .form-group input, .form-group select { padding: 10px 12px; font-size: 16px; }
    .btn-modal-confirm, .btn-modal-cancel { padding: 10px 18px; font-size: 14px; flex: 1; }
    .modal-footer { justify-content: stretch; }
}
