/* ==========================================
   李瑞芳教授课题组 网站样式
   河南工业大学生物工程学院
   ========================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e3250;
    --accent: #c0392b;
    --text: #2c2c2c;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-light: #f4f6f9;
    --bg-section: #e9ecf1;
    --border: #d8dce3;
    --shadow: 0 2px 14px rgba(0,0,0,0.07);
    --shadow-lg: 0 6px 28px rgba(0,0,0,0.10);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1600px;
}

html { scroll-behavior: smooth; font-size: 18px; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--primary-dark); }
em { color: var(--primary-dark); font-style: normal; font-weight: 500; }

/* ---------- Container ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ---------- Section Common ---------- */
.py-60 { padding: 60px 0; }
.py-80 { padding: 80px 0; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.bg-light { background: var(--bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 45px;
}
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.section-title p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 720px;
    margin: 8px auto 0;
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.logo-text h1 { font-size: 1.35rem; font-weight: 700; color: var(--primary-dark); line-height: 1.3; }
.logo-text p { font-size: 0.85rem; color: var(--text-light); }

/* Navigation */
.nav ul { display: flex; gap: 4px; }
.nav a {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 4px;
    transition: var(--transition);
}
.nav a:hover, .nav a.active { color: #fff; background: var(--primary); }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ---------- Home: Title Image ---------- */
.home-title-img {
    width: 100%;
    margin: 0 auto;
}
.home-title-img img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* ---------- Home: Carousel + Research ---------- */
.home-hero {
    padding: 30px 0 40px;
}
.home-hero .container {
    max-width: 1700px;
    padding: 0 20px;
}
.hero-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.hero-carousel-wrap {
    width: 100%;
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-carousel {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    background: #e0e0e0;
}
.hero-carousel .carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-carousel .carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-carousel .carousel-slide.active { opacity: 1; }
.hero-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 5;
}
.hero-carousel .carousel-btn:hover { background: rgba(0,0,0,0.6); }
.hero-carousel .carousel-prev { left: 10px; }
.hero-carousel .carousel-next { right: 10px; }
.hero-carousel .carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-carousel .carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.hero-carousel .carousel-dot.active { background: #fff; transform: scale(1.3); }

/* Hero intro text beside carousel */
.hero-intro {
    flex: 1;
    padding: 10px 0;
}
.hero-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}
.hero-intro p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 12px;
}
.hero-intro .hero-link {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
}
.hero-intro .hero-link:hover { background: var(--primary-light); color: #fff; }

/* ---------- Home: Summary Section ---------- */
.home-section {
    padding: 55px 0;
}
.home-section:nth-child(even) { background: var(--bg-light); }
.home-section-title {
    text-align: center;
    margin-bottom: 35px;
}
.home-section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.home-section-title .section-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
}
.home-section-title .section-more:hover { text-decoration: underline; }

/* Summary research cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.summary-card {
    background: #fff;
    padding: 26px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}
.summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.summary-card .card-icon { font-size: 2rem; margin-bottom: 10px; }
.summary-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.summary-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* Summary team cards */
.summary-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.summary-member {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}
.summary-member:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.summary-member img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f0f0f0;
}
.summary-member .sm-info { padding: 16px; }
.summary-member .sm-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); }
.summary-member .sm-info span { font-size: 0.85rem; color: var(--text-muted); }

/* Summary news */
.summary-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.summary-news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
}
.summary-news-card:hover { box-shadow: var(--shadow-lg); }
.summary-news-card img {
    width: 180px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}
.summary-news-card .sn-content { padding: 20px; }
.summary-news-card .sn-date { font-size: 0.8rem; color: #fff; background: var(--primary); padding: 2px 10px; border-radius: 12px; display: inline-block; margin-bottom: 8px; }
.summary-news-card h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.4; }
.summary-news-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* Summary achievements */
.summary-achievements ul {
    max-width: 800px;
    margin: 0 auto;
}
.summary-achievements li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
    line-height: 1.7;
}
.summary-achievements li::before { content: '▸ '; color: var(--primary-light); font-weight: bold; }

/* ========== Detail Pages (sub pages) ========== */
.page-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.page-header p { font-size: 1rem; opacity: 0.85; }

