/* 基本样式和变量定义 */
:root {
    --primary-color: #003366;
    --secondary-color: #0055a4;
    --accent-color: #0099cc;
    --light-bg: #f5f7fa;
    --text-color: #333333;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部导航 */
.site-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav li a {
    color: var(--white);
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    background-color: var(--secondary-color);
}

/* 页面头图 */
.hero {
    position: relative;
    height: 60vh;
    background-image: url('../images/hero1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    color: var(--white);
    background-color: var(--accent-color);
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 通用 section 样式 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* 新闻动态样式 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.news-date {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 10px;
}

.read-more {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent-color);
}

.more-link {
    text-align: center;
    margin-top: 20px;
}

/* 新闻标题列表样式 */
.news-title-list {
    list-style: none;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-title-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #e8edf3;
}

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

.news-title-item .news-date {
    margin-bottom: 0;
    min-width: 95px;
    font-size: 0.85rem;
}

.news-title-item a {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.news-title-item a:hover {
    color: var(--accent-color);
}

.research-section .container {
    max-width: 1120px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: grid;
    gap: 26px;
}

.research-group {
    padding: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    box-shadow: var(--surface-shadow);
}

.research-group + .research-group {
    margin-top: 2px;
}

/* 研究成果三大方向：同冷色系内区分色相（蓝 → 靛 → 青绿），与导航主色协调 */
.research-group--waste {
    --group-accent: #1565c0;
}

.research-group--resistome {
    --group-accent: #3949ab;
}

.research-group--ecology {
    --group-accent: #00897b;
}

.research-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 5px solid var(--group-accent);
}

.research-group-head h2 {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    margin-top: 2px;
}

.research-group-summary {
    flex: 0 1 48%;
    color: #58707d;
    line-height: 1.8;
    text-align: justify;
}

/* 研究成果横向卡片：列宽随容器变化；大屏约满宽三等分，不足时横向滚动 */
.research-carousel {
    --research-carousel-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(
        min(260px, 100%),
        calc((100% - 2 * var(--research-carousel-gap)) / 3)
    );
    gap: var(--research-carousel-gap);
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.research-carousel::-webkit-scrollbar {
    height: 10px;
}

.research-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.research-carousel::-webkit-scrollbar-thumb {
    background: rgba(13, 71, 161, 0.28);
    border-radius: 999px;
}

.research-card {
    scroll-snap-align: start;
    min-width: 0;
    width: 100%;
    min-height: 100%;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(13, 71, 161, 0.12);
    border-top: 4px solid var(--group-accent);
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.research-card-meta {
    color: var(--group-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.research-card-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    color: var(--primary-color);
    font-size: 1.14rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-card-original {
    color: #5a6b72;
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-card-summary {
    margin-top: auto;
    color: #395463;
    line-height: 1.78;
    font-size: 0.95rem;
}

.research-card-link-wrap {
    margin: 0;
    padding-top: 4px;
}

.research-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--group-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.research-card-link:hover {
    color: var(--secondary-color);
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 144, 214, 0.36);
}

.research-group .reveal-on-scroll,
.research-card.reveal-on-scroll {
    opacity: 0;
}

.research-group .reveal-on-scroll.is-visible,
.research-card.reveal-on-scroll.is-visible {
    opacity: 1;
}

.about-section .container p,
.about-page-section .container p,
.research-section .container > p,
.contact-page-section .container > p,
.news-article > p:not(.news-meta):not(.news-back-link) {
    line-height: 1.92;
    text-align: justify;
    text-indent: 2em;
}

.about-page-section ol {
    list-style: none;
    counter-reset: research-direction;
    padding-left: 0;
    margin-top: 10px;
    display: grid;
    gap: 14px;
}

.about-page-section ol li {
    position: relative;
    padding: 18px 18px 18px 64px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    line-height: 1.88;
    text-align: justify;
}

.about-page-section ol li::before {
    counter-increment: research-direction;
    content: counter(research-direction);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1890d6, #0d47a1);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}

.about-page-section ol li strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 1.06rem;
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.contact-list li {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--surface-border);
    border-left: 4px solid rgba(24, 144, 214, 0.72);
    box-shadow: var(--surface-shadow);
    line-height: 1.85;
}

.contact-list strong {
    color: var(--primary-color);
}

/* 研究方向样式 */
.directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.direction-card {
    background-color: var(--white);
    padding: 26px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(11, 40, 52, 0.14);
}

.direction-card img {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 8px;
    background: linear-gradient(135deg, rgba(24, 144, 214, 0.12), rgba(19, 101, 192, 0.08));
    border-radius: 12px;
}

.direction-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.direction-card p {
    font-size: 0.96rem;
    color: #5b707b;
    line-height: 1.65;
}

/* 关于我们样式 */
.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* contact Section style on home page */
.contact-details p {
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    color: var(--white);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    display: grid;
    gap: 4px;
    line-height: 1.6;
}

/* 页眉标题和面包屑 */
.page-header-section {
    background-color: var(--secondary-color);
    padding: 40px 0;
    color: var(--white);
    margin-bottom: 40px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.85;
    margin-right: 5px;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* 新闻页面样式 */
.news-listing .news-entry {
    margin-bottom: 40px;
}

.news-listing .news-entry h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.news-listing .news-entry .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 12px;
}

.news-listing .news-entry p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 新闻详情页样式 */
.news-article {
    background-color: var(--white);
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-article h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.news-meta {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.news-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.news-article p {
    line-height: 1.85;
    margin-bottom: 14px;
}

.news-back-link {
    margin-top: 18px;
}

.news-back-link a {
    font-weight: 600;
}

/* 团队页面样式 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    background-color: var(--white);
    padding: 24px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.team-member img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.18);
}

.team-member h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.team-member h3 a {
    color: inherit;
}

.team-member h3 a:hover {
    color: var(--accent-color);
}

.team-member p {
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: #5b707b;
}

.team-member .email {
    font-size: 0.85rem;
    color: #7a8a92;
    word-break: break-all;
    margin-top: 2px;
}

.alumni-list {
    list-style: none;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 12px;
}

.alumni-list li {
    padding: 14px 18px;
    border-bottom: 1px solid #e8edf3;
    line-height: 1.7;
}

.alumni-list li:last-child {
    border-bottom: none;
}

.alumni-list strong {
    color: var(--primary-color);
}

.group-title {
    font-size: 1.25rem;
    margin: 28px 0 16px;
    color: var(--secondary-color);
    font-weight: 700;
}

.team-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.team-card-link:hover {
    color: inherit;
}

.team-card-link .team-member {
    height: 100%;
}

/* 科研团队页：导师左图右文（不跳转二级页） */
.team-mentor-panel {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: clamp(22px, 4vw, 40px);
    align-items: start;
    padding: clamp(22px, 3vw, 32px);
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    box-shadow: var(--surface-shadow);
    border-left: 5px solid var(--secondary-color);
}

.team-mentor-photo-wrap {
    margin: 0;
    position: relative;
}

.team-mentor-photo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 144, 214, 0.12), rgba(13, 71, 161, 0.08));
    box-shadow: 0 16px 36px rgba(13, 71, 161, 0.16);
}

.team-mentor-body {
    min-width: 0;
}

.team-mentor-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin: 0 0 12px;
    border-radius: 999px;
    background: rgba(24, 144, 214, 0.12);
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-mentor-name {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.team-mentor-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.team-mentor-inline-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(24, 144, 214, 0.12);
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.team-mentor-role {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: #4a6270;
    font-weight: 600;
}

.team-mentor-chips {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-mentor-chips li {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(13, 71, 161, 0.06);
    border: 1px solid rgba(13, 71, 161, 0.12);
}

.team-mentor-text {
    display: grid;
    gap: 14px;
}

.team-mentor-text p {
    margin: 0;
    line-height: 1.82;
    color: var(--text-color);
    text-align: justify;
}

.team-detail-section {
    padding-top: 40px;
}

.team-detail-toolbar {
    margin-bottom: 16px;
}

.team-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    color: var(--primary-color);
    font-weight: 700;
}

.team-detail-back:hover {
    color: var(--secondary-color);
}

.team-detail-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: var(--surface-shadow);
    padding: 28px;
}

.team-detail-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3ebef;
}

.team-detail-photo {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(24, 144, 214, 0.14), rgba(13, 71, 161, 0.1));
    box-shadow: 0 18px 36px rgba(13, 71, 161, 0.18);
}

.team-detail-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(24, 144, 214, 0.12);
    color: var(--secondary-color);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.team-detail-name {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 10px 0 10px;
    color: var(--primary-color);
}

.team-detail-subtitle {
    font-size: 1.02rem;
    color: #4f6573;
    margin-bottom: 14px;
}

.team-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 71, 161, 0.14);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
}

.team-detail-content {
    padding-top: 24px;
}

.team-detail-block h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--secondary-color);
}

