/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --page-gap: 15px;
    --middle-gap: 20px;
    --line-color: #d0d0d0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    font-size: 15px;
    color: #000;
    background: #fff;
    height: 100vh;
    overflow: hidden;
}

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

.main-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: var(--middle-gap);
    overflow: hidden;
}

/* 左栏 */
.left-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding-left: var(--page-gap);
}

/* 右栏 */
.right-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding-right: var(--page-gap);
    min-height: 0;
}

.scroll-content {
    flex: 1; /* 自动撑开，将 footer 压至底部 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.scroll-content::-webkit-scrollbar {
    display: none;
}

/* 顶部 */
.panel-header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 5px;
    border-bottom: 1px solid var(--line-color);
    flex-shrink: 0; /* 防止页眉被压缩 */
}

.col-1 { flex: 0 0 32%; }
.col-2 { flex: 0 0 48%; }
.col-3 { flex: 0 0 20%; text-align: right; }

/* 头部左右对齐专用 */
.col-header-left { flex: 1; }
.col-header-right { flex: 1; text-align: right; }

.clickable { cursor: pointer; }
.clickable:hover { opacity: .5; }

.mobile-title {
    display: none;
}

/* 顶部双链接右平齐 */
.top-links,
.mobile-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    text-align: right;
}

.top-links a,
.mobile-links a {
    color: #000;
    text-decoration: none;
}

/* 桌面端隐藏逻辑：精准去掉右侧 Information/Gallery */
@media (min-width: 801px) {
    .desktop-hide {
        display: none !important;
    }
}

/* 表格行 */
.table-head,
.project-item,
.item-meta {
    height: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
}

.gallery-item {
    width: 100%;
    cursor: pointer;
    padding-bottom: 40px;
}

/* 图片 */
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 10px;
    overflow: hidden;
    background: #f2f2f2;
}

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

#detail-view { width: 100%; }

.detail-main-img {
    margin-bottom: 30px;
}

.description-section {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.info-tags {
    flex: 0 0 32%;
    color: #666;
    line-height: 1.8;
}
.info-tags ul { list-style: none; }

.info-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.info-row {
    display: flex;
    border-bottom: 1px solid var(--line-color);
    padding: 15px 0 40px 0;
}

.info-label {
    flex: 0 0 32%;
}

.info-content {
    flex: 1;
    line-height: 1.6;
    max-width: 500px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-top: 40px;
}

.image-container.small {
    margin-bottom: 10px;
}

.grid-num {
    font-size: 12px;
    color: #666;
    margin-bottom: 40px;
}

.back-btn {
    margin: 40px 0 100px 0;
}

/* footer 核心对齐修复 */
.panel-footer,
.gallery-footer {
    height: 40px;
    border-top: 1px solid var(--line-color);
    display: flex;
    align-items: center;
    margin-top: 0; 
    flex-shrink: 0; 
    background: #fff;
}

.footer-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

/* + 标记位置微调 */
.plus {
    position: absolute;
    font-size: 18px;
    color: #aaa;
    z-index: 10;
}
.top-left { top: 5px; left: 5px; }
.top-right { top: 5px; right: 5px; }
.bottom-left { bottom: 5px; left: 5px; }
.bottom-right { bottom: 5px; right: 5px; }

#mobile-list-view,
#mobile-list-btn,
.mobile-bottom-info {
    display: none;
}

/* fade */
.view-fade {
    opacity: 0;
    transition: opacity 0.22s ease;
}

.view-fade.show {
    opacity: 1;
}

/* =========================
   OBJECTS PAGE / GALLERY 
========================= */

.objects-page {
    width: 100%;
    min-height: 100vh;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.objects-header {
    height: 60px;
    border-bottom: 1px solid var(--line-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 5px;
    margin-bottom: 40px;
}

.obj-left,
.obj-right {
    font-size: 15px;
}

.objects-title {
    font-size: 15px;
    margin-bottom: 35px;
}

.objects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 22px;
    row-gap: 50px;
    flex: 1;
}

.object-cover {
    width: 100%;
    background: #f2f2f2;
    overflow: hidden;
    margin-bottom: 10px;
}

.object-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .25s ease;
}

.object-cover:hover img {
    opacity: .94;
}

.object-name {
    font-size: 13px;
}

/* 针对 Gallery 内部数字字号缩小 */
.object-number {
    font-size: 9px;
    color: #000;
}

.objects-footer {
    height: 40px;
    border-top: 1px solid var(--line-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    font-size: 13px;
}

/* =========================
   MOBILE
========================= */
@media (max-width:800px){

    body {
        font-size: 14px;
        height: auto;
        overflow: auto;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        padding: 0 var(--page-gap);
    }

    .desktop-title {
        display: none;
    }

    .mobile-title {
        display: inline;
    }

    #mobile-list-btn {
        display: block;
    }

    .gallery-footer,
    .panel-footer {
        display: none;
    }

    #mobile-list-view {
        display: none;
        width: 100%;
        min-height: 100%;
        background: #fff;
    }

    .panel-header {
        height: 52px;
        font-size: 14px;
    }

    .table-head,
    .project-item,
    .item-meta {
        height: 34px;
        font-size: 14px;
    }

    .gallery-item {
        padding-bottom: 28px;
    }

    .description-section {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .info-row {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0 25px 0;
    }

    .info-label,
    .info-content {
        width: 100%;
        max-width: none;
        font-size: 14px;
    }

    .mobile-bottom-info {
        display: block;
        width: 100%;
        border-top: 1px solid var(--line-color);
        margin-top: 26px;
        padding: 10px 0 22px 0;
    }

    .mobile-bottom-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    .objects-header {
        height: 52px;
        margin-bottom: 25px;
    }

    .objects-title {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .objects-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 30px;
    }

    .object-name {
        font-size: 12px;
    }

    .objects-footer {
        font-size: 12px;
        margin-top: 40px;
        padding-bottom: 10px;
    }
}
