/* ==========================================================================
   PolyU JC STEM Lab — cassiopeia user overrides (2026-08-13)
   设计参考：html/style.css（静态原型）
   ========================================================================== */

:root {
    --primary: #A02337;
    --primary-light: #C03A4E;
    --primary-dark: #7A1A29;
    --primary-tint: #F9EEF0;
    --secondary: #49494b;
    --ink: #1c1c1e;
    --footer-bg: #333;
}

/* ---------- Header: 双 logo ---------- */
.header.container-header {
    background: #fff;
}

.header .grid-child {
    justify-content: center;
}

/* 全站统一头部：logo 区（首页/非首页同款） */
.header-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 4px;
}

.header-main .header-logos {
    justify-content: center;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.header-logo-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logos .school-logo {
    height: 122px;
    width: auto;
    object-fit: contain;
}

.header-logos .lab-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 80px;
    background: #f0f4fb;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .header-logos .school-logo,
    .header-logos .lab-logo {
        height: 52px;
    }

    .header-divider {
        display: none;
    }

    .header-logos {
        gap: 16px;
    }

    .header-logo-item {
        gap: 16px;
    }
}

/* ---------- Header: 导航（2026-08-14 与首页 nav-menu 一致） ---------- */
.container-nav {
    border-top: 1px solid #eee;
    justify-content: center;
}

.container-nav .mod-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0 2px;
}

.container-nav .mod-menu > li {
    list-style: none;
    margin: 0;
}

.container-nav .mod-menu > li > a {
    position: relative;
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    padding: 16px 0 14px;
    text-decoration: none !important;
    transition: color .2s;
}

.container-nav .mod-menu > li > a:hover {
    color: #003b6f;
}

.container-nav .mod-menu > li.current > a,
.container-nav .mod-menu > li.active > a {
    color: #003b6f;
    font-weight: 700;
}

.container-nav .mod-menu > li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(to right, #e53935 33%, #fbc02d 33%, #fbc02d 66%, #1976d2 66%);
}

/* More 下拉（与首页 dropdown-menu-custom 一致） */
.container-nav .mod-menu > li.deeper.parent {
    position: relative;
}

.container-nav .mod-menu > li.deeper.parent > .mod-menu__toggle-sub {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    background: none;
    border: 0;
    padding: 16px 0 14px;
    cursor: pointer;
    transition: color .2s;
}

.container-nav .mod-menu > li.deeper.parent > .mod-menu__toggle-sub:hover {
    color: #003b6f;
}

.container-nav .mod-menu > li.deeper.parent:hover > .mod-menu__sub {
    display: block;
}

.container-nav .mod-menu .mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    z-index: 20;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.container-nav .mod-menu .mod-menu__sub li {
    list-style: none;
}

.container-nav .mod-menu .mod-menu__sub a {
    display: block;
    font-size: 14px;
    color: #333;
    padding: 10px 5px;
    text-align: center;
    text-decoration: none;
    transition: color .2s;
}

.container-nav .mod-menu .mod-menu__sub a:hover {
    color: #003b6f;
}

/* ---------- Full-width page layouts (blog_static / blog_publications) ----------
   NOTE: specificity must beat cassiopeia's
   `body:not(.has-sidebar-left) .site-grid .container-component { grid-column-start: main-start; }` */
body.site .site-grid .container-component.full-width {
    grid-column: full-start / full-end;
    max-width: none;
}

/* ---------- Hero (pageblocks) ---------- */
.pb-hero {
    width: 100%;
    min-height: 700px;
    background: #12395a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 30px;
}

.pb-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

.pb-hero h1 {
    font-size: 58px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    letter-spacing: .5px;
}

.pb-hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, .82);
    margin: 0;
    max-width: 680px;
    line-height: 1.8;
}

/* ---------- Footer (pageblocks, static-page layout) ---------- */
.container-footer.footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 55px 0 0;
}

.container-footer .grid-child {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    width: 100%;
    padding: 30px 0 0;
}

.footer-col {
    min-width: 0;
}

.footer-col-lg3 {
    grid-column: span 3;
}

.footer-col-lg2 {
    grid-column: span 2;
}

.footer-col h3 {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: rgba(255, 255, 255, .4);
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .75);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    padding: 4px 0;
}

.footer-col li a {
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-color .2s;
}

.footer-col li a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, .8);
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 14px;
}

.footer-text:last-child {
    margin-bottom: 0;
}

/* Find Us */
.find-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.find-item i {
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, .75);
}

.find-item span {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
}

/* Connect With Us */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 180px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 15px;
    transition: background .2s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, .3);
}

.social-icons .social-text {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .12);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    padding: 0 3px;
    white-space: nowrap;
    border-radius: 50%;
}

/* Subscribe to Updates */
.subscribe-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 12px;
    line-height: 1.6;
}

.subscribe-box {
    display: flex;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .25);
}

.subscribe-box input {
    border: 0;
    outline: none;
    width: 100%;
    padding: 0 10px;
    background: transparent;
    color: #fff;
}

.subscribe-box input::placeholder {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 300;
}

.subscribe-box button {
    width: 40px;
    border: 0;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 45px;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-inner {
    display: contents;
}

.footer-bottom p {
    color: inherit;
    font-size: 13px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.footer-links a {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links span {
    color: rgba(255, 255, 255, .75);
}

/* ---------- articles 区块（文章列表） ---------- */
.articles-block-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 22px;
    line-height: 1.3;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.articles-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}

.articles-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.articles-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.articles-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.articles-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.articles-date {
    font-size: 12px;
    color: #999;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.articles-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 8px;
}

.articles-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.articles-title a:hover {
    color: var(--primary);
}

.articles-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.articles-item .more-link {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.articles-item .more-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
