/* pages.css - 页面专用样式 */

/* ===== 登录页 ===== */
.auth-panel { padding: 20px 0; }
.auth-panel h2 { margin-bottom: 20px; color: #2d3748; font-size: 1.3rem; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #e5e7eb; }
.auth-tab { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; font-size: 0.95rem; color: #6b7280; font-weight: 500; transition: all 0.2s; }
.auth-tab.active { color: #6366f1; border-bottom: 2px solid #6366f1; margin-bottom: -2px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.auth-field label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.auth-field input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #d1d5db; font-size: 0.9rem; }
.auth-divider { display: flex; align-items: center; margin: 16px 0; color: #9ca3af; font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.auth-divider span { padding: 0 12px; }
.guest-hint { font-size: 0.75rem; color: #9ca3af; margin-top: 6px; text-align: center; }

/* ===== 主菜单 ===== */
.main-menu { padding: 8px 0; }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.menu-header h2 { font-size: 1.3rem; color: #2d3748; }
.user-info { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #6b7280; }
.menu-section { margin-bottom: 20px; }
.menu-section h3 { font-size: 0.95rem; color: #374151; margin-bottom: 10px; text-align: left; }
.menu-options { display: flex; flex-direction: column; gap: 8px; }
.menu-card {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: 12px; border: 1px solid #e5e7eb; background: #fafafa;
    cursor: pointer; transition: all 0.2s; text-align: left;
}
.menu-card:hover { background: #eef2ff; border-color: #a5b4fc; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(99,102,241,0.1); }
.menu-card-icon { font-size: 1.8rem; width: 44px; text-align: center; }
.menu-card-title { font-weight: 600; color: #1f2937; font-size: 0.95rem; }
.menu-card-desc { font-size: 0.8rem; color: #6b7280; }

/* ===== 状态栏 ===== */
.status-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.status-bar h2 { margin: 0; font-size: 1rem; color: #2d3748; }
.status-left { display: flex; align-items: center; gap: 8px; }
.status-right { display: flex; align-items: center; gap: 12px; }
.error-count { font-size: 0.9rem; color: #dc2626; font-weight: 600; }
.hint-count { font-size: 0.9rem; color: #6366f1; font-weight: 600; }
.timer { font-size: 0.9rem; color: #374151; font-weight: 600; }

/* ===== 出题 ===== */
.create-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* ===== 题目卡片 ===== */
.card-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.puzzle-card, .my-puzzle-card {
    padding: 12px 14px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fafafa; text-align: left;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.puzzle-id { font-weight: 700; color: #6366f1; font-size: 0.9rem; }
.puzzle-size { font-size: 0.8rem; color: #6b7280; background: #f3f4f6; padding: 2px 8px; border-radius: 10px; }
.card-title { font-weight: 600; color: #1f2937; font-size: 0.9rem; margin-bottom: 2px; }
.card-author { font-size: 0.8rem; color: #6366f1; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.card-author:hover { color: #4f46e5; }
.card-stats { display: flex; gap: 12px; margin-top: 4px; font-size: 0.8rem; color: #6b7280; flex-wrap: wrap; }
.card-date { font-size: 0.75rem; color: #9ca3af; margin-top: 2px; }
.card-actions { margin-top: 8px; display: flex; gap: 8px; }
.empty-state { padding: 30px; text-align: center; color: #9ca3af; }

/* ===== 搜索栏 ===== */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }

/* ===== 统计栏 ===== */
.stats-bar {
    display: flex; justify-content: center; gap: 16px;
    padding: 8px 12px; margin-bottom: 8px;
    background: #f0f4f8; border-radius: 8px; font-size: 0.85rem; flex-wrap: wrap;
}
.stat-item { color: #374151; font-weight: 500; }