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

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

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

/* 头部背景 */
.header-bg {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Minecraft%20cherry%20blossom%20landscape%20with%20river%20and%20trees%20in%20spring%20season&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
}

.header-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.header-content-bg {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.header-content-bg h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content-bg p {
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 头部 */
header {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: #333;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

nav ul li a:hover {
  background-color: rgba(33, 150, 243, 0.1);
  transform: translateY(-2px);
  color: #2196F3;
}

/* 主内容 */
main {
  padding: 60px 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f5f5 0%, #e3f2fd 100%);
}

/* 卡片 */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card h2 {
  margin-bottom: 25px;
  color: #2196F3;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #2196F3;
  border-radius: 2px;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

th {
  background-color: #2196F3;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:hover td {
  background-color: #f5f5f5;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background-color: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
  background-color: #2196F3;
  box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.btn-secondary:hover {
  background-color: #0b7dda;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-danger {
  background-color: #f44336;
  box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
  background-color: #da190b;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* 表单 */
form {
  margin-top: 20px;
}

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

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

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* 菜单按钮 - 默认隐藏（桌面端） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  padding: 5px 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* 响应式 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
  
  /* 移动端菜单按钮 */
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    text-align: center;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  nav ul li a {
    padding: 6px 10px;
    font-size: 14px;
    display: block;
    width: 100%;
  }
  
  nav ul li a.admin-login {
    background-color: #2196F3;
    color: white;
    border-radius: 15px;
    margin: 3px auto;
    width: fit-content;
    padding: 6px 15px;
    font-size: 13px;
  }
  
  /* 响应式表格 */
  .card {
    padding: 20px;
  }
  
  .card h2 {
    font-size: 24px;
  }
  
  table {
    font-size: 12px;
    overflow-x: auto;
    display: block;
  }
  
  th, td {
    padding: 6px;
    min-width: 80px;
  }
  
  /* 头部背景 */
  .header-bg {
    height: 300px;
  }
  
  .header-content-bg h1 {
    font-size: 36px;
  }
  
  .header-content-bg p {
    font-size: 16px;
  }
  
  /* 按钮 */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* 主内容 */
  main {
    padding: 40px 0;
  }
  
  /* 底部 */
  footer {
    padding: 15px 0;
    font-size: 14px;
  }
  
  main {
    padding-bottom: 70px;
  }
}

/* 页脚 */
footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
}

/* 主内容区添加底部 padding，避免被固定底栏遮挡 */
main {
  padding-bottom: 80px;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-pending {
  background-color: #ffc107;
  color: #333;
}

.status-processing {
  background-color: #2196F3;
  color: white;
}

.status-completed {
  background-color: #2196F3;
  color: white;
}

.status-canceled {
  background-color: #f44336;
  color: white;
}

/* 导航栏激活状态 */
nav ul li a.active {
  background-color: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

/* 管理员登录入口样式 */
nav ul li a.admin-login {
  background-color: #2196F3;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav ul li a.admin-login:hover {
  background-color: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

/* 评论表单样式 */
.comment-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.comment-form h3 {
  color: #2196F3;
  margin-bottom: 15px;
  font-size: 20px;
}

/* 评论列表样式 */
.comment-list {
  margin-top: 20px;
}

.comment-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #2196F3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-item .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-item .comment-username {
  font-weight: 600;
  color: #2196F3;
  font-size: 16px;
}

.comment-item .comment-time {
  font-size: 12px;
  color: #999;
}

.comment-item .comment-content {
  line-height: 1.6;
  color: #333;
}

/* 无评论提示 */
.no-comments {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-top: 20px;
}

/* 文本域样式 */
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  resize: vertical;
  min-height: 100px;
}