/* 全局样式 */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --footer-bg: #0f172a;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-link: #334155;
  --nav-link-hover: #2563eb;
  --navbar-height: 76px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-color);
  color: #222f3e;
  line-height: 1.6;
}

/* 非首页页面添加顶部间距 */
body:not(.home-page) {
  padding-top: var(--navbar-height);
}

/* 导航栏样式 */
.navbar {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: var(--navbar-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .navbar-brand {
  color: var(--dark-color) !important;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .navbar-brand img {
  height: 60px;
  width: auto;
}

.navbar .navbar-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .navbar-nav .nav-link {
  color: var(--nav-link) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--nav-link-hover) !important;
  background: rgba(37, 99, 235, 0.05) !important;
  transform: translateY(-1px);
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--nav-link-hover);
  border-radius: 2px;
  transition: width 0.3s ease;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  width: 40%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 65, 85, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    text-align: left;
    margin: 0.2rem 0;
    padding: 0.7rem 1rem !important;
    height: auto;
  }

  .nav-link:hover {
    background: rgba(37, 99, 235, 0.05) !important;
  }
}

/* 首页横幅样式 */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* 海运首页横幅样式 */
.shipping-hero-section {
  min-height: 420px;
  background: linear-gradient(rgba(0, 51, 102, 0.55), rgba(0, 51, 102, 0.55)),
    url("../images/sea-banner.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 100px;
}
.shipping-hero-section h1 {
  color: #fff;
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}
.shipping-hero-section .lead {
  color: #e3f2fd;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.shipping-hero-section .btn-primary {
  font-size: 1.2rem;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15);
}
@media (max-width: 768px) {
  .shipping-hero-section {
    min-height: 260px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .shipping-hero-section h1 {
    font-size: 2rem;
  }
  .shipping-hero-section .lead {
    font-size: 1rem;
  }
  .bread-crumbs {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
  }

  .bread-crumbs .breadcrumb {
    font-size: 0.85rem;
  }

  .bread-crumbs .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }

  .bread-crumbs .breadcrumb-item a {
    padding: 0.3rem 0.5rem;
  }

  .bread-crumbs .breadcrumb-item i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
  }
}

/* 轮播图样式 */
.carousel {
  position: relative;
  width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  height: 600px;
  background-color: #f8f9fa;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  right: 15%;
  bottom: 50px;
  left: 15%;
  z-index: 10;
  padding: 30px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播图控制按钮样式 */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.8;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 2rem;
  list-style: none;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  margin: 0 8px;
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
}

/* 服务项目卡片样式 */
.services .card {
  height: 100%;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin: 1rem 0;
}

.services .card-text {
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-outline-primary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: #fff;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* 页脚海运风格优化 */
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--secondary-color);
}
footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
footer ul {
  padding-left: 0;
  margin-bottom: 0;
}
footer ul li {
  margin-bottom: 0.5rem;
}
footer a {
  color: #b3d1f7;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
footer .text-light {
  color: #e3f2fd !important;
}
@media (max-width: 768px) {
  footer .row > div {
    margin-bottom: 2rem;
  }
}

.social-links a {
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  .carousel-item {
    height: 400px;
  }

  .carousel-caption {
    padding: 20px;
    bottom: 30px;
  }

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .services .card {
    margin-bottom: 2rem;
  }
}

/* 按钮样式 */
.btn-primary {
  background: var(--secondary-color);
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s;
}

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

/* 动画效果 */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 联系方式展示块样式 */
.contact-info {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/center_bg.jpg") center/cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.contact-info::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    /* 主网格 */ linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    /* 装饰性圆点 */
      radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, 0.15) 1px,
        transparent 1px
      ),
    /* 对角线装饰 */
      linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.08) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        transparent 75%,
        transparent
      ),
    /* 波浪纹理 */
      repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 4px
      );
  background-size: 40px 40px, /* 主网格大小 */ 40px 40px,
    /* 主网格大小 */ 20px 20px, /* 装饰性圆点大小 */ 30px 30px,
    /* 对角线装饰大小 */ 8px 8px; /* 波浪纹理大小 */
  opacity: 0.8;
  animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, 40px 40px, 20px 20px, 30px 30px, 8px 8px;
  }
}

