/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 文本输入区域 */
.text-input-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.text-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.text-actions {
    display: flex;
    gap: 10px;
}

.text-area {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    background: #f7fafc;
}

.text-area:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

/* 详细统计 */
.detail-stats {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.detail-stats h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
}

.detail-value {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

.detail-label {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 28px;
    }
}