/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #f5f7fa;
}

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

/* 使用 UIkit 宽容器 */
.uk-container-large {
  max-width: 1400px;
}

.uk-container-xlarge {
  max-width: 1600px;
}

/* 头部 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header .container,
.header .uk-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 123px;
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 10px;
  width: auto;
  height: 72px;
}

.logo h1 {
  font-size: 24px;
  color: #BE9F57;
  font-weight: bold;
  margin: 0;
  display: inline-block;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-left: 35px;
  position: relative;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav a:hover {
  color: #BE9F57;
  transform: translateY(-2px);
}

.nav a.active {
  color: #BE9F57;
  font-weight: 600;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #BE9F57;
  border-radius: 3px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    left: 50%;
  }
  to {
    width: 100%;
    left: 0;
  }
}

#login-btn {
  padding: 8px 20px;
  background-color: #BE9F57;
  color: #fff;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(190, 159, 87, 0.3);
  /* 文本溢出处理 */
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

#login-btn:hover {
  background-color: #CDB06A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 159, 87, 0.4);
}

/* 轮播图 */
.swiper-container {
  width: 100%;
  height: 500px;
  margin-top: 0;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播图按钮样式调整 - 横向居中 */
.swiper-button-prev,
.swiper-button-next {
  top: 50% !important;
  transform: translateY(-50%);
  --swiper-navigation-color: #fff;
}

.swiper-button-prev {
  left: 20px !important;
}

.swiper-button-next {
  right: 20px !important;
}

/* 功能模块 */
.modules {
  padding: 60px 0;
}

.modules h2 {
  text-align: center;
  font-size: 28px;
  color: #333;
  margin-bottom: 40px;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.module-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.module-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.module-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.module-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.module-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.module-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 底部 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #BE9F57;
}

.copyright {
  font-size: 12px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .module-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav li {
    margin-left: 20px;
  }
}

@media (max-width: 992px) {
  .header .container,
  .header .uk-container {
    padding: 0 20px;
  }

  .nav li {
    margin-left: 25px;
  }

  .logo h1 {
    font-size: 20px;
  }

  .logo h1::before {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .header .container,
  .header .uk-container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    align-items: center;
  }

  .logo {
    margin-bottom: 15px;
  }

  .nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
  }

  .nav li {
    margin: 0 5px;
  }

  .nav a {
    font-size: 14px;
    padding: 8px 0;
  }

  #login-btn {
    margin-top: 15px;
    padding: 6px 16px;
  }

  .swiper-container {
    height: 300px;
  }

  .module-list {
    grid-template-columns: 1fr;
  }

  .modules h2 {
    font-size: 24px;
  }
}

/* 通用按钮样式 */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #CDB06A;
}

.btn-success {
  background-color: #52c41a;
  color: #fff;
}

.btn-success:hover {
  background-color: #73d13d;
}

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

.btn-danger:hover {
  background-color: #ff7875;
}

.btn-default {
  background-color: #fff;
  color: #333;
  border: 1px solid #d9d9d9;
}

.btn-default:hover {
  border-color: #BE9F57;
  color: #BE9F57;
}

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

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

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #BE9F57;
  box-shadow: 0 0 0 2px rgba(190, 159, 87, 0.2);
}

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

.card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* 页面容器 */
.page-container {
  padding: 30px 0;
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #BE9F57;
  text-decoration: none;
}

.breadcrumb span {
  color: #666;
  margin: 0 5px;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

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

.table th {
  background-color: #fafafa;
  font-weight: 500;
  color: #333;
}

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

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination li {
  list-style: none;
  margin: 0 5px;
}

.pagination a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: #BE9F57;
  color: #BE9F57;
}

.pagination .active a {
  background-color: #BE9F57;
  color: #fff;
  border-color: #BE9F57;
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

/* 提示信息 */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.alert-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

.alert-danger {
  background-color: #fff1f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.alert-info {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #BE9F57;
}

/* 即将上线模块 */
.module-coming-soon {
  opacity: 0.75;
  cursor: not-allowed;
  position: relative;
}

.module-coming-soon a {
  pointer-events: none;
}

.coming-soon-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  background-color: #f0f0f0;
  color: #999;
  border-radius: 20px;
  font-size: 12px;
}

.module-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  margin-bottom: 20px;
}