.contact-info .container {
  position: relative;
  z-index: 2;
}

.contact-info .row {
  align-items: center;
}

.contact-info .company-info {
  padding-right: 2rem;
}

.contact-info .company-info h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.contact-info .company-info h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.contact-info .company-info p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.contact-info .contact-details {
  background: rgba(255, 255, 255, 0.98);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-info .contact-details::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.contact-info .contact-details:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.contact-info .contact-details h3 {
  color: #3b82f6;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-info .contact-details h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}

.contact-info .contact-details h4 {
  color: #60a5fa;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info .phone-number {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-block;
  position: relative;
}

.contact-info .phone-number::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #3b82f6, transparent);
}

@media (max-width: 768px) {
  .contact-info {
    padding: 25px 0;
  }

  .contact-info .company-info {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }

  .contact-info .company-info h3 {
    font-size: 1.4rem;
  }

  .contact-info .company-info p {
    font-size: 0.95rem;
  }

  .contact-info .contact-details {
    padding: 1.2rem;
  }
}

/* 精品推荐侧边栏样式 */
/* 精品推荐侧边栏样式 */
.recommend-sidebar {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  background: #fff;
}

.recommend-sidebar .card-header {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.recommend-sidebar .list-group-item {
  font-size: 1.1rem;
  text-align: center;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 0.5rem;
  background: #fff;
  color: #334155;
  transition: all 0.3s ease;
}

.recommend-sidebar .list-group-item:last-child {
  border-bottom: none;
}

.recommend-sidebar .list-group-item:hover {
  background: #f8fafc;
  color: #2563eb;
  transform: translateX(5px);
}

.recommend-hotline {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  color: #fff;
  border-radius: 0 0 12px 12px;
  margin-top: 0;
  padding: 1.5rem 1rem;
}

.recommend-hotline .h5,
.recommend-hotline .h4 {
  margin-bottom: 0.2rem;
  color: #fff;
}

.recommend-hotline .h4 {
  font-size: 2rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.recommend-hotline i {
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}
/* 内容区样式（可自定义） */
.recommend-content-area {
  min-height: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .recommend-content-area {
    padding: 1rem 0.5rem;
  }
  .recommend-sidebar {
    margin-bottom: 1.5rem;
  }
}

/* 联系我们区块海运风格 */
.contact-us-section {
  background: var(--light-color);
}
.contact-info-box {
  background: #fff;
  border-left: 5px solid var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.07);
}
.contact-info-box h4 {
  color: var(--primary-color);
  font-weight: 600;
}
.contact-info-box i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}
.contact-form-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.07);
}
.contact-form-box .form-label {
  color: var(--primary-color);
  font-weight: 500;
}
.contact-form-box .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(51, 153, 255, 0.15);
}
.contact-form-box .btn-primary {
  background: var(--secondary-color);
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  padding: 0.7rem 0;
}
.contact-form-box .btn-primary:hover {
  background: var(--primary-color);
}
@media (max-width: 768px) {
  .contact-info-box,
  .contact-form-box {
    padding: 1.2rem 0.7rem;
  }
}

/* 页面横幅样式 */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 40px;
  min-height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

.page-banner .banner-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-banner .banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

.page-banner .banner-content .lead {
  font-size: 1.25rem;
  margin-bottom: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .page-banner {
    padding: 60px 0 30px;
    min-height: 240px;
  }

  .page-banner .banner-content {
    padding: 1rem 1.5rem;
  }

  .page-banner .banner-content h1 {
    font-size: 2rem;
  }

  .page-banner .banner-content .lead {
    font-size: 1.1rem;
  }
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 行业动态页面样式 */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
  opacity: 1;
}

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

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  margin-bottom: 0.8rem;
}

.news-meta .date {
  color: #666;
  font-size: 0.9rem;
}

.news-meta .date i {
  margin-right: 0.3rem;
  color: #3b82f6;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  background: #3b82f6;
  color: #fff;
}

