﻿/* 基础样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 头部 + Hero 区域 */
.hero {
  position: relative;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 150px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* 顶部导航栏 */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: transparent;
  z-index: 10;
}

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

.header .logo a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

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

.header .nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.header .auth {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header .auth a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.header .btn-publish {
  background: #f99e28;
  color: #6a11cb;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

/* 轮播图 */
.carousel {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel .slide.active {
  opacity: 1;
}

.carousel h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.carousel p {
  font-size: 18px;
}

.carousel .indicators {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 10px;
}

.carousel .indicator {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.carousel .indicator.active {
  opacity: 1;
}

/* 搜索框 */
.search-box {
  position: relative;
  z-index: 5;
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.search-box input {
  width: 400px;
  padding: 10px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
}

.search-box button {
  background: #ff7e5f;
  border: none;
  padding: 10px 20px;
  border-radius: 0 25px 25px 0;
  color: #fff;
  cursor: pointer;
}

/* 其他部分保持不变 */


/* 信息分类 */
.categories {
  padding: 50px 0;
  background: #fff;
}

.categories h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, background 0.3s;
}

.category-card i {
  font-size: 40px;
  color: #6a11cb;
}

.category-card span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.category-card:hover {
  transform: translateY(-5px);
  background: #e0e0e0;
}

/* 最新信息 */
.latest {
  padding: 50px 0;
  background: #f5f5f5;
}

.latest h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-card img {
  width: 100%;
  border-radius: 10px;
}

.info-card h3 {
  margin: 15px 0;
  font-size: 20px;
}

.info-card p {
  color: #ff7e5f;
  font-size: 18px;
}

.info-card .location {
  color: #777;
  font-size: 14px;
}

/* 底部导航 */
.footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

.social-media a {
  color: #fff;
  font-size: 24px;
  margin: 0 10px;
}

.footer p {
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
}
