/* ========== 基础 ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px
}

body {
    font-family: "PingFang SC","Microsoft YaHei",sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased
}

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

ul {
    list-style: none
}

img {
    max-width: 100%
}

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

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,22,40,.85);
    backdrop-filter: blur(12px);
    transition: all .3s
}

    .navbar.scrolled {
        background: rgba(10,22,40,.96);
        box-shadow: 0 2px 20px rgba(0,0,0,.3)
    }

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1.2
}

.logo-img {
    height: 36px;
    width: auto;
    display: block
}

.logo-cn {
    font-size: 20px;
    font-weight: 700;
    color: #4a90d9;
    letter-spacing: 2px
}

.logo-en {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    letter-spacing: 1px;
    margin-top: 0
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center
}

    .nav-links a {
        color: rgba(255,255,255,.8);
        font-size: 14px;
        transition: color .2s;
        position: relative;
        padding: 4px 0
    }

        .nav-links a:hover {
            color: #4a90d9
        }

            .nav-links a:hover::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                height: 2px;
                background: #4a90d9;
                border-radius: 2px
            }

        .nav-links a.admin-link {
            color: rgba(74,144,217,.85);
            font-size: 13px;
            padding: 4px 10px;
            border: 1px solid rgba(74,144,217,.4);
            border-radius: 20px;
            margin-left: 6px
        }

            .nav-links a.admin-link:hover {
                background: rgba(74,144,217,.15);
                color: #4a90d9
            }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px
}

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all .3s
    }

/* ========== 首屏 Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg,#0a1628 0%,#0f2440 40%,#1a3a6c 100%)
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%,rgba(74,144,217,.25),transparent 60%),radial-gradient(ellipse at 70% 30%,rgba(40,80,160,.2),transparent 50%);
    animation: bgPulse 8s ease-in-out infinite
}

@keyframes bgPulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .7
    }
}

/* Hero 区域 Logo 展示 */
.hero-logo-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: .08;
    pointer-events: none
}

.hero-logo {
    width: 280px;
    height: auto;
    max-width: 40vw
}

.hero-logo-cn {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 6px;
    margin-top: 12px
}

.hero-logo-en {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    letter-spacing: 3px;
    margin-top: 4px
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px
}

.hero-title {
    font-size: clamp(32px,5vw,56px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(74,144,217,.4)
}

.hero-sub {
    font-size: clamp(14px,2vw,18px);
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    letter-spacing: 1px
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg,#4a90d9,#2d6cb0);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(74,144,217,.4)
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 30px rgba(74,144,217,.6)
    }

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 14px;
    z-index: 2
}

    .hero-scroll span {
        display: block;
        width: 4px;
        height: 8px;
        background: rgba(255,255,255,.7);
        border-radius: 2px;
        margin: 8px auto;
        animation: scrollDot 1.5s ease-in-out infinite
    }

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateY(12px)
    }
}

/* ========== 通用 section ========== */
.section {
    padding: 100px 0;
    position: relative
}

    .section.alt {
        background: #f7f9fc
    }

    .section.dark {
        background: linear-gradient(135deg,#0a1628,#0f2440);
        color: #fff
    }

.section-title {
    font-size: clamp(24px,3.5vw,36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #0a1628
}

    .section-title.light {
        color: #fff
    }

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 56px;
    font-size: 15px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto
}

.section.dark .section-desc {
    color: rgba(255,255,255,.7)
}

/* ========== 产品卡片 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .35s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04)
}

    .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#4a90d9,#2d6cb0);
        transform: scaleX(0);
        transition: transform .35s;
        transform-origin: left
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(74,144,217,.15)
    }

        .card:hover::before {
            transform: scaleX(1)
        }

.product-card .card-icon {
    font-size: 42px;
    margin-bottom: 18px
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a1628
}

.product-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8
}

/* ========== 技术优势 ========== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 32px
}

.tech-item {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    transition: all .3s
}

    .tech-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(74,144,217,.12)
    }

.tech-num {
    font-size: 42px;
    font-weight: 800;
    color: rgba(74,144,217,.2);
    margin-bottom: 12px;
    line-height: 1
}

.tech-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a1628
}

.tech-item p {
    font-size: 14px;
    color: #666
}

/* ========== 临床科研服务（新增） ========== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px
}

.research-card {
    text-align: center;
    padding: 40px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    transition: all .35s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.04)
}

    .research-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#2d6cb0,#4a90d9);
        transform: scaleX(0);
        transition: transform .35s;
        transform-origin: left
    }

    .research-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 36px rgba(45,108,176,.12)
    }

        .research-card:hover::before {
            transform: scaleX(1)
        }

.research-icon {
    font-size: 44px;
    margin-bottom: 18px
}

.research-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a1628
}

.research-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8
}

/* ========== 新闻动态 ========== */
.news-list-wrap {
    position: relative
}

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

.news-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    border-left: 4px solid #4a90d9;
    transition: all .3s;
    opacity: 0;
    transform: translateY(16px)
}

    .news-item.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity .5s ease,transform .5s ease
    }

    .news-item:hover {
        box-shadow: 0 6px 24px rgba(74,144,217,.12);
        transform: translateY(-2px)
    }

