/* AE培训工具平台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #2c3e50; line-height: 1.6; }

.navbar { background: #2c3e50; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.nav-brand a { color: #fff; text-decoration: none; font-weight: bold; font-size: 18px; }
.nav-links a { color: #ecf0f1; margin-left: 20px; text-decoration: none; }
.nav-links a:hover { color: #3498db; }

.container { max-width: 1200px; margin: 24px auto; padding: 0 24px; }

.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 36px; color: #2c3e50; }
.hero .subtitle { color: #7f8c8d; margin-top: 8px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.tool-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.tool-card:hover { transform: translateY(-4px); }
.tool-icon { font-size: 36px; margin-bottom: 12px; }
.tool-card h3 { color: #2c3e50; margin-bottom: 8px; }
.tool-card p { color: #7f8c8d; font-size: 14px; margin-bottom: 16px; }
.tool-status { font-size: 12px; margin-bottom: 12px; }
.status-active { color: #27ae60; }
.status-dev { color: #f39c12; }

.btn { display: inline-block; padding: 8px 20px; background: #3498db; color: #fff; text-decoration: none; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; }
.btn:hover { background: #2980b9; }
.btn-primary { background: #3498db; }
.btn-disabled { background: #bdc3c7; cursor: not-allowed; pointer-events: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-card { background: #fff; border-radius: 8px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stat-value { font-size: 28px; font-weight: bold; color: #2c3e50; }
.stat-label { font-size: 12px; color: #95a5a6; margin-top: 4px; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.action-card { background: #fff; border-radius: 8px; padding: 20px; text-decoration: none; color: #2c3e50; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.2s; }
.action-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.action-card h3 { color: #3498db; margin-bottom: 6px; }
.action-card p { color: #7f8c8d; font-size: 13px; }

.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.form-row label { min-width: 100px; font-size: 14px; }
.form-row input, .form-row select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-group textarea { resize: vertical; }

.mode-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab-btn { padding: 8px 20px; background: #ecf0f1; border: none; border-radius: 6px; cursor: pointer; }
.tab-btn.active { background: #3498db; color: #fff; }

.question-card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.q-header { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.q-seq { font-weight: bold; color: #2c3e50; }
.q-meta { font-size: 12px; color: #95a5a6; }
.q-text { margin-bottom: 12px; }
.q-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.q-table th, .q-table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.q-table th { background: #f8f9fa; }
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #eee; border-radius: 4px; cursor: pointer; }
.q-option:hover { background: #f8f9fa; }
.q-input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.q-textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.q-answer { margin-top: 8px; padding: 8px; background: #e8f5e9; border-radius: 4px; font-size: 14px; color: #27ae60; }

.result-card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; }
.score-big { font-size: 48px; margin: 20px 0; }
.score-obtained { color: #3498db; font-weight: bold; }
.score-total { color: #95a5a6; }
.weak-points { background: #fff3cd; border-radius: 8px; padding: 16px; margin: 20px 0; text-align: left; }
.weak-points h3 { color: #856404; margin-bottom: 8px; }
.weak-points ul { list-style: inside; color: #856404; }
.success-msg { background: #d4edda; border-radius: 8px; padding: 16px; color: #155724; }

.items-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.items-table th, .items-table td { border: 1px solid #ddd; padding: 8px; }
.items-table th { background: #f8f9fa; }
.items-table .correct { color: #27ae60; }
.items-table .wrong { color: #e74c3c; }

.qbank-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.qbank-table th, .qbank-table td { border: 1px solid #ddd; padding: 8px; font-size: 14px; }
.qbank-table th { background: #f8f9fa; }

.filter-form { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.filter-form select, .filter-form input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; }

.warn { color: #f39c12; padding: 8px; background: #fff3cd; border-radius: 4px; margin: 8px 0; }
.error { color: #e74c3c; padding: 12px; background: #f8d7da; border-radius: 4px; margin: 12px 0; }
.success { color: #155724; padding: 12px; background: #d4edda; border-radius: 4px; margin: 12px 0; }

.paper-list { list-style: inside; }
.footer { text-align: center; padding: 20px; color: #95a5a6; font-size: 13px; }
