:root {
  --primary-green: #2ecc71;
  --secondary-green: #27ae60;
  --dark-green: #1e8449;
  --light-green: #d4efdf;
  --background-color: #f4fcf7;
  --text-color: #2c3e50;
  --white: #ffffff;
  --gray: #bdc3c7;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* 整体布局 */
.t-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 60px 1fr;
  min-height: 100vh;
}

/* 头部 */
.header {
  grid-column: 1 / -1;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
  z-index: 100;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo i {
  font-size: 24px;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.header-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 侧边栏 */
.sidebar {
  background-color: var(--white);
  padding: 20px 0;
  border-right: 1px solid var(--gray);
  overflow-y: auto;
}

.sidebar-menu {
  list-style-type: none;
}

.sidebar-menu-item {
  margin-bottom: 5px;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  padding: 12px 20px;
  gap: 12px;
  transition: var(--transition);
}

.sidebar-menu-item a:hover {
  background-color: var(--light-green);
}

.sidebar-menu-item.active a {
  background-color: var(--light-green);
  color: var(--primary-green);
  font-weight: 600;
}

/* 主内容区域 */
.main-content {
  padding: 20px;
  overflow-y: auto;
}

.section {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--dark-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 按钮 */
.btn {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--secondary-green);
}

.btn-secondary {
  background-color: var(--light-green);
  color: var(--dark-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

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

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray);
}

.table th {
  background-color: var(--light-green);
  color: var(--dark-green);
  font-weight: 600;
}

.table tr:hover {
  background-color: #f9f9f9;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-green);
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .t-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto 1fr;
  }

  .sidebar {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--gray);
  }

  .sidebar-menu {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .sidebar-menu-item span {
    display: none;
  }
}
/* ... 已有代码 ... */

/* 调整按钮组和搜索框容器之间的间距 */
.flex.justify-between.items-center.mb-4 {
  gap: 2rem; /* 增加间距 */
}

/* 缩小搜索框宽度 */
.relative.w-64 {
  width: 20rem; /* 调整宽度，可根据实际需求修改 */
}

/* ... 邮箱样式 ... */
/* ... 已有代码 ... */

.newsletter {
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
}

.newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-green);
}

.newsletter p {
  color: var(--text-color);
  margin-bottom: 2rem;
}

#newsletter-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

#newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

#newsletter-form button {
  padding: 10px 20px;
}
/* ... 已有代码 ... */

.newsletter-form {
  gap: 2rem !important; /* 使用 !important 提高优先级 */
}

/* ... 已有代码 ... */

/* ... 已有代码 ... */