/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f5f7fa;
}

/* 容器样式 */
.container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1 {
    color: #2563eb;
    margin: 1rem 0 2rem;
    font-size: 1.8rem;
}

/* 清除按钮容器样式 */
.clear-btn-container {
    text-align: right;
    margin-bottom: 15px;
}

/* 清除按钮样式 */
#clear-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

#clear-btn:hover {
    background: #2980b9;
}

/* 文本输入框样式 */
#text-input {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 2px solid #3498db;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

#text-input:focus {
    outline: none;
    border-color: #2980b9;
}

/* 统计信息容器样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 单个统计项样式 */
.stat-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.stat-number {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* 子统计信息样式 */
.sub-stats {
    grid-column: 1 / -1;
    background-color: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

/* 页脚样式 */
footer {
    background: rgba(245, 245, 247, 0.9);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(229, 229, 229, 0.5);
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin: 20px auto 0;
    backdrop-filter: blur(5px);
}

.footer-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 640px) {
    footer {
        max-width: calc(100% - 40px);
        margin: 20px auto 0;
    }
}

/* 性能面板样式 */
#performance-panel {
    position: fixed;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px;
    border-radius: 6px;
    /* font-family: Arial, sans-serif; */
    font-size: 0.9rem;
}