.detail-paragraph {
    margin-bottom: 14px;
    line-height: 1.92;
    color: #365061;
}

.team-detail-empty {
    padding: 40px 0;
    color: #516878;
}

/* 研究成果页面样式 */
.paper-list {
    padding-left: 20px;
    line-height: 1.8;
}

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

.paper-list a {
    color: var(--accent-color);
    word-break: break-all;
}

/* 产品页面样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
}

/* 设备页面样式 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.equipment-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.equipment-card:hover {
    transform: translateY(-4px);
}

.equipment-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.equipment-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.equipment-card p {
    font-size: 0.9rem;
    color: #555;
}

/* 联系我们页面样式 */
.contact-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

.contact-list li {
    margin-bottom: 8px;
}

/* 响应式处理 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .main-nav ul {
        gap: 10px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }

    .news-title-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news-title-item .news-date {
        min-width: auto;
    }

    .news-article {
        padding: 20px;
    }

    .news-article h2 {
        font-size: 1.45rem;
    }

    .team-detail-hero {
        grid-template-columns: 1fr;
    }

    .team-detail-photo {
        width: 180px;
        height: 180px;
    }

    .team-detail-card {
        padding: 20px;
    }
}

/* ===============================
   全站视觉优化覆盖层（2026）
   =============================== */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #1565c0;
    --accent-color: #1890d6;
    --light-bg: #f2f7fb;
    --text-color: #1a3a52;
    --surface-color: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(13, 71, 161, 0.12);
    --surface-shadow: 0 10px 30px rgba(13, 71, 161, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.75;
    background:
        radial-gradient(circle at 8% 0%, rgba(24, 144, 214, 0.14), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(19, 101, 192, 0.16), transparent 40%),
        linear-gradient(180deg, #f5f9fd 0%, #eef5fb 55%, #e7f0f9 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: color 0.2s ease;
}

.container {
    width: min(1120px, 90vw);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13, 71, 161, 0.92);
    box-shadow: 0 8px 24px rgba(5, 33, 71, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.header-container {
    min-height: 74px;
}

.logo {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    letter-spacing: 0.04em;
    font-size: 1.6rem;
}

.main-nav ul {
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav li a {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-nav li a:hover,
.main-nav li a.active {
    background-color: rgba(255, 255, 255, 0.18);
}

.hero {
    min-height: 68vh;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(5, 33, 71, 0.22);
}

.hero-overlay {
    background: linear-gradient(120deg, rgba(5, 33, 71, 0.7), rgba(13, 71, 161, 0.5));
}

.hero-content {
    max-width: 760px;
    padding: 0 20px;
    animation: heroRise 900ms ease both;
}

.hero h1 {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 28px;
    opacity: 0.95;
}

.btn {
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(120deg, #1890d6, #1565c0);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn:hover {
    background: linear-gradient(120deg, #1565c0, #0d47a1);
}

.section {
    padding: 76px 0;
}

.section-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin-bottom: 34px;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    position: relative;
}

.section-title::after {
    content: "";
    width: 84px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1890d6, #0d47a1);
    display: block;
    margin: 12px auto 0;
}

.about-section .container,
.contact-section .container,
.about-page-section .container,
.research-section .container,
.contact-page-section .container {
    max-width: 980px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: var(--surface-shadow);
    padding: 28px;
}

.news-list,
.directions,
.team-grid,
.products-grid,
.equipment-grid {
    width: min(1120px, 90vw);
    margin: 0 auto;
}

.news-item,
.direction-card,
.team-member,
.product-card,
.equipment-card,
.news-entry,
.news-article {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: var(--surface-shadow);
}

.news-item,
.direction-card,
.team-member,
.product-card,
.equipment-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.news-item:hover,
.direction-card:hover,
.team-member:hover,
.product-card:hover,
.equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(13, 71, 161, 0.2);
    border-color: rgba(24, 144, 214, 0.35);
}

.news-item h3,
.direction-card h3,
.team-member h3,
.product-card h3,
.equipment-card h3 {
    color: #0d47a1;
}

.news-title-list {
    width: min(1120px, 90vw);
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    background: var(--surface-color);
}

.news-title-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #e3ebef;
    transition: background-color 0.22s ease;
}

.news-title-item:hover {
    background-color: rgba(24, 144, 214, 0.08);
}

.news-title-item .news-date {
    margin: 0;
    color: #5b707b;
    font-weight: 600;
}

.news-title-item a {
    font-size: 1.05rem;
    font-weight: 700;
    color: #144659;
}

.news-title-item a:hover {
    color: #0f9a8d;
}

.more-link a,
.news-back-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(13, 71, 161, 0.3);
    font-weight: 700;
}

.more-link a:hover,
.news-back-link a:hover {
    border-color: rgba(24, 144, 214, 0.65);
}

.page-header-section {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    margin-bottom: 44px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.22);
}

.page-title {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    letter-spacing: 0.02em;
}

.breadcrumb {
    opacity: 0.95;
}

.paper-list {
    padding-left: 0;
    list-style: none;
}

.paper-list li {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid rgba(24, 144, 214, 0.65);
    border-radius: 8px;
    margin-bottom: 12px;
}

.news-article {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px;
}

.news-article h2 {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: clamp(1.65rem, 2.7vw, 2.15rem);
    margin-bottom: 12px;
}

.news-meta {
    margin-bottom: 18px;
    color: #5a6b72;
}

.news-cover {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.18);
}

