/* ==========================================================================
   色彩与纹样 · 藻井图鉴
   ========================================================================== */
.caisson {
    background: var(--paper, #F6F1E7);
    padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.8rem, 5vw, 4.4rem);
}
.caisson__head { max-width: 46rem; margin: 0 0 1.8rem; }
.caisson__head .gc-kicker {
    display: block; font-size: .68rem; letter-spacing: .28em;
    color: #A6402F; margin-bottom: .5rem;
}
.caisson__head h2 {
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: .1em; color: #203F3A; margin: 0 0 .6rem;
}
.caisson__head p {
    font-size: .88rem; line-height: 1.95; color: #5d6b64; margin: 0;
}

.caisson__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.9rem, 1.4vw, 1.2rem);
}

.caisson__card {
    display: block; width: 100%; padding: 0; text-align: left;
    background: #FFFCF6;
    border: 1px solid rgba(32, 63, 58, .12);
    border-radius: 12px;
    overflow: hidden; cursor: pointer;
    transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}
.caisson__card:hover,
.caisson__card:focus-visible {
    border-color: rgba(166, 64, 47, .45);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -22px rgba(32, 63, 58, .7);
    outline: none;
}
.caisson__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: #EFE6D6;
}
.caisson__media img {
    position: absolute; inset: 0;
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.caisson__card:hover .caisson__media img { transform: scale(1.04); }
.caisson__body { display: block; padding: .7rem .85rem .85rem; }
.caisson__body b {
    display: block; font-family: "Noto Serif SC", serif;
    font-size: .9rem; letter-spacing: .06em; color: #203F3A;
}
.caisson__body small {
    display: block; margin-top: .15rem; font-size: .7rem;
    color: #8a8578; letter-spacing: .04em;
}
.caisson__tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: .45rem; }
.caisson__tags span {
    font-size: .64rem; letter-spacing: .04em; color: #5d6b64;
    padding: .12rem .42rem; border-radius: 9999px;
    border: 1px solid rgba(32, 63, 58, .14);
    background: rgba(255, 255, 255, .6);
}
.caisson__note {
    margin-top: 1.2rem; font-size: .76rem; line-height: 1.9; color: #857f70;
}

/* 四张纹样卡里的「藻井结构」改真实图片 */
.gc-motif__item--photo { padding: 0; overflow: hidden; text-align: left; }
.gc-motif__item--photo .gc-motif__pic {
    display: block; width: 100%; aspect-ratio: 1 / 1;
    border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(32, 63, 58, .12);
    background: #EFE6D6;
}
.gc-motif__item--photo .gc-motif__pic img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.gc-motif__item--photo:hover .gc-motif__pic img { transform: scale(1.03); }
.gc-motif__item--photo b { margin-top: .6rem; padding: 0 .8rem; }
.gc-motif__item--photo small { color: #8a8578; padding: .18rem .8rem .8rem; }

/* ---------- 详情弹窗 ---------- */
.cts-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.cts-modal.is-open { display: block; }
.cts-modal__mask {
    position: absolute; inset: 0;
    background: rgba(14, 24, 21, .62);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cts-modal__panel {
    position: relative; z-index: 1;
    width: min(900px, calc(100% - 2rem));
    max-height: 88svh; margin: 6svh auto 0;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    background: #FBF7EE; border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 90px -44px rgba(0, 0, 0, .8);
    animation: ctsIn .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes ctsIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cts-modal__figure { margin: 0; background: #EFE6D6; display: flex; align-items: center; justify-content: center; }
.cts-modal__figure img {
    display: block; width: 100%; height: 100%;
    max-height: 88svh; object-fit: contain;
}
.cts-modal__body { padding: 1.6rem 1.6rem 1.4rem; overflow-y: auto; }
.cts-modal__kicker { font-size: .66rem; letter-spacing: .26em; color: #A6402F; margin: 0 0 .4rem; }
.cts-modal__body h3 {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.4rem; letter-spacing: .1em; color: #203F3A; margin: 0 0 .7rem;
}
.cts-row { margin: 0 0 .9rem; }
.cts-row dt { font-size: .72rem; letter-spacing: .12em; color: #8a8578; margin-bottom: .25rem; }
.cts-row dd { margin: 0; font-size: .86rem; line-height: 1.85; color: #3d4b45; }
.cts-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.cts-swatches span {
    display: inline-flex; align-items: center; gap: .32rem;
    font-size: .72rem; color: #3d4b45;
    padding: .18rem .55rem .18rem .28rem; border-radius: 9999px;
    border: 1px solid rgba(32, 63, 58, .14); background: #fff;
}
.cts-swatches i { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; }
.cts-modal__close {
    position: absolute; top: .8rem; right: .8rem; z-index: 3;
    width: 2rem; height: 2rem; border-radius: 50%;
    border: 1px solid rgba(32, 63, 58, .18);
    background: rgba(251, 247, 238, .9); color: #203F3A;
    font-size: .95rem; cursor: pointer; display: grid; place-items: center;
}
.cts-modal__close:hover { background: #fff; border-color: rgba(166, 64, 47, .5); }
.cts-modal__cite { font-size: .72rem; color: #8a8578; margin: .2rem 0 0; }
html.cts-lock, html.cts-lock body { overflow: hidden !important; }

@media (max-width: 1024px) {
    .caisson__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .cts-modal__panel { grid-template-columns: 1fr; max-height: 92svh; }
    .cts-modal__figure img { max-height: 46svh; }
}
@media (max-width: 640px) {
    .caisson__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cts-modal__panel { width: 100%; margin: 4svh auto 0; border-radius: 12px 12px 0 0; }
}

/* 四张纹样卡等高：线稿内容垂直居中，照片卡顶部对齐 */
.gc-motif__item { display: flex; flex-direction: column; justify-content: center; }
.gc-motif__item--photo { justify-content: flex-start; }
