/* 工具一专用样式 */

/* 页面头部 */
.page-header {
    background-color: #1e1e1e;
    padding: 40px 0;
    border-bottom: 1px solid #333333;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #bb86fc;
}

.page-header p {
    font-size: 16px;
    color: #b0b0b0;
    max-width: 700px;
}

/* 工具容器 */
.tool-container {
    padding: 48px 0;
}

.flex-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* 侧边栏 */
.tool-sidebar {
    flex: 0 0 280px;
}

.function-selector h3, .function-options h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.function-list {
    list-style: none;
}

.function-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background-color: #2d2d2d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
}

.function-list li:hover {
    background-color: #383838;
}

.function-list li.active {
    background-color: #6200ee;
    color: #ffffff;
}

.function-options {
    margin-top: 24px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    cursor: pointer;
}

/* 主内容区 */
.tool-main {
    flex: 1;
    min-width: 300px;
}

.input-section, .output-section {
    margin-bottom: 24px;
}

.input-section h3, .output-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px solid #333333;
}

.text-input {
    width: 100%;
    padding: 16px;
    background-color: #2d2d2d;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.text-input:focus {
    outline: none;
    border-color: #bb86fc;
}

.input-actions, .output-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.action-center {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.process-btn {
    padding: 12px 24px;
    font-size: 16px;
}

.output-placeholder {
    color: #888888;
    padding: 16px;
    font-style: italic;
    border: 1px dashed #333333;
    border-radius: 6px;
}

.output-content {
    background-color: #2d2d2d;
    border-radius: 6px;
    padding: 16px;
    min-height: 120px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 统计信息 */
.stats-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #333333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.stat-item {
    padding: 8px 12px;
    background-color: #2d2d2d;
    border-radius: 4px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 13px;
}

.stat-value {
    color: #bb86fc;
    font-weight: 500;
    margin-left: 4px;
}

/* 使用说明 */
.usage-guide {
    padding: 48px 0;
    background-color: #1e1e1e;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.guide-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #bb86fc;
}

.guide-card p {
    color: #b0b0b0;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-sidebar {
        flex: 1 0 100%;
    }
}
