/* 统一工作台样式 - 左侧导航 + 顶部栏风格 */

:root {
    --primary-color: #00bfa5;
    --primary-hover: #00a892;
    --sidebar-bg: #1e2732;
    --sidebar-text: #8b95a5;
    --sidebar-active: #00bfa5;
    --topbar-bg: #ffffff;
    --content-bg: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    background: var(--content-bg);
    color: var(--text-primary);
}

/* 左侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: var(--sidebar-bg);
    padding: 20px 0;
    z-index: 1000;
}

.sidebar-logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-logo h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 5px 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-menu a.active {
    background: rgba(0, 191, 165, 0.15);
    color: var(--sidebar-active);
}

.sidebar-menu .icon {
    margin-right: 10px;
    font-size: 16px;
}

/* 顶部栏 */
.topbar {
    position: fixed;
    left: 200px;
    right: 0;
    top: 0;
    height: 60px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 999;
}

.topbar-title {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 主内容区 */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    padding: 30px;
    min-height: calc(100vh - 60px);
}

/* 步骤条 */
.steps-wrapper {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-light);
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 内容卡片 */
.content-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* 模板网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.template-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.template-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.15);
}

.template-item.selected {
    border-color: var(--primary-color);
    background: rgba(0, 191, 165, 0.05);
}

.template-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--content-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.template-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.template-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* 按钮 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 大纲编辑器布局 */
.outline-editor-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1200px) {
    .outline-editor-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .outline-editor-wrapper {
        grid-template-columns: 1fr;
    }
}

.outline-editor-card {
    min-height: 500px;
}

.outline-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.03) 0%, rgba(0, 191, 165, 0.08) 100%);
    border-bottom: 2px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    margin: -30px -30px 0 -30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    font-size: 24px;
    line-height: 1;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.btn-save .btn-icon {
    font-size: 16px;
}

/* 大纲章节样式优化 */
.outline-container {
    background: white;
}

.outline-chapter {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.outline-chapter:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 191, 165, 0.1);
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(0, 191, 165, 0.08) 100%);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    min-width: 0;
}

.chapter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00D9C0 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 191, 165, 0.25);
}

.chapter-num {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    white-space: nowrap;
}

.chapter-title-input,
.chapter-title {
    flex: 1;
    border: none;
    background: white;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 16px;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s;
}

.chapter-title-input:hover,
.chapter-title:hover {
    background: rgba(255, 255, 255, 0.9);
}

.chapter-title-input:focus,
.chapter-title:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: white;
}

.chapter-actions,
.section-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* 操作按钮样式 */
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.action-btn .action-icon {
    font-size: 16px;
    line-height: 1;
}

.action-btn .action-label {
    font-size: 12px;
}

.action-btn-chart:hover {
    background: linear-gradient(135deg, #E3F9F5 0%, #C8F4EC 100%);
    color: var(--primary-color);
}

.action-btn-add:hover {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #4CAF50;
}

.action-btn-sub:hover {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #FF9800;
}

.action-btn-delete:hover {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #F44336;
}

/* 小型按钮 */
.action-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.action-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.action-btn-sm .action-icon {
    font-size: 15px;
    line-height: 1;
}

.action-btn-sm.action-btn-chart:hover {
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary-color);
}

