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

:root {
    /* 院徽蓝 主色系(单色蓝) */
    --primary: #0056A0;
    --primary-light: #2A7BC0;
    --primary-dark: #003E75;
    --accent: #1E78C9;
    --bg-light: #f4f8fc;
    --bg-white: #ffffff;
    --col-header-bg: #E7F0F8;
    --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;
}

.banner {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image: url('../images/banner_bg.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    /* background-size: cover; */
}

.banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: 100%;
    margin-top: 10px;
}

.banner-left {
    justify-content: flex-start;
}

.site-logo {
    height: 120px;
}

.site-logo-academy {
    height: 100px;
}

.site-logo-fishery {
    height: 88px;
}

.logo-divider {
    width: 2px;
    height: 88px;
    background: #333;
}

.title-group {
    border-left: 3px solid rgba(0, 86, 160, 0.25);
    padding-left: 24px;
}

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

.site-title-en {
    font-size: 15px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-top: 6px;
}

/* 透明检索条(Banner右上角) */
.search-box {
    position: absolute;
    top: 22px;
    right: max(15px, calc((100vw - 1200px) / 2 + 15px));
    z-index: 5;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    padding: 4px 4px 4px 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--primary-dark);
    font-size: 14px;
    width: 170px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(0, 62, 117, 0.55);
}

.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
    font-family: inherit;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ============ 导航栏(12项平铺) ============ */
.main-nav {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    box-shadow: 0 3px 10px rgba(0, 62, 117, 0.25);
}

.nav-container {
    display: flex;
}

.nav-more {
    display: none;
}

.nav-item {
    flex: 1;
    padding: 14px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
}

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

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

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

.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(0, 86, 160, 0.1);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--col-header-bg);
    border-bottom: 2px solid var(--primary);
}

.column-title {
    font-size: 17px;
    font-weight: bold;
    color: var(--primary-dark);
}

.column-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary);
    margin-right: 8px;
    vertical-align: -3px;
    border-radius: 2px;
}

.more-link {
    font-size: 13px;
    color: #555;
}

.more-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ============ 信息列表(标题在前,日期在后) ============ */
.news-list {
    padding: 10px 18px;
}

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

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

.news-item::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-gray);
}

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

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

/* ============ 底部 ============ */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #002a52 100%);
    color: #fff;
    margin-top: 20px;
}

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

.footer-logo {
    text-align: center;
    margin-bottom: 14px;
}

.footer-logo img {
    height: 56px;
    opacity: 0.95;
}

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

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

.friend-links a {
    color: #fff;
    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.9;
    font-size: 13px;
}

.footer-bottom a {
    color: #fff;
    opacity: 0.9;
}

/* ============ 返回顶部 ============ */
.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: #fff;
    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(0, 62, 117, 0.3);
    z-index: 100;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 62, 117, 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(0, 86, 160, 0.03);
}

.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-inline-date {
    color: var(--text-light);
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
}

.article-info-title:hover .article-inline-date {
    color: var(--text-light);
}

.article-info-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    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: #fff;
    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) {
    .site-title {
        font-size: 32px;
    }
    .site-logo {
        height: 100px;
    }
}

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

    .banner-inner {
        gap: 14px;
        margin-top: 30px;
    }

    .site-logo {
        height: 64px;
    }

    .site-logo-academy {
        height: 56px;
    }

    .site-logo-fishery {
        height: 48px;
    }

    .logo-divider {
        height: 48px;
    }

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

    .site-title-en {
        font-size: 11px;
    }

    .title-group {
        padding-left: 14px;
    }

    .search-box {
        top: 12px;
        right: 15px;
        padding: 3px 3px 3px 12px;
    }

    .search-box input {
        width: 110px;
        font-size: 13px;
    }

    /* 手机端:前3项平铺 + 更多下拉 */
    .nav-container {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 1 1 0;
        padding: 12px 4px;
        font-size: 14px;
    }

    .nav-item.nav-overflow {
        display: none;
    }

    .nav-more {
        display: block;
        flex: 0 0 auto;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 14px;
        padding: 12px 10px;
        cursor: pointer;
        font-family: inherit;
    }

    .nav-more:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-container.open .nav-item.nav-overflow {
        display: block;
        flex: 0 0 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

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

    .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: 17px;
    }

    .section {
        padding: 20px 0;
    }
}
