/* NTLive Cinematic Theme */
:root {
    --bg-black: #000000;
    --bg-dark: #111111;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-darkgray: #666666;
    --accent-red: #E50914; /* 鲜明的戏剧/电影红 */
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 导航栏 */
.nav-minimal {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ticket-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-link:hover {
    color: var(--accent-red);
}

.en-sub {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
}

/* 首屏 Hero */
.hero {
    position: relative;
    min-height: 92svh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 7rem 4rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
    filter: brightness(0.78) saturate(0.9);
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.68) 38%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.42) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.76) 0%, rgba(0,0,0,0.08) 42%, rgba(0,0,0,0.44) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-top: 2rem;
}

.hero-name {
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 1.15rem;
    font-size: 7.2rem;
}

.headline {
    margin-bottom: 1.45rem;
    line-height: 1.08;
}

.primary-role {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 3.15rem;
    font-weight: 900;
    line-height: 1.08;
}

.headline-secondary {
    display: block;
    margin-top: 0.42rem;
    color: rgba(255,255,255,0.64);
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 1.12;
}

.sub-headline {
    font-size: 1.28rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.6rem;
    max-width: 620px;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 680px;
    margin-bottom: 2.1rem;
}

.hero-tags > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.32rem 0.72rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.24);
    color: rgba(255,255,255,0.86);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

.action-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 900;
    padding-bottom: 4px;
    border-bottom: 4px solid var(--accent-red);
    transition: opacity 0.3s;
}

.action-link:hover {
    opacity: 0.7;
}

.action-link-secondary {
    color: rgba(255,255,255,0.76);
    border-bottom-color: rgba(255,255,255,0.32);
    font-size: 1.05rem;
}

body.en-mode .hero-name {
    font-size: 5.7rem;
    line-height: 1.02;
}

body.en-mode .primary-role {
    font-size: 3.15rem;
}

body.en-mode .headline-secondary {
    font-size: 2.25rem;
}

body.en-mode .sub-headline {
    max-width: 680px;
}

.action-link.large {
    font-size: 3rem;
    letter-spacing: -1px;
}

.en-inline {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
}

/* 通用区块 */
.section-dark {
    background-color: var(--bg-dark);
    padding: 4rem 4rem;
}

