/* 敏感词检测工具样式 - 遵循系统统一样式规范 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.container h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 顶部词库选择区域 */
.wordbank-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.wordbank-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wordbank-tab {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--white);
    font-size: 0.875rem;
    user-select: none;
    font-weight: 500;
}

.wordbank-tab:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.wordbank-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.wordbank-tab input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    transform: scale(1.1);
    /* 确保checkbox可见和样式正确 */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
    /* 强制显示checkbox的勾选状态 */
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    /* 确保checkbox不被其他样式覆盖 */
    position: relative !important;
    z-index: 1 !important;
}

/* 处理自定义的checkmark样式 */
.wordbank-tab .checkmark {
    color: var(--gray-400);
    margin-right: 0.25rem;
    font-weight: bold;
    transition: color 0.3s ease;
    display: none !important; /* 隐藏自定义的checkmark */
}

.wordbank-tab.active .checkmark {
    color: var(--white);
}

/* 确保checkbox勾选状态可见 */
.wordbank-tab input[type="checkbox"]:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.total-articles {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch; /* 确保左右面板高度一致 */
}

/* 左侧面板固定高度 */
.left-panel {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 500px; /* 固定高度，与右侧面板保持一致 */
    min-height: 500px; /* 最小高度限制 */
}

/* 右侧面板自适应高度 */
.right-panel {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 500px; /* 最小高度限制，但允许自动延伸 */
    height: auto; /* 改为自适应高度 */
}

/* 表情模板标签 */
.emotion-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.emotion-tab {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.emotion-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.emotion-tab:last-child {
    border-right: none;
}

/* 文本输入区域 */
.text-input-section {
    padding: 1.5rem;
    flex: 1; /* 占据剩余空间 */
    display: flex;
    flex-direction: column;
    min-height: 0; /* 允许收缩 */
    overflow: hidden; /* 防止内容溢出 */
    position: relative; /* 为字数统计定位 */
}

/* 字数统计显示 */
.word-count-display {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.word-count-display span {
    font-weight: 700;
    color: var(--primary-color);
}

/* 笔记示范区域 */
.note-examples-section {
    padding: 0.4rem 1.5rem; /* 进一步减少上下内边距 */
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0; /* 不允许收缩 */
}

.note-examples-section h4 {
    margin-bottom: 0.3rem; /* 进一步减少标题下边距 */
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem; /* 减小字体 */
}

.note-examples {
    display: flex;
    flex-direction: row; /* 改为水平排列 */
    gap: 0.5rem; /* 减少水平间距 */
    justify-content: space-between; /* 平均分布 */
}

.note-example {
    flex: 1; /* 平均分配宽度 */
    padding: 0.3rem 0.5rem; /* 减少上下内边距 */
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center; /* 居中对齐 */
}

.note-example:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.note-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem; /* 减小标题字体 */
    line-height: 1.1; /* 减少行高 */
}

.note-preview {
    display: none; /* 隐藏预览内容，只显示标题 */
}

#contentInput {
    flex: 1; /* 让输入框占据text-input-section的剩余空间 */
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* 移除固定高度，让flex自动分配 */
    max-height: none; /* 移除最大高度限制 */
}

/* 自定义滚动条样式 */
#contentInput::-webkit-scrollbar {
    width: 8px;
}

#contentInput::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

#contentInput::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

#contentInput::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 在Firefox中隐藏滚动条但保持功能 */
#contentInput {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

#contentInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contentInput::placeholder {
    color: var(--text-muted);
}

/* 检测结果区域 */
.result-area {
    padding: 1rem; /* 从1.5rem减少到1rem */
    height: auto; /* 改为自适应高度 */
    min-height: 100%; /* 最小高度为100% */
    display: flex;
    flex-direction: column;
    overflow: visible; /* 改为visible，允许内容溢出 */
}

/* 检测结果样式 */
.detection-result {
    display: none; /* 初始状态隐藏 */
    flex-direction: column;
    height: auto; /* 改为自适应高度 */
    min-height: 100%; /* 最小高度为100% */
}

