/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏滚动效果 */
#navbar {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(224, 247, 250, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏链接样式 */
.navbar-link {
    color: white;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #01579B;
}

#navbar.scrolled .navbar-link {
    color: #0277BD;
}

/* Logo 切换 */
#logo2 {
    display: none;
}

#navbar.scrolled #logo {
    display: none;
}

#navbar.scrolled #logo2 {
    display: block;
}

/* 导航栏链接样式 */
.navbar-link {
    color: white;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #01579B;
}

#navbar.scrolled .navbar-link {
    color: #0277BD;
}

/* Logo 切换 */
#logo2 {
    display: none;
}

#navbar.scrolled #logo {
    display: none;
}

#navbar.scrolled #logo2 {
    display: block;
}

/* Logo样式 */
#logo,
#footer-logo {
    max-height: 40px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0277BD;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #01579B;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: #0277BD;
    border: 1px solid #E0F7FA;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #E0F7FA;
    transform: translateY(-2px);
}

/* 卡片样式 */
.card {
    background-color: white;
    border: 1px solid #E0F7FA;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(to right, #E0F7FA, #0277BD);
}

/* 标题样式 */
.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #0277BD;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: #81C784;
}




/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

/* 滚动动画类 */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

/* 图片懒加载 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 返回顶部按钮 */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #01579B;
    transform: translateY(-3px);
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #0277BD;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* 表单样式 */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0F7FA;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0277BD;
    box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0277BD;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: rgba(224, 247, 250, 0.3);
    color: #0277BD;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border: 1px solid #E0F7FA;
}

.table td {
    padding: 12px;
    border: 1px solid #E0F7FA;
}

.table tr:nth-child(even) {
    background-color: rgba(245, 247, 250, 0.5);
}

/* 时间轴样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #E0F7FA;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #0277BD;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::after {
    right: -10px;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #E0F7FA;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-right {
        left: 0%;
    }

    .section-title {
        font-size: 24px;
    }
}

/* 动画延迟类 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* 加载动画 */
.loader {
    border: 3px solid rgba(224, 247, 250, 0.3);
    border-radius: 50%;
    border-top: 3px solid #0277BD;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 卡片悬停效果增强 */
.access-card,
.advantage-card {
    transition: all 0.3s ease;
}

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

.advantage-card:hover {
    background-color: rgba(224, 247, 250, 0.5);
    transform: translateX(5px);
}

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

/* 页面过渡效果 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E0F7FA;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0277BD;
}