/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #264767;
    --primary-dark: #1a3247;
    --primary-light: #3a5f87;
    --accent-color: #5a9fd4;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-secondary: #f5f7fa;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    font-size: 14px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    list-style: none;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: white;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--primary-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

/* 金融数据展示区 */
.data-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.data-image {
    max-width: 1000px;
    margin: 0 auto 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.data-image img {
    width: 100%;
    height: auto;
    display: block;
}

.data-description {
    max-width: 800px;
    margin: 0 auto;
}

.data-description p {
    font-size: 18px;
    line-height: 1.8;
}

/* 新闻动态区 */
.news-section {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 自定义滚动条样式 */
.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.news-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    flex-shrink: 0;
    position: relative;
}

.news-item::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.news-item:hover::after {
    opacity: 1;
    right: 15px;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.news-item.active {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(38, 71, 103, 0.15);
}

.news-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.news-carousel {
    position: relative;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    height: 502px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    cursor: pointer;
    overflow: hidden;
}

/* .carousel-slide::before {
    content: '点击查看详情';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(38, 71, 103, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    pointer-events: none;
} */

.carousel-slide:hover::before {
    opacity: 1;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background-color: var(--primary-light);
}

/* 查看更多按钮 */
.more-button-container {
    text-align: center;
    margin-top: 40px;
}

.more-button {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(38, 71, 103, 0.2);
}

.more-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 71, 103, 0.3);
}

/* 成果展示区 */
.achievements-section {
    padding: 80px 20px;
    background-color: white;
    overflow: hidden;
}

.achievements-carousel {
    margin-top: 30px;
    overflow: hidden;
}

.achievements-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

.achievements-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.achievement-card {
    min-width: 350px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.achievement-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.achievement-card:hover img {
    transform: scale(1.05);
}

.achievement-info {
    padding: 20px;
}

.achievement-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.achievement-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-logo p {
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 14px;
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 10px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-list {
        max-height: none;
        overflow-y: visible;
    }

    .carousel-container {
        height: 400px;
    }

    .achievement-card {
        min-width: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

    .logo span {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .achievement-card {
        min-width: 250px;
    }

    .achievement-card img {
        height: 200px;
    }
}
