        /* 引入现代字体 */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

        :root {
            --bg-color: #F9FAFB;
            --card-bg: #FFFFFF;
            --card-border: #DBEAFE;
            --text-main: #111827;
            --text-secondary: #4B5563;
            --primary-color: #2563EB;
            --accent-color: #9333EA;
            --accent-hover: #7E22CE;
            --danger-color: #EF4444;
            --success-color: #10B981;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            --radius-btn: 8px;
            --radius-card: 16px;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--bg-color);
            background-image:
                radial-gradient(circle at 15% 50px, rgba(191, 219, 254, 0.4), transparent 30%),
                radial-gradient(circle at 85% 30%, rgba(233, 213, 255, 0.4), transparent 30%);
            color: var(--text-main);
            height: 100vh;
            overflow: hidden;
            /* 防止全局滚动，改为各栏独立的自滚动 */
        }

        /* 顶部装饰光效 */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            z-index: 100;
        }

        /* 双栏布局容器 */
        .app-layout {
            display: flex;
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        /* 移动端汉堡菜单按钮 */
        .mobile-menu-btn {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 2000;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 10px;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .mobile-menu-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--text-main);
        }

        /* 蒙层 - 移动端侧边栏展开时遮罩内容 */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 100;
            animation: fadeIn 0.3s ease;
        }

        /* ---------------- 左侧边栏 (历史记录) ---------------- */
        .sidebar-history {
            width: 320px;
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            z-index: 110;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .sidebar-header {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-header h2 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
        }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        /* 定制侧边栏滚动条 */
        .sidebar-content::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-content::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
        }

        /* ---------------- 右侧主区域 ---------------- */
        .main-content {
            flex: 1;
            overflow-y: auto;
            position: relative;
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-bottom: 60px;
            width: 100%;
        }

        /* 定制主区域滚动条 */
        .main-content::-webkit-scrollbar {
            width: 8px;
        }

        .main-content::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.15);
            border-radius: 4px;
        }

        /* 顶部标题栏 */
        header {
            width: 100%;
            padding: 40px 0 20px;
            text-align: center;
        }

        header h1 {
            font-size: 60px;
            font-weight: 700;
            letter-spacing: -1px;
            line-height: 1.2;
            margin: 0;
            color: var(--text-main);
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 36px;
            }
        }

        header p {
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 8px;
        }

        /* 主容器 */
        .container {
            width: 98%;
            max-width: 900px;
            background: var(--card-bg);
            border: 2px solid var(--card-border);
            border-radius: var(--radius-card);
            padding: 30px 40px;
            box-shadow: var(--shadow-lg);
            margin-top: 20px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            flex-shrink: 0;
            box-sizing: border-box;
        }

        /* 响应式媒体查询 - 大幅优化移动端 */
        @media (max-width: 1024px) {
            .mobile-menu-btn {
                display: flex;
            }

            .sidebar-history {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
                background: #fff;
                width: 280px;
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
            }

            .sidebar-history.show {
                transform: translateX(0);
            }

            header h1 {
                font-size: 32px;
                padding: 0 20px;
            }

            .container {
                width: 98%;
                padding: 16px 10px;
            }

            .input-group {
                flex-direction: column;
                gap: 10px;
            }

            input[type="text"] {
                width: 100%;
                box-sizing: border-box;
                font-size: 16px;
                padding: 14px 18px;
            }

            button {
                width: 100%;
                padding: 14px;
                font-size: 16px;
            }

            .controls {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .result-viewer {
                width: 98%;
                margin-bottom: 40px;
            }

            .viewer-header {
                padding: 15px 20px;
            }

            .viewer-title {
                font-size: 16px;
            }

            .visuals-wrapper {
                padding: 15px 15px 0;
            }

            .video-row {
                flex-direction: column;
                gap: 12px;
            }

            .viewer-main-cover {
                width: 100%;
                max-height: 240px;
            }

            .viewer-content {
                padding: 16px 10px;
            }

            .transcript-title {
                font-size: 18px;
            }

            .viewer-notes {
                padding: 10px;
            }

            /* 弹窗适配 */
            .modal-content {
                width: 92%;
                max-height: 90vh;
                margin: 5vh auto;
            }

            .modal-tabs {
                flex-wrap: wrap;
                gap: 4px;
            }

            .tab-btn {
                flex: 1;
                min-width: 80px;
                font-size: 12px;
                padding: 8px 4px;
            }
        }

        .container:hover {
            transform: translateY(-2px);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        }

        /* 输入组区域 */
        .input-group {
            position: relative;
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }

        input[type="text"] {
            flex: 1;
            padding: 16px 24px;
            font-size: 18px;
            border: 2px solid #E5E7EB;
            border-radius: 12px;
            background: transparent;
            outline: none;
            transition: all 0.2s ease;
            box-shadow: none;
            color: var(--text-main);
        }

        input[type="text"]:focus {
            border-color: #9333EA;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
        }

        input[type="text"]::placeholder {
            color: #9CA3AF;
        }

        /* 链接输入框外层容器，用于定位清空按钮 */
        .url-input-wrapper {
            position: relative;
            flex: 1;
            display: flex;
        }

        .url-input-wrapper input[type="text"] {
            flex: 1;
            padding-right: 48px; /* 为清空按钮预留空间 */
        }

        /* 清空按钮样式 */
        .clear-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%) !important;
            background: transparent !important;
            border: none;
            padding: 6px !important;
            width: 32px !important;
            height: 32px !important;
            color: #9CA3AF !important;
            cursor: pointer;
            border-radius: 50% !important;
            transition: all 0.2s ease !important;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none !important;
        }

        .clear-btn:hover {
            color: #4B5563 !important;
            background: rgba(0, 0, 0, 0.05) !important;
            transform: translateY(-50%) scale(1.1) !important;
        }

        /* 提取按钮 */
        button {
            padding: 16px 32px;
            font-size: 18px;
            font-weight: 600;
            color: white;
            background: linear-gradient(to right, #2563EB, #9333EA);
            border: none;
            border-radius: var(--radius-btn);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        button:hover:not(:disabled) {
            background: linear-gradient(to right, #1D4ED8, #7E22CE);
            transform: scale(1.05);
        }

        button:active:not(:disabled) {
            transform: scale(0.98);
        }

        button:disabled {
            background-color: #a1a1a6;
            cursor: not-allowed;
            opacity: 0.8;
            transform: none !important;
        }

        /* 辅助按钮（粘贴并提取） */
        .btn-secondary {
            background: #F3F4F6;
            color: #374151;
            border: 1px solid #E5E7EB;
        }

        .btn-secondary:hover:not(:disabled) {
            background: #E5E7EB;
            color: #111827;
        }

        /* 加载动画组件 */
        .loader {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* 操作控件行 */
        .controls {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .checkbox-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        input[type="checkbox"] {
            appearance: none;
            width: 18px;
            height: 18px;
            border: 1px solid #c7c7cc;
            border-radius: 4px;
            outline: none;
            cursor: pointer;
            position: relative;
            background: white;
            transition: all 0.2s;
        }

        input[type="checkbox"]:checked {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
        }

        input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 2px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        /* 状态与日志提示栏 */
        #status-area {
            margin-top: 24px;
            padding: 16px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.5;
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .status-info {
            background: #f2f2f7;
            color: var(--text-secondary);
            border-left: 4px solid #8e8e93;
        }

        .status-success {
            background: #e5f9e8;
            color: #166e2c;
            border-left: 4px solid var(--success-color);
        }

        .status-error {
            background: #fee7e6;
            color: #a31109;
            border-left: 4px solid var(--danger-color);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 结果展示区（文章阅读器） */
        .result-viewer {
            display: none;
            margin-top: 30px;
            width: 98%;
            max-width: 1000px;
            background: white;
            border-radius: var(--radius-card);
            border: 2px solid var(--card-border);
            box-shadow: var(--shadow-lg);
            /* 移除 overflow: hidden 允许内容自然撑大且不裁切子元素阴影 */
            animation: slideUp 0.4s ease;
            margin-bottom: 60px;
            flex-shrink: 0;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* 历史记录项样式调整以适应侧边栏 */
        .history-item {
            padding: 12px;
            border: 1px solid #efefef;
            border-radius: 12px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.2s;
            cursor: pointer;
            position: relative;
            background: #fff;
        }

        .history-item:hover {
            background: #f5f5f7;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .history-item.active {
            background: rgba(37, 99, 235, 0.08);
            /* 明显的淡蓝色背景 */
            box-shadow: inset 0 0 0 1px var(--primary-color), 0 8px 20px rgba(0, 0, 0, 0.05);
            transform: translateX(6px);
            /* 更明显的右移弹出感 */
            z-index: 2;
        }

        .history-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 6px;
            /* 更加醒目的指示条 */
            background: var(--primary-color);
            border-radius: 4px 0 0 4px;
        }

        .history-item.active h4 {
            color: var(--primary-color);
            /* 选中项标题高亮 */
        }

        .history-thumbnail {
            width: 60px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            background: #e5e5ea;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            position: relative;
            /* 为时长角标提供定位基准 */
        }

        .duration-badge {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            font-size: 10px;
            padding: 2px 4px;
            border-radius: 4px;
            font-weight: 500;
            backdrop-filter: blur(4px);
        }

        .history-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .history-item-info {
            flex: 1;
            overflow: hidden;
        }

        .history-item-info h4 {
            margin: 0 0 5px 0;
            font-size: 15px;
            color: #1d1d1f;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .history-item-info p {
            margin: 0;
            font-size: 12px;
            color: #8e8e93;
        }

        .status-badge.error {
            background: #fee7e6;
            color: #a31109;
        }

        .history-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-left: 8px;
        }

        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            font-size: 16px;
            opacity: 0.5;
            transition: all 0.2s;
            line-height: 1;
        }

        .history-item:hover .action-btn {
            opacity: 1;
        }

        .action-btn:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .action-btn.dlt-btn:hover {
            background: #fee7e6;
            color: #ff3b30;
        }

        .action-btn.read-btn:hover {
            background: rgba(37, 99, 235, 0.1);
            color: var(--primary-color);
        }

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

        .viewer-actions {
            display: flex;
            gap: 12px;
        }

        /* 视觉内容外层包裹 */
        .visuals-wrapper {
            display: none;
            padding: 20px 30px 0;
            width: 100%;
            box-sizing: border-box;
            background-color: transparent;
            border-bottom: 1px solid #f2f2f7;
            gap: 15px;
            flex-direction: column;
        }

        /* 视频与封面并排 */
        .video-row {
            display: flex;
            width: 100%;
            gap: 20px;
            align-items: stretch;
        }

        /* 封面主海报 */
        .viewer-main-cover {
            width: 30%;
            max-height: 400px;
            height: auto;
            object-fit: cover;
            display: none;
            background: #f0f0f0;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
        }

        /* 媒体墙展示区域 (视频和音频) */
        .media-container {
            display: none;
            flex: 1;
            width: 100%;
            box-sizing: border-box;
            background-color: transparent;
            display: flex;
            flex-direction: column;
        }

        .media-container video {
            width: 100%;
            height: 100%;
            max-height: 400px;
            object-fit: contain;
            background-color: #000;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            display: none;
        }

        .visuals-wrapper audio {
            width: 100%;
            height: 40px;
            outline: none;
            display: none;
        }

        .viewer-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 80%;
        }

        .viewer-content {
            padding: 3px;
            font-size: 16px;
            line-height: 1.8;
            color: #333;
            background-color: #fcfcfd;
            border-bottom: 1px solid #eee;
            /* 拟物纸张质感滚动条 */
            border-radius: 0 0 16px 16px;
        }

        /* 转写内容局部精修美化 */
        .transcript-title {
            font-size: 20px;
            font-weight: 600;
            color: #1c1c1e;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
            line-height: 1.4;
        }

        .transcript-meta {
            font-size: 13px;
            color: #8e8e93;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 16px;
            font-weight: 400;
        }

        .transcript-meta a {
            color: var(--accent-color);
            text-decoration: none;
            transition: opacity 0.2s ease;
        }

        .transcript-meta a:hover {
            opacity: 0.8;
        }

        .transcript-divider {
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06) 15%, rgba(0, 0, 0, 0.06) 85%, transparent);
            margin: 24px 0 16px;
            border: none;
        }

        .transcript-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 16px;
            gap: 10px;
        }

        .btn-ghost {
            font-size: 13px;
            padding: 6px 14px;
            border-radius: 12px;
            background: #f2f2f7;
            color: #6c6c70;
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
            font-weight: 500;
        }

        .btn-ghost:hover {
            background: #e5e5ea;
            color: #1c1c1e;
            transform: translateY(-1px);
        }

        .transcript-core-container {
            padding-top: 4px;
        }

        .transcript-paragraph {
            background: #ffffff;
            padding: 15px 20px;
            margin: 0 0 16px 0;
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            border: 1px solid #F3F4F6;
            word-wrap: break-word;
        }

        .viewer-content::-webkit-scrollbar {
            width: 8px;
        }

        .viewer-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .viewer-content::-webkit-scrollbar-thumb {
            background: #cdcdcd;
            border-radius: 4px;
        }

        .viewer-content::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        .btn-outline {
            background: transparent;
            color: var(--accent-color);
            border: 2px solid #D8B4FE;
            padding: 8px 16px;
            border-radius: var(--radius-btn);
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .btn-outline:hover {
            background: rgba(147, 51, 234, 0.05);
            /* Purple tint */
            border-color: #A855F7;
            transform: none;
        }

        /* 笔记区域样式 */
        /* 锤子便签拟物化重造 */
        .viewer-notes {
            padding: 3px;
            background: #e2e2e2;
            /* 模拟桌面背景 */
            border-top: 1px solid #d1d5db;
            border-radius: 0 0 var(--radius-card) var(--radius-card);
        }

        .notes-header {
            display: none;
            /* 拟物化风格中隐藏扁平标题栏，改用工具栏作为顶栏 */
        }

        .EasyMDEContainer {
            border-radius: 4px !important;
            overflow: hidden !important;
            border: none !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
            background: #fdfdfb !important;
        }

        .editor-toolbar {
            /* 顶部皮革质感装订条 */
            background: linear-gradient(to bottom, #4a3728, #36291e) !important;
            border: none !important;
            border-bottom: 2px solid #2a1f16 !important;
            padding: 10px 15px !important;
            opacity: 1 !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        }

        /* 强制工具栏按钮图标显示为浅色（皮革上的压印感） */
        .editor-toolbar button {
            color: rgba(255, 255, 255, 0.7) !important;
            background: transparent !important;
            border: none !important;
            margin: 0 2px !important;
            width: 32px !important;
            height: 32px !important;
            border-radius: 4px !important;
        }

        .editor-toolbar button:hover {
            background: rgba(255, 255, 255, 0.1) !important;
            color: #fff !important;
        }

        .editor-toolbar button.active {
            background: rgba(0, 0, 0, 0.2) !important;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        }

        .editor-toolbar i {
            color: inherit !important;
            font-size: 14px !important;
        }

        .editor-toolbar::before {
            /* 模拟装饰缝线或打孔 */
            content: "";
            display: block;
            height: 1px;
            background: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 4px, transparent 4px, transparent 8px);
            margin-bottom: 8px;
        }

        .CodeMirror,
        .editor-preview,
        .editor-preview-side {
            border: none !important;
            min-height: 600px !important;
            /* 纸张背景与信封行下划线 */
            background-color: #F5F1EB !important;
            background-image: repeating-linear-gradient(transparent,
                    transparent 31px,
                    #e8e6e1 31px,
                    #e8e6e1 32px) !important;
            line-height: 32px !important;
            font-family: "PingFang SC", "Lantinghei SC", "Hiragino Sans GB", "Microsoft YaHei", serif !important;
            font-size: 16px !important;
            color: #3e3e3e !important;
            padding: 20px 40px !important;
        }

        .editor-preview,
        .editor-preview-side {
            padding: 40px !important;
            /* 预览模式稍微增加内边距 */
        }

        .CodeMirror-lines {
            padding: 0 !important;
        }

        .save-status-floating {
            position: absolute;
            right: 20px;
            bottom: 10px;
            font-size: 11px;
            color: #9ca3af;
            font-style: italic;
            z-index: 10;
        }

        /* EasyMDE 皮肤微调以适配 AnyToCopy 风格 */
        .EasyMDEContainer {
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e5e7eb !important;
        }

        .editor-toolbar {
            border-top: none !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: 1px solid #e5e7eb !important;
            background: #f9fafb !important;
            padding: 6px 12px !important;
        }

        /* 强制工具栏按钮图标显示为可见深色 */
        .editor-toolbar button {
            color: #4b5563 !important;
            background: transparent !important;
            border: 1px solid transparent !important;
            transition: all 0.2s ease !important;
        }

        .editor-toolbar button:hover {
            background: #e5e7eb !important;
            color: #111827 !important;
        }

        .editor-toolbar button.active {
            background: #f3f4f6 !important;
            border-color: #d1d5db !important;
        }

        .editor-toolbar i {
            color: inherit !important;
        }

        .CodeMirror {
            border: none !important;
            min-height: 600px !important;
            font-family: inherit !important;
            font-size: 15px !important;
        }

        /* 弹窗基本样式 - 升级为现代卡片 */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            /* 磨砂玻璃感增强 */
            transition: all 0.3s ease;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.3);
            width: 600px;
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: 85vh;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #f2f2f7;
            background: #fff;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
        }

        .close {
            font-size: 24px;
            cursor: pointer;
            color: #8e8e93;
            line-height: 1;
            transition: color 0.2s;
        }

        .close:hover {
            color: #1d1d1f;
        }

        /* Tabs 布局设计 */
        .modal-tabs {
            display: flex;
            background: #f2f2f7;
            padding: 4px;
            margin: 0 20px 10px;
            border-radius: 10px;
        }

        .tab-btn {
            flex: 1;
            padding: 8px;
            border: none;
            background: transparent;
            font-size: 13px;
            font-weight: 500;
            color: #8e8e93;
            cursor: pointer;
            border-radius: 7px;
            transition: all 0.2s;
        }

        .tab-btn.active {
            background: #fff;
            color: #1d1d1f;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .modal-body {
            padding: 0 24px 24px;
            overflow-y: auto;
            flex: 1;
        }

        .tab-content {
            display: none;
            padding-top: 10px;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        section {
            margin-bottom: 24px;
        }

        section h4 {
            margin: 0 0 12px 0;
            font-size: 14px;
            font-weight: 600;
            color: #1d1d1f;
        }

        section p {
            font-size: 12px;
            color: #8e8e93;
            line-height: 1.5;
            margin-bottom: 16px;
        }

        /* iOS 风格的开关 (Switch) */
        .switch-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            background: #f9f9fb;
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .switch-container label {
            font-size: 14px;
            font-weight: 500;
            color: #1d1d1f;
            cursor: pointer;
        }

        .ios-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .ios-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e9e9eb;
            transition: .3s;
            border-radius: 24px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        input:checked+.slider {
            background-color: #34c759;
        }

        input:checked+.slider:before {
            transform: translateX(20px);
        }

        /* 输入框美化 */
        .setting-input-group {
            margin-bottom: 16px;
        }

        .setting-input-group label {
            display: block;
            font-size: 12px;
            color: #8e8e93;
            margin-bottom: 6px;
            padding-left: 2px;
        }

        .setting-input-group input {
            width: 100%;
            padding: 11px 14px;
            border: 1px solid #e5e5ea;
            border-radius: 10px;
            font-size: 14px;
            background: #fff;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }

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

        .asr-server-list {
            background: #f9f9fb;
            border-radius: 12px;
            padding: 4px;
            margin-bottom: 16px;
        }

        /* 设置验证遮罩 */
        .settings-auth-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            text-align: center;
            border-radius: 0 0 var(--radius-card) var(--radius-card);
        }

        .auth-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .auth-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #1d1d1f;
        }

        .auth-desc {
            font-size: 14px;
            color: #8e8e93;
            margin-bottom: 24px;
        }

        .auth-input-group {
            width: 100%;
            max-width: 260px;
        }

        .auth-input {
            width: 100%;
            padding: 14px;
            border: 1px solid #e5e5ea;
            border-radius: 12px;
            font-size: 24px;
            text-align: center;
            letter-spacing: 8px;
            margin-bottom: 16px;
            box-sizing: border-box;
        }

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

        .auth-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
        }

        .auth-btn:active {
            transform: scale(0.98);
        }

        .server-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            border-radius: 8px;
            margin-bottom: 1px;
            gap: 12px;
            background: #fff;
            border: 1px solid transparent;
        }

        .server-item:last-child {
            margin-bottom: 0;
        }

        .server-item.active {
            border-color: rgba(37, 99, 235, 0.2);
            background: rgba(37, 99, 235, 0.02);
        }

        .server-info {
            flex: 1;
        }

        .server-info h5 {
            margin: 0;
            font-size: 13px;
            color: #1d1d1f;
        }

        .server-info p {
            margin: 2px 0 0 0;
            font-size: 11px;
            color: #8e8e93;
        }

        .action-btn-circle {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: none;
            background: #f2f2f7;
            color: #8e8e93;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .action-btn-circle:hover {
            background: #e5e5ea;
            color: #ff3b30;
        }

        .save-btn-modern {
            width: 100%;
            padding: 12px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .save-btn-modern:hover {
            opacity: 0.9;
        }

        .save-btn-modern:active {
            transform: scale(0.98);
        }