.action-btn-sm.action-btn-add:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.action-btn-sm.action-btn-sub:hover {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.action-btn-sm.action-btn-delete:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.btn-icon-mini {
    border: none;
    background: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-icon-mini:hover {
    background: rgba(0, 191, 165, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-icon-mini.delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.sections {
    padding: 12px 20px;
    background: white;
}

.outline-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-left: 25px;
    transition: all 0.2s;
}

.outline-section:hover {
    background: rgba(0, 191, 165, 0.02);
    margin-left: 20px;
    padding-left: 15px;
    border-radius: 6px;
}

.section-marker {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.section-title-input,
.section-title {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.2s;
}

.section-title-input:hover,
.section-title:hover {
    background: rgba(0, 191, 165, 0.05);
}

.section-title-input:focus,
.section-title:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: white;
}

.subsection {
    margin-left: 50px;
}

.subsection {
    margin-left: 50px;
}

.sub-sections {
    margin-top: 8px;
}

.outline-subsection {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-left: 50px;
    transition: all 0.2s;
}

.outline-subsection:hover {
    background: rgba(0, 191, 165, 0.02);
    margin-left: 45px;
    padding-left: 15px;
    border-radius: 6px;
}

.subsection-marker {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.subsection-title-input,
.subsection-title {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    padding: 6px 10px;
    color: var(--text-primary);
    border-radius: 6px;
    transition: all 0.2s;
}

.subsection-title-input:hover,
.subsection-title:hover {
    background: rgba(0, 191, 165, 0.05);
}

.subsection-title-input:focus,
.subsection-title:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: white;
}
    color: var(--text-light);
    font-size: 10px;
}

.subsection-title {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    font-size: 13px;
    padding: 5px 8px;
    color: var(--text-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.subsection-title:hover,
.subsection-title:focus {
    background: rgba(0, 191, 165, 0.05);
    border-color: var(--border-color);
    outline: none;
}

.section-marker {
    color: var(--text-secondary);
    font-size: 12px;
}

.section-title {
    flex: 1;
    border: 1px solid transparent;
    background: transparent;
    font-size: 14px;
    padding: 6px 10px;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.2s;
}

.section-title:hover,
.section-title:focus {
    background: rgba(0, 191, 165, 0.05);
    border-color: var(--border-color);
    outline: none;
}

.btn-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 章节操作按钮组 */
.chapter-actions,
.section-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-icon-mini {
    border: none;
    background: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.btn-icon-mini:hover {
    background: rgba(0, 191, 165, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-icon-mini.delete:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.outline-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 参数面板样式 */
.param-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.param-item:last-child {
    border-bottom: none;
}

.param-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.param-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.param-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 参数面板样式 */
.params-panel {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.panel-section {
    margin-bottom: 24px;
}

.panel-section:last-child {
    margin-bottom: 0;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.panel-icon {
    font-size: 18px;
    line-height: 1;
}

.panel-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.param-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 191, 165, 0.02);
    border-radius: 6px;
    transition: all 0.2s;
}

.param-item:hover {
    background: rgba(0, 191, 165, 0.05);
}

.param-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.param-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.param-value-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* 图表选项网格 */
.chart-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chart-option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.chart-option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.chart-option-card:hover .option-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.15);
}

.chart-option-card input[type="checkbox"]:checked + .option-content {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.08) 0%, rgba(0, 191, 165, 0.12) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1);
}

.option-icon {
    font-size: 28px;
    line-height: 1;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-option-card input[type="checkbox"]:checked + .option-content .option-label {
    color: var(--primary-color);
}

/* 面板提示 */
.panel-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(0, 191, 165, 0.08) 100%);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    margin-top: 16px;
}

.tip-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 面板操作按钮 */
.panel-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* 图表选项样式 */
.chart-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chart-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chart-option input[type="checkbox"] {
    display: none;
}

.chart-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-option input[type="checkbox"]:not(:checked) + .chart-badge {
    background: #e0e0e0 !important;
    color: #999;
    opacity: 0.6;
}

.chart-option:hover .chart-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 自定义大纲输入区样式 */
.custom-outline-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.custom-outline-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.1);
}

.custom-outline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(0, 191, 165, 0.08) 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 20px;
    line-height: 1;
}

.info-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-load-example {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-example:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.btn-load-example .btn-icon {
    font-size: 16px;
    line-height: 1;
}

.custom-outline-textarea {
    width: 100%;
    min-height: 350px;
    padding: 20px;
    border: none;
    font-family: 'Microsoft YaHei', 'Consolas', monospace;
    font-size: 14px;
    line-height: 2;
    color: var(--text-primary);
    resize: vertical;
    background: white;
}

.custom-outline-textarea:focus {
    outline: none;
}

.custom-outline-textarea::placeholder {
    color: var(--text-light);
    line-height: 2;
}

.custom-outline-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-top: 1px solid var(--border-color);
}

.footer-icon {
    font-size: 16px;
    line-height: 1;
    color: #FFC107;
}

.footer-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 响应式 */

/* 大屏幕优化 (1400px+) */
@media (min-width: 1400px) {
    .outline-page-wrapper {
        grid-template-columns: 1fr 400px;
    }
}

/* 中等屏幕 (1024px - 1200px) */
@media (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }
    
    .topbar,
    .main-content {
        margin-left: 180px;
    }
    
    .outline-page-wrapper {
        grid-template-columns: 1fr 320px;
    }
    
    /* 章节操作按钮优化 */
    .chapter-actions .action-btn,
    .section-actions .action-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .action-btn .icon {
        font-size: 14px;
    }
}