/* 上半部分：文本预览区域 - 固定高度 */
.text-preview-section {
    flex: none; /* 改为none，不参与flex布局 */
    height: 300px; /* 固定高度300px */
    min-height: 300px; /* 最小高度限制 */
    max-height: 300px; /* 最大高度限制 */
    margin-bottom: 0.5rem; /* 与下方区域保持适当间距 */
    display: flex; /* 添加flex布局 */
    flex-direction: column; /* 垂直排列 */
    overflow: hidden; /* 防止内容溢出 */
}

.text-preview-section h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0; /* 标题不允许收缩 */
}

/* 下半部分：检测概要汇总 - 自动延伸 */
.detection-summary-section {
    flex: none; /* 改为none，不参与flex布局 */
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 0; /* 移除auto，正常排列 */
}

/* 高亮文本样式 */
.highlighted-text {
    flex: 1; /* 占据剩余空间 */
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    overflow-y: auto; /* 添加垂直滚动 */
    height: 100%; /* 使用100%高度填充父容器 */
    min-height: 0; /* 允许收缩 */
}

/* 检测结果头部 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem; /* 从0.5rem进一步减少到0.25rem */
    padding-bottom: 0.25rem; /* 从0.5rem进一步减少到0.25rem */
    border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
    margin: 0;
    font-size: 0.9rem; /* 从1rem进一步减少到0.9rem */
    font-weight: 600;
    color: var(--text-primary);
}

.risk-level {
    padding: 0.2rem 0.4rem; /* 从0.25rem 0.5rem进一步减少到0.2rem 0.4rem */
    border-radius: var(--radius-sm);
    font-size: 0.75rem; /* 从0.8rem进一步减少到0.75rem */
    font-weight: 500;
    color: var(--white);
}

.risk-safe {
    background-color: var(--success-color);
}

.risk-low {
    background-color: var(--warning-color);
}

.risk-medium {
    background-color: var(--warning-color);
}

.risk-high {
    background-color: var(--danger-color);
}

/* 检测摘要 */
.detection-summary {
    margin-bottom: 0.25rem; /* 从0.5rem进一步减少到0.25rem */
}

.detection-summary h4 {
    margin-bottom: 0.15rem; /* 从0.25rem进一步减少到0.15rem */
    font-size: 0.85rem; /* 从0.9rem进一步减少到0.85rem */
    color: var(--text-primary);
    font-weight: 600;
}

.detection-summary ul {
    margin: 0;
    padding-left: 1.25rem; /* 从1.5rem减少到1.25rem */
    list-style: none;
}

.detection-summary li {
    margin-bottom: 0.25rem; /* 从0.5rem减少到0.25rem */
    font-size: 0.85rem; /* 从默认大小减少到0.85rem */
    color: var(--text-secondary);
}

.detection-summary li:last-child {
    margin-bottom: 0;
}

/* 检测到的敏感词 */
.detected-words {
    margin-bottom: 0; /* 从默认margin减少到0 */
}

.detected-words h4 {
    margin-bottom: 0.15rem; /* 从0.25rem进一步减少到0.15rem */
    font-size: 0.85rem; /* 从0.9rem进一步减少到0.85rem */
    color: var(--text-primary);
    font-weight: 600;
    display: inline; /* 让标题显示为行内元素 */
    margin-right: 0.5rem; /* 在标题和内容之间添加右边距 */
}

.detected-word-item {
    display: inline-block;
    margin: 0.15rem 0.4rem 0.15rem 0; /* 从0.25rem 0.5rem 0.25rem 0进一步减少到0.15rem 0.4rem 0.15rem 0 */
    padding: 0.15rem 0.4rem; /* 从0.25rem 0.5rem进一步减少到0.15rem 0.4rem */
    border-radius: var(--radius-sm);
    font-size: 0.75rem; /* 从0.8rem进一步减少到0.75rem */
    font-weight: 500;
    color: var(--white);
    background: var(--danger-color);
}

.detected-word-item.medium {
    background: var(--warning-color);
}

.detected-word-item.low {
    background: var(--info-color);
}

/* 安全内容提示 */
.safe-content {
    padding: 0.15rem; /* 从0.25rem进一步减少到0.15rem */
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.8rem; /* 从0.85rem进一步减少到0.8rem */
    font-weight: 500;
}

