﻿
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-light: #e0f2fe;
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --accent-light: #fef3c7;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #334155;
  --text-gray: #6b7280;
  --text-light: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --light-bg: #f8fafc;
  --card-width: 130px;
  --card-height: 160px;
  --section-title-bg: rgba(255, 255, 255, 0.9);
  --card-gap: 1rem;
}
/* 去除所有链接下划线 */
a {
  text-decoration: none !important;
}

/* 如果需要，可以为特定状态的链接保留效果 */
a:hover, a:focus, a:active {
  text-decoration: none !important;
  /* 可以添加其他悬停效果替代下划线 */
  color: var(--accent-dark);
  /* 例如添加底部边框替代下划线 */
  /* border-bottom: 1px solid var(--accent); */
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--text);
  min-height: 100vh;
}

/* ===== 头部导航 ===== */
header {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.1rem 0;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.logo-text.show {
  opacity: 1;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 150;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== 导航菜单优化 ===== */
.nav-menu {
  display: flex;
  gap: 1rem;
  z-index: 110;
  list-style: none;
}

.nav-item {
  position: relative;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-item:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active::before {
  transform: scaleX(1);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 110;
}

.user-info {
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  color: white;
}

.user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

.btn {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 5px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===== 主内容区优化 ===== */
main {
  padding: 2rem 1rem;
  background: var(--light-bg);
  min-height: calc(100vh - 120px);
margin: auto;
}

.main-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 标题样式优化 */
.section-title {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 1.5rem 0;
  font-weight: 700;
  position: relative;
  padding: 0.4rem;
  border-radius: 8px;
  background: var(--section-title-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  /*gap: 12px;*/
}

.section-title span {
  color: var(--accent);
  font-size: 1.2em;
}

/* ===== 卡片布局优化 ===== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
  gap: var(--card-gap);
  justify-content: center;
  margin: 1.5rem 0;
}

/* 卡片样式优化 */
.card {
  width: 100%;
  height: var(--card-height);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* 图片容器优化 */
/* ===== 卡片图片修正 ===== */
.card-img {
  width: 100%;
  height: calc(var(--card-height) - 30px);
  min-height: 100px;
  padding: 0; /* 移除内边距 */
  background: transparent; /* 清除背景 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px 10px 0 0;
  display: block; /* 确保显示 */
  opacity: 1 !important; /* 临时强制显示 */
  position: relative;
  z-index: 2; /* 确保在伪元素之上 */
}

/* 暂时禁用所有可能影响显示的样式 */
.card-img::before,
.card-img::after {
  display: none !important;
}

/* 移除过渡效果测试 */
.card-img img {
  transition: none !important;
  transform: none !important;
}



/* 卡片内容优化 */
.card-content {
  padding: 0.1rem 0.6rem;
  background: white;
  flex-grow: 0;
  height: auto;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.6em;
}

/* ===== 页脚部分 ===== */
footer {
  background: linear-gradient(to right, var(--primary-dark), #0c4a6e);
  color: white;
  padding: 1rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.company-info {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.3rem;
  text-align: left;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  /*display: flex;*/
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: flex-start;
  padding: 0;
}

.footer-link {
  display: inline-block;
  /*padding: 0.5rem 1rem;*/
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s;
  font-size: 0.9rem;
  /*background: rgba(255, 255, 255, 0.1);*/
  /*border-radius: 20px;*/
  /*min-width: 100px;*/
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.footer-link a {
  color: white;
}


.copyright {
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  /*display: flex;*/
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s;
  font-size: 1.2rem;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
  /* 移动端菜单处理 */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.active {
    max-height: 300px;
    padding: 1rem 0;
    opacity: 1;
  }
  
  .nav-item {
    width: 90%;
    text-align: center;
    /*margin: 0.3rem 0;*/
    padding: 0.8rem;
    font-size: 1.05rem;
    border-radius: 6px;
  }
  
  .nav-item::before {
    height: 3px;
  }

  .logo-text {
    font-size: 1.4rem;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  /* 主内容区响应式调整 */
  main {
    padding: 1.5rem 0.8rem;
  }
  
  .section-title {
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    margin: 1.2rem 0;
  }
  
  :root {
    --card-width: 140px;
    --card-height: 170px;
    --card-gap: 0.8rem;
  }
}

@media (min-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
  }
  
  .section-title {
    font-size: 1.4rem;
    margin: 1.4rem 0;
  }
  
  :root {
    --card-width: 150px;
    --card-height: 180px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.6rem 0;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* 主内容区响应式调整 */
  main {
    padding: 1.2rem 0.5rem;
  }
  
  .section-title {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
    margin: 1rem 0;
  }
  
  :root {
    --card-width: 120px;
    --card-height: 150px;
    --card-gap: 0.6rem;
  }
  
  .card-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .footer-link {
    /*min-width: 85px;*/
    /*padding: 0.5rem 0.8rem;*/
    font-size: 0.82rem;
  }

  /* 主内容区响应式调整 */
  :root {
    --card-width: 110px;
    --card-height: 140px;
    --card-gap: 0.5rem;
  }
  
  .card-title {
    font-size: 0.75rem;
  }
}

/* ===== 浏览器兼容性修复 ===== */
/* 针对不支持CSS Grid的旧浏览器 */
@supports not (display: grid) {
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card {
    width: var(--card-width);
    margin: 0 var(--card-gap) var(--card-gap) 0;
  }
}

/* 针对IE11的特定修复 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card {
    width: var(--card-width);
    margin: 0 var(--card-gap) var(--card-gap) 0;
  }
  
  .card-img img {
    width: 100%;
    height: auto;
    max-height: 100%;
  }
}

/* 图片懒加载过渡效果 */
.card-img img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 防止卡片内容溢出 */
.card {
  word-wrap: break-word;
  overflow-wrap: break-word;
}