p {
  font-size: 18px !important;
}

.auth-body {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
  padding: 40px;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: #0056b3;
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-header p {
  color: #666;
  font-size: 14px;
}

.auth-toggle {
  display: flex;
  background: #f1f3f5;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 30px;
}

.auth-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-toggle button.active {
  background: #fff;
  color: #0056b3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.form-group label i {
  color: #0056b3;
  margin-right: 5px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: #0056b3;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 13px;
}

.checkbox-container input {
  margin-right: 5px;
}

.forgot-pass {
  color: #0056b3;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #0056b3;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #004494;
}

.role-note {
  font-size: 12px;
  color: #666;
  background-color: #fff3cd;
  color: #856404;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #ffeeba;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-footer a {
  color: #666;
  transition: color 0.3s;
}

.form-footer a:hover {
  color: #0056b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f7fa;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3D Gallery Styles */
.gallery-3d-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* 增加最大宽度 */
  margin: 0 auto;
  height: 550px; /* 增加高度 450 -> 550 */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-card {
  position: absolute;
  width: 400px; /* 增加宽度 300 -> 400 */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  opacity: 0;
  z-index: 0;
  transform: translateX(0) scale(0.8);
}

.gallery-card .card-image {
  width: 100%;
  height: 280px; /* 增加图片高度 200 -> 280 */
  overflow: hidden;
}

.gallery-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card .card-content {
  padding: 50px; /* 稍微增加内边距 */
  text-align: center;
}

.gallery-card .card-content h3 {
  color: #0056b3;
  margin-bottom: 10px;
  font-size: 22px; /* 增大标题字体 */
}

.gallery-card .card-content p {
  color: #666;
  font-size: 16px; /* 增大内容字体 */
  line-height: 1.6;
}

/* Active Card (Center) */
.gallery-card.active {
  opacity: 1;
  z-index: 10;
  transform: translateX(0) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 86, 179, 0.2);
}

/* Prev Cards */
.gallery-card.prev-1 {
  opacity: 0.8;
  z-index: 5;
  transform: translateX(-320px) scale(0.9); /* 调整位移 220 -> 320 */
}

.gallery-card.prev-2 {
  opacity: 0.5;
  z-index: 1;
  transform: translateX(-550px) scale(0.7); /* 调整位移 380 -> 550 */
}

/* Next Cards */
.gallery-card.next-1 {
  opacity: 0.8;
  z-index: 5;
  transform: translateX(320px) scale(0.9); /* 调整位移 220 -> 320 */
}

.gallery-card.next-2 {
  opacity: 0.5;
  z-index: 1;
  transform: translateX(550px) scale(0.7); /* 调整位移 380 -> 550 */
}

/* Hidden Cards for Loop */
.gallery-card.hide-left {
  opacity: 0;
  z-index: 0;
  transform: translateX(-700px) scale(0.6); /* 调整位移 500 -> 700 */
}

.gallery-card.hide-right {
  opacity: 0;
  z-index: 0;
  transform: translateX(700px) scale(0.6); /* 调整位移 500 -> 700 */
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  color: #0056b3;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.gallery-nav:hover {
  background: #0056b3;
  color: #fff;
}

.gallery-nav.prev-btn {
  left: 20px;
}

.gallery-nav.next-btn {
  right: 20px;
}

@media (max-width: 768px) {
  .gallery-3d-container {
    height: 400px;
  }

  .gallery-card {
    width: 260px;
  }

  .gallery-card.prev-1 {
    transform: translateX(-150px) scale(0.85);
  }

  .gallery-card.prev-2 {
    transform: translateX(-260px) scale(0.7);
    opacity: 0; /* Hide far items on mobile */
  }

  .gallery-card.next-1 {
    transform: translateX(150px) scale(0.85);
  }

  .gallery-card.next-2 {
    transform: translateX(260px) scale(0.7);
    opacity: 0;
  }
}

header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo h1 {
  color: #172552;
  font-size: 24px;
  font-weight: 700;
}

.auth-links {
  display: flex;
  gap: 20px;
}

.auth-links a {
  color: #666;
  font-size: 14px;
  transition: color 0.3s;
}

.auth-links a:hover {
  color: #0056b3;
}

.page-nav-container {
  background-color: #fff;
  padding: 20px 0;
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-pill {
  display: block;
  padding: 10px 30px;
  background-color: #fff;
  color: #0056b3;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 86, 179, 0.15);
}

.nav-pill.active {
  background-color: #0056b3;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #0056b3;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0056b3;
  margin: 15px auto 0;
}

.carousel-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 400px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #0056b3;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }
  .carousel-caption {
    left: 20px;
    bottom: 20px;
    padding: 10px;
    max-width: 70%;
  }
  .carousel-caption h3 {
    font-size: 18px;
  }
  .carousel-caption p {
    font-size: 12px;
  }
}

.intro-section {
  background: url('../images/1.png');
  background-size: 100% 100%;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #666;
}

.features {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0056b3;
}

.intro-image {
  flex: 1;
  min-width: 300px;
}

.intro-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.15);
}