.section-black {
    background-color: var(--bg-black);
    padding: 4rem 4rem;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title:hover::after {
    width: 100%;
}

.en-title {
    font-size: 1.8rem;
    color: var(--text-darkgray);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* About Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.large-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.body-text {
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.en-text {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.en-text-inline {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-left: 0.5rem;
}

.edu-block {
    margin-bottom: 1.5rem;
    border-left: 2px solid #333;
    padding-left: 1.5rem;
}

.bullet-list {
    list-style: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bullet-list li::before {
    content: "—";
    color: #666;
    margin-right: 0.5rem;
}

.portrait-wrapper {
    display: flex;
    justify-content: flex-end;
}

.portrait-img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    box-shadow: -15px 15px 0px rgba(229, 9, 20, 0.2);
}

/* Experience List (with Hover Interaction) */
.exp-list {
    border-top: 1px solid #333;
}

.exp-item {
    border-bottom: 1px solid #333;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.exp-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.exp-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: baseline;
}

.exp-meta {
    display: flex;
    flex-direction: column;
}

.exp-date {
    color: var(--accent-red);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.cn-company {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.en-company {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 700;
}

.exp-role h3 {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.8rem;
}

.en-job {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 700;
}

/* The high-end hover bullets */
.exp-bullets {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding-left: calc(33.333% + 1rem); /* 尝试对齐 role 列 */
}

@media (max-width: 1024px) {
    .exp-bullets {
        padding-left: 0;
    }
}

.exp-item {
    cursor: pointer;
    /* 增加一个细微的点击反馈 */
    -webkit-tap-highlight-color: transparent;
}

.exp-item.active .exp-bullets {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.exp-bullets ul {
    list-style: none;
    color: var(--text-white);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.exp-bullets li::before {
    content: "—";
    color: var(--accent-red);
    margin-right: 0.5rem;
    font-weight: 900;
}

/* Projects Showcase */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.project-panel.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}
.project-panel.reverse > * {
    direction: ltr;
}

.panel-img {
    width: 100%;
    height: 100%;
}

.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-content {
    background-color: var(--bg-black);
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-type {
    color: var(--accent-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.panel-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.panel-content p {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tags span {
    border: 1px solid #444;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    color: #ddd;
}

/* Stage production cards */
.stage-section {
}

.stage-section-title {
    font-size: 2.5rem;
}

.stage-group-title {
    margin-bottom: 1.25rem;
}

.stage-group-title .en-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-left: 8px;
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
    align-items: start;
    margin-bottom: 3rem;
}

.stage-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    height: auto;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.stage-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 31 / 20;
    padding: 0;
    border: 0;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    background: #090909;
}

.stage-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.stage-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    filter: brightness(0.96);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.stage-media-no5 img {
    object-position: 50% 34%;
    transform: scale(1.12);
}

.stage-card:hover .stage-media img,
.stage-media:focus-visible img {
    transform: scale(1.05);
    filter: brightness(1.06);
}

.stage-card:hover .stage-media-no5 img,
.stage-media-no5:focus-visible img {
    transform: scale(1.16);
}

.stage-content,
.stage-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stage-heading {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
}

.stage-heading .en-job {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: #aaa;
}

.stage-meta,
.stage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.stage-chip,
.stage-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.045);
    color: #ddd;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.stage-chip {
    color: #fff;
}

.stage-award {
    color: #ff5555;
    border-color: rgba(229, 9, 20, 0.35);
    background: rgba(229, 9, 20, 0.14);
    cursor: pointer;
}

.stage-award:hover,
.stage-award:focus-visible {
    color: #fff;
    border-color: rgba(229, 9, 20, 0.75);
    background: rgba(229, 9, 20, 0.32);
}

.stage-description {
    margin: 0;
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.55;
}

.stage-tags {
    margin-top: 0.05rem;
}

/* Video Grid Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.video-card {
    text-decoration: none;
    color: var(--text-white);
    background: var(--bg-dark);
    border: 1px solid #222;
    overflow: hidden;
    transition: all 0.4s ease;
    display: block;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #555;
    background: #1a1a1a;
}

.video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .video-cover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 0.5rem;
}

.video-info .platform {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    display: block;
}

.video-info h4 {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Contextual Evidence Badges */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.video-award-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    z-index: 10;
    backdrop-filter: blur(4px);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.video-award-badge:hover {
    transform: scale(1.05);
}

/* Photo Wall Gallery */
.photo-wall {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    width: 100%;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.photo-wall::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transform: translateZ(0);
}

.gallery-card img {
    display: block;
    width: auto;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.8);
}

.gallery-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transform: translateY(10px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* ----- 研究与创作 (Research Gallery) ----- */
.research-group {
    margin-bottom: 3.5rem;
}

.group-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-count {
    font-size: 0.8rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
}

.research-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.grid-card {
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 纯文本卡片 (论文、剧评) */
.grid-card.text-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.grid-card.text-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.grid-card .tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.text-card .tag {
    background: rgba(229, 9, 20, 0.15);
    color: #ff4444;
    border-color: rgba(229, 9, 20, 0.3);
}

.grid-card h3, .grid-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.grid-card .desc {
    color: var(--text-gray);
    font-size: 0.8rem;
    line-height: 1.5;
}

.card-btn {
    align-self: flex-start;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

/* 图片卡片 (ATEC, Novels) */
.grid-card.image-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-card.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.7);
}

.grid-card.image-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.card-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.card-overlay p {
    font-size: 0.8rem;
    color: #ddd;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.grid-card.image-card:hover .card-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Meta Data Tags */
.pub-meta {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
}

.pub-meta .year {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.pub-meta .type {
    font-size: 0.75rem;
    color: #888;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.pdf-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.pdf-link:hover {
    background: #fff;
    color: #000;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(229, 9, 20, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.08);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.bento-card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Manuscript Card (Writing & Research) */
.manuscript-card {
    background: #080808;
    border: 1px dashed #444;
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.manuscript-card:hover {
    border-color: var(--accent-red);
    background: rgba(229, 9, 20, 0.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid #333;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.iframe-container {
    width: 90%;
    height: 90%;
    background: #050505;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .iframe-container {
    transform: scale(1);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.close-btn:hover {
    color: var(--accent-red);
}

/* Footer */
.footer-minimal {
    padding: 4rem 4rem;
    background-color: var(--bg-black);
}

.headline-small {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 简单的入场动画 */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .scroll-reveal.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-name { font-size: 6rem; }
    .primary-role { font-size: 2.8rem; }
    .headline-secondary { font-size: 1.95rem; }
    .hero-content { max-width: 620px; }

    .bento-card.wide {
        grid-column: span 1;
    }

    .research-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .content-grid, .project-panel, .exp-header, .cert-grid, .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stage-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    /* About Section Portrait Below Title */
    .about-grid { display: flex; flex-direction: column; }
    .about-text { display: contents; }
    .about-text .section-title { order: 1; margin-bottom: 1.5rem; align-self: flex-start; }
    .about-grid .img-col {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
    .about-text .edu-block { order: 3; width: 100%; }
    .about-grid .portrait-wrapper { justify-content: center; width: 100%; }
    .about-grid .portrait-img {
        width: 200px;
        height: 250px;
        border-radius: 4px;
        box-shadow: -10px 10px 0px rgba(229, 9, 20, 0.2);
        object-position: top;
    }

    .project-panel.reverse { direction: ltr; }
    .panel-content { padding: 4rem 2rem; }
}

/* Language Toggle Logic - moved outside media query to apply to all screen sizes */
body.en-mode .lang-zh,
body.en-mode .cn-company,
body.en-mode .cn-role {
    display: none !important;
}

body.en-mode .section-title br,
body.en-mode .headline-small br {
    display: none;
}

body:not(.en-mode) .lang-en,
body:not(.en-mode) .en-title,
body:not(.en-mode) .en-company,
body:not(.en-mode) .en-role,
body:not(.en-mode) .en-job,
body:not(.en-mode) .en-text,
body:not(.en-mode) .en-desc,
body:not(.en-mode) .en-sub,
body:not(.en-mode) .en-inline,
body:not(.en-mode) .en-text-inline {
    display: none !important;
}

@media (max-width: 768px) {

    .hero {
        min-height: 92svh;
        padding: 7rem 2rem 4rem;
        align-items: flex-end;
    }
    .hero-bg-img {
        object-position: 60% center;
        filter: brightness(0.55) saturate(0.9);
    }
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.52) 100%),
            linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 52%, rgba(0,0,0,0.62) 100%);
    }
    .hero-content {
        max-width: 100%;
        margin-top: 0;
    }
    .hero-name { font-size: 3.9rem; margin-bottom: 0.95rem; }
    .headline { margin-bottom: 1.15rem; }
    .primary-role { font-size: 2.05rem; }
    .headline-secondary { font-size: 1.45rem; }
    body.en-mode .hero-name { font-size: 3.2rem; }
    body.en-mode .primary-role { font-size: 1.9rem; }
    body.en-mode .headline-secondary { font-size: 1.35rem; }
    .sub-headline { font-size: 1.02rem; margin-bottom: 1.2rem; }
    .hero-tags { gap: 0.45rem; margin-bottom: 1.5rem; }
    .hero-tags > span { min-height: 28px; padding: 0.24rem 0.52rem; font-size: 0.72rem; }
    .hero-actions { gap: 0.95rem; }
    .action-link { font-size: 1.05rem; border-bottom-width: 3px; }
    .action-link-secondary { font-size: 0.9rem; }
    .section-dark, .section-black, .footer-minimal { padding: 4rem 2rem; }
    .nav-minimal { padding: 1.5rem 2rem; }
    .action-link.large { font-size: 1.8rem; }
    .cert-img { height: 200px; }
    .cert-badge { flex-wrap: wrap; height: auto; }

    .stage-section-title { font-size: 2rem; }
    .stage-group-title { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .stage-group-title .en-sub { margin-left: 0; }
    .stage-grid { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
    .stage-card { padding: 0.75rem; }
    .stage-media { aspect-ratio: 16 / 9; }
    .stage-chip,
    .stage-tags span { white-space: normal; }
    .video-award-badge { transform: scale(0.85); transform-origin: top left; max-width: 90%; white-space: normal; line-height: 1.3; }
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.nav-overlay-content a {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-overlay-content a:hover {
    color: var(--accent);
}

.nav-overlay-content .en-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Interactive image styles */
.panel-img img.clickable-img {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}
.panel-img img.clickable-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* AI Proof Highlight Animation */
@keyframes textGlow {
    0% { color: rgba(255,255,255,0.4); text-shadow: none; }
    20% { color: #fff; text-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red); }
    80% { color: #fff; text-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red); }
    100% { color: rgba(255,255,255,0.4); text-shadow: none; }
}

.ai-highlight span {
    animation: textGlow 3.5s ease forwards;
}