/* 小屏平板 (768px - 1024px) */
@media (max-width: 1024px) {
    .outline-page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .outline-params-panel {
        order: -1; /* 参数面板移到上方 */
        margin-bottom: 20px;
    }
    
    /* 操作按钮紧凑模式 */
    .chapter-actions,
    .section-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* 移动端 (768px 以下) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .topbar,
    .main-content {
        margin-left: 0;
        left: 0;
    }
    
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .outline-page-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 移动端操作按钮只显示图标 */
    .action-btn .text {
        display: none;
    }
    
    .action-btn {
        padding: 8px;
        min-width: auto;
    }
}

/* ========================================
   官方风格大纲编辑器样式
   极简扁平化设计
   ======================================== */

/* 页面整体布局 */
.outline-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
}

/* 左侧大纲面板 */
.outline-left-panel {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* 顶部工具栏 */
.outline-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E8E8E8;
    background: white;
}

.top-bar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 20px;
}

.top-bar-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.top-bar-actions {
    display: flex;
    gap: 8px;
}

.outline-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.outline-btn:hover {
    background: #F5F5F5;
    border-color: #00BFA5;
    color: #00BFA5;
}

.outline-btn span:first-child {
    font-size: 14px;
}

/* 大纲列表区域 */
.outline-list {
    padding: 16px 0;
    background: white;
}

/* 章节项 */
.outline-chapter-item {
    border-bottom: 1px solid #F0F0F0;
}

.outline-chapter-item:last-child {
    border-bottom: none;
}

.chapter-row {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 12px;
    transition: background 0.15s;
}

.chapter-row:hover {
    background: #FAFAFA;
}

.chapter-title-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
}

.chapter-title-text:hover {
    background: rgba(0, 191, 165, 0.05);
}

.chapter-title-text:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 191, 165, 0.15);
}

.chapter-icon-btns {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.chapter-row:hover .chapter-icon-btns {
    opacity: 1;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s;
}

.icon-btn:hover {
    background: rgba(0, 191, 165, 0.1);
}

.icon-btn.delete-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* 小节列表 */
.section-list {
    background: #FAFAFA;
}

.section-row {
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 48px;
    gap: 10px;
    transition: background 0.15s;
}

.section-row:hover {
    background: #F5F5F5;
}

.section-marker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00BFA5;
    flex-shrink: 0;
}

.section-title-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
}

.section-title-text:hover {
    background: rgba(0, 191, 165, 0.05);
}

.section-title-text:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 191, 165, 0.15);
}

.section-icon-btns {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.section-row:hover .section-icon-btns {
    opacity: 1;
}

/* 子小节 */
.subsection-row {
    display: flex;
    align-items: center;
    padding: 8px 24px 8px 72px;
    gap: 10px;
    background: #F5F5F5;
    transition: background 0.15s;
}

.subsection-row:hover {
    background: #F0F0F0;
}

.subsection-marker-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}

.subsection-title-text {
    flex: 1;
    font-size: 13px;
    color: #666;
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
}

.subsection-title-text:hover {
    background: rgba(0, 191, 165, 0.05);
}

.subsection-title-text:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 191, 165, 0.15);
}

/* 右侧参数面板 - 极简风格 */
.outline-right-panel {
    background: white;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.panel-title-simple {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.param-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.param-key {
    color: #999;
}

.param-val {
    color: #333;
    font-weight: 500;
    text-align: right;
}

.divider-line {
    height: 1px;
    background: #F0F0F0;
    margin: 24px 0;
}

/* 图表标签 - 彩色pill样式 */
.chart-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chart-pill {
    position: relative;
    cursor: pointer;
}

.chart-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.chart-pill input:checked + .pill-label {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.chart-pill input:not(:checked) + .pill-label {
    opacity: 0.4;
    filter: grayscale(50%);
}

.pill-table {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.pill-chart {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    color: white;
}

.pill-formula {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: white;
}

.pill-code {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
}

.pill-mindmap {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    color: white;
}

/* 底部提交按钮 */
.outline-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00BFA5 0%, #00D9C0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s;
}

.outline-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 191, 165, 0.3);
}

/* ========================================
   全新响应式大纲编辑器
   移动优先设计，完全自适应
   ======================================== */

/* 大纲编辑器主容器 */
.responsive-outline-editor {
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部工具栏 */
.outline-toolbar {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.toolbar-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toolbar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toolbar-btn.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.toolbar-btn.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

/* 可折叠参数面板 */
.collapsible-params {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.params-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.02) 0%, rgba(0, 191, 165, 0.05) 100%);
    transition: background 0.2s;
}

.params-header:hover {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(0, 191, 165, 0.08) 100%);
}

