/* CSS (index.css) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 辅助类 */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: height 0.3s ease;
}

.navbar .container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo img {
    width: 69.744px;
    height: 43px;
}

.logo span {
    font-size: 32px;
    font-weight: 500;
    color: #073a7c;
}

.nav-menu {
    display: flex;
    gap: 75px;
    align-items: center;
}

.nav-menu a {
    font-size: 20px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: #073a7c;
    font-weight: 400;
    font-size: 23px;
}

.nav-menu a:hover {
    color: #073a7c;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e4e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-menu.active {
    display: flex;
    max-height: 400px;
    opacity: 1;
}

.mobile-dropdown-menu a {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a.active {
    color: #073a7c;
    font-weight: 400;
    background-color: #f5f9ff;
}

.mobile-dropdown-menu a:hover {
    color: #073a7c;
    background-color: #f8fafc;
}

/* 英雄区 */
.hero {
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), #0052ff);
    height: 1100px;
    margin-top: 100px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    max-width: 1200px;
    margin-left: 250px;
    padding: 0 50px;
    color: white;
}

.hero h1 {
    font-size: 64px;
    font-weight: 400;
    margin-bottom: 60px;
    display: inline-block;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: white;
    margin: 0 0 60px 50px;
    display: inline-block;
}

.hero-description {
    font-size: 20px;
    font-weight: 400;
    color: white;
    margin-bottom: 80px;
    margin-left: 80px;
    max-width: 1200px;
}

.carousel-dots {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 20px;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
}

.dot {
    width: 39px;
    height: 3px;
    background-color: #d9d9d9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* 蓝色层 */
.dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #0038a9;
    border-radius: 10px;
    transition: none;
}

/* 动画定义 */
@keyframes dotFill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* 活动状态 - 动画填充 */
.dot.active::before {
    animation: dotFill 3s linear forwards;
}

/* 发展历程 */

.timeline-section {
    padding: 60px 0 80px;
    position: relative;
}

.timeline-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #073a7c;
    margin-bottom: 40px;
    text-align: left;
}

.section-divider {
    width: 1169px;
    height: 2px;
    background: linear-gradient(to right, #073a7c, rgba(0, 102, 255, 0));
    margin: 0 auto 60px;
}

.timeline-card {
    display: flex;
    width: 657px;
    height: 212px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
    border: 1px solid #e4e7eb;
    margin: 0 auto;
    margin-bottom: 80px;
}

.card-image {
    width: 288px;
    height: 212px;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-content {
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), #0052ff);
    padding: 54px 40px;
    display: flex;
    flex-direction: column;
    gap: 27px;
    flex: 1;
}

.card-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #003366;
    line-height: 1.2;
}

