/* ── Educational Omics Lab — Brand Styles ── */

:root {
    --eo-blue: #3C6F9A;
    --eo-teal: #3C938A;
    --eo-accent: #00b297;
    --eo-gradient: linear-gradient(149deg, #3C6F9A, #3C938A);
    --eo-text: #343a40;
    --eo-muted: #6c757d;
    --eo-bg: #f8fafc;
    --eo-border: #e9ecef;
}

body {
    font-family: "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--eo-text);
    background: var(--eo-bg);
    margin: 0;
}

a { color: var(--eo-blue); }
a:hover { color: var(--eo-teal); }

/* ── Navbar ── */
.eo-navbar {
    background: white;
    border-bottom: 1px solid var(--eo-border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.eo-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.eo-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--eo-text);
    font-weight: 700;
    font-size: 1.05rem;
}
.eo-nav-brand:hover { color: var(--eo-text); text-decoration: none; }
.eo-nav-brand img { height: 32px; }
.eo-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.eo-nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eo-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.eo-nav-links a:hover,
.eo-nav-links a.active {
    color: var(--eo-blue);
    background: rgba(60,111,154,0.06);
    text-decoration: none;
}
.eo-nav-cta {
    background: var(--eo-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 7px 18px !important;
}
.eo-nav-cta:hover { opacity: 0.9; color: white !important; }

/* Mobile hamburger */
.eo-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--eo-border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.2rem;
    color: var(--eo-muted);
    cursor: pointer;
}
@media (max-width: 767px) {
    .eo-nav-toggle { display: block; }
    .eo-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 12px 20px;
        border-bottom: 1px solid var(--eo-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .eo-nav-links.open { display: flex; }
    .eo-nav-links a { width: 100%; padding: 10px 14px; }
}

/* ── Hero ── */
.eo-hero {
    background: var(--eo-gradient);
    color: white;
    padding: 72px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.eo-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(0,178,151,0.12) 0%, transparent 40%);
    pointer-events: none;
}
.eo-hero > * { position: relative; z-index: 1; }
.eo-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.eo-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 600px;
    margin: 0 auto 8px;
}
.eo-hero .lead {
    font-size: 0.95rem;
    opacity: 0.75;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}
.eo-hero-sm { padding: 50px 24px 36px; }
.eo-hero-sm h1 { font-size: 1.7rem; }

/* ── Section ── */
.eo-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.eo-section-title {
    margin-bottom: 28px;
    scroll-margin-top: 84px;
}
.eo-section-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--eo-text);
    margin-bottom: 6px;
}
.eo-section-title p {
    color: var(--eo-muted);
    font-size: 0.93rem;
    margin-bottom: 0;
}

.eo-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -12px 0 32px;
    padding: 10px;
    background: white;
    border: 1px solid var(--eo-border);
    border-radius: 8px;
}
.eo-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 13px;
    border-radius: 6px;
    color: var(--eo-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.eo-section-nav a:hover,
.eo-section-nav a:focus {
    color: var(--eo-blue);
    background: rgba(60,111,154,0.07);
    text-decoration: none;
}

/* ── Cards ── */
.eo-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--eo-border);
    padding: 24px;
    height: 100%;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.eo-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-color: #dee2e6;
}
.eo-card h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--eo-text);
}
.eo-card p {
    font-size: 0.9rem;
    color: var(--eo-muted);
    line-height: 1.65;
    margin-bottom: 0;
}
.eo-card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.eo-stack-figure {
    padding: 14px;
}
.eo-stack-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.eo-stack-figure figcaption {
    margin: 10px 4px 0;
    color: var(--eo-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 767px) {
    .eo-section-nav {
        margin-top: -16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .eo-section-nav a {
        white-space: nowrap;
    }
    .eo-stack-figure {
        padding: 8px;
    }
}

/* ── Dimension cards ── */
.dim-card .dim-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

/* ── CTA band ── */
.eo-cta {
    background: var(--eo-gradient);
    border-radius: 10px;
    padding: 32px;
    color: white;
    text-align: center;
}
.eo-cta h4 { font-weight: 600; margin-bottom: 10px; }
.eo-cta p { opacity: 0.9; margin-bottom: 18px; max-width: 550px; margin-left: auto; margin-right: auto; }
.eo-cta .btn-cta {
    background: white;
    color: var(--eo-blue);
    font-weight: 600;
    padding: 11px 32px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: box-shadow 0.3s;
}
.eo-cta .btn-cta:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.2); color: var(--eo-blue); text-decoration: none; }

