.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover::after {
        width: 100%;
    }

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.dropdown-menu {
    display: block; /* 修正：默认显示（或根据布局调整为flex） */
}

.dropdown:hover .dropdown-menu {
    display: block; /* 保持：鼠标移入时显示 */
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.mobile-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

.nav-link {
    position: relative;
}
    .nav-link:hover {
        color: #2563eb !important;
        font-weight: 600;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0px;
        left: 0;
        background-color: #3b82f6;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
        
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

.w-10 {
    width: 3.5rem!important;
}

.h-10 {
    height: 3.5rem!important;
}

.space-x-1 .h-10 {
    height: 2.5rem !important;
}

button:focus {
    outline: none;
}

button:focus-visible {
    outline: none;
}

button {
    background:#FFFFFF!important;
}

    /* 轮播容器样式 */
   .slideshow-container {
      position: relative;
      max-width: 1000px;
      margin: 0 auto;
      overflow: hidden;
    }

    /* 单个幻灯片样式 */
   .mySlides {
      display: none;
      position: relative;
    }

   .mySlides.active {
      display: block;
    }

   .mySlides img {
      width: 100%;
      height: auto;
      display: block;
    }

   .slide-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      padding: 20px;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
     .slide-content {
        padding: 10px;
      }

     .slide-content h2 {
        font-size: 1.2rem;
      }

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

/* 轮播容器样式 */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* 单个幻灯片样式 */
.mySlides {
    display: none;
    position: relative;
}

    .mySlides.active {
        display: block;
    }

    .mySlides img {
        width: 100%;
        height: auto;
        display: block;
    }

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide-content {
        padding: 10px;
    }

        .slide-content h2 {
            font-size: 1.2rem;
        }

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

/* 案例列表 */
section.py-5 {
    padding: 50px 0;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

    .card-title a {
        color: #2c3e50;
        text-decoration: none;
    }

        .card-title a:hover {
            color: #e74c3c;
        }

.card-text {
    color: #7f8c8d;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示2行省略号 */
    -webkit-box-orient: vertical;
}

.text-muted {
    color: #95a5a6;
}


/* 响应式适配（移动端） */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 1 1 100%; /* 移动端全屏显示案例卡片 */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.col-md-4 {
    margin-bottom: 20px; /* 垂直间距（下边距） */
}

@media (max-width: 768px) {
    .col-md-4 {
        margin-bottom: 20px; /* 移动端垂直间距 */
    }
}

.max-w-7xl {
    max-width: 85rem!important;
}

/* 导航链接基础样式 */
.nav-link {
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* 当前栏目高亮样式 */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
    padding-bottom:8px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* 下拉菜单悬停效果 */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* 移动端菜单动画 */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: #dbeafe;
        border-radius: 6px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pagination-btn {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

    .pagination-btn:hover {
        background-color: #f9fafb;
    }

    .pagination-btn.active {
        background: linear-gradient(135deg, #3b82f6, #8b5cf6)!important;
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f3f4f6;
    }

.pagination-dots {
    color: #6b7280;
}

.pagination-btn .h-10 {
    height: 3.3rem !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input#jumpPageInput {
    font-size:80%!important;
}

.news-content {
    line-height: 1.8;
}

    .news-content h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 2rem 0 1rem 0;
        color: #1f2937;
    }

    .news-content p {
        margin-bottom: 1.5rem;
    }

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn:hover {
    transform: translateX(-4px);
}

.project-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

.category-tech {
    border-left: 4px solid #3b82f6;
}

.category-business {
    border-left: 4px solid #10b981;
}

.category-education {
    border-left: 4px solid #f59e0b;
}

.category-health {
    border-left: 4px solid #ef4444;
}

.category-tech:hover {
    background-color: #e0f7fa;
}

.category-business:hover {
    background-color: #d1fae5;
}

.category-education:hover {
    background-color: #fef3c1;
}

.category-health:hover {
    background-color: #fee2e2;
}

/* 原有样式 */
.category-tech {
    border-left: 4px solid #3b82f6;
}
/* 科技 - 蓝色 */
.category-business {
    border-left: 4px solid #10b981;
}
/* 商业 - 绿色 */
.category-education {
    border-left: 4px solid #f59e0b;
}
/* 教育 - 黄色 */
.category-health {
    border-left: 4px solid #ef4444;
}
/* 健康 - 红色 */

/* 之前新增的七个样式 */
.category-finance {
    border-left: 4px solid #8b5cf6;
}
/* 金融 - 紫色 */
.category-art {
    border-left: 4px solid #ec4899;
}
/* 艺术 - 粉色 */
.category-sports {
    border-left: 4px solid #0ea5e9;
}
/* 运动 - 天蓝色 */
.category-travel {
    border-left: 4px solid #059669;
}
/* 旅行 - 深绿色 */
.category-food {
    border-left: 4px solid #f97316;
}
/* 美食 - 橙色 */
.category-fashion {
    border-left: 4px solid #d946ef;
}
/* 时尚 - 紫红色 */
.category-gaming {
    border-left: 4px solid #22c55e;
}
/* 游戏 - 亮绿色 */

/* 新增四个类似样式 */
.category-music {
    border-left: 4px solid #e11d48;
}
/* 音乐 - 玫红色 */
.category-literature {
    border-left: 4px solid #7c3aed;
}
/* 文学 - 深紫色 */
.category-environment {
    border-left: 4px solid #0d9488;
}
/* 环保 - 蓝绿色 */
.category-politics {
    border-left: 4px solid #9333ea;
}
/* 政治 - 靛蓝色 */

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}


.project-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

.news-content {
    line-height: 1.8;
}

    .news-content h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 2rem 0 1rem 0;
        color: #1f2937;
    }

    .news-content p {
        margin-bottom: 1.5rem;
    }

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn:hover {
    transform: translateX(-4px);
}

.case-content {
    line-height: 1.8;
}

    .case-content h2 {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 2rem 0 1rem 0;
        color: #1f2937;
    }

    .case-content p {
        margin-bottom: 1.5rem;
    }

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline {
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #3b82f6;
    }

@media screen and (min-width:960px) {
    #pagination {
        display:flex;
    }
    #morecontent {
        display: none;
    }

    /* 禁用按钮样式（可选） */
    .pagination button[disabled] {
        background-color: #ccc; /* 灰色背景 */
        color: #666; /* 浅灰色文字 */
        cursor: not-allowed; /* 禁用光标 */
    }

    .mySlides {
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        width: 100%;
        height: 500px!important;
    }
}

@media screen and (max-width: 480px) {
    #pagination {
        display:none;
    }
    #morecontent {
        display: block;
    }

}

.w-full {
    padding-top:10px;
}