/* ⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣶⣶⣶⣶⣶⣶⣦⣄
⠀⠀⠀⠀⣀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀
⠀⠀⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄
⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦
⢸⣿⣿⣿⣿⣿⣿⣿⠀⠈⣷⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧
⢸⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⢧⠙⠛⢿⠿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⡀
⢸⣿⣿⣿⣿⡿⢹⡃⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣯⠇⠹⣿⣿⣿⣷⠁⠈⣿⡇
⢸⣿⣿⣿⣿⣷⠞⣭⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⢀⣾⣿⡇
⢸⣿⣿⣿⣿⣿⠁⠈⠻⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣿⣿⡇
⠸⠟⠛⠹⣿⣿⣷⠀⠀⠀⠀⠀⠀⢀⠤⠂⠀⠐⠀⠀⠀⣠⣟⣿⣿⣿⣿⣿⡇
⠀⠀⠀⠀⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⣠⣞⢿⢿⣿⣿⣿⣿⣿⠇
⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣶⣶⣦⣤⣤⣤⣾⣽⠉⠁⠘⠀⣿⣿⣿⡈⣿⡀
⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣩⡄⠀⠀⠀⠃⠀⢻⣿⣿⡇⠀⠃
⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⢇⠃⠀⠀⠀⠀⠌⠀⣿⣿⣿⣿⡇
⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⢏⠀⠀⠈⠊⠀⠀⢻⣿⣿⣿⡇
⠀⠀⠀⠀⣿⣿⣿⣿⡉⠛⠛⠋⠀⠀⢀⠠⠂⣿⠀⠀⠀⠈⠐⠢⠼⣿⣿⣿⡇  Kaguya is watching u*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030303;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #e5e5e5;
    padding: 0rem 0rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container,
.container2 {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 4096px;
    width: 100%;
}

/* 主标 — 位于导航下方，flex布局包含logo、中文、打字动画 */
.studio-header {
    margin-top: 4.5rem;
    padding-bottom: 0;
}

.studio-name {
    display: grid;
    align-items: baseline;
    grid-template-columns: 1.11fr 2fr;
    /* 保持文字基线对齐，logo单独使用align-self居中 */
    /* flex-wrap: wrap; */
    gap: 0.5rem 0.75rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2rem;
    font-weight: 450;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-wrapper {
    grid-column: 1;
    /* 明确位于第一列 */
    display: flex;
    align-items: baseline;
    /* 内部按基线对齐，便于与外部打字机基线协调 */
    gap: 0.75rem;
    /* 控制 logo 与中文的间距 */
}

/* logo 符号容器 */
.logo-symbol {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    align-self: center;
    /* 使 logo 在 flex 容器中垂直居中（覆盖基线） */
    width: 2.8rem;
    height: 2.8rem;
    color: inherit;
    /* 移除 margin-right，间距由父级的 gap 控制 */
}

/* 图片 logo 样式 */
.logo-symbol img {
    object-fit: contain;
    object-position: left;
    width: 100%;
    /* 确保图片适应容器 */
    height: 100%;
}

.studio-name-ch {
    font-weight: 400;
    color: #e5e5e5;
    white-space: nowrap;
}

/* 打字机容器 — 内联flex与标题基线对齐 */
.typing-box {
    grid-column: 2;
    display: inline-flex;
    align-items: baseline;
    font-size: 1.8rem;
    font-weight: 300;
    /* margin-left: 9.9rem; */
    font-family: 'Noto Sans SC', sans-serif;
    color: #888;
    line-height: 1.2;
    white-space: nowrap;
}

.typing-text {
    white-space: pre;
}

/* 闪烁光标 */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.4em;
    background-color: currentColor;
    vertical-align: baseline;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 三导览页 · 标签页导航 — 使用 Grid 实现第二个按钮位于 1/3 位置 */
.tab-nav {
    display: grid;
    grid-template-columns: 1.13fr 1fr 1fr;
    margin-bottom: 0rem;
    border-bottom: 1px solid #222;
    padding: 0;
}

/* 横图容器 - 位于导航下方 */
.horizontal-banner {
    width: 100%;
    height: 40rem;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    background-color: #0a0a0a;
    /* 加载时的背景色 */
}

.horizontal-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    /* 横图比例，可根据需要调整 */
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Noto Sans SC', sans-serif;
    white-space: nowrap;
}

.tab-btn:nth-child(1) {
    grid-column: 1;
    justify-self: start;
    padding-left: 0;
}

.tab-btn:nth-child(2) {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
    /* padding-right: 1.5rem; */
}

