/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 32px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    flex: 1;
}

/* 标题居中 */
.site-title {
    text-align: center;
    font-size: 48px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.site-logo{
    width:  64px;
    height: 64px;
    vertical-align: middle;
    margin-right:   12px;
    margin-bottom:  12px;
}

/* 卡片网格 - 使用 flex 自适应换行，卡片固定宽度 */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0 0 32px 0;
}

/* 卡片固定宽高比 */
.app-card {
    width: 260px;
    background: #ffffff;
    border: 1px solid #eaeef2;
    border-radius: 20px;
    padding: 20px 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 保持卡片接近正方形 */
.app-card {
    aspect-ratio: 16 / 9;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.app-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.app-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin: 0;
    line-height: 1.3;
}

/* 响应式调整卡片大小 */
@media (max-width: 768px) {
    .app-card {
        width: 160px;
        padding: 16px 4px;
    }
    .app-icon {
        font-size: 56px;
    }
    .app-card h3 {
        font-size: 16px;
    }
    .site-title {
        font-size: 24px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .app-card {
        width: 120px;
        padding: 12px 4px;
    }
    .app-icon {
        font-size: 42px;
    }
    .app-card h3 {
        font-size: 12px;
    }
    .container {
        padding: 20px;
    }
    .site-title{
        font-size:  32px;
        margin: 10px;
        padding: 20px;
    }
}

/* 提示框（保留给开发中页面使用） */
.info-box {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* 打字应用样式（保持原有功能） */
.typing-area {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.sentence {
    font-size: 20px;
    line-height: 1.5;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    border-left: 4px solid #667eea;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: #f0f4f8;
    color: #1f2f3a;
    border: 1px solid #d0d7de;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    margin-right: 8px;
}

button:hover {
    background: #e6edf4;
}

.stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #2c6e9e;
}

.result-success {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #e6f4ea;
    color: #1e6f3f;
}

.result-error {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #feeceb;
    color: #b91c1c;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 16px 0;
    color: #8a9aa8;
    font-size: 13px;
}