.news-figure {
    margin: 18px 0 24px;
}

.news-figure figcaption {
    margin-top: 8px;
    color: #5a6b72;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.6;
}

.site-footer {
    margin-top: 28px;
    background: linear-gradient(135deg, #0d47a1, #0a2d5c);
    padding: 46px 0 24px;
}

.footer-column h4 {
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 30px;
    opacity: 0.88;
}

.copyright a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.copyright a:hover {
    color: var(--accent-color);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .header-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 8px 0 12px;
    }

    .main-nav ul {
        gap: 8px;
    }

    .hero {
        min-height: 58vh;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
}

@media (max-width: 992px) {
    .research-carousel {
        grid-auto-columns: minmax(
            min(240px, 100%),
            calc((100% - var(--research-carousel-gap)) / 2)
        );
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .about-section .container,
    .contact-section .container,
    .about-page-section .container,
    .research-section .container,
    .contact-page-section .container,
    .news-article {
        padding: 20px;
    }

    .news-title-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 16px;
    }

    .team-member {
        padding: 20px 16px;
    }

    .team-member img {
        width: 88px;
        height: 88px;
        margin-bottom: 14px;
    }

    .team-member h3 {
        font-size: 1.04rem;
    }

    .team-member p {
        font-size: 0.88rem;
    }

    .team-mentor-panel {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .team-mentor-photo-wrap {
        max-width: 260px;
        margin: 0 auto;
        width: 100%;
    }

    .team-mentor-body {
        width: 100%;
    }

    .research-group {
        padding: 20px;
    }

    .research-group-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .research-group-summary {
        flex-basis: auto;
    }

    .research-carousel {
        grid-auto-columns: minmax(0, 100%);
    }

    .research-card {
        padding: 18px;
    }

    .research-card-title {
        font-size: 1.02rem;
    }
}