.tab-btn:nth-child(3) {
    grid-column: 3;
    justify-self: end;
    padding-right: 0;
    /* padding-left: 1.5rem; */
}

.tab-btn:hover {
    color: #e5e5e5;
}

.tab-btn.active {
    color: #fff;
    font-weight: 450;
    border-bottom: 2px solid #fff;
}

/* 面板通用样式 */
.panel {
    display: none;
    padding: 1.5rem 0 2rem 0;
    animation: fade 0.3s ease;
}

.panel.active-panel {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0.3;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于面板 — 中英双栏 */
.about-grid,
.awards-grid {
    display: grid;
    grid-template-columns: 1fr 0.13fr 1.5fr 0.5fr;
    /* gap: 3rem; */
}

.about-ch,
.awards-ch {
    grid-column: 1;
}

.about-en,
.awards-en {
    grid-column: 3;
}

.about-ch p,
.about-en p,
.awards-ch p,
.awards-en p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #d3d3d3;
}

.about-en .intro-highlight {
    font-size: 1.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    margin-bottom: 1rem;
    font-weight: 420;
    color: #b5b5b5;
}

.about-ch .intro-highlight {
    font-size: 1.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    margin-bottom: 1rem;
    font-weight: 420;
    color: #fff;
}

/* 添加新的图片列样式 */
.vertical-image {
    grid-column: 4;
    display: flex;
    align-items: stretch;
    /* 使内容拉伸填满高度 */
    justify-content: center;
}

.vertical-image img {
    width: 210%;
    height: 125%;
    object-fit: cover;
    /* 保持图片比例并填满容器 */
    object-position: center;
    /* 图片居中显示 */
    display: block;
}

/* 成员介绍板块 */
.team-section {
    /* margin-right: 2rem;
    margin-left: 2rem; */
    padding: 0;
    border: none;
    /* 无边框 */
}

.team-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.1rem;
    font-weight: 420;
    color: #fff;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-right: 2rem;
    margin-left: 2rem;
    /* 三列布局 */
    gap: 11rem;
    /* 成员间距 */
    margin-bottom: 3rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    /* align-items: center;
    text-align: center; */
    border: none;
    /* 无边框 */
    background: transparent;
    /* 透明背景 */
    padding: 0;
}

.member-avatar {
    width: 10rem;
    height: 10rem;
    /* 圆形头像 */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #0f0f0f;
    /* 加载时的背景色 */
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.team-member:hover .member-avatar img {
    transform: scale(1.05);
}

.member-info {
    max-width: 280px;
}

.member-desc-ch,
.member-desc-en {
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
    color: #b5b5b5;
    margin: 0;
}


.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #111;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans SC', sans-serif;
    white-space: nowrap;
    border-radius: 20px;
}

.filter-btn:hover {
    color: #e5e5e5;
    background-color: #0f0f0f;
}

.filter-btn.active {
    color: #fff;
    font-weight: 450;
    background-color: #171717;
}

/* 项目面板 — 3T 垂直叙事 */
/* 图片网格容器 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 默认四列 */
    gap: 1.5rem;
    /* 网格间隙 */
    margin: 1rem 0 2rem 0;
}

/* 网格项（链接） */
.grid-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    /* 轻微圆角，可自定义 */
    background-color: #0a0a0a;
    /* 加载时的背景色 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    /* 移除下划线 */
}

/* 图片样式 */
.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* 保证图片填充，不失真 */
    aspect-ratio: 4 / 3;
    /* 统一宽高比，可根据需要调整 */
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.grid-item:hover img {
    transform: scale(1.03);
    /* 轻微放大 */
}

/* Markdown 内容容器 */
.markdown-container {
    background-color: #000000;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.03);
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: #d3d3d3;
    max-height: 1050px;
    overflow-y: auto;
    /* 内容过长时可滚动 */
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 450;
    color: #eee;
}

