/* 现代化提词器样式 */

/* 基础重置和变量 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #e63946;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: var(--dark-color);
    height: 100vh;
    overflow: hidden;
}

/* 维吾尔语界面样式 */
body.uyghur-mode {
    font-family: 'ukij ekran', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    direction: rtl;
}

body.uyghur-mode .app-header,
body.uyghur-mode .settings-panel,
body.uyghur-mode .setting-group,
body.uyghur-mode .setting-item {
    direction: rtl;
    text-align: right;
}

body.uyghur-mode .header-content {
    flex-direction: row-reverse;
}

body.uyghur-mode .header-actions {
    flex-direction: row-reverse;
}

body.uyghur-mode .setting-item {
    flex-direction: row-reverse;
}

body.uyghur-mode .icon-only-label {
    margin-right: 0;
    margin-left: 10px;
}

body.uyghur-mode .setting-group h3 {
    border-left: none;
    border-right: 3px solid var(--primary-color);
    flex-direction: row-reverse;
}

body.uyghur-mode select,
body.uyghur-mode input,
body.uyghur-mode textarea,
body.uyghur-mode option,
body.uyghur-mode button,
body.uyghur-mode label,
body.uyghur-mode span,
body.uyghur-mode p,
body.uyghur-mode h1,
body.uyghur-mode h2,
body.uyghur-mode h3,
body.uyghur-mode h4 {
    font-family: 'ukij ekran', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

body.uyghur-mode .speed-control,
body.uyghur-mode .font-size-control,
body.uyghur-mode .line-height-control,
body.uyghur-mode .letter-spacing-control,
body.uyghur-mode .value-slider-control {
    flex-direction: row-reverse;
}

body.uyghur-mode .gradient-controls {
    direction: rtl;
}

body.uyghur-mode .editor-toolbar {
    flex-direction: row-reverse;
}

body.uyghur-mode .language-options {
    direction: rtl;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 头部 */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0 20px;
    box-shadow: var(--box-shadow);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

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



.app-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* 语言按钮样式 */
#language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 0px;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

#language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 语言选择模态框样式 */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.language-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 300px;
    max-width: 90%;
}

.language-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.language-modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.language-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.language-modal-close:hover {
    background-color: #f0f0f0;
}

.language-options {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-option {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.language-option:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 主要内容区域 */
.app-main {
    display: flex;
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* 提词器区域 */
.teleprompter-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.teleprompter-wrapper {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

.teleprompter {
    height: 100%;
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
}

.content {
    text-align: center;
    padding: 30px;
    width: 100%;
    min-height: 100%;
    color: #fff;
    font-size: 28px;
    line-height: 1.6;
    transform-origin: center top;
    transition: transform 0.1s ease-out;
    position: absolute;
    top: 0;
    left: 0;
}

/* 播放控制 */
.playback-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.control-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark-color);
}

.play-btn {
    background-color: var(--success-color);
}

.pause-btn {
    background-color: var(--warning-color);
}

.reset-btn {
    background-color: var(--danger-color);
}

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

.play-btn svg, .pause-btn svg, .reset-btn svg, .fullscreen-btn svg {
    stroke: white;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 设置面板 */
.settings-panel {
    width: 350px;
    background-color: white;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    flex-shrink: 0;
    overflow: hidden;
}

/* 设置面板隐藏状态 */
.settings-panel.hidden {
    width: 0;
    opacity: 0;
    border-left: none;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.panel-header h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

/* 图标化设置项样式 */
.icon-only-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    vertical-align: middle;
    background: linear-gradient(135deg, #f5f7fa, #e4e8ec);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
    font-size: 0;
    overflow: hidden;
}

.icon-only-label:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.icon-only-label:hover svg {
    stroke: white;
}

.icon-only-label svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    stroke: var(--dark-color);
    transition: var(--transition);
    flex-shrink: 0;
}

/* 自定义Tooltip样式 */
.icon-only-label::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: linear-gradient(135deg, #333, #222);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-only-label::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.icon-only-label:hover::after,
.icon-only-label:hover::before {
    opacity: 1;
    visibility: visible;
}

.hidden-text {
    display: none;
}

/* 设置项布局优化 */
.setting-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
}

.setting-item:hover {
    background: #eef1f5;
}

.setting-item select,
.setting-item input[type="color"] {
    flex: 1;
    min-width: 0;
}

.setting-item .speed-control,
.setting-item .font-size-control,
.setting-item .line-height-control,
.setting-item .letter-spacing-control {
    flex: 1;
    min-width: 0;
}

/* 速度预设按钮优化 */
.setting-item .speed-presets {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
}

/* 设置组标题优化 */
.setting-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: none;
    padding: 10px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(63, 55, 201, 0.05));
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.setting-group h3 svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.setting-group h3::after {
    content: attr(title);
    font-size: 0.95rem;
}
.setting-item input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-value {
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.speed-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    flex: 1;
    min-width: 70px;
    padding: 6px 10px;
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.setting-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 1rem;
}

/* 旧的控制容器样式（已替换为新布局） */
.font-size-control, .line-height-control, .letter-spacing-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 移除旧的hover效果 */

.font-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

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

.font-size-value, .line-height-value, .letter-spacing-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    cursor: ns-resize;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.font-size-value:hover, .line-height-value:hover, .letter-spacing-value:hover {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.15);
}

.font-size-value:active, .line-height-value:active, .letter-spacing-value:active {
    background-color: rgba(67, 97, 238, 0.2);
    border-color: rgba(67, 97, 238, 0.5);
    transform: scale(0.98);
}

.setting-item input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* 带滑块的设置项样式 */
.setting-item-with-slider {
    align-items: center;
}

/* 新布局：减少按钮 → 滑块 → 数值 → 增加按钮 */
.value-slider-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* 保留旧的分组样式以兼容 */
.value-slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* 水平滑块样式 */
.vertical-slider {
    width: 60px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #e0e7ff, #e0e7ff);
    border-radius: 3px;
    overflow: visible;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.1s ease-out;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: ew-resize;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    z-index: 2;
}

.slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 3px 10px rgba(67, 97, 238, 0.4);
}

.slider-thumb:active, .slider-thumb.dragging {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.5);
}