.news-date {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    padding: 8px 0;
    background: linear-gradient(135deg,#eef4ff,#f5f8ff);
    border-radius: 10px
}

    .news-date .day {
        font-size: 24px;
        font-weight: 800;
        color: #2d6cb0;
        display: block;
        line-height: 1.1
    }

    .news-date .month {
        font-size: 12px;
        color: #4a90d9;
        margin-top: 2px;
        display: block
    }

    .news-date .year {
        font-size: 11px;
        color: #999;
        display: block;
        margin-top: 1px
    }

.news-body {
    flex: 1
}

    .news-body h3 {
        font-size: 16px;
        font-weight: 700;
        color: #0a1628;
        margin-bottom: 8px;
        line-height: 1.5
    }

    .news-body p {
        font-size: 14px;
        color: #666;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden
    }

.news-actions {
    text-align: center;
    margin-top: 36px
}

.btn-outline {
    display: inline-block;
    padding: 12px 36px;
    background: transparent;
    color: #4a90d9;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #4a90d9;
    border-radius: 50px;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: 1px
}

    .btn-outline:hover {
        background: #4a90d9;
        color: #fff
    }

/* ========== 新闻弹窗（展开界面） ========== */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: stretch;
    justify-content: flex-end
}

    .news-modal.open {
        display: flex
    }

.news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .35s
}

.news-modal.open .news-modal-backdrop {
    opacity: 1
}

.news-modal-panel {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto
}

.news-modal.open .news-modal-panel {
    transform: translateX(0)
}

.news-modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg,#0a1628,#1a3a6c);
    color: #fff
}

    .news-modal-header h3 {
        font-size: 18px;
        font-weight: 700
    }

.news-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

    .news-modal-close:hover {
        background: rgba(255,255,255,.3)
    }

.news-modal-body {
    padding: 24px 28px 40px
}

.news-list-modal .news-item {
    border-left-color: #2d6cb0
}

.news-list-modal .news-body p {
    -webkit-line-clamp: unset;
    display: block
}

/* ========== 合作机构 Logo 墙 ========== */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
    margin-top: 40px
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.03);
    min-height: 130px
}

    .logo-card img {
        max-width: 100%;
        max-height: 52px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block
    }

.logo-card-name {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.4;
    font-weight: 500
}

/* ========== 关于我们 ========== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 56px;
    align-items: start
}

.about-text p {
    font-size: 15px;
    line-height: 2;
    color: rgba(255,255,255,.85);
    margin-bottom: 16px
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px
}

.stat {
    text-align: center;
    padding: 28px 16px;
    background: rgba(255,255,255,.06);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1)
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #4a90d9;
    line-height: 1.1
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-top: 6px
}

/* ========== 联系我们 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px
}

.contact-card {
    text-align: center;
    padding: 36px 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s
}

    .contact-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(74,144,217,.12)
    }

.contact-icon {
    font-size: 36px;
    margin-bottom: 16px
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a1628
}

.contact-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8
}

/* ========== 页脚 ========== */
.footer {
    background: #07101e;
    color: rgba(255,255,255,.7);
    padding: 56px 0 0
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 8px
}

.footer-brand .logo-cn {
    color: #4a90d9;
    font-size: 20px
}

.footer-brand .logo-en {
    color: rgba(255,255,255,.4);
    font-size: 11px;
    margin-top: 4px
}

.footer-brand p {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.5)
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

    .footer-links a {
        font-size: 14px;
        color: rgba(255,255,255,.6);
        transition: color .2s
    }

        .footer-links a:hover {
            color: #4a90d9
        }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,.35)
}

/* ========== 入场动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease,transform .7s ease
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0)
    }

/* ========== 响应式 ========== */
@media (max-width:960px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10,22,40,.98);
        padding: 12px 0
    }

        .nav-links.open {
            display: flex
        }

        .nav-links a {
            padding: 14px 24px;
            font-size: 15px;
            border-bottom: 1px solid rgba(255,255,255,.06)
        }

    .nav-toggle {
        display: flex
    }

    .card-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .tech-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .research-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .logo-wall {
        grid-template-columns: repeat(3,1fr);
        gap: 16px
    }

    .footer-inner {
        flex-direction: column
    }

    .hero-logo {
        width: 200px
    }

    .hero-logo-cn {
        font-size: 28px
    }
}

@media (max-width:560px) {
    .section {
        padding: 72px 0
    }

    .card-grid {
        grid-template-columns: 1fr
    }

    .tech-grid {
        grid-template-columns: 1fr
    }

    .research-grid {
        grid-template-columns: 1fr
    }

    .logo-wall {
        grid-template-columns: repeat(2,1fr);
        gap: 12px
    }

    .logo-card {
        padding: 16px 10px;
        min-height: 100px
    }

        .logo-card img {
            max-height: 40px
        }

    .logo-card-name {
        font-size: 11px
    }

    .news-item {
        flex-direction: column;
        gap: 12px
    }

    .news-date {
        width: auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px
    }

        .news-date .day, .news-date .month, .news-date .year {
            display: inline;
            font-size: 13px
        }

    .about-stats {
        grid-template-columns: 1fr
    }

    .hero-logo {
        width: 160px
    }

    .hero-logo-cn {
        font-size: 22px;
        letter-spacing: 3px
    }
}
/* ========== News detail modal (appended; existing rules untouched) ========== */
.news-item.news-clickable {
    cursor: pointer
}

    .news-item.news-clickable .news-body h3 {
        transition: color .2s
    }

    .news-item.news-clickable:hover .news-body h3, .news-item.news-clickable:focus-visible .news-body h3 {
        color: #4a90d9
    }

    .news-item.news-clickable:focus-visible {
        outline: 2px solid #4a90d9;
        outline-offset: 2px
    }

.news-detail-meta {
    display: inline-block;
    font-size: 12px;
    color: #4a90d9;
    background: #eef4ff;
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 16px;
    letter-spacing: .5px
}

.news-detail-title {
    font-size: clamp(20px,2.6vw,28px);
    font-weight: 700;
    color: #0a1628;
    line-height: 1.45;
    margin-bottom: 18px
}

.news-detail-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 18px;
    text-align: justify;
    word-break: break-word
}

    .news-detail-text p:last-child {
        margin-bottom: 0
    }
