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

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #f5f7fa;
            height: 100vh;
            overflow: hidden;
        }

        /* 顶部导航栏 */
        .navbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.2rem 2.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            position: relative;
            z-index: 100;
        }

        .navbar::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(255,255,255,0.3) 50%,
                transparent 100%);
        }

        .navbar-left {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .navbar h1 {
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            width: 420px;
            padding: 0.75rem 1.2rem 0.75rem 3rem;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 28px;
            background: rgba(255,255,255,0.15);
            color: white;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .search-box input:focus {
            outline: none;
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.5);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }

        .search-box input::placeholder {
            color: rgba(255,255,255,0.8);
        }

        .search-box::before {
            content: "🔍";
            position: absolute;
            left: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.1rem;
        }

        .navbar-right {
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }

        .refresh-btn {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: white;
            padding: 0.7rem 1.4rem;
            border-radius: 24px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .refresh-btn:hover {
            background: rgba(255,255,255,0.3);
            border-color: rgba(255,255,255,0.5);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .refresh-btn:active {
            transform: translateY(0);
        }

        /* 主容器 */
        .main-container {
            display: flex;
            height: calc(100vh - 70px);
        }

        /* 左侧边栏 */
        .sidebar {
            width: 260px;
            background: linear-gradient(to bottom, #ffffff, #fafbfc);
            border-right: 2px solid #e2e8f0;
            overflow-y: auto;
            padding: 1.5rem 1rem;
        }

        /* 自定义滚动条 */
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 3px;
        }

        .sidebar-section {
            padding: 0.5rem 0;
        }

        .sidebar-title {
            font-size: 0.7rem;
            color: #a0aec0;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.8rem;
            font-weight: 700;
            padding: 0 0.5rem;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            padding: 0.9rem 1rem;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 0.4rem;
            position: relative;
            font-weight: 500;
        }

        .menu-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 60%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 0 4px 4px 0;
            transition: width 0.3s ease;
        }

        .menu-item:hover {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            transform: translateX(4px);
        }

        .menu-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transform: translateX(4px);
        }

        .menu-item.active::before {
            width: 4px;
        }

        .menu-item .icon {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .menu-item:hover .icon {
            transform: scale(1.1);
        }

        .menu-item .label {
            flex: 1;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .menu-item .count {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.2rem 0.6rem;
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 700;
            display: none;
            min-width: 24px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .menu-item.has-unread .count {
            display: block;
            animation: countPulse 2s infinite;
        }

        @keyframes countPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .menu-item.active .count {
            background: white;
            color: #667eea;
            box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        }

        /* 邮件列表区域 */
        .email-list-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: white;
            border-right: 1px solid #e0e0e0;
            max-width: 420px;
        }

        .list-header {
            padding: 1.2rem 1.5rem;
            border-bottom: 2px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(to bottom, #ffffff, #fafbfc);
        }

        .list-header h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #333;
        }

        .list-header .count-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 16px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        .filter-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 2px solid #e0e0e0;
            background: white;
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .filter-btn:hover {
            background: #f5f7fa;
            border-color: #667eea;
            transform: translateY(-1px);
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .email-list {
            flex: 1;
            overflow-y: auto;
            scroll-behavior: smooth;
        }

        /* 自定义滚动条 */
        .email-list::-webkit-scrollbar {
            width: 8px;
        }

        .email-list::-webkit-scrollbar-track {
            background: #f5f7fa;
        }

        .email-list::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 4px;
        }

        .email-list::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        .email-item {
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            background: white;
        }

        .email-item:hover {
            background: linear-gradient(to right, #f8f9fa, #ffffff);
            transform: translateX(4px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .email-item.selected {
            background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
            border-left: 4px solid #667eea;
            box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.1);
        }

        .email-item.unread {
            background: linear-gradient(to right, #fafbfc, #ffffff);
            font-weight: 600;
        }

        .email-item.unread::before {
            content: "";
            position: absolute;
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: translateY(-50%) scale(1);
            }
            50% {
                opacity: 0.6;
                transform: translateY(-50%) scale(1.1);
            }
        }

        /* 邮件列表项头部 */
        .email-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.6rem;
        }

        .email-from {
            font-size: 0.95rem;
            font-weight: 700;
            color: #2d3748;
            letter-spacing: 0.2px;
        }

        .email-time {
            font-size: 0.8rem;
            color: #a0aec0;
            font-weight: 500;
            white-space: nowrap;
        }

        .email-header {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid #f0f0f0;
        }

        .email-sender {
            font-size: 0.95rem;
            color: #2d3748;
            font-weight: 700;
        }

        .email-subject {
            font-size: 0.95rem;
            color: #2d3748;
            margin-bottom: 0.4rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 600;
            line-height: 1.4;
        }

        .email-preview {
            font-size: 0.85rem;
            color: #718096;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 1.5;
            margin-top: 0.2rem;
        }

        .email-badges {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.6rem;
            flex-wrap: wrap;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.3rem 0.8rem;
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .badge-code {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
        }

        .badge-attachment {
            background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
            color: white;
        }

        .email-code-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.8rem;
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            border-radius: 16px;
            font-size: 0.8rem;
            font-weight: 700;
            margin-top: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
        }

        .email-code-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
        }

        /* 邮件详情区域 */
        .email-detail-container,
        .email-detail {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: linear-gradient(to bottom, #ffffff, #fafbfc);
            overflow-y: auto;
            overflow-x: hidden;
            padding: 2rem 2.5rem;
        }

        /* 自定义滚动条 */
        .email-detail::-webkit-scrollbar {
            width: 10px;
        }

        .email-detail::-webkit-scrollbar-track {
            background: #f5f7fa;
        }

        .email-detail::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 5px;
        }

        .email-detail::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        /* 邮件头部信息 */
        .email-subject-line {
            font-size: 1.8rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 1.2rem;
            line-height: 1.3;
            letter-spacing: -0.5px;
        }

        .email-meta {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            padding: 1.2rem;
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            border-radius: 12px;
            margin-bottom: 0;
            border-left: 4px solid #667eea;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .email-from,
        .email-to,
        .email-date {
            font-size: 0.9rem;
            color: #4a5568;
            line-height: 1.6;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .email-from strong,
        .email-to strong,
        .email-date strong {
            color: #2d3748;
            font-weight: 700;
            min-width: 60px;
        }

        /* 验证码盒子 */
        .verification-code-box {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 1.2rem 1.5rem;
            border-radius: 12px;
            margin: 1.2rem 0;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
        }

        .verification-code-box::before {
            content: "";
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 3s infinite;
            pointer-events: none;
        }

        @keyframes shimmer {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-30%, -30%); }
        }

        .verification-code-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
        }

        .code-label {
            color: rgba(255,255,255,0.95);
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .code-value {
            color: white;
            font-size: 1.8rem;
            font-weight: 900;
            letter-spacing: 0.3rem;
            font-family: 'Courier New', monospace;
            text-align: center;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 1;
            line-height: 1.2;
        }

        /* 邮件内容 */
        .email-content {
            background: white;
            padding: 2rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            line-height: 1.8;
            white-space: pre-wrap;
            word-wrap: break-word;
            color: #2d3748;
            font-size: 1rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            margin-top: 1.5rem;
        }

        .email-content.email-html {
            border: 2px solid #e2e8f0;
            padding: 2rem;
        }

        .detail-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #e0e0e0;
        }

        .detail-subject {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #333;
        }

        .detail-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: #666;
        }

        .meta-item strong {
            color: #333;
        }

        .detail-actions {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.2rem;
            flex-wrap: wrap;
        }

        .email-actions {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.2rem;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 0.7rem 1.3rem;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            font-weight: 600;
            color: #4a5568;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .action-btn:hover {
            background: #f7fafc;
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .action-btn.active {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            color: white;
            border-color: #fbbf24;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
        }

        .action-btn.delete-btn {
            border-color: #fed7d7;
            color: #c53030;
        }

        .action-btn.delete-btn:hover {
            background: #fff5f5;
            border-color: #fc8181;
            box-shadow: 0 4px 12px rgba(197, 48, 48, 0.2);
        }

        .detail-body {
            flex: 1;
            overflow-y: auto;
            padding: 2rem;
        }

        .code-highlight {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.5rem;
            border-radius: 12px;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .code-highlight-title {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
        }

        .code-highlight-value {
            font-size: 2.5rem;
            font-weight: bold;
            letter-spacing: 8px;
            font-family: 'Courier New', monospace;
            cursor: pointer;
            user-select: all;
        }

        .email-content {
            line-height: 1.8;
            color: #333;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        /* HTML邮件内容隔离 */
        .email-html {
            white-space: normal;
            overflow: auto;
            max-width: 100%;
        }

        /* 隔离HTML邮件样式，防止污染外部 */
        .email-html * {
            max-width: 100%;
        }

        .email-html img {
            max-width: 100%;
            height: auto;
        }

        .email-html table {
            border-collapse: collapse;
            max-width: 100%;
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #a0aec0;
            padding: 3rem;
            text-align: center;
        }

        .empty-state-icon {
            font-size: 5rem;
            margin-bottom: 1.5rem;
            opacity: 0.6;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .empty-state h3 {
            font-size: 1.4rem;
            margin-bottom: 0.8rem;
            color: #4a5568;
            font-weight: 700;
        }

        .empty-state p {
            font-size: 1rem;
            color: #718096;
            line-height: 1.6;
        }

        .loading {
            text-align: center;
            padding: 3rem;
            color: #a0aec0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .loading::after {
            content: "...";
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {
            0%, 20% { content: "."; }
            40% { content: ".."; }
            60%, 100% { content: "..."; }
        }

        /* 响应式 */
        @media (max-width: 1024px) {
            .sidebar { width: 200px; }
            .email-list-container { max-width: 350px; }
        }

        @media (max-width: 768px) {
            .sidebar { display: none; }
            .email-list-container { max-width: 100%; }
            .email-detail-container { display: none; }
        }

        /* 页脚 */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            border-top: 1px solid #e0e0e0;
            padding: 0.75rem 2rem;
            text-align: center;
            color: #666;
            font-size: 0.85rem;
            backdrop-filter: blur(10px);
            z-index: 100;
        }

        .footer a {
            color: #667eea;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        /* 调整主容器高度以适应页脚 */
        .main-container {
            height: calc(100vh - 70px);
        }

        /* 写邮件按钮 */
        .compose-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .compose-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .logout-btn {
            background: transparent;
            color: rgba(255,255,255,0.8);
            border: 1px solid rgba(255,255,255,0.3);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .logout-btn:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        /* 模态框 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.75);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
            backdrop-filter: blur(4px);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                backdrop-filter: blur(0);
            }
            to {
                opacity: 1;
                backdrop-filter: blur(4px);
            }
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            width: 90%;
            max-width: 650px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes slideUp {
            from {
                transform: translateY(80px) scale(0.95);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .modal-header::before {
            content: "";
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: shimmer 4s infinite;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }

        .close-btn {
            background: rgba(255,255,255,0.15);
            border: 2px solid rgba(255,255,255,0.3);
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .close-btn:hover {
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.5);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2.5rem;
            overflow-y: auto;
            max-height: calc(90vh - 200px);
            background: linear-gradient(to bottom, #ffffff, #fafbfc);
        }

        /* 自定义滚动条 */
        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #f5f7fa;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 4px;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        .form-group {
            margin-bottom: 1.8rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.7rem;
            color: #2d3748;
            font-weight: 700;
            font-size: 0.95rem;
            letter-spacing: 0.3px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.9rem 1.2rem;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            font-family: inherit;
            background: white;
            color: #2d3748;
        }

        .form-group input:hover,
        .form-group textarea:hover {
            border-color: #cbd5e0;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: #fafbfc;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 180px;
            line-height: 1.6;
        }

        .form-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid #f0f0f0;
        }

        .btn {
            padding: 0.9rem 2rem;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: 2px solid transparent;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:active {
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: #edf2f7;
            color: #4a5568;
            border: 2px solid #e2e8f0;
        }

        .btn-secondary:hover {
            background: #e2e8f0;
            border-color: #cbd5e0;
            transform: translateY(-2px);
        }

        /* 编辑器模式切换按钮 */
        .editor-mode-btn {
            padding: 0.5rem 1rem;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 600;
            color: #4a5568;
            transition: all 0.3s ease;
        }

        .editor-mode-btn:hover {
            background: #f7fafc;
            border-color: #cbd5e0;
        }

        .editor-mode-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
        }

        /* Quill编辑器样式优化 */
        .ql-toolbar {
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            background: #f7fafc;
            border-color: #e2e8f0 !important;
        }

        .ql-container {
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            border-color: #e2e8f0 !important;
            font-size: 1rem;
            font-family: inherit;
        }

        .ql-editor {
            min-height: 250px;
            max-height: 400px;
            overflow-y: auto;
        }

        .ql-editor.ql-blank::before {
            color: #a0aec0;
            font-style: normal;
        }

        /* Toast提示 */
        .toast {
            position: fixed;
            top: 100px;
            right: -400px;
            background: white;
            padding: 1.2rem 1.8rem;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
            z-index: 2000;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            min-width: 280px;
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .toast.show {
            right: 24px;
        }

        .toast-success {
            border-left: 5px solid #48bb78;
            background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
        }

        .toast-success::before {
            content: "✓";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            border-radius: 50%;
            font-weight: 900;
            font-size: 1rem;
        }

        .toast-error {
            border-left: 5px solid #f56565;
            background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
        }

        .toast-error::before {
            content: "✕";
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
            color: white;
            border-radius: 50%;
            font-weight: 900;
            font-size: 1rem;
        }