/* 时间线容器 */
.timeline-container {
    position: relative;
    /* margin: 0px 0 20px; */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* 桌面端时间线样式 */
.desktop-timeline {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-timeline .timeline-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #000000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-dots-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.timeline-dots-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background-color: #d9d9d9;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.5s ease;
    position: relative;
    cursor: pointer;
}

.timeline-dot.active {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* 年份标签样式 */
.timeline-year {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #5a6c7d;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.timeline-dot.active .timeline-year {
    opacity: 1;
    color: #073a7c;
    font-weight: 700;
    bottom: -35px;
}

/* 桌面端时间线内容 */
.timeline-content {
    position: relative;
    max-width: 770px;
    margin: 40px auto 0;
}

.timeline-content h4 {
    font-size: 24px;
    font-weight: 350;
    color: #5a6c7d;
    margin-bottom: 20px;
    text-align: center;
}

.timeline-content p {
    font-size: 20px;
    font-weight: 350;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.more-link {
    display: block;
    font-size: 20px;
    color: #073a7c;
    text-decoration: none;
    font-weight: 500;
    text-align: right !important;
}

/* ==================== 移动端时间线布局 ==================== */
.mobile-timeline {
    width: 100%;
    padding: 20px 0;
}

.mobile-timeline-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 600px;
    gap: 15px;
}

/* 左侧时间轴 - 修复圆点布局 */
.mobile-timeline-left {
    flex: 0 0 80px;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.vertical-timeline {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-timeline .timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: #d9d9d9;
    left: 20px;
    /* 调整时间线位置 */
    top: 0;
    z-index: 1;
}

.vertical-timeline .timeline-dots-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 2;
}

/* 移除所有复杂定位，使用简单的Flex布局 */
.vertical-timeline .timeline-dot {
    height: 15px;
    width: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    /* min-height: 15px; */
    /* 确保每个点有足够高度 */
}

/* 圆点指示器 */
.vertical-timeline .dot-indicator {
    width: 20px;
    height: 20px;
    background-color: #d9d9d9;
    border-radius: 50%;
    border: 3px solid white;
    transition: all 0.3s ease;
    z-index: 2;
    position: absolute;
    left: 40px;
    transform: translateX(-50%);
    /* 居中 */
}

.vertical-timeline .timeline-dot.active .dot-indicator {
    width: 30px;
    height: 30px;
    background-color: #0038a9;
    border: 4px solid white;
    box-shadow: 0 0 15px rgba(0, 56, 169, 0.4);
    left: 40px;
    transform: translateX(-50%);
}

/* 年份标签 */
.vertical-timeline .timeline-year {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-left: 60px;
    /* 从圆点右侧开始 */
    position: relative;
    z-index: 3;
}

.vertical-timeline .timeline-dot.active .timeline-year {
    color: #0038a9;
    font-weight: 700;
    opacity: 1;
    font-size: 16px;
}

/* 右侧内容区域 */
.mobile-timeline-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 图片区域 */
.timeline-image-container {
    flex: 0 0 200px;
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f8ff;
    border: 1px solid #e6eefc;
}

.timeline-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.timeline-image.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.timeline-image .image-placeholder span {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 文本区域 */
.timeline-text-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: calc(100% - 215px);
    overflow: hidden;
    background: #f9fbfe;
    border-radius: 12px;
    border: 1px solid #e6eefc;
}

.timeline-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
}

.timeline-text.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-text h4 {
    font-size: 18px;
    color: #0038a9;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.timeline-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-weight: 350;
}

/* 文本滚动条样式 */
.timeline-text::-webkit-scrollbar {
    width: 4px;
}

.timeline-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.timeline-text::-webkit-scrollbar-thumb {
    background: #0038a9;
    border-radius: 2px;
}

/* 页脚 */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 40px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-logo img {
    width: 69.744px;
    height: 43px;
}

.footer-logo span {
    font-size: 32px;
    font-weight: 500;
    color: #073a7c;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    margin-left: 100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h5 {
    font-size: 20px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 350;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column p {
    font-size: 14px;
    font-weight: 350;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column a:hover {
    color: #073a7c;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 350;
    color: #0f1419;
    letter-spacing: 0.42px;
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .nav-menu {
        gap: 40px;
    }

    .section-divider {
        width: 100%;
    }

    .timeline-content {
        padding: 0 20px;
    }

    .footer-links {
        gap: 60px;
    }
}

/* 响应式设计 - 手机 */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 24px;
    }

    /* 导航栏 */
    .navbar {
        height: 54px;
    }

    .navbar.menu-open {
        height: auto;
        min-height: 54px;
    }

    .logo img {
        margin-left: 20px;
        width: 50px;
        height: 31px;
    }

    .logo span {
        font-size: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        margin-right: 20px;
        display: flex;
    }

    .menu-toggle span {
        background-color: #073a7c;
    }

    /* 英雄区 */
    .hero {
        height: 400px;
        margin-top: 54px;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 0 24px;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 10px;
        margin-left: 0;
    }

    .hero-description {
        display: none;
    }

    .carousel-dots {
        gap: 10px;
        bottom: 20px;
    }

    .dot {
        width: 15px;
        height: 2px;
    }

    /* 发展历程 */
    .timeline-section {
        padding: 40px 0 0px;
    }

    .timeline-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .section-divider {
        display: none;
    }

    .timeline-card {
        width: 100%;
        max-width: 300px;
        height: auto;
        flex-direction: column;
        margin-bottom: 40px;
    }

    .card-image {
        width: 100%;
        height: 120px;
    }

    .card-content {
        width: 100%;
        padding: 20px;
        gap: 15px;
    }

    .card-content h3 {
        font-size: 16px;
        text-align: center;
    }

    /* 移动端时间线调整 - 修复椭圆问题 */
    .mobile-timeline-wrapper {
        height: 430px;
        gap: 10px;
    }

    .mobile-timeline-left {
        flex: 0 0 70px;
    }

    .vertical-timeline .timeline-line {
        height: 430px;
        left: 8px;
    }

    .vertical-timeline .timeline-dot {
        height: 15px;
        width: 15px;
        padding: 0 0;
    }

    .vertical-timeline .dot-indicator {
        width: 20px;
        height: 20px;
        left: 35px;
    }

    .vertical-timeline .timeline-dot.active .dot-indicator {
        width: 30px;
        height: 30px;
        left: 35px;
    }

    .vertical-timeline .timeline-year {
        position: static;
        display: inline-block;
        margin-left: 35px;
        font-size: 13px;
    }

    .vertical-timeline .timeline-dot.active .timeline-year {
        font-size: 15px;
    }

    /* 确保9个时间点都能正确显示 */
    .vertical-timeline .timeline-dots-container {
        margin-left: -106px;
        width: 15px;
        justify-content: flex-start;
        height: 50%;
        gap: 35px;
    }

    .timeline-image-container {
        margin-top: 45px;
        height: 180px;
        flex: 0 0 180px;
        margin-bottom: 10px;
    }

    .timeline-image .image-placeholder span {
        font-size: 20px;
    }

    .timeline-text {
        padding: 12px;
    }

    .timeline-text h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .timeline-text p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* 页脚 */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        order: -1;
    }

    .footer-logo img {
        width: 50px;
        height: 31px;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px !important;
        width: 100%;
        align-items: center;
        margin-left: 0 !important;
    }

    .footer-column {
        margin: 0 auto;
        text-align: center;
    }

    .footer-column h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-column p {
        font-size: 13px;
        font-weight: 350;
    }

    .footer-divider {
        margin: 30px 0 15px;
    }

    .footer-bottom {
        gap: 8px;
    }

    .footer-bottom p {
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 375px) {
    .mobile-timeline-wrapper {
        height: 450px;
    }

    .mobile-timeline-left {
        flex: 0 0 60px;
    }

    .vertical-timeline .timeline-line {
        left: 30px;
    }

    .vertical-timeline .timeline-dots-container {
        left: 0px;
        width: 14px;
        height: 14px;
    }

    .vertical-timeline .timeline-dot.active .dot-indicator {
        width: 22px;
        height: 22px;
        left: 30px;
    }

    .vertical-timeline .timeline-dot {
        min-height: 15px;
    }

    .vertical-timeline .timeline-year {
        margin-left: 45px;
        font-size: 12px;
    }

    .vertical-timeline .timeline-dot.active .timeline-year {
        font-size: 14px;
    }

    .timeline-image-container {
        height: 150px;
        flex: 0 0 150px;
    }

    .timeline-image .image-placeholder span {
        font-size: 18px;
    }
}