/* 基础样式重置 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a1a;
  --primary-hover: #000000;
  --primary-light: rgba(26, 26, 26, 0.1);
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #333333;
  --muted: #f5f5f5;
  --muted-foreground: #666666;
  --background: #ffffff;
  --foreground: #333333;
  --border: #eaeaea;
  --radius: 0.5rem;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* 顶部栏 */
.top-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.auth-links {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.auth-link {
  color: var(--primary-foreground);
  transition: opacity 0.3s;
}

.auth-link:hover {
  opacity: 0.8;
}

.divider {
  color: rgba(255, 255, 255, 0.6);
}

/* 头部导航 */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: bold;
}

.logo-icon {
  color: var(--primary);
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
  }
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 12.5rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.625rem);
  transition: all 0.3s;
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}

.dropdown-menu a:hover {
  background-color: var(--muted);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn,
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover,
.mobile-menu-btn:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 移动菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 20rem;
  height: 100vh;
  background-color: var(--background);
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  color: var(--foreground);
  transition: color 0.3s;
}

.mobile-menu-close:hover {
  color: var(--primary);
}

.mobile-nav {
  padding: 1rem;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-icon {
  transition: transform 0.3s;
}

.mobile-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  padding-left: 1rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-dropdown-menu a {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-menu li:last-child a {
  border-bottom: none;
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.search-panel.active {
  opacity: 1;
  visibility: visible;
}

.search-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-panel-header h3 {
  color: var(--primary-foreground);
  font-size: 1.5rem;
}

.search-panel-close {
  color: var(--primary-foreground);
  transition: color 0.3s;
}

.search-panel-close:hover {
  color: var(--primary);
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: none;
  border-radius: var(--radius);
  background-color: var(--background);
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--foreground);
  transition: color 0.3s;
}

.search-submit:hover {
  color: var(--primary);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* 轮播Banner */
.banner-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
}

.carousel-track {
  position: relative;
  height: 31.25rem;
}

@media (max-width: 768px) {
  .carousel-track {
    height: 25rem;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 0;
  color: var(--primary-foreground);
  z-index: 2;
}

.slide-content h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  max-width: 50rem;
}

.slide-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  max-width: 37.5rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .slide-content h1 {
    font-size: 3rem;
  }

  .slide-content p {
    font-size: 1.25rem;
  }
}

.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--primary-foreground);
}

/* 章节标题 */
section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--muted-foreground);
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

.view-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.view-more:hover {
  color: var(--primary);
}

/* 热门动态 */
.hot-news {
  background-color: var(--background);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--background);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: var(--shadow-hover);
}

.news-image {
  position: relative;
  height: 12.5rem;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.category {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(26, 26, 26, 0.8);
  color: var(--primary-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  z-index: 2;
}

.news-content {
  padding: 1rem;
}

.news-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content h3 a:hover {
  color: var(--primary);
}

.date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* 第二行热门动态 - 不同布局 */
.news-featured {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-featured {
    grid-template-columns: 1fr 1fr;
  }
}

.news-card.featured {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .news-card.featured {
    flex-direction: row;
    height: 100%;
  }

  .news-card.featured .news-image {
    width: 50%;
    height: auto;
  }

  .news-card.featured .news-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.news-card.featured .news-content {
  padding: 1.5rem;
}

.news-card.featured h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.summary {
  color: var(--muted-foreground);
  margin: 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.featured-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) and (max-width: 767px) {
  .featured-side {
    grid-template-columns: 1fr 1fr;
  }
}

.news-card.small .news-image {
  height: 10rem;
}

.news-card.small h3 {
  font-size: 0.875rem;
}

/* 特色栏目展示 */
.featured-programs {
  background-color: var(--muted);
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 18.75rem;
}

.program-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.program-card:hover .program-image img {
  transform: scale(1.1);
}

.program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.program-card:hover .program-overlay {
  opacity: 0.9;
}

.program-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  color: var(--primary-foreground);
  z-index: 2;
}

.program-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.program-content p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* 政策与企业动态 */
.policy-news {
  background-color: var(--background);
}

.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--background);
}

.tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
}

.tabs-nav {
  display: flex;
}

.tab-btn {
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  padding: 1.5rem;
}

.tab-content.active {
  display: block;
}

.news-list ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.news-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.news-list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.news-list .title {
  flex: 1;
  font-size: 1rem;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list a:hover .title {
  color: var(--primary);
}

.news-list .date {
  white-space: nowrap;
}

/* 项目立项 */
.projects {
  background-color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--background);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: var(--shadow-hover);
}

.project-image {
  position: relative;
  height: 12.5rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-type {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(26, 26, 26, 0.8);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  z-index: 2;
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-content h3 a:hover {
  color: var(--primary);
}

/* 产业布局 */
.industry-layout {
  background-color: var(--background);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .layout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.layout-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 13.75rem;
}

.layout-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.layout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.layout-card:hover .layout-image img {
  transform: scale(1.1);
}

.layout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.layout-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: var(--primary-foreground);
  z-index: 2;
}

.layout-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.layout-link {
  color: var(--primary-foreground);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* 数据统计 */
.statistics {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* 合作伙伴 */
.partners {
  background-color: var(--background);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

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

.partner-logo img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* 页脚 */
.footer {
  background-color: #222;
  color: var(--primary-foreground);
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.625rem;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background-color: var(--primary);
}

.footer-column p,
.footer-column address p {
  color: #aaa;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #aaa;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-foreground);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #333;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.875rem;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
}

/* 查询页面样式 */
.page-title {
  background-color: var(--muted);
  padding: 2rem 0;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb a {
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.separator {
  display: flex;
  align-items: center;
  margin: 0 0.5rem;
}

/* 详情页面样式 */
.detail-section {
  padding: 3rem 0;
}

.detail-article {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 2rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1.5rem 0 1rem 0;
  color: var(--primary);
}

.article-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem 0;
}

.article-content p {
  margin-bottom: 1rem;
}

.related-content {
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.related-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.related-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.related-title {
  flex: 1;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.related-list a:hover .related-title {
  color: var(--primary);
}

.related-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.article-actions {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
