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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* 顶部Header */
.main-header {
    background: linear-gradient(135deg, #1e5aa8 0%, #2d7dd2 100%);
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.national-emblem {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

/* 主导航栏 */
.main-nav {
    background-color: #1e5aa8;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-item.active a,
.nav-item a:hover {
    background-color: rgba(255,255,255,0.15);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 5px 15px;
    width: 280px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Banner轮播区 */
.banner-section {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.banner-slide.active {
    opacity: 1;
}

.banner-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.banner-title-overlay h2 {
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    letter-spacing: 4px;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 0 100px;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 40px;
    width: 50px;
    height: 80px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(0,0,0,0.5);
}

.banner-prev {
    left: 0;
}

.banner-next {
    right: 0;
}

/* 通知公告栏 */
.notice-section {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.notice-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 50px;
}

.notice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e5aa8, #2d7dd2);
    color: #fff;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
}

.notice-list {
    display: flex;
    flex: 1;
    margin-left: 20px;
    overflow: hidden;
}

.notice-item {
    display: flex;
    align-items: center;
    margin-right: 40px;
    white-space: nowrap;
}

.notice-dot {
    color: #1e5aa8;
    margin-right: 8px;
    font-weight: bold;
}

.notice-item a {
    color: #666;
    transition: color 0.3s;
}

.notice-item a:hover {
    color: #1e5aa8;
}

/* 工作动态区 */
.news-section {
    background-color: #fff;
    padding: 25px 0;
}

.news-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr 280px;
    gap: 25px;
    align-items: start;
}

/* 左侧图片新闻 */
.news-image-area {
    width: 350px;
}

.news-image-box {
    border: 1px solid #e8e8e8;
}

.news-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text {
    color: #999;
    font-size: 16px;
}

.news-image-title {
    padding: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    background-color: #f9f9f9;
}

.news-image-title a {
    color: #333;
    text-decoration: none;
}

.news-image-title a:hover {
    color: #1e5aa8;
}

.news-image-summary {
    padding: 10px 15px;
    font-size: 14px;
    color: #555;
    line-height: 2;
    text-align: left;
}

.news-carousel {
    position: relative;
    width: 100%;
}

.news-carousel-item {
    width: 100%;
}

.news-carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 中间新闻列表 */
.news-list-area {
    flex: 1;
}

.news-header {
    border-bottom: 2px solid #1e5aa8;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #1e5aa8;
}

.news-highlight {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border-left: 4px solid #1e5aa8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-highlight a {
    font-size: 16px;
    font-weight: bold;
    color: #c41e3a;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-highlight-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-dot {
    color: #1e5aa8;
    margin-right: 8px;
}

.news-item a {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #1e5aa8;
}

.news-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 右侧快捷入口 */
.quick-links-area {
    width: 280px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    color: #fff;
}

.quick-link-item:hover {
    transform: translateX(5px);
}

.quick-link-item.blue {
    background: linear-gradient(135deg, #1e5aa8, #2d7dd2);
}

.quick-link-item.cyan {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.quick-link-item.blue-light {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
}

.quick-link-item.orange {
    background: linear-gradient(135deg, #e65100, #ff9800);
}

.quick-icon {
    margin-right: 15px;
}

.quick-text {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.contact-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e8e8e8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.contact-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

/* 快捷服务入口 */
.service-section {
    background-color: #fff;
    padding: 25px 0;
    border-top: 1px solid #e8e8e8;
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-icon.blue {
    background: linear-gradient(135deg, #1e5aa8, #2d7dd2);
}

.service-icon.cyan {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.service-icon.blue-light {
    background: linear-gradient(135deg, #5bc0de, #46b8da);
}

.service-icon.green {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.service-text {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* 三栏内容区 */
.three-column-section {
    background-color: #f5f5f5;
    padding: 25px 0;
}

.three-column-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 20px;
}

.column-box {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.column-header {
    border-bottom: 2px solid #1e5aa8;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.column-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e5aa8;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-item {
    display: flex;
    align-items: flex-start;
}

.column-dot {
    color: #1e5aa8;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.column-item a {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
}

.column-item a:hover {
    color: #1e5aa8;
}

/* 右侧政务公开 */
.right-box {
    padding: 0;
    background: none;
    border: none;
}

.gov-service-card {
    background: linear-gradient(135deg, #1e5aa8, #2d7dd2);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.gov-service-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gov-title h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.gov-title p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.gov-open-box {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.gov-open-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e5aa8;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e5aa8;
}

.gov-open-list li {
    margin-bottom: 10px;
}

.gov-open-list a {
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.gov-open-list a:hover {
    color: #1e5aa8;
}

/* 底部Footer */
.main-footer {
    background: linear-gradient(135deg, #1e5aa8 0%, #2d7dd2 100%);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

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

.footer-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-content {
        grid-template-columns: 1fr;
    }
    
    .news-image-area,
    .quick-links-area {
        width: 100%;
    }
    
    .three-column-content {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 汉堡菜单 */
    .mobile-menu-btn {
        display: block;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .site-title {
        font-size: 16px !important;
        letter-spacing: 1px;
    }
    
    .national-emblem {
        width: 40px;
        height: 40px;
    }
    
    /* 导航栏移动端 */
    .nav-content {
        flex-wrap: wrap;
        padding: 0 15px !important;
    }
    
    .nav-list {
        display: none !important;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-list.mobile-open {
        display: flex !important;
    }
    
    .nav-item a {
        padding: 12px 15px !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .search-box {
        width: 100% !important;
        margin: 10px 0;
        order: 1;
    }
    
    /* Banner移动端 */
    .banner-section {
        height: 220px;
    }
    
    .banner-title-overlay h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .banner-prev,
    .banner-next {
        width: 35px;
        height: 50px;
        font-size: 28px;
    }
    
    /* 通知公告移动端 */
    .notice-content {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
    }
    
    .notice-label {
        padding: 6px 15px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .notice-list {
        margin-left: 0;
        flex-direction: column;
        gap: 5px;
    }
    
    .notice-item {
        margin-right: 0;
    }
    
    .notice-item a {
        font-size: 14px;
    }
    
    /* 新闻区域移动端 */
    .news-content {
        padding: 0 15px;
        gap: 15px;
    }
    
    .news-image-area {
        width: 100%;
    }
    
    .news-carousel-item img {
        height: 160px;
    }
    
    .news-title {
        font-size: 17px;
    }
    
    .news-highlight a {
        font-size: 14px;
    }
    
    .news-item a {
        font-size: 14px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    /* 快捷入口移动端 */
    .quick-links-area {
        width: 100%;
    }
    
    .quick-link-item {
        padding: 12px 15px;
        margin-bottom: 8px;
    }
    
    .quick-text {
        font-size: 14px;
    }
    
    .contact-info {
        margin-top: 12px;
        padding: 12px;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    /* 服务区域移动端 */
    .service-content {
        grid-template-columns: 1fr !important;
        gap: 10px;
        padding: 0 15px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .service-text {
        font-size: 14px;
    }
    
    /* 三栏区域移动端 */
    .three-column-content {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 15px;
    }
    
    .column-box {
        padding: 15px;
    }
    
    .column-title {
        font-size: 16px;
    }
    
    .column-item a {
        font-size: 14px;
    }
    
    .gov-service-card {
        padding: 15px;
    }
    
    .gov-title h4 {
        font-size: 16px;
    }
    
    .gov-open-title {
        font-size: 16px;
    }
    
    .gov-open-list a {
        font-size: 14px;
    }
    
    /* 底部移动端 */
    .main-footer {
        padding: 20px 0;
    }
    
    .footer-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 180px;
    }
    
    .banner-title-overlay h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .banner-prev,
    .banner-next {
        width: 28px;
        height: 40px;
        font-size: 22px;
    }
    
    .news-carousel-item img {
        height: 140px;
    }
}
