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

@font-face {
    font-family: 'SupremeLL';
    src: url('../Protocol-Regular.otf') format('opentype');
}

body {
    font-family: 'SupremeLL', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #999;
    background: #000;
    line-height: 1.2;
}

header {
    padding: 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size:2rem;
}

:root {
    /* 定义全局字体大小变量，2rem 通常等于32px（如果根元素字体大小为16px） */
    --header-font-size: 1.5rem;
    --base-font-size: 1.5rem;
    --sub-font-size: 1rem;
    --intro-font-size: 1.5rem;
}


.logo {
    font-size: var(--header-font-size);
    font-weight: normal;
    color: #fff;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.menu-btn {
    border: none;
    background: none;
    font-size: var(--header-font-size);
    cursor: pointer;
    font-family: 'SupremeLL', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-decoration: none;
    color: #333333;
}

.menu-btn:hover {
    color: #ff0000;
}   

.menu-btn:hover {
    background: none;
}

main {
    margin-top: 100px;
    padding: 2rem;
}

.project-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 0rem;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    transition: color 0.1s ease;
}

.project-container:hover {
    color: #fff;
}

.project-info {
    margin-bottom: 0;
}

.project-title {
    font-size: var(--base-font-size);
    font-weight: normal;
    margin-bottom: .4rem;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #fff;
}

.project-details {
    font-size: var(--sub-font-size);
    color: #555555;
    transition: all 0.3s ease;
}

.project-details .description {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-container:hover .project-details .category {
    display: none;
}

.project-container:hover .project-details .description {
    display: block;
    opacity: 1;
}


.project-image {
    width: 100%;
    display: block;
}

.project-image img, .project-image video {
    width: 100%;
    height: auto;
    display: block;
}

.pagination {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: var(--base-font-size);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.about-content {
    line-height: 1.2;
    margin-bottom: 6rem;
}

.about-content h2 {
    font-size: var(--base-font-size);
    font-weight: normal;
    margin: 2rem 0 1rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

/* Project Detail Page Styles */
.project-detail {
    max-width: 1400px;
    margin: 200px auto 0;
    padding: 0 0rem;
}

.project-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    
}

.project-intro-left {
    padding-right: 2rem;
    color: #fff;
}

.project-intro-right p {
    font-size: var(--intro-font-size);
    line-height: 1.4;
    text-align: justify; /* 这会让段落左右两端对齐 */
    color: #fff;
}


.project-meta {
    margin-top: 2rem;
    font-size: var(--base-font-size);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 12rem;
}

.gallery-item {
    position: relative;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item.full-width {
    grid-column: span 2;
}

.gallery-item.half-width {
    grid-column: span 1;
}

.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.mute-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.mute-btn svg {
    color: white;
}

@media (max-width: 768px) {
    .project-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-intro-left {
        padding-right: 0;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item.full-width,
    .gallery-item.half-width {
        grid-column: span 1;
    }
}

.contact-info {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    main {
        margin-top: 80px;
        padding: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .project-title {
        font-size: var(--base-font-size);
    }

    .about-container {
        padding: 1rem;
    }
}