/* 班主任工作室助手样式 */
.classadvisor-pro-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.security-header { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 10px; margin-bottom: 20px; font-size: 14px; }
.ca-section { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.ca-section h3 { margin-top: 0; color: #333; font-size: 18px; }
.ca-section h3 .icon { margin-right: 8px; }
.form-row { margin-bottom: 15px; }
.form-row label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-row input[type="text"], .form-row select, .form-row textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-row textarea { resize: vertical; }
.content-stats { text-align: right; font-size: 12px; color: #999; margin-top: 5px; }
.duplicate-check.status-waiting { color: #ff9800; }
.duplicate-check.status-ok { color: #4caf50; }
.duplicate-check.status-error { color: #f44336; }
.upload-zone { border: 2px dashed #ccc; padding: 30px; text-align: center; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.upload-zone:hover { border-color: #4caf50; background: #f9f9f9; }
.upload-prompt p { margin: 5px 0; color: #666; }
.upload-meta { font-size: 12px; color: #999; }
.privacy-note { color: #ff9800 !important; font-size: 12px; }
.upload-preview { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.preview-item { width: 100px; height: 100px; border-radius: 4px; overflow: hidden; position: relative; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove { position: absolute; top: 0; right: 0; background: rgba(255,0,0,0.7); color: white; width: 20px; height: 20px; line-height: 20px; text-align: center; cursor: pointer; }
.inspiration-box { background: #fff8e1; border-color: #ffcc80; }
.inspiration-content { background: white; padding: 15px; border-radius: 4px; margin-bottom: 15px; border-left: 4px solid #ff9800; }
.form-actions { display: flex; gap: 15px; align-items: center; justify-content: center; margin-top: 30px; }
.ca-submit-btn { background: #4caf50; color: white; border: none; padding: 12px 40px; font-size: 16px; border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.ca-submit-btn:hover { background: #45a049; }
.ca-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ca-view-link { color: #666; text-decoration: none; }
.ca-view-link:hover { color: #4caf50; }
.security-footer { text-align: center; margin-top: 20px; color: #999; font-size: 12px; }

/* Dashboard */
.classadvisor-dashboard { max-width: 1000px; margin: 0 auto; padding: 20px; }
.ca-dimension-nav { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.ca-dimension-nav a { padding: 10px 20px; text-decoration: none; color: #666; border-radius: 4px; transition: all 0.3s; display: flex; align-items: center; gap: 5px; }
.ca-dimension-nav a.active { background: #4caf50; color: white; }
.ca-dimension-nav a:hover:not(.active) { background: #f5f5f5; }
.view-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.view-header h2 { margin: 0 0 10px 0; color: #333; }
.view-meta { color: #666; font-size: 14px; }
.year-selector { margin-top: 15px; }
.year-selector a { display: inline-block; padding: 5px 15px; margin-right: 10px; text-decoration: none; color: #666; border: 1px solid #ddd; border-radius: 4px; }
.year-selector a.active { background: #4caf50; color: white; border-color: #4caf50; }

/* Timeline */
.ca-timeline { position: relative; padding-left: 30px; }
.timeline-month { margin-bottom: 40px; }
.month-marker { display: flex; align-items: center; margin-bottom: 20px; color: #666; }
.month-number { width: 40px; height: 40px; background: #4caf50; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 10px; }
.month-name { font-size: 18px; font-weight: 600; }
.month-stories { padding-left: 50px; }
.story-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.story-card.key-moment { border-left: 4px solid #ff9800; background: #fffbf0; }
.key-badge { position: absolute; top: -10px; right: 20px; background: #ff9800; color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; }
.story-meta { margin-bottom: 15px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.story-meta time { color: #999; font-size: 14px; }
.chip { padding: 3px 10px; border-radius: 12px; font-size: 12px; background: #e3f2fd; color: #1976d2; }
.chip.student-chip { background: #f3e5f5; color: #7b1fa2; }
.story-content { line-height: 1.8; color: #333; }
.evidence-gallery { display: flex; gap: 10px; margin: 15px 0; flex-wrap: wrap; }
.evidence-gallery figure { margin: 0; width: 150px; position: relative; }
.evidence-gallery img { width: 150px; height: 150px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.evidence-gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; font-size: 11px; padding: 4px; text-align: center; }
.inspiration-reflection { background: #e8f5e9; padding: 15px; border-radius: 4px; margin-top: 15px; border-left: 4px solid #4caf50; }
.story-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; }
.content-hash { font-family: monospace; }

/* Students View */
.students-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.student-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; text-align: center; transition: all 0.3s; }
.student-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.student-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 15px; }
.student-card h3 { margin: 0 0 5px 0; color: #333; }
.student-group { color: #666; font-size: 14px; margin-bottom: 15px; }
.student-stats { display: flex; justify-content: space-around; margin: 15px 0; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stat strong { display: block; font-size: 24px; color: #4caf50; }
.stat { font-size: 12px; color: #999; }
.latest-story { text-align: left; font-size: 14px; color: #666; font-style: italic; margin: 15px 0; }
.latest-story time { display: block; text-align: right; font-size: 12px; color: #999; margin-top: 5px; font-style: normal; }
.view-timeline { display: inline-block; margin-top: 10px; color: #4caf50; text-decoration: none; font-weight: 600; }

/* Themes */
.themes-cloud { display: flex; flex-wrap: wrap; gap: 15px; padding: 20px; justify-content: center; }
.theme-tag { background: white; border: 2px solid #e0e0e0; border-radius: 30px; padding: 10px 20px; display: flex; align-items: center; gap: 8px; transition: all 0.3s; cursor: default; }
.theme-tag:hover { border-color: #4caf50; transform: scale(1.05); }
.theme-count { background: #4caf50; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }

/* Stages */
.stage-indicator { background: white; border-radius: 8px; padding: 30px; text-align: center; }
.stage-current { margin-bottom: 30px; }
.stage-badge { display: inline-block; padding: 15px 30px; border-radius: 30px; font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.stage-badge.stage-narrative { background: #e3f2fd; color: #1976d2; }
.stage-badge.stage-argument { background: #fff3e0; color: #f57c00; }
.stage-badge.stage-essay { background: #e8f5e9; color: #388e3c; }
.stage-badge.stage-poetic { background: #f3e5f5; color: #7b1fa2; }
.stage-desc { color: #666; font-size: 16px; }
.stage-progress { margin: 30px 0; }
.progress-bar { height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #4caf50, #8bc34a); transition: width 0.5s; }
.stages-timeline { display: flex; justify-content: space-between; margin-top: 40px; position: relative; }
.stages-timeline::before { content: ""; position: absolute; top: 20px; left: 10%; right: 10%; height: 4px; background: #e0e0e0; z-index: 0; }
.stage-item { position: relative; z-index: 1; background: white; padding: 0 10px; text-align: center; width: 20%; }
.stage-item h4 { margin: 10px 0 5px 0; color: #999; }
.stage-item p { margin: 0; font-size: 12px; color: #bbb; }
.stage-item.active h4 { color: #4caf50; font-weight: bold; }
.stage-item.active p { color: #666; }

/* Floating Actions */
.ca-floating-actions { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.3s; }
.fab-write { background: #4caf50; color: white; }
.fab-top { background: white; color: #666; }
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* Dashboard */
.ca-dashboard { max-width: 800px; margin: 0 auto; padding: 20px; }
.dashboard-header { text-align: center; margin-bottom: 40px; }
.dashboard-header h1 { color: #333; margin-bottom: 10px; }
.motto { color: #666; font-style: italic; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; text-align: center; }
.stat-number { font-size: 36px; font-weight: bold; color: #4caf50; line-height: 1; margin-bottom: 5px; }
.stat-label { color: #666; font-size: 14px; }
.quick-actions { display: flex; gap: 20px; justify-content: center; }
.action-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 4px; text-decoration: none; font-size: 16px; transition: all 0.3s; }
.btn-primary { background: #4caf50; color: white; }
.btn-primary:hover { background: #45a049; }
.btn-secondary { background: white; color: #333; border: 2px solid #ddd; }
.btn-secondary:hover { border-color: #4caf50; color: #4caf50; }

/* Login Prompt */
.ca-login-prompt { text-align: center; padding: 60px 20px; background: #f5f5f5; border-radius: 8px; }
.ca-btn { display: inline-block; padding: 10px 30px; background: #4caf50; color: white; text-decoration: none; border-radius: 4px; margin-top: 15px; }
.ca-empty-state { text-align: center; padding: 60px 20px; color: #999; }

/* Responsive */
@media (max-width: 768px) {
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .month-stories { padding-left: 20px; }
    .ca-dimension-nav { flex-wrap: wrap; }
    .students-grid { grid-template-columns: 1fr; }
}