        /* 重置样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft YaHei', sans-serif;
            background: #f5f7fa;
            color: #333;
            line-height: 1.5;
            font-size: 16px;
        }
        
        /* 头部导航 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: #fff;
            display: flex;
            align-items: center;
            padding: 0 16px;
            border-bottom: 1px solid #e8e8e8;
            z-index: 1000;
        }
        
        .header-btn {
            background: none;
            border: none;
            padding: 8px;
            font-size: 20px;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .header-title {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 500;
            color: #333;
        }
        
        /* 主容器 */
        .main-container {
            max-width: 768px;
            margin: 0 auto;
            padding: 80px 16px 120px;
            min-height: 100vh;
        }
        
        /* 输入区域卡片 */
        .input-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        }
        
        .section-title {
            font-size: 16px;
            color: #666;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 提示词输入框 */
        .prompt-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            background: #fafafa;
            transition: all 0.3s ease;
        }
        
        .prompt-input:focus {
            outline: none;
            border-color: #1890ff;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
        }
        
        /* 内容输入框 */
        .content-input {
            width: 100%;
            min-height: 150px;
            padding: 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            line-height: 1.6;
            resize: vertical;
            background: #fafafa;
            transition: all 0.3s ease;
        }
        
        .content-input:focus {
            outline: none;
            border-color: #1890ff;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
        }
        
        /* 提交按钮 */
        .submit-btn {
            width: 100%;
            background: linear-gradient(135deg, #1890ff, #096dd9);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 16px;
            font-size: 18px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .submit-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
        }
        
        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        /* 加载动画 */
        .loading-spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* 结果区域 */
        .result-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            display: none;
        }
        
        .result-card.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .result-title {
            font-size: 16px;
            font-weight: 500;
            color: #333;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .result-content {
            line-height: 1.8;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 300px;
            overflow-y: auto;
            padding: 12px;
            background: #fafafa;
            border-radius: 8px;
            border: 1px solid #f0f0f0;
        }
        
        /* 底部菜单 */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 2000;
        }
        
        .menu-overlay.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .menu-panel {
            position: fixed;
            top: 60px;
            right: 16px;
            background: #fff;
            border-radius: 12px;
            min-width: 200px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            z-index: 2001;
            display: none;
        }
        
        .menu-panel.active {
            display: block;
            animation: slideDown 0.3s ease;
        }
        
        .menu-item {
            padding: 16px 20px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: background 0.2s ease;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item:hover {
            background: #fafafa;
        }
        
        /* 模态框 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            z-index: 3000;
        }
        
        .modal-overlay.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .modal-content {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 20px 20px 0 0;
            max-height: 60vh;
            overflow: hidden;
            z-index: 3001;
            display: none;
        }
        
        .modal-content.active {
            display: block;
            animation: slideUp 0.3s ease;
        }
        
        .modal-header {
            padding: 20px 20px 12px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 500;
            color: #333;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-body {
            padding: 20px;
            max-height: calc(60vh - 73px);
            overflow-y: auto;
        }
        
        /* 角色选择模态框 */
        .role-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 12px;
        }
        
        .role-card {
            background: #fff;
            border: 1px solid #f0f0f0;
            border-radius: 8px;
            padding: 16px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .role-card:hover {
            border-color: #1890ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.1);
        }
        
        .role-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }
        
        .role-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }
        
        .role-desc {
            font-size: 12px;
            color: #999;
            line-height: 1.4;
        }
        
        /* 使用说明样式 */
        .instructions-content h3 {
            font-size: 16px;
            font-weight: 500;
            color: #333;
            margin: 20px 0 12px;
        }
        
        .instructions-content p {
            color: #666;
            margin-bottom: 12px;
        }
        
        .instructions-content ul {
            padding-left: 20px;
            margin-bottom: 16px;
        }
        
        .instructions-content li {
            color: #666;
            margin-bottom: 8px;
        }
        
        /* 动画 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(100%);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .main-container {
                padding: 80px 12px 120px;
            }
            
            .input-card {
                padding: 16px;
            }
            
            .role-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
            
            .modal-body {
                padding: 16px;
            }
        }
        
        @media (max-width: 480px) {
            .header {
                height: 56px;
                padding: 0 12px;
            }
            
            .main-container {
                padding: 76px 12px 100px;
            }
            
            .content-input {
                min-height: 120px;
            }
            
            .role-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* 滚动条样式 */
        .result-content::-webkit-scrollbar,
        .modal-body::-webkit-scrollbar {
            width: 6px;
        }
        
        .result-content::-webkit-scrollbar-track,
        .modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        
        .result-content::-webkit-scrollbar-thumb,
        .modal-body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        
        .result-content::-webkit-scrollbar-thumb:hover,
        .modal-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* 占位符颜色 */
        ::placeholder {
            color: #999;
            opacity: 1;
        }
        
        :-ms-input-placeholder {
            color: #999;
        }
        
        ::-ms-input-placeholder {
            color: #999;
        }
/* 数学公式样式 */
.math-inline {
    font-style: italic;
    color: #1890ff;
    background: rgba(24, 144, 255, 0.1);
    padding: 0 4px;
    border-radius: 3px;
    font-family: "KaTeX_Main", "Times New Roman", serif;
}

.math-block {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #1890ff;
    overflow-x: auto;
    text-align: center;
    font-family: "KaTeX_Main", "Times New Roman", serif;
}

/* 表格样式 */
.table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.result-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e8e8e8;
    color: #333;
}

.result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.result-table tr:hover {
    background: #fafafa;
}

/* 代码块样式 */
.code-block {
    margin: 20px 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f0f0f0;
    border-bottom: 1px solid #e8e8e8;
}

.code-lang {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.copy-code-btn {
    padding: 4px 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.copy-code-btn:hover {
    background: #096dd9;
}

.code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block code {
    font-family: 'Courier New', monospace;
    background: none;
    padding: 0;
}

/* 行内代码样式 */
code:not(.code-block code) {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

/* 列表样式 */
.result-content ul,
.result-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.result-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.result-content ul li {
    list-style-type: disc;
}

.result-content ol li {
    list-style-type: decimal;
}

/* 引用样式 */
blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    background: #f8f9fa;
    border-left: 4px solid #1890ff;
    color: #666;
    font-style: italic;
}

/* 标题样式 */
.result-content h1 {
    font-size: 24px;
    margin: 24px 0 16px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.result-content h2 {
    font-size: 20px;
    margin: 20px 0 12px;
    color: #333;
}

.result-content h3 {
    font-size: 18px;
    margin: 16px 0 8px;
    color: #333;
}

/* 段落样式 */
.result-content p {
    margin: 16px 0;
    line-height: 1.8;
}

/* 链接样式 */
.result-content a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.result-content a:hover {
    border-bottom-color: #1890ff;
}

/* 文本格式化 */
.result-content strong {
    font-weight: 600;
    color: #333;
}

.result-content em {
    font-style: italic;
    color: #666;
}

.result-content del {
    text-decoration: line-through;
    color: #999;
}