.vertical-slider:hover .slider-track {
    background: linear-gradient(to right, #c7d2fe, #c7d2fe);
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .vertical-slider {
        width: 50px;
        height: 28px;
    }
    
    .slider-track {
        height: 8px;
    }
    
    .slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .value-slider-control {
        gap: 6px;
    }
    
    .font-size-value, .line-height-value, .letter-spacing-value {
        min-width: 50px;
        font-size: 0.9rem;
        padding: 3px 6px;
    }
}

/* 渐变控件样式 */
.gradient-setting {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.gradient-setting .icon-only-label {
    padding-top: 8px;
}

.gradient-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gradient-type-row {
    width: 100%;
}

.gradient-type-row select {
    width: 100%;
}

.gradient-colors-row {
    display: flex;
    gap: 8px;
}

.gradient-colors-row input[type="color"] {
    flex: 1;
    height: 36px;
}

.gradient-colors-row input[type="color"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gradient-direction-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradient-direction-row .icon-only-label.small {
    padding: 0;
}

.gradient-direction-row .icon-only-label.small svg {
    width: 14px;
    height: 14px;
}

.gradient-direction-row select {
    flex: 1;
    font-size: 0.85rem;
    padding: 6px 8px;
}

/* 字体选择控件样式 */
.font-setting {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.font-setting .icon-only-label {
    padding-top: 8px;
}

.font-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.font-select-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-select-row select {
    flex: 1;
}

.system-font-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.system-font-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
}

.system-font-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.system-font-btn svg {
    stroke: white;
    width: 14px;
    height: 14px;
}

/* 字体加载提示动画 */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.font-controls select {
    width: 100%;
}

/* 字体历史记录样式 */
.font-history {
    margin-top: 8px;
}

.clear-history-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #dc2626;
}

.clear-history-btn:hover {
    background-color: #fecaca;
    border-color: #f87171;
}

.clear-history-btn svg {
    stroke: #dc2626;
    width: 12px;
    height: 12px;
}

.clear-history-btn span {
    white-space: nowrap;
}

#script-editor {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}

.editor-help {
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary-color);
    padding: 8px 10px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    cursor: help;
}

.editor-help svg {
    stroke: var(--primary-color);
}

.editor-help p {
    margin: 0;
    color: var(--gray-color);
}

.editor-help strong {
    color: var(--dark-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-header {
        padding: 0 15px;
    }
    
    .header-content {
        height: 50px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .settings-btn {
        width: 36px;
        height: 36px;
    }
    
    .teleprompter-wrapper {
        padding: 10px;
    }
    
    .content {
        font-size: 22px;
        padding: 20px;
    }
    
    .playback-controls {
        padding: 15px;
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
    }
    
    .settings-panel {
        width: 300px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .setting-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .teleprompter-wrapper {
        padding: 5px;
    }
    
    .content {
        font-size: 18px;
        padding: 15px;
    }
    
    .playback-controls {
        padding: 10px;
        gap: 8px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .settings-panel {
        width: 280px;
    }
    
    .speed-presets {
        gap: 5px;
    }
    
    .preset-btn {
        min-width: 60px;
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* 富文本样式 */
.content strong {
    font-weight: bold;
    color: #ffcc00;
}

.content em {
    font-style: italic;
    color: #4fc3f7;
}

.content u {
    text-decoration: underline;
    color: #69f0ae;
}

/* 镜像模式样式 */
.mirror-horizontal {
    transform: scaleX(-1);
}

.mirror-vertical {
    transform: scaleY(-1);
}

/* 文件导入样式 */
.file-import {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.file-label {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.file-label:hover {
    background-color: var(--secondary-color);
}

.file-name {
    font-size: 0.9rem;
    color: var(--gray-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 编辑工具栏样式 */
.editor-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.editor-btn {
    background-color: var(--light-color);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.editor-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.editor-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: help;
}

.editor-info svg {
    stroke: var(--gray-color);
}

.editor-info .count-value {
    font-weight: 600;
    color: var(--dark-color);
}

/* 文本对齐样式 */
.text-align-left {
    text-align: left;
}

.text-align-center {
    text-align: center;
}

.text-align-right {
    text-align: right;
}

.text-align-justify {
    text-align: justify;
}

/* 二维码模态框样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qr-modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.qr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: var(--secondary-color);
}