:root {
    --primary-color: #003366;
    --white: #ffffff;
    --black: #333333;
    --max-width: 1200px;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* Logo容器和顶部工具栏样式 */
.logo-container {
    background: var(--white);
    padding: 10px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.top-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #003366;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 7px;
    height: 2px;
    background: #003366;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* 导航栏样式更新 */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* 轮播图样式更新 */
.carousel {
    height: auto;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.banner-img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px; /* 电脑端固定高度 */
    object-fit: cover;
    display: block;
}

.carousel-container {
    max-width: calc(var(--max-width) - 30px);
    width: 100%;
    position: relative;
    height: 400px; /* 电脑端固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    z-index: 1;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-btn.prev {
    left: calc((100% - (var(--max-width) - 30px)) / 2);
}

.carousel-btn.next {
    right: calc((100% - (var(--max-width) - 30px)) / 2);
}

.carousel-slide {
    position: relative;
    z-index: 2;
}

.carousel-slide h2 {
    font-size: 48px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 4px;
}

/* 新闻区域样式更新 */
.news-section {
    padding: 40px 0;
    background: var(--gray);
}

.news-section .container {
    padding: 0 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.news-block {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.news-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.news-block ul {
    list-style: none;
    padding: 0;
}

.news-block ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    transition: color 0.3s ease;
}

.news-block ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--primary-color);
}

.news-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 18px;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.more-link:hover {
    color: var(--primary-color);
}

.news-date {
    color: #999;
    font-size: 14px;
}

/* 热推项目样式 */
.hot-projects {
    padding: 20px 0;
}

.hot-projects .container {
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--primary-color);
}

.section-header h2 {
    font-size: 20px;
    color: var(--primary-color);
}

.project-nav button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-nav button:hover {
    background-color: #a01f24;
}

.project-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    padding: 5px;
    transition: transform 0.3s ease;
}

.project-card {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-info {
    padding: 10px;
}

.project-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 18px;
}

.project-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* 底部筛选样式更新 */
.filter-section {
    background-color: var(--primary-color);
    padding: 25px 0;
}

.filter-section .container {
    padding: 0 15px;
}

.filter-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.filter-label {
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

.filter-group select {
    padding: 10px 20px;
    min-width: 200px;
    border-radius: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: var(--white);
    color: #666;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .logo-container {
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
    }
    
    .project-slider {
        flex-wrap: wrap;
    }
    
    .project-card {
        flex: 0 0 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-label {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .large-video .video-player {
        padding-top: 75%; /* 移动端调整为4:3比例 */
    }

    .header-flex {
        flex-direction: column;
        gap: 15px;
    }

    .top-right {
        justify-content: center;
    }

    .carousel-btn.prev {
        left: 0;
    }
    
    .carousel-btn.next {
        right: 0;
    }

    .news-header::after,
    .video-section .video-header::after,
    .section-header::after {
        width: calc(100% - 30px);
    }
} 

/* 视频区域样式 */
.video-section {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-section .video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.video-section .video-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--primary-color);
}

.video-section .video-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 18px;
}

.large-video {
    height: 100%;
}

.large-video .video-player {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.large-video .video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 热推项目样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: var(--primary-color);
}

/* Logo样式更新 */
.logo {
    width: 180px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.logo a {
    display: block;
    max-width: 100%;
    line-height: 0;
}

/* Logo容器样式 */
.logo-container {
    background: var(--white);
    padding: 10px 0;
} 

/* 页脚样式 */
footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-qr {
    text-align: center;
    margin-left: 40px;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.footer-qr p {
    color: #666;
    font-size: 14px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-label {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-qr {
        margin-left: 0;
    }
}

/* 轮播指示器样式 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--white);
} 

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 15px 0;
    background: var(--gray);
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    color: #999;
    font-size: 14px;
}

.breadcrumb-nav .current {
    color: #666;
    font-size: 14px;
}

.breadcrumb-nav a.active {
    color: #666;
    pointer-events: none;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
    }
    
    .breadcrumb-nav .container {
        padding: 0 15px;
    }
    
    .breadcrumb-nav a,
    .breadcrumb-nav .separator,
    .breadcrumb-nav .current {
        font-size: 12px;
    }
}

/* 公告列表页样式 */
.main-content {
    padding: 40px 0;
    background: var(--gray);
    min-height: 600px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.content-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.filter-bar {
    display: flex;
    gap: 15px;
}

.filter-bar select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
    cursor: pointer;
}

.announcement-list {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 0 15px;
}

.announcement-list ul {
    list-style: none;
}

.announcement-list li {
    border-bottom: 1px solid #eee;
}

.announcement-list li:last-child {
    border-bottom: none;
}

.announcement-list a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.announcement-list a:hover {
    background-color: var(--gray);
    color: var(--primary-color);
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.announcement-content .title {
    flex: 1;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.announcement-content .type {
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.announcement-content .date {
    color: #999;
    font-size: 14px;
    min-width: 100px;
    text-align: right;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.page-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .next {
    padding: 8px 15px;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .filter-bar {
        flex-direction: column;
    }

    .announcement-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .announcement-content .date {
        text-align: left;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
} 

/* 响应式设计补充 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-player {
        height: 0;
        padding-top: 56.25%;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 20px 0;
    }
    
    .news-grid {
        gap: 15px;
    }
    
    .news-header::after,
    .video-section .video-header::after,
    .section-header::after {
        width: calc(100% - 30px);
    }
} 

/* 标语容器样式 */
.slogan-container {
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.slogan-text {
    font-size: 22px;
    font-weight: 600;
    color: #003366;
    opacity: 0;
    transition: all 1.2s ease-in-out;
    height: 24px;
    line-height: 24px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 51, 102, 0.1);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
   
    .slogan-container {
        margin: 10px 0;
    }
   
    .slogan-text {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
} 

/* 搜索高亮样式 */
.search-highlight {
    background-color: rgba(0, 51, 102, 0.1);
    border-radius: 2px;
    padding: 2px 0;
    transition: background-color 0.3s ease;
} 

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 顶部导航适配 */
    .header-flex {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo img {
        max-width: 200px;
    }
    
    .slogan-container {
        margin: 10px 0;
    }
    
    .top-right {
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: calc(100% - 40px);
    }
    
    /* 导航菜单适配 */
    .nav-menu {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* 内容区域适配 */
    .container {
        padding: 0 15px;
    }
    
    /* 底部筛选适配 */
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    /* 页脚适配 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-qr {
        margin-top: 20px;
    }
    
    .footer-qr img {
        max-width: 120px;
    }
}

/* 移动端触摸优化 */
@media (hover: none) {
    .nav-menu li a:hover {
        background: none;
    }
    
    .nav-menu li a:active {
        background: rgba(255,255,255,0.1);
    }
    
    .search-box button:active {
        opacity: 0.7;
    }
} 

/* 移动端轮播图适配 */
@media screen and (max-width: 768px) {
    .carousel {
        margin: 0;
        background: none;
    }
    
    .carousel-container {
        max-width: 100%;
        padding: 0;
        height: auto;
    }
    
    .banner-img {
        width: 100vw;
        height: 56.25vw; /* 移动端保持16:9的比例 */
        object-fit: cover;
    }
    
    .slide {
        width: 100%;
        height: 100%;
    }
} 