.params-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.collapsible-params.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.params-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.collapsible-params.collapsed .params-content {
    display: none;
}

/* 参数网格 */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.param-card {
    padding: 14px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.param-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.param-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 图表选项区域 */
.chart-options-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.chart-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.chart-toggle input[type="checkbox"] {
    display: none;
}

.toggle-box {
    width: 20px;
    height: 20px;
    border: 2px solid #DDD;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chart-toggle input:checked + .toggle-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.chart-toggle input:checked + .toggle-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.toggle-label {
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.2s;
}

.chart-toggle input:checked ~ .toggle-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* 大纲内容区 */
.outline-content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 章节卡片 */
.chapter-card {
    background: white;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.chapter-card:hover {
    border-color: #CCCCCC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 新版章节标题行（图2样式） */
.chapter-header-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #F0F0F0;
}

.chapter-title-group-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.chapter-prefix {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.chapter-input-v2 {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: transparent;
    transition: all 0.2s;
}

.chapter-input-v2:hover {
    background: #F8F8F8;
}

.chapter-input-v2:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.chapter-btn-group-v2 {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.icon-btn-v2 {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0E0E0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.icon-btn-v2:hover {
    background: #F5F5F5;
    border-color: #CCCCCC;
}

.icon-btn-v2.danger:hover {
    background: #FFF0F0;
    border-color: #FF4444;
    color: #FF4444;
}

/* 旧版章节标题行（保留兼容） */
.chapter-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.05) 0%, rgba(0, 191, 165, 0.08) 100%);
    gap: 12px;
    flex-wrap: wrap;
}

.chapter-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.chapter-num {
    flex-shrink: 0;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00D9C0 100%);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.chapter-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    background: white;
    transition: border-color 0.2s;
}

.chapter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chapter-btn-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn.danger:hover {
    background: #FF4444;
    color: white;
}

/* 章节内小节容器 */
.chapter-sections {
    padding: 12px;
}

/* 小节卡片 */
.section-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.section-bullet {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: #1976D2;
}

.section-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

/* 小节描述文字 */
.section-description {
    padding: 8px 16px 12px 50px; /* 左侧对齐小节标题输入框 */
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.section-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.section-btn-group {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.icon-btn-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #F5F5F5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.icon-btn-sm:hover {
    background: #E0E0E0;
    transform: scale(1.1);
}

.icon-btn-sm.danger:hover {
    background: #FF4444;
    color: white;
}

/* 子节容器 */
.sub-sections {
    padding: 8px 16px 12px 52px;
}

.subsection-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.subsection-dash {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

.subsection-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.subsection-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 底部操作栏 */
.outline-footer {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.btn-outline {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00D9C0 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 165, 0.4);
}

/* ========================================
   响应式断点
   ======================================== */

/* 平板 (768px 以下) */
@media (max-width: 768px) {
    .outline-toolbar {
        padding: 14px 16px;
    }
    
    .toolbar-title {
        font-size: 16px;
    }
    
    .toolbar-btn .text {
        display: none;
    }
    
    .toolbar-btn {
        padding: 10px;
    }
    
    .params-grid {
        grid-template-columns: 1fr;
    }
    
    .outline-content-wrapper {
        padding: 16px;
    }
    
    .chapter-header-row {
        padding: 12px 14px;
    }
    
    .chapter-btn-group {
        width: 100%;
        justify-content: flex-end;
    }
    
    .chapter-num {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .sub-sections {
        padding-left: 32px;
    }
    
    .outline-footer {
        flex-direction: column;
        padding: 16px;
    }
    
    .btn-outline,
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

/* 移动端 (480px 以下) */
@media (max-width: 480px) {
    .toolbar-icon {
        font-size: 20px;
    }
    
    .toolbar-title {
        font-size: 14px;
    }
    
    .params-header {
        padding: 12px 14px;
    }
    
    .params-content {
        padding: 14px;
    }
    
    .chart-toggles {
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 13px;
    }
    
    .chapter-title-group {
        width: 100%;
    }
    
    .chapter-input,
    .section-input {
        font-size: 14px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .section-btn-group {
        gap: 2px;
    }
    
    .icon-btn-sm {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