.markdown-content p {
    margin-bottom: 1em;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.markdown-content code {
    background-color: #0d0d0d;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #070707;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.markdown-content a {
    color: #ff9933;
    text-decoration: none;
    border-bottom: 1px dotted #555;
}

.markdown-content a:hover {
    border-bottom: 1px solid #ff9933;
}

/* 联系面板 — 干净地址块 */
.contact-block {
    display: grid;
    /* 与 .tab-nav 的 grid-template-columns 保持一致 */
    grid-template-columns: 1fr 0.13fr 2fr;
    gap: 0;
    /* 取消列间隙，保证网格线严格对齐 */
    padding: 2rem 0 2.2rem 0;
    /* 去掉左右内边距，只保留垂直间距 */
}

.contact-item {
    padding: 0 2rem 0 0;
    /* 默认右内边距 2rem，左边无内边距 */
    min-width: 0;
    /* 允许内容缩小，防止撑开网格列 */
    word-wrap: break-word;
    /* 长单词或链接自动换行 */
    border-right: none;
    /* 移除之前可能存在的边框 */
}

.contact-item-mail {
    grid-column: 1;
    padding-left: 0;
    /* 第一项左边不留白，对齐第一个按钮 */
    padding-right: 2rem;
}

.contact-item-address {
    grid-column: 3;
    /* padding-left: 15rem; */
    /* 最后一项右边不留白 */
}

.contact-label {
    font-size: 0.8rem;
    font-family: 'Noto Sans SC', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.6rem;
}

.contact-value {
    font-size: 1.2rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 380;
    word-break: break-word;
}

.contact-value small {
    font-size: 0.9rem;
    font-family: 'Noto Sans SC', sans-serif;
    color: #888;
    font-weight: 350;
    display: block;
    margin-top: 0.3rem;
}

.address-detail {
    line-height: 1.7;
}

.mail-link {
    color: #e5e5e5;
    text-decoration: none;
    border-bottom: 1px dotted #555;
}

.mail-link:hover {
    border-bottom: 1px solid #fff;
}

/* 微辅助元素 */
.divider-light {
    width: 100%;
    height: 1px;
    background: #111;
    margin: 2rem 0 1rem 0;
}

.footnote {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 1.5rem;
}

.studio-header.bottom {
    margin-top: 0;
    margin-bottom: 3rem;
}

/* 响应式：小屏幕下改用 flex 换行，保证可读性 */
@media (max-width: 700px) {
    body {
        padding: 1.5rem 1rem;
    }

    .studio-name {
        grid-template-columns: 1fr;
        gap: 1rem 0;
        align-items: start;
    }

    .logo-wrapper {
        grid-column: auto;
    }

    .typing-box {
        grid-column: auto;
        white-space: normal;
        font-size: 1.4rem;
        margin-left: 0;
    }

    .logo-symbol {
        width: 2.2rem;
        height: 2.2rem;
    }

    .about-grid,
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem 0;
    }

    .about-ch,
    .about-en,
    .awards-ch,
    .awards-en{
        grid-column: auto;
    }

    .vertical-image {
        grid-column: auto;
        justify-content: center;
        align-items: center;
        margin-top: 0;
    }

    .vertical-image img {
        width: 150%;                  
        height: auto;                 
        max-width: 210%;              
        object-fit: contain;
    }


    .about-ch p,
    .about-en p,
    .awards-ch p,
    .awards-en p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-en .intro-highlight,
    .about-ch .intro-highlight {
        font-size: 1rem;
    }

    /* .about-ch p,
    .about-en p,
    .awards-ch p,
    .awards-en p {
        font-size: 0.5rem;
    }

    .about-en .intro-highlight {
        font-size: 0.7rem;
        font-weight: 420;
    }

    .about-ch .intro-highlight {
        font-size: 0.7rem;
        font-weight: 420;
    } */

    .horizontal-banner {
        height: 12rem;
    }

    .team-section {
        margin: 2.5rem 0;
    }

    .team-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* 小屏幕改为单列 */
        gap: 2.5rem;
    }

    .member-avatar {
        width: 160px;
        height: 160px;
    }

    .member-desc-ch {
        font-size: 0.9rem;
    }

    .member-desc-en {
        font-size: 0.9rem;
    }

    /* 导航改回 flex-wrap，左右顶格 */
    .tab-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #222;
        padding: 0;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    .tab-btn:first-child {
        padding-left: 0;
    }

    .tab-btn:last-child {
        padding-right: 0;
    }

    .tab-btn:nth-child(2) {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .contact-block {
        grid-template-columns: 1fr;
        gap: 1rem 0;
        padding: 1.5rem 1rem;
    }

    .contact-item-mail,
    .contact-item-address {
        grid-column: auto;
        padding: 0;
    }

    .contact-item {
        padding: 0;
    }

    .contact-item {
        padding: 0 1rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .filter-nav {
        gap: 0.3rem 0.8rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* 超小屏幕（如手机竖屏）下改为单列（可选） */
@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* 实验性装饰 —— 非白气质 */
.tiny-line {
    width: 40px;
    height: 1px;
    background: #333;
    margin: 1.2rem 0 1.8rem 0;
}

.quote-mark {
    font-size: 3rem;
    color: #0f0f0f;
    position: relative;
    z-index: -1;
}