* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

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

/* 导航 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 30px;
}

.navbar-brand {
  font-size: 18px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: 8px;
  list-style: none;
}

.navbar-nav a {
  display: block;
  padding: 8px 16px;
  color: #555;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: #e8f0fe;
  color: #1a73e8;
}

/* 页面标题 */
.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #202124;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #202124;
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.form-select,
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-file {
  width: 100%;
  padding: 10px;
  border: 1px dashed #dadce0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-primary:hover {
  background: #1557b0;
}

.btn-primary:disabled {
  background: #9ab8e8;
  cursor: not-allowed;
}

.btn-danger {
  background: #ea4335;
  color: #fff;
}

.btn-danger:hover {
  background: #c5221f;
}

.btn-secondary {
  background: #f1f3f4;
  color: #555;
}

.btn-secondary:hover {
  background: #e0e3e6;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e8eaed;
}

.table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
}

.table tr:hover {
  background: #f8f9fa;
}

.table tr:last-child td {
  border-bottom: none;
}

/* 视频播放器 */
.video-player {
  width: 200px;
  border-radius: 6px;
  background: #000;
}

/* 状态提示 */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.alert-error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

.alert-info {
  background: #e8f0fe;
  color: #1967d2;
  border: 1px solid #d2e3fc;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-text {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 评分输入 */
.score-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.score-input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.score-input:disabled {
  background: #f1f3f4;
  color: #999;
}

/* 综合成绩高亮 */
.final-score {
  font-weight: 700;
  font-size: 16px;
  color: #1a73e8;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .navbar-inner {
    gap: 15px;
  }

  .navbar-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .card {
    padding: 16px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
    font-size: 13px;
  }

  .video-player {
    width: 120px;
  }
}
