/* ================= GLOBAL ================= */
:root {
    --title: #3E3A35;
    --quote: #8B7D6B;
    --accent: #B85C1A; 
     --nav: #2F2433; 
}

* {
    box-sizing: border-box;
}
 
body { 
    margin: 0;
    background: white;
    font-family: Arial, sans-serif;
    color: var(--title);
}

/* ================= HERO ================= */
.sub-hero {
    position: relative;
    height: var(--hero-h, 50vh);
    min-height: 280px;
    background: url("../team/team_pic.png") center 24% / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height 0.15s linear;
}

.sub-hero::before,
.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sub-hero::before {
    background: radial-gradient(
        circle at center,
        rgba(240,242,245,0.05) 0%,
        rgba(240,242,245,0.08) 70%,
        rgba(240,242,245,0.18) 100%
    );
}

.sub-hero::after {
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.00) 90%,
        rgba(0,0,0,0.20) 100%
    );
}

/* ================= NAV ================= */
.navbar {
    position: fixed;
    top: 25px;
    right: 40px;
    z-index: 1000;
}

.nav-right {
    display: flex;
    gap: 24px;
}

.nav-right a {
    text-decoration: none;
    color: var(--nav);
    font-size: 16px;
    font-weight: 600;
    transition: 0.25s;
}

.nav-right a:hover {
    color: #A63D1E;
    transform: scale(1.08);
}

.nav-right a.active {
    color: var(--accent);
    font-weight: 700;
}

.navbar,
.nav-right {
    z-index: 1100;
}

.top-glass-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    border-bottom: 1px solid rgba(255,255,255,0.05);

    z-index: 1000;
    pointer-events: none;
}

/* ================= HERO TEXT ================= */
.sub-hero-text {
    position: relative;
    z-index: 5;
    text-align: center;
}

.sub-hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--title);
    margin: 0 0 10px;
}

.sub-hero-text h1 span {
    color: inherit;
}

/* ================= CONTENT ================= */
.team-intro {
    max-width: 900px;
    margin: 15px auto 45px;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #111;
}

.team-container {
    max-width: 1100px;
    margin: auto;
    padding: 80px 30px;
}

.section-title {
    font-size: 30px;
    margin: 70px 0 35px;
    border-left: 4px solid var(--accent);
    padding-left: 14px;
}

/* ============================= MEMBER =============================== */
.member-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 45px;
    overflow: visible;   /* NEW */
}

.member-info {
    transition: transform 0.45s ease;
}

.member-info h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.member-info > span {
    display: block;
    color: var(--accent);
    margin-bottom: 12px;
}

.member-info p:not(.contact-line) {
    color: var(--quote);
    line-height: 1.8;
    max-width: 700px;
}

/* ================= PI single photo ‼️================= */
.pi-photo {
    width: 220px;
    height: 260px;
}

.pi-photo .stack-photo {
    position: relative;
    width: 220px;
    height: 260px;
    transform: none !important;
    border-radius: 18px;
}

/* ================================抽拉照片=============================== */
.photo-stack {        /*容器宽度*/
    position: relative;
    width: 220px;     
    height: 260px;
    flex-shrink: 0;
    overflow: visible; 
}

.stack-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    border: 0.5px solid #ddd;
    background: #fff;
    box-shadow: 0 0px 0px rgba(0,0,0,0.05); /*阴影边框0*/
    transition: transform 0.45s ease;
}

/* ======NEW: 扑克牌边角===== */
.photo1 {
    z-index: 4;
    transform: translateX(0) rotate(0deg);
}

.photo2 {
    z-index: 3;
    transform: translateX(0px) rotate(0deg);
}

.photo3 {
    z-index: 2;
    transform: translateX(0px) rotate(0deg);
}

.photo4 {
    z-index: 1;
    transform: translateX(0px) rotate(0deg);
}

/* ======== NEW: hover 展开，+photo-stack-width 和 member-row:hover .member-info-teansforme======= */
.photo-stack:hover .photo2 {
    transform: translateX(220px) rotate(-2deg);
}

.photo-stack:hover .photo3 {
    transform: translateX(440px) rotate(2deg);
}

.photo-stack:hover .photo4 {
    transform: translateX(660px) rotate(-3deg);
}

.photo-stack:hover + .member-info { /*文字区域右移距离*/
    transform: translateX(700px);
}
.pi-photo:hover + .member-info { /*PI部分文字区域不右移*/
    transform: none;
}

/* ================= CONTACT ================= */
.contact-line {
    color: var(--quote);
    line-height: 1.8;
    margin-bottom: 8px;
}

.contact-line strong {
    font-weight: 600;
    color: var(--quote);
}

.contact-line .indent {
    display: block;
    margin-left: 52px;
    color: var(--quote);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .member-row {
        flex-direction: column;
        text-align: center;
    }
}

/* ================= EMAIL ================= */
.email-link {
    color: #2F5D8C;
    text-decoration: none;
    transition: 0.3s;
}

.email-link:hover {
    color: #1E466B;
    text-decoration: underline;
}

/* ================= LAB ALUMNI GALLERY ================= */
.alumni-gallery {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.alumni-item {
    text-align: center;
}

.alumni-item img {
    width: min(820px, 90%); /*图片宽度控制，最大是x px，不会全屏，小屏幕自动缩小*/
    height: auto;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    transition: transform 0.35s ease;
}

.alumni-item img:hover {
    transform: scale(1.02);
}

.alumni-caption {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--title);
}

.alumni-names {
    margin-top: 8px;
    font-size: 15px;
    color: var(--quote);
    line-height: 1.7;
}

/* =========================== top left logo =========================== */
.wu-logo {
    position: fixed;
    top: 3px;
    left: 28px;
    z-index: 1200;
}

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