.read-more:hover i {
  transform: translateX(5px);
}

.read-more:hover {
  background: #3b82f6;
  color: #fff;
}

.read-more:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .news-image {
    height: 180px;
  }

  .news-content {
    padding: 1.2rem;
  }

  .news-title {
    font-size: 1.1rem;
  }
}

/* 案例展示样式 */
.cases-section {
  padding: 80px 0;
  background: #f8fafc;
}

.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  margin-bottom: 1rem;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

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

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

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

.case-content {
  padding: 0.8rem;
}

.case-category {
  color: #3b82f6;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.case-category i {
  margin-right: 0.2rem;
}

.case-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #333;
  line-height: 1.3;
}

.case-desc {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.case-date {
  color: #999;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.case-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.view-more {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.view-more i {
  margin-left: 0.2rem;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.view-more:hover {
  background: #3b82f6;
  color: #fff;
}

.view-more:hover i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .case-image {
    height: 100px;
  }
}

@media (max-width: 767px) {
  .case-image {
    height: 90px;
  }

  .case-content {
    padding: 0.6rem;
  }

  .case-title {
    font-size: 0.9rem;
  }

  .case-desc {
    font-size: 0.75rem;
  }
}

/* 案例分类页面样式 */
.category-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #3b82f6;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-list li a i {
  margin-right: 0.8rem;
  font-size: 1.1rem;
  color: #3b82f6;
  width: 20px;
  text-align: center;
}

.category-list li.active a,
.category-list li a:hover {
  background: #3b82f6;
  color: #fff;
}

.category-list li.active a i,
.category-list li a:hover i {
  color: #fff;
}

.case-category {
  display: none;
}

.case-category.active {
  display: block;
}

.category-header {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

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

.case-content {
  padding: 1.5rem;
}

.case-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
  line-height: 1.4;
}

.case-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-meta {
  color: #666;
  font-size: 0.9rem;
}

.case-meta .date i {
  margin-right: 0.3rem;
  color: #3b82f6;
}

.view-more {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.view-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.view-more:hover {
  background: #3b82f6;
  color: #fff;
}

.view-more:hover i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .category-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .case-image {
    height: 200px;
  }

  .case-content {
    padding: 1.2rem;
  }

  .case-title {
    font-size: 1.1rem;
  }

  .category-header {
    font-size: 1.5rem;
  }
}

/* 分页样式 */
.pagination-wrapper {
  margin-top: 3rem;
}

.pagination {
  gap: 0.5rem;
}

.pagination .page-item .page-link {
  border: none;
  color: #666;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.pagination .page-item.active .page-link {
  background: #3b82f6;
  color: #fff;
}

.pagination .page-item:not(.active) .page-link:hover {
  background: #e9ecef;
  color: #3b82f6;
}

.pagination .page-item.disabled .page-link {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.pagination .page-link i {
  font-size: 0.8rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.news-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: white;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
  position: relative;
}

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

.news-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: transform 0.3s ease;
  z-index: 2;
}

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

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #2c3e50;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.news-card:hover .news-title {
  color: #667eea;
}

.news-excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  color: #6c757d;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-meta i {
  margin-right: 0.5rem;
  color: #667eea;
}

.btn-read-more {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.hover-translate-y {
  transition: transform 0.3s ease;
}

.hover-translate-y:hover {
  transform: translateY(-5px);
}

/* 文章内面包屑样式 */
.bread-crumbs {
  margin-bottom: 1.5rem;
}

.bread-crumbs .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.bread-crumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.bread-crumbs .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  font-weight: 600;
  font-size: 1rem;
}

.bread-crumbs .breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.bread-crumbs .breadcrumb-item a:hover {
  color: #764ba2;
  background: rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.bread-crumbs .breadcrumb-item.active {
  color: #495057;
  font-weight: 600;
}

.bread-crumbs .breadcrumb-item i {
  margin-right: 0.4rem;
  font-size: 0.9rem;
  color: #667eea;
}

.bread-crumbs .breadcrumb-item a:hover i {
  color: #764ba2;
}