.gallery-section {
  background-color: #f0f8ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 86, 179, 0.8);
  color: #fff;
  padding: 10px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.team-section {
  background-color: #fff;
}

.page-header {
  position: relative;
  background:
    linear-gradient(rgba(0, 40, 80, 0.8), rgba(0, 86, 179, 0.7)),
    url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-title {
  font-size: 58px;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 3px;
  animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
  font-size: 28px;
  opacity: 0.95;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.page-subtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffc107;
  margin: 20px auto 0;
  border-radius: 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-section {
  padding: 60px 0;
}

.bg-light {
  background-color: #f9fbfd;
}

.subsection-title {
  font-size: 24px;
  color: #0056b3;
  margin-bottom: 30px;
  border-left: 5px solid #00bfff;
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  padding: 25px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card.ongoing {
  border-left: 5px solid #0056b3;
}
.project-card.pending {
  border-left: 5px solid #ffc107;
}
.project-card.completed {
  border-left: 5px solid #28a745;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.project-header h4 {
  font-size: 20px;
  color: #333;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.badge-ongoing {
  background-color: #0056b3;
}
.badge-pending {
  background-color: #ffc107;
  color: #333;
}
.badge-completed {
  background-color: #28a745;
}

.project-body p {
  color: #666;
  margin-bottom: 20px;
  font-size: 15px;
}

.project-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #777;
}

.project-meta i {
  color: #00bfff;
  margin-right: 5px;
}

.progress-bar-container {
  background-color: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.progress-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0056b3, #00bfff);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.project-action {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: #0056b3;
  color: #fff;
}

.btn-primary:hover {
  background-color: #004494;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #0056b3;
  color: #0056b3;
}

.btn-outline:hover {
  background-color: #e3f2fd;
}

.link-arrow {
  color: #0056b3;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.link-arrow:hover {
  text-decoration: underline;
  gap: 8px;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 30px;
  background-color: #f8fbff;
  border-radius: 10px;
  border-left: 5px solid #0056b3;
}

.team-intro h3 {
  color: #0056b3;
  margin-bottom: 15px;
  font-size: 24px;
}

.team-intro p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.team-members {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.member-card {
  display: flex;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
  border-color: #b3d7ff;
}

.member-avatar {
  flex: 0 50 180px;
  background-color: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-info {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.member-title {
  display: inline-block;
  color: #0056b3;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  background-color: #e3f2fd;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.member-desc p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  /* 顶部 Header */
  header .container {
    height: 70px;
  }

  .logo img {
    height: 50px;
  }

  .auth-links {
    gap: 10px;
  }

  .auth-links a {
    font-size: 12px;
  }

  /* 顶部页面导航 pill */
  .page-nav-container {
    padding: 12px 0;
  }

  .page-nav {
    gap: 10px;
  }

  .nav-pill {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 页面 Header（标题/副标题） */
  .page-header {
    padding: 50px 0;
    background-attachment: scroll;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .page-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }

  .page-subtitle::after {
    width: 40px;
    margin: 12px auto 0;
  }

  /* 团队简介 */
  .team-intro {
    padding: 20px;
    margin: 0 auto 30px;
  }

  .team-intro h3 {
    font-size: 20px;
  }

  .team-intro p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 团队成员卡片 */
  .team-members {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .member-card {
    flex-direction: row;
    text-align: left;
    align-items: stretch;
  }

  .member-avatar {
    flex: 0 0 90px;
    width: 90px;
    height: auto;
  }

  .member-avatar img {
    height: 100%;
    object-fit: cover;
    width: auto;
  }

  .member-info {
    padding: 14px;
  }

  .member-name {
    font-size: 17px;
  }

  .member-title {
    align-self: flex-start;
    font-size: 12px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }

  .member-desc p {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  /* 更小屏幕：成员卡片改为上下结构，头像撑满顶部 */
  .member-card {
    flex-direction: column;
  }

  .member-avatar {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .member-info {
    padding: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .nav-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  .auth-links {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
}

.rules-section {
  background: url('../images/2.png');
  background-size: 100% 100%;
}

.rules-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.rule-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e1e1e1;
  transition: all 0.3s;
}

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
  border-color: #0056b3;
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: #e3f2fd;
  color: #0056b3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.rule-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.rule-card p {
  color: #777;
  font-size: 14px;
}

.data-section {
  background-color: #fff;
  background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
}

.chart-container {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
  position: relative;
  height: 400px;
  width: 100%;
}

.data-summary {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.summary-item {
  text-align: center;
}

.summary-item .count {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #0056b3;
}

.summary-item .label {
  color: #666;
  font-size: 16px;
}

.main-footer {
  background: linear-gradient(135deg, #001529 0%, #00264d 100%);
  color: #fff;
  padding: 80px 0 30px;
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00bfff, #0056b3, #00bfff);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.main-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {
  flex: 1;
  min-width: 300px;
}

.footer-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #fff, #b3d7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 30px;
}

.footer-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 350px;
  justify-content: flex-start;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
  border-color: rgba(0, 191, 255, 0.3);
}

.contact-item i {
  color: #00bfff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: rgba(0, 191, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-item:hover i {
  background: #00bfff;
  color: #fff;
}

.contact-item span {
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.footer-bottom {
  width: 100%;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.social-icon {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-icon:hover {
  background: #00bfff;
  transform: translateY(-3px);
}

.footer-divider {
  display: none;
}

@media (max-width: 768px) {
  .main-footer {
    text-align: center;
  }

  .main-footer .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .contact-item {
    max-width: 100%;
    justify-content: center;
  }

  .contact-item:hover {
    transform: translateY(-3px);
  }

  .footer-desc {
    margin: 0 auto 30px;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .intro-content {
    flex-direction: column;
  }

  nav ul {
    display: none;
  }

  .section {
    padding: 50px 0;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    top: -50px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header h2 {
  color: #0056b3;
  margin-bottom: 20px;
  font-size: 24px;
}

.modal-body {
  padding: 10px 0;
  line-height: 1.6;
  color: #666;
  font-size: 16px;
}

.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
}

.modal-form textarea {
  min-height: 100px;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: #0056b3;
  outline: none;
}

.modal-footer {
  text-align: right;
  margin-top: 20px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  margin-right: 10px;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.tools-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

.tool-section {
  margin-bottom: 50px;
  background-color: #f4f8ff;
  padding: 30px;
  border-radius: 15px;
}

.section-header-box {
  background: linear-gradient(90deg, #e3f2fd 0%, rgba(255, 255, 255, 0) 100%);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.section-header-box h2 {
  color: #0d47a1;
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
}

.section-header-box h2 i {
  margin-right: 10px;
  background-color: #1976d2;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

.section-desc {
  color: #555;
  margin-bottom: 30px;
  font-size: 14px;
  padding-left: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 24px;
  color: #1976d2;
  margin-bottom: 15px;
  background-color: #e3f2fd;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-card h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.tool-card p {
  font-size: 13px;
  color: #777;
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.use-btn {
  background-color: #6200ea;
  color: white;
  border: none;
  padding: 10px 0;
  width: 100%;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.use-btn:hover {
  background-color: #5000ca;
}

.templates-list {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.template-row {
  display: flex;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.template-row:last-child {
  border-bottom: none;
}

.template-category {
  width: 150px;
  font-weight: 600;
  color: #0d47a1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.template-category .dot {
  width: 8px;
  height: 8px;
  background-color: #1976d2;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.template-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex-grow: 1;
}

.template-btn {
  background-color: #e8eaf6;
  color: #333;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.template-btn i {
  color: #1a237e;
  margin-right: 8px;
}

.template-btn:hover {
  background-color: #c5cae9;
  color: #000;
}

@media (max-width: 768px) {
  .template-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .template-category {
    margin-bottom: 15px;
    width: 100%;
  }
}

/* 侧边栏二维码模块 */
.sidebar-module {
  position: fixed;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  z-index: 9999;
}

.sidebar-btn {
  background-color: #0056b3;
  color: #fff;
  padding: 15px 8px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
}

.sidebar-btn:hover {
  background-color: #004494;
  padding-right: 12px;
  width: 45px;
}

.sidebar-btn i {
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-text {
  font-size: 14px;
  writing-mode: vertical-lr;
  letter-spacing: 4px;
  font-weight: 500;
}

.sidebar-content {
  display: none;
  position: absolute;
  right: 55px; /* 按钮宽度 + 间距 */
  top: 0; /* 对齐顶部 */
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
  width: 180px;
  /* height: 180px; */
  z-index: 10000;
}

.sidebar-content::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
}

.sidebar-content.active {
  display: block;
  animation: fadeInRight 0.3s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
