/* 基础样式 - 苹果风格 */
:root {
  --primary-color: #007aff;
  --secondary-color: #5ac8fa;
  --success-color: #34c759;
  --warning-color: #ff9500;
  --danger-color: #ff3b30;
  --light-color: #f2f2f7;
  --dark-color: #1c1c1e;
  --gray-color: #8e8e93;
  --border-radius: 10px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f9f9f9;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

/* 导航样式 */
nav {
  margin-bottom: 30px;
}

nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

nav .nav-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

nav .nav-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

nav .nav-item .icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  fill: currentColor;
}

/* 主内容区域 */
main {
  min-height: calc(100vh - 300px);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0062cc;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background-color: #d9342a;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #2db148;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid #d1d1d6;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e5ea;
}

.table th {
  font-weight: 600;
  color: var(--gray-color);
}

.table tbody tr:hover {
  background-color: #f7f7f7;
}

/* 仪表盘样式 */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 24px;
  text-align: center;
}

.dashboard-card h2 {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 12px;
}

.dashboard-card .count {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 20px 0;
  color: var(--gray-color);
  margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  
  nav .nav-item {
    border-bottom: 1px solid #e5e5ea;
  }
  
  nav .nav-item:last-child {
    border-bottom: none;
  }
} 