/* 文本去除空行工具样式 */

/* 全宽布局样式 */
.tool-content.full-width {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* 文本处理区域头部 */
.text-processor-area {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.processor-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.processor-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* 处理选项 */
.processing-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.option-group {
    display: flex;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.option-label:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* 文本处理容器 */
.text-processing-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 文本面板样式 */
.text-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.text-panel:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.input-panel {
    border-left: 4px solid #10b981;
}

.output-panel {
    border-left: 4px solid #f59e0b;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
}

.panel-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 文本区域样式 */
.text-area {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1.5rem;
    resize: vertical;
    min-height: 300px;
    color: #374151;
}

.text-area:focus {
    outline: none;
    background: rgba(99, 102, 241, 0.02);
}

.text-area::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    gap: 1rem;
}

.text-stats {
    font-weight: 500;
}

.processing-result {
    color: #059669;
    font-weight: 600;
}

/* 处理操作区域 */
.processing-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-large span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 工具信息卡片样式 */
.tool-info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.tool-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.tool-info-card.info-card {
    text-align: left;
    color: white;
    border: none;
}

.tool-info-card.info-card:nth-child(4) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-info-card.info-card:nth-child(5) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tool-info-card.info-card:nth-child(6) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tool-info-card.info-card:nth-child(7) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-info-card.info-card:nth-child(8) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.tool-info-card.info-card:nth-child(9) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.tool-info-card.info-card:nth-child(10) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.tool-info-card h3 {
    margin-top: 0;
    color: #555;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tool-info-card.info-card h3 {
    text-align: center;
    color: white;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tool-info-card.info-card h3 span {
    font-size: 1.2em;
}

.tool-info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tool-info-card.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-info-card.info-card li {
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.tool-info-card.info-card li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.tool-info-card.info-card li strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5b59f5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content.full-width {
        padding: 20px;
        margin: 20px 0;
    }

    .text-processor-area {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .processor-title {
        font-size: 1.4rem;
    }

    .processing-options {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .option-label {
        padding: 0.5rem 0.75rem;
    }

    .processing-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .btn-large {
        min-width: auto;
        width: 100%;
        padding: 1rem 2rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .text-area {
        font-size: 0.85rem;
        min-height: 250px;
    }

    .tool-info-card {
        padding: 20px;
        margin: 20px 0;
    }

    .tool-info-card.info-card h3 {
        font-size: 1.2em;
    }

    .panel-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}