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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* 头部样式 */
header {
  background-color: #333;
  color: #fff;
  padding: 5px 0;
  margin-bottom: 5px;
}

header h1 {
  text-align: center;
  font-size: 24px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  font-family: Arial, sans-serif;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

nav a:hover {
  text-decoration: underline;
}

nav span {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: normal;
}

/* 表单样式 */
.form-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.form-group button {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
}

.form-group button:hover {
  background-color: #555;
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: #333;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}

table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

/* 订单表格样式 */
.order-table {
  table-layout: fixed;
}

.order-table th:nth-child(1), /* 编号 */
.order-table td:nth-child(1) {
  width: 100px;
}

.order-table th:nth-child(2), /* 创建时间 */
.order-table td:nth-child(2) {
  width: 150px;
}

.order-table th:nth-child(3), /* 样片 */
.order-table td:nth-child(3) {
  width: 150px;
}

.order-table th:nth-child(4), /* 时长 */
.order-table td:nth-child(4) {
  width: 80px;
}

.order-table th:nth-child(5), /* 顾客姓名 */
.order-table td:nth-child(5) {
  width: 150px;
}

.order-table th:nth-child(6), /* 制作类别 */
.order-table td:nth-child(6) {
  width: 100px;
}

.order-table th:nth-child(7), /* 回件时间 */
.order-table td:nth-child(7) {
  width: 120px;
}

.order-table th:nth-child(8), /* 生产状态 */
.order-table td:nth-child(8) {
  width: 150px;
}

.order-table th:nth-child(9), /* 操作 */
.order-table td:nth-child(9) {
  width: 200px;
}

/* 排序样式 */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: #e9ecef;
}

.sort-indicator {
  margin-left: 5px;
  font-size: 16px;
  color: #28a745;
  font-weight: 900;
  text-shadow: 0 0 1px rgba(0,0,0,0.3);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0 16px;
  height: 30px;
  width: 60px;
  background-color: #ff9800;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  margin-right: 10px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 30px;
  border: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

.btn:hover {
  background-color: #ffb74d;
  color: #fff;
}

.btn-primary {
  background-color: #007bff;
}

.btn-success {
  background-color: #28a745;
}

.btn-danger {
  background-color: #dc3545;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .form-container {
    padding: 20px;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 8px;
  }
}

/* 消息提示 */
.message {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 3px;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed #ddd;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 5px;
}

.upload-area:hover {
  border-color: #333;
}

/* 视频预览 */
.video-preview {
  margin-top: 20px;
}

.video-preview video {
  max-width: 100%;
  border-radius: 5px;
}

/* 仪表盘统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-card h4 {
  margin-bottom: 10px;
  color: #666;
}

.stat-card .value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* 照片类型选择 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 20px;
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
}

.checkbox-item label {
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

/* 照片容器和照片项 */
.photos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.photo-item {
  margin: 0;
  padding: 0;
}

.photo-item img {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  max-width: 100%;
  height: auto;
}