body {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.content-rewriter-tool {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-rewriter-tool h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* 输入区域 */
.input-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.input-section h4 {
    margin-bottom: 1rem;
    color: #333;
}

.input-section textarea {
    min-height: 250px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.6;
    padding: 1rem;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 输出区域 */
.output-section {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    display: none;
}

.output-section h4 {
    margin-bottom: 1rem;
    color: #0056b3;
}

.result-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 200px;
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 历史记录 */
.history-section {
    margin-top: 2rem;
}

.history-section h4 {
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f0f7ff;
    border-color: #90c2ff;
    transform: translateY(-2px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.history-item-date {
    color: #666;
    font-size: 0.9rem;
}

.history-item-content {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-content {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-container {
        gap: 1.5rem;
    }
    
    .input-section textarea {
        min-height: 200px;
    }
}

/* 代码块样式 */
pre {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
} 