/* 文本处理工具样式 */

/* 工具头部 */
.tool-header {
    background-color: #16213e;
    padding: 40px 0;
    text-align: center;
}

.tool-header h1 {
    font-size: 2.2rem;
    color: #4cc9f0;
    margin-bottom: 10px;
}

.tool-header p {
    font-size: 1.1rem;
    color: #b0b0c0;
}

/* 工具内容区域 */
.tool-content {
    padding: 50px 0;
}

.tool-content .container {
    display: flex;
    gap: 30px;
}

.tool-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.tool-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.tool-sidebar ul {
    list-style: none;
    background-color: #16213e;
    border-radius: 8px;
    overflow: hidden;
}

.tool-sidebar ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a42;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-sidebar ul li:last-child {
    border-bottom: none;
}

.tool-sidebar ul li:hover {
    background-color: #240046;
}

.tool-sidebar ul li.active {
    background-color: #4361ee;
    color: white;
}

.tool-main {
    flex: 1;
    background-color: #16213e;
    border-radius: 8px;
    padding: 30px;
    min-height: 500px;
}

.tool-function h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e2e2e2;
}

.tool-function p {
    color: #b0b0c0;
    margin-bottom: 25px;
}

.tool-function textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #2a2a42;
    border-radius: 5px;
    background-color: #1a1a2e;
    color: #e2e2e2;
    font-size: 1rem;
    margin-bottom: 20px;
    resize: vertical;
}

.convert-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.result-box {
    background-color: #1a1a2e;
    border-radius: 5px;
    padding: 20px;
}

.result-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4cc9f0;
}

.result-text {
    color: #e2e2e2;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.stats-result {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background-color: #1a1a2e;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.stat-item span:first-child {
    color: #b0b0c0;
}

.stat-item span:last-child {
    color: #4cc9f0;
    font-weight: bold;
}

/* 工具提示区域 */
.tool-tips {
    padding: 40px 0;
    background-color: #16213e;
}

.tool-tips h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.tool-tips ul {
    list-style-position: inside;
    color: #b0b0c0;
}

.tool-tips ul li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content .container {
        flex-direction: column;
    }
    
    .tool-sidebar {
        width: 100%;
    }
    
    .stats-result {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-result {
        grid-template-columns: 1fr;
    }
    
    .convert-buttons {
        flex-direction: column;
    }
    
    .convert-buttons button {
        width: 100%;
    }
}