/* ---------- Research Detail ---------- */
.research-detail-list { display: flex; flex-direction: column; gap: 20px; }
.research-detail-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}
.research-num {
    flex: 0 0 45px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
}
.research-detail-content h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 8px; }
.research-detail-content p { font-size: 0.95rem; color: var(--text-light); line-height: 1.9; }
.research-detail-content .research-img {
    display: block;
    max-width: 100%;
    margin-top: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.research-detail-content .research-img-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.research-detail-content .research-img-group .research-img {
    flex: 1 1 300px;
    max-width: 100%;
    margin-top: 0;
}
.research-books {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.research-books h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}
.research-books ol {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* ---------- Team Page ---------- */
.team-category { margin-bottom: 45px; }
.team-category-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 22px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-light);
}
.team-grid { display: grid; gap: 22px; }
.team-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
.team-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.team-grid.col-4 { grid-template-columns: repeat(4, 1fr); }
.team-grid.col-5 { grid-template-columns: repeat(5, 1fr); }

.team-member-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.team-member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-member-card.featured {
    display: flex;
    grid-column: 1 / -1;
}
.team-member-card.featured .member-photo { flex: 0 0 260px; }
.team-member-card.featured .member-photo img { width: 100%; height: 340px; object-fit: contain; background: #f0f0f0; }
.team-member-card.featured .member-info { padding: 28px; }
.team-member-card.featured .member-info h4 { font-size: 1.3rem; }

.member-photo { overflow: hidden; }
.member-photo img { width: 100%; height: 240px; object-fit: contain; background: #f0f0f0; transition: var(--transition); }
.team-member-card:hover .member-photo img { transform: scale(1.04); }

.member-info { padding: 18px; }
.member-info h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.member-role { display: block; font-size: 0.88rem; color: var(--primary-light); font-weight: 500; margin-bottom: 8px; }
.member-grade { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.member-info p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.member-detail { margin-top: 6px; font-size: 0.86rem !important; color: var(--text-muted) !important; }
.member-goto { margin-top: 6px; font-size: 0.85rem !important; color: var(--primary-light) !important; font-style: italic; }

/* ---------- Achievements Page ---------- */
.achieve-section {
    margin-bottom: 35px;
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.achieve-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.achieve-icon { font-size: 1.3rem; }

.achieve-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-btn {
    padding: 8px 22px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.paper-year-group { display: none; }
.paper-year-group.active { display: block; }

.paper-ol, .patent-ol { list-style: decimal; padding-left: 24px; }
.paper-ol li, .patent-ol li { font-size: 0.9rem; line-height: 1.9; margin-bottom: 10px; color: var(--text); }

.journal { color: var(--primary-light); font-weight: 500; }
.journal-tag {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.78rem;
    border-radius: 4px;
    margin-left: 4px;
    background: #eef2f7;
    color: var(--text-light);
    font-weight: 600;
}
.journal-tag.top { background: #fff3cd; color: #856404; }

/* ---------- News Page ---------- */
.news-list { display: flex; flex-direction: column; gap: 28px; }
.news-article {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.news-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-article .news-img { flex: 0 0 300px; }
.news-article .news-img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.news-article .news-body { padding: 24px; flex: 1; min-width: 0; }
.news-article .news-date { display: inline-block; padding: 3px 12px; font-size: 0.82rem; background: var(--primary); color: #fff; border-radius: 16px; margin-bottom: 10px; }
.news-article .news-body h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-article .news-body > p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-article .news-body > p:last-of-type {
    margin-bottom: 0;
}
.news-article .news-body .read-more-hint {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
}
.news-link { display: inline-block; margin-top: 6px; font-size: 0.92rem; font-weight: 600; color: var(--primary-light); }
.news-meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-person h3 { font-size: 1.35rem; color: var(--primary-dark); margin-bottom: 4px; }
.contact-person p { color: var(--text-light); font-size: 0.95rem; }
.contact-details { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.contact-details li { display: flex; gap: 12px; font-size: 0.95rem; align-items: flex-start; }
.contact-label { font-weight: 600; color: var(--primary-dark); min-width: 65px; flex-shrink: 0; }

.contact-recruit { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.contact-recruit h4 { font-size: 1.08rem; color: var(--primary-dark); margin-bottom: 12px; }
.recruit-item { margin-bottom: 12px; }
.recruit-item strong { font-size: 0.92rem; }
.recruit-item p { font-size: 0.9rem; color: var(--text-light); margin: 3px 0; }
.recruit-item ol { list-style: decimal; padding-left: 20px; }
.recruit-item ol li { font-size: 0.9rem; line-height: 1.8; }

.contact-map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.contact-map-wrap img { width: 100%; height: 420px; object-fit: cover; }
.map-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; padding: 40px 24px 20px;
}
.map-overlay h3 { font-size: 1.2rem; margin-bottom: 4px; }
.map-overlay p { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Footer (blue) ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer h4 { font-size: 1.1rem; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer p, .footer a { font-size: 0.9rem; line-height: 1.9; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }
.footer-links ul { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    z-index: 10000;
    background: none;
    border: none;
    line-height: 1;
}
.lightbox .lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* ---------- Member photo: show face ---------- */
.member-photo img,
.summary-member img {
    object-position: top center;
}

/* ---------- Homepage 2-col row layout ---------- */
.home-row {
    display: grid;
    gap: 30px;
    align-items: start;
}
.home-row.col-2 { grid-template-columns: 1fr 1fr; }
.home-row.col-2-1 { grid-template-columns: 1fr 1fr; align-items: stretch; }
.home-row-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    height: 100%;
}
.home-row-inner .home-section-title {
    text-align: left;
    margin-bottom: 18px;
}
.home-row-inner .home-section-title h2 { font-size: 1.3rem; }

/* Research cards in tight space */
.research-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-content: start;
}
.research-grid.compact .summary-card { padding: 18px 16px; text-align: left; }
.research-grid.compact .summary-card h4 { font-size: 0.95rem; }
.research-grid.compact .summary-card p { font-size: 0.84rem; }
.research-grid.compact .card-icon { display: none; }

/* News collapse */
.news-collapse-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    cursor: pointer;
}
.news-collapse-item:last-child { border-bottom: none; }
.news-collapse-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.news-collapse-header .nc-date {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.78rem;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
}
.news-collapse-header h4 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
}
.news-collapse-header .nc-arrow {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}
.news-collapse-item.open .nc-arrow { transform: rotate(180deg); }
.news-collapse-body {
    display: none;
    padding: 12px 0 4px;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
}
.news-collapse-item.open .news-collapse-body { display: block; }
.news-collapse-body .news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.news-collapse-body .news-link { font-size: 0.85rem; font-weight: 600; }

/* News mini cards (homepage) */
.news-mini-card {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.news-mini-card:last-child { border-bottom: none; }
.news-mini-card:hover { background: #fafbfc; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.news-mini-card:hover h4 { color: var(--primary-light); }
.news-mini-card img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 3px;
}
.news-mini-body { flex: 1; min-width: 0; }
.news-mini-body .nc-date {
    display: inline-block;
    padding: 1px 8px;
    font-size: 0.72rem;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 4px;
}
.news-mini-body h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-mini-body > p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News detail page */
.news-detail-img {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.news-detail-img img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}
.news-detail-content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

/* Achievements compact list */
.achieve-compact li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
    line-height: 1.7;
}
.achieve-compact li::before { content: '▸ '; color: var(--primary-light); font-weight: bold; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    html { font-size: 17px; }
    .hero-layout { flex-direction: column; }
    .hero-carousel-wrap { flex: 0 0 auto; width: 100%; }
    .hero-carousel { width: 100%; height: 280px; }
    .home-row.col-2-1 { grid-template-columns: 1fr; }
    .home-row.col-2 { grid-template-columns: 1fr; }
    .summary-cards { grid-template-columns: repeat(2, 1fr); }
    .summary-team { grid-template-columns: repeat(3, 1fr); }
    .team-grid.col-3, .team-grid.col-4, .team-grid.col-5 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .news-article { flex-direction: column; }
    .news-article .news-img { flex: 0 0 auto; }
    .news-article .news-img img { height: 200px; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    .nav { display: none; }
    .nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); }
    .nav.open ul { flex-direction: column; padding: 8px; }
    .nav-toggle { display: flex; }

    .hero-carousel { height: 220px; }
    .summary-cards { grid-template-columns: 1fr; }
    .summary-team { grid-template-columns: repeat(2, 1fr); }
    .summary-news { grid-template-columns: 1fr; }
    .summary-news-card { flex-direction: column; }
    .summary-news-card img { width: 100%; height: 160px; }

    .team-grid.col-2, .team-grid.col-3, .team-grid.col-4, .team-grid.col-5 { grid-template-columns: repeat(2, 1fr); }
    .team-member-card.featured { flex-direction: column; }
    .team-member-card.featured .member-photo { flex: 0 0 auto; }
    .member-photo img { height: 200px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .team-grid.col-2, .team-grid.col-3, .team-grid.col-4, .team-grid.col-5 { grid-template-columns: 1fr; }
    .hero-carousel { height: 180px; }
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .page-dots {
    padding: 0 2px;
    color: var(--text-muted);
}
