body {
    margin: 0;
    padding: 60px;
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: whitesmoke;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    text-align: center;
    margin-bottom: 40px;
}

.title h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0;
}

.content-section {
    margin-bottom: 40px;
}

.content-section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 20px;
}

.content-section p {
    line-height: 1.6;
    font-size: 1rem;
    margin: 0 0 10px;
}

/* Navigation Bar */
nav {
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* 添加阴影提高视觉层次感 */
}

nav .logo {
    font-size: 20px;
    padding: 10px;
    color: lightgrey;
    font-weight: bold;
}

nav .menu-toggle {
    display: none; /* 电脑端隐藏汉堡菜单 */
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0px;
    padding: 10px;
    overflow: hidden; /* 防止内容超出父容器 */
    white-space: nowrap; /* 禁止内容换行 */
}

nav ul li a {
    text-decoration: none;
    color: lightgrey;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: white;
    text-shadow: 1px 1px 4px whitesmoke;
}

/* 手机端样式 */
@media (max-width: 768px) {
    nav .menu-toggle {
        display: block; /* 显示汉堡菜单按钮 */
    }

    nav ul {
        display: none; /* 默认隐藏导航栏 */
        flex-direction: column;
        gap: 10px;
        background-color: black;
        position: absolute;
        top: 50px;
        right: 0;
        width: 120px;
        padding: 10px;
    }

    nav ul.show { /* 显示菜单的类 */
        display: flex;
    }
}

/* Hero Section */
.image-container {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.image-container img {
    display: block;
    width: auto; 
    height: auto;
}

.image-container .caption {
    position: absolute;
    bottom: 10px; /* 与图片底部的距离 */
    left: 90%; /* 水平居中 */
    transform: translateX(-90%);
    background-color: rgba(0, 0, 0, 0.6); /* 半透明黑色背景 */
    color: white;
    font-size: 12px; /* 字体大小 */
    padding: 2px 6px; /* 背景与文字间距 */
    border-radius: 4px; /* 背景圆角 */
}

.hero {
    text-align: center;
    color: whitesmoke;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    margin: 0;
    font-size: 3rem;
    color: whitesmoke;
}

.hero p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
}

.social-links img {
    filter: grayscale(100%); /* 设置为灰度 */
    transition: transform 0.3s, filter 0.3s;
}

.social-links img:hover {
    transform: scale(1.2);
    filter: grayscale(0%); /* 悬停时恢复彩色 */
}

.home-page {
    min-width: 0;
    padding: 0;
    overflow-x: hidden;
}

.home-page nav {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
    box-shadow: none;
}

.home-page nav .logo,
.home-page nav ul li a {
    color: rgba(255, 255, 255, 0.82);
}

.home-page nav .menu-toggle {
    color: white;
}

.home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    padding: 88px clamp(24px, 6vw, 96px) 44px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    text-align: left;
}

.home-hero-image,
.home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-image {
    z-index: -2;
    object-fit: cover;
    animation: home-image-arrival 1.2s ease-out both;
}

.home-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 47%, rgba(0, 0, 0, 0.08) 78%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 62%);
}

.home-hero-content {
    width: min(740px, 100%);
    animation: home-content-arrival 0.8s 0.12s ease-out both;
}

.home-hero h1 {
    margin: 0;
    max-width: 720px;
    color: white;
    font-size: clamp(0.95rem, 1.6vw, 1.22rem);
    line-height: 1.55;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-hero h1 span {
    display: block;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.55;
}

.home-hero-positioning {
    max-width: 650px;
    margin-top: 22px;
}

.home-hero .home-hero-positioning p {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.22rem);
    line-height: 1.55;
}

.home-hero .home-hero-positioning p + p {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.82rem, 1.35vw, 1rem);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.home-hero-actions a {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.home-hero-actions a span {
    color: rgba(255, 255, 255, 0.64);
    transition: color 0.25s ease;
}

.home-hero-actions a:hover,
.home-hero-actions a:focus-visible {
    border-color: white;
    background: white;
    color: black;
    transform: translateY(-2px);
}

.home-hero-actions a:hover span,
.home-hero-actions a:focus-visible span {
    color: rgba(0, 0, 0, 0.62);
}

.home-social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.home-social-links a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.25s ease;
}

.home-social-links a:hover,
.home-social-links a:focus-visible {
    color: white;
}

.home-hero .home-hero-caption {
    position: absolute;
    right: clamp(16px, 3vw, 42px);
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@keyframes home-image-arrival {
    from {
        opacity: 0;
        transform: scale(1.025);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes home-content-arrival {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .home-page nav {
        background: rgba(0, 0, 0, 0.86);
    }

    .home-page nav ul {
        background-color: rgba(0, 0, 0, 0.94);
    }

    .home-hero {
        min-height: 100svh;
        padding: 88px 20px 48px;
    }

    .home-hero-shade {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.38) 68%, rgba(0, 0, 0, 0.1) 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.02));
    }

    .home-hero-content {
        width: 100%;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 22px;
    }

    .home-hero-actions a {
        padding: 10px 13px;
    }

    .home-social-links {
        margin-top: 16px;
    }

    .home-hero .home-hero-caption {
        right: 20px;
        bottom: 14px;
        font-size: 0.58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-image,
    .home-hero-content {
        animation: none;
    }

    .home-hero-actions a {
        transition: none;
    }
}

.portfolio {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    width: 350px;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.card img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card a {
    display: block;
    width: 100%;
    height: 100%;
}

.card.coming-soon {
    cursor: default;
}

.card.coming-soon img,
.card.coming-soon img:hover {
    filter: grayscale(100%) brightness(0.45);
    transform: none;
}

.card-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.card-status span:first-child {
    font-size: 1.1rem;
}

.card-status span:last-child {
    font-size: 0.85rem;
}

.detail-page {
    max-width: 960px;
}

.page-header {
    margin-bottom: 48px;
    padding-top: 24px;
}

.eyebrow {
    margin: 0 0 12px;
    color: lightgrey;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.page-subtitle {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: gainsboro;
}

.project-meta {
    margin: 0 0 20px;
    color: lightgrey;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.section-title {
    margin: 0 0 20px;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.stacked-copy {
    max-width: 760px;
}

.intro-copy {
    font-size: 1.1rem;
}

.stacked-copy p {
    margin: 0 0 16px;
    line-height: 1.7;
}

.stacked-copy p:last-child {
    margin-bottom: 0;
}

.meta-card p,
.media-card figcaption,
.link-list a {
    line-height: 1.7;
}

.media-grid,
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.media-card,
.meta-card {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.media-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.media-card video {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
    background: black;
}

.media-card figcaption {
    color: gainsboro;
    font-size: 0.95rem;
}

.media-card-wide {
    padding: 18px;
}

.link-list {
    margin: 0;
    padding-left: 20px;
}

.link-list li + li {
    margin-top: 10px;
}

.link-list a {
    color: white;
}

@media (max-width: 768px) {
    .page-header {
        margin-bottom: 32px;
    }

    .media-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .media-card,
    .meta-card {
        padding: 16px;
    }

    .media-card img {
        height: auto;
    }
}