/* 文本预览容器样式 */
.text-preview-container {
    margin-top: 1rem;
}

.text-preview-container h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* 底部控制区域 */
.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.left-controls {
    display: flex;
    gap: 1rem;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 按钮样式 - 遵循系统规范 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

/* 统计信息 */
.statistics {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.statistics span {
    color: var(--primary-color);
    font-weight: 700;
}

/* 高亮敏感词样式 */
.highlight-word {
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-weight: bold;
}

.highlight-medium {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid var(--warning-color);
}

.highlight-high {
    background: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid var(--danger-color);
}

.highlight-low {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

/* 检测结果样式 */
.detection-result {
    margin-bottom: 1.5rem;
}

/* 默认占位内容 */
.result-placeholder {
    display: block; /* 初始状态显示 */
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.result-placeholder p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.suggestions li:last-child {
    border-bottom: none;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.message-success {
    background: var(--success-gradient);
}

.message-error {
    background: var(--danger-color);
}

.message-info {
    background: var(--primary-gradient);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 高级功能专用样式 */
.advanced-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.advanced-tab {
    padding: 1rem 1.5rem; 
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.advanced-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.advanced-tab.active {
    background: var(--primary-gradient);
    color: var(--white);
}

.advanced-tab:last-child {
    border-right: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* 批量上传样式 */
.batch-upload {
    border: 2px dashed var(--primary-color);
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.batch-upload:hover {
    border-color: var(--primary-dark);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.batch-upload.dragover {
    border-color: var(--success-color);
    background: var(--success-light);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.batch-upload h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.batch-upload p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.file-list {
    margin: 1.5rem 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.75rem 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.file-item.success {
    border-left-color: var(--success-color);
}

.file-item.error {
    border-left-color: var(--danger-color);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.file-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 自定义词库样式 */
.custom-wordbank {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.custom-wordbank h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.custom-wordbank p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.word-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.word-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.word-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.word-category, .word-level {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.word-category:focus, .word-level:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.word-category {
    width: 120px;
}

.word-level {
    width: 100px;
}

/* 历史记录样式 */
.history-item {
    background: var(--white);
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.history-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.history-text {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.history-stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.75rem 0;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

/* 统计网格样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 1rem; /* 减少移动端间距 */
    }
    
    .left-panel {
        height: auto; /* 移动端自适应高度 */
        min-height: 400px; /* 移动端减少最小高度 */
    }
    
    .right-panel {
        height: auto; /* 移动端自适应高度 */
        min-height: 400px; /* 移动端减少最小高度 */
    }
    
    .text-input-section {
        min-height: auto; /* 移动端移除最小高度限制 */
    }
    
    #contentInput {
        height: 300px; /* 移动端减少输入框高度 */
        max-height: 300px;
    }
    
    .text-preview-section {
        height: 250px; /* 移动端减少文本预览区域高度 */
        min-height: 250px;
        max-height: 250px;
    }
    
    .note-examples-section {
        padding: 0.3rem 1rem; /* 移动端进一步减少内边距 */
    }
    
    .note-examples {
        gap: 0.4rem; /* 移动端减少水平间距 */
    }
    
    .note-example {
        padding: 0.25rem 0.3rem; /* 移动端进一步减少内边距 */
    }
    
    .note-title {
        font-size: 0.7rem; /* 移动端减小标题字体 */
        line-height: 1.0; /* 移动端减少行高 */
    }
    
    .note-preview {
        font-size: 0.7rem; /* 移动端减小预览字体 */
        line-height: 1.2; /* 移动端减少行高 */
    }
    
    .result-area {
        height: auto; /* 移动端改为自适应高度 */
        min-height: 250px; /* 移动端减少最小高度 */
    }
    
    .wordbank-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .wordbank-tab {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .bottom-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .right-controls {
        justify-content: space-between;
    }
    
    .result-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .advanced-tabs {
        flex-wrap: wrap;
    }
    
    .advanced-tab {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .word-input-group {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container h1 {
        font-size: 1.5rem;
    }
    
    .batch-upload {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    
    .wordbank-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .wordbank-tabs {
        justify-content: center;
    }
    
    .left-controls, .right-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .statistics {
        text-align: center;
    }
} 