
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1565c0;
    --primary-light: #1e88e5;
    --primary-dark: #0d47a1;
    --secondary: #00897b;
    --secondary-light: #26a69a;
    --secondary-dark: #00695c;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #222222;
    --text-gray: #333333;
    --text-light: #999999;
    --border: #e0e0e0;
    --border-light: #e3eaf2;
}

body {
    font-family: "Microsoft YaHei", "宋体", "SimSun", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-light);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Banner + Logo 区域 */
.banner-header {
    position: relative;
}

/* Logo区域 - 叠加在Banner上 */
.logo-wrapper {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.site-logo {
    height: 130px;
}

.title-group {
    border-left: 2px solid rgba(0,0,0,0.5);
    padding-left: 15px;
}

.site-title {
    font-size: 36px;
    font-weight: bold;
    color: #222222;
    letter-spacing: 4px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6);
}

.header-right {
    display: none;
}

/* Banner */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
}

.banner-slide {
    height: 100%;
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 导航栏 */
.main-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 0;
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.25);
}

.nav-container {
    display: flex;
    padding: 0;
}

.nav-item {
    flex: 1;
    padding: 13px 0;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    text-align: center;
}

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

/* 通用区块 */
.section {
    padding: 35px 0;
}

.section-bg {
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    color: var(--secondary);
    display: inline-block;
    padding: 0 20px;
    border-bottom: 2px solid var(--secondary-light);
    padding-bottom: 8px;
}

.section-en {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    letter-spacing: 2px;
}

/* 单位概况 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    color: var(--text-gray);
    text-indent: 2em;
    line-height: 2;
    margin-bottom: 15px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 15px;
    color: var(--text-gray);
}

/* 双列网格 */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.column-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.column-card:hover {
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.1);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #e8f5f0;
    color: #222222;
}

.column-title {
    font-size: 17px;
    font-weight: bold;
    color: #222222;
}

.more-link {
    font-size: 14px;
    color: #444444;
    opacity: 0.9;
}

.more-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 新闻列表 */
.news-list {
    padding: 12px 18px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border-light);
    font-size: 16px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 14px;
}

.news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-title:hover {
    color: var(--primary);
}

/* 党建文化 */
.culture-content {
    padding: 12px 18px;
}

.culture-highlight {
    background: #fff8e6;
    color: #d32f2f;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 3px solid #ffb74d;
}

.culture-highlight h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.culture-highlight p {
    font-size: 14px;
    opacity: 1;
}

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

.culture-item {
    display: flex;
    gap: 10px;
    padding: 7px 12px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    margin-top:7px;
}

.culture-item a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.culture-date {
    color: var(--text-light);
    flex-shrink: 0;
    font-size: 14px;
}

.culture-item a:hover {
    color: var(--primary);
}

/* 科技服务 */
.service-list {
    padding: 12px 18px;
}

.service-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dotted var(--border-light);
}

.service-item:last-child {
    border-bottom: none;
}

.service-num {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    border-radius: 4px;
}

.service-info h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.service-info p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 科技创新 */
.innovation-content {
    padding: 12px 18px;
}

.innovation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border-light);
    font-size: 15px;
}

.innovation-item:last-child {
    border-bottom: none;
}

.innovation-tag {
    padding: 2px 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    border-radius: 3px;
}

.innovation-title {
    flex: 1;
}

.innovation-title:hover {
    color: var(--primary);
}

/* 三列网格 */
.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

/* 通知公告 */
.notice-list {
    padding: 12px 18px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--border-light);
    font-size: 15px;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-highlight {
    background: #fff8e6;
    padding: 9px 12px;
    border-radius: 4px;
    border-left: 3px solid #ffb74d;
}

.notice-tag {
    padding: 1px 7px;
    background: #ff7043;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.notice-title {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.notice-title:hover {
    color: var(--primary);
}

.notice-date {
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

/* 人才队伍 */
.team-list {
    padding: 12px 18px;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--border-light);
}

.team-item:last-child {
    border-bottom: none;
}

.team-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 16px;
    color: var(--text-dark);
}

.team-info p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 联系我们 */
.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.contact-content-horizontal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 18px;
    gap: 20px;
}

.contact-item-h {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    white-space: nowrap;
}

.contact-label {
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

.contact-value {
    color: var(--text-gray);
}

/* 底部 */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a3d8f 100%);
    color: white;
}

.footer-main {
    padding: 22px 0;
    font-size: 14px;
}

.friend-links {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.friend-title {
    margin-right: 10px;
}

.friend-links a {
    color: white;
    opacity: 0.85;
    margin: 0 8px;
    font-size: 13px;
}

.friend-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    opacity: 0.9;
    line-height: 1.8;
    font-size: 14px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.4);
}

/* 面包屑导航 */
.breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-bar a {
    color: var(--text-gray);
}

.breadcrumb-bar a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    margin: 0 6px;
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--primary);
}

/* 右侧主区域 */
.list-main {
    min-width: 0;
}

.list-header {
    margin-bottom: 15px;
}

.list-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* 文章列表 */
.article-list {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 18px;
    border-bottom: 1px dotted var(--border-light);
    transition: background 0.3s;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: rgba(21, 101, 192, 0.02);
}

.article-date-block {
    flex-shrink: 0;
    width: 65px;
    text-align: center;
    padding: 8px 0;
    border-right: 1px solid var(--border-light);
}

.article-date-day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.2;
}

.article-date-ym {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-info-title {
    display: block;
    font-size: 17px;
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.article-info-title:hover {
    color: var(--primary);
}

.article-info-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-gray);
    background: var(--bg-white);
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* 文章详情 */
.article-detail {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
}

.article-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-detail-meta {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-light);
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.article-detail-meta span {
    margin: 0 10px;
}

.article-detail-body {
    line-height: 2;
    color: var(--text-gray);
    font-size: 16px;
}

.article-detail-body p {
    text-indent: 2em;
    margin-bottom: 15px;
}

.article-detail-body img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px auto;
    display: block;
}

.article-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
}

.article-nav-item {
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav-item span {
    color: var(--text-gray);
    font-weight: bold;
}

.article-nav-item a {
    color: var(--text-gray);
}

.article-nav-item a:hover {
    color: var(--primary);
}

/* 响应式 */
@media (max-width: 900px) {
    .contact-content-horizontal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 220px;
    }

    .logo-wrapper {
    }

    .logo-container {
        justify-content: flex-start;
    }

    .site-logo {
        height: 45px;
    }

    .site-title {
        font-size: 20px;
    }

    .header-right {
        display: none;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 10px 14px;
        font-size: 15px;
        flex: 1 1 auto;
        min-width: 20%;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .contact-content-horizontal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .article-item {
        flex-direction: column;
        gap: 10px;
    }

    .article-date-block {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 4px 0 8px;
        display: flex;
        align-items: baseline;
        gap: 6px;
        width: auto;
    }

    .article-detail {
        padding: 18px;
    }

    .article-detail-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 18px;
    }

    .section {
        padding: 20px 0;
    }

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