/* ── Link cards ── */
.eo-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--eo-border);
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.eo-link-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    border-color: var(--eo-accent);
    text-decoration: none;
    color: inherit;
}
.eo-link-card h6 { font-weight: 600; margin-bottom: 3px; font-size: 0.95rem; }
.eo-link-card p { color: var(--eo-muted); font-size: 0.85rem; margin-bottom: 0; }

/* ── Paper list ── */
.paper-item {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--eo-border);
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.paper-item:hover { border-color: #dee2e6; }
.paper-title { font-weight: 600; font-size: 0.95rem; color: var(--eo-text); margin-bottom: 4px; }
.paper-title a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.paper-title a:hover { color: var(--eo-blue); text-decoration: none; }
.paper-meta { font-size: 0.85rem; color: var(--eo-muted); }
.paper-meta a { color: var(--eo-blue); }
.paper-badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
.paper-award {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    background: #fff3cd;
    color: #856404;
    margin-left: 6px;
}

/* ── Category pills ── */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cat-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    border: 1px solid var(--eo-border);
    color: var(--eo-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--eo-blue);
    color: white;
    border-color: var(--eo-blue);
    text-decoration: none;
}

/* ── Team ── */
.pi-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--eo-border);
    padding: 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pi-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--eo-border);
    flex-shrink: 0;
}
.pi-info { flex: 1; min-width: 240px; }
.pi-info h3 { font-weight: 700; font-size: 1.3rem; margin-bottom: 4px; }
.pi-info .title { color: var(--eo-muted); font-size: 0.95rem; margin-bottom: 12px; }
.pi-info .affiliation { font-size: 0.9rem; color: var(--eo-muted); margin-bottom: 14px; }
.pi-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: #f0f4f8;
    color: var(--eo-blue);
    margin-right: 8px;
    margin-bottom: 6px;
    transition: background 0.2s;
}
.pi-links a:hover { background: #e2eaf2; text-decoration: none; }

.member-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--eo-border);
    padding: 20px;
    text-align: center;
    height: 100%;
}
.member-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--eo-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 12px;
}
.member-card h6 { font-weight: 600; margin-bottom: 2px; }
.member-card .role { font-size: 0.82rem; color: var(--eo-muted); margin-bottom: 6px; }
.member-card .focus { font-size: 0.82rem; color: var(--eo-text); }

/* ── Pipeline steps ── */
.pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin-bottom: 20px;
}
.pipeline-step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 16px 12px;
    position: relative;
}
.pipeline-step .step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--eo-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 10px;
}
.pipeline-step h6 { font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.pipeline-step p { font-size: 0.8rem; color: var(--eo-muted); margin-bottom: 0; }
.pipeline-step::after {
    content: '\2192';
    position: absolute;
    right: -8px;
    top: 26px;
    font-size: 1.2rem;
    color: #ced4da;
}
.pipeline-step:last-child::after { display: none; }
@media (max-width: 767px) {
    .pipeline-step::after { display: none; }
}

/* ── Footer ── */
.eo-footer {
    background: #1a2332;
    color: rgba(255,255,255,0.7);
    padding: 40px 24px 30px;
    margin-top: 40px;
}
.eo-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.eo-footer a:hover { color: white; text-decoration: underline; }
.eo-footer h6 { color: white; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.eo-footer ul { list-style: none; padding: 0; margin: 0; }
.eo-footer li { margin-bottom: 6px; font-size: 0.88rem; }
.eo-footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 28px;
    font-size: 0.82rem;
    opacity: 0.6;
    text-align: center;
}

/* ── Info note ── */
.eo-note {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 24px;
    border: 1px solid var(--eo-border);
}
.eo-note p { color: var(--eo-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0; }

/* ── Contact ── */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(60,111,154,0.08);
    color: var(--eo-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item h6 { font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: var(--eo-muted); margin-bottom: 0; }

/* ── 404 ── */
.eo-404 {
    text-align: center;
    padding: 80px 24px;
}
.eo-404 h1 { font-size: 4rem; font-weight: 700; color: var(--eo-blue); }
.eo-404 p { font-size: 1.1rem; color: var(--eo-muted); }
