/* ==========================================================================
   国潮 · 文创详情 / 故事详情排版
   ========================================================================== */
.gc-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.gc-modal__head { flex: 0 0 auto; }
.gc-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    font-size: .88rem;
    line-height: 1.95;
    color: #3d4b45;
}
.gc-modal__body .gc-lead {
    margin: 0 0 .9rem;
    padding-left: .85rem;
    border-left: 2px solid #C9A063;
    color: #2c4a43;
    font-size: .92rem;
    line-height: 1.9;
}
.gc-modal__body h4 {
    font-family: "Noto Serif SC", "Songti SC", STSong, serif;
    font-size: .92rem;
    letter-spacing: .1em;
    color: #203F3A;
    margin: 1.15rem 0 .35rem;
}
.gc-modal__body h4:first-of-type { margin-top: .8rem; }
.gc-modal__body p { margin: 0 0 .6rem; }

/* 时间轴 */
.gc-tl {
    list-style: none;
    margin: .3rem 0 .8rem;
    padding: 0 0 0 1.1rem;
    border-left: 1px solid rgba(32, 63, 58, .16);
}
.gc-tl li {
    position: relative;
    padding: 0 0 .7rem 0;
    font-size: .86rem;
    line-height: 1.85;
}
.gc-tl li::before {
    content: "";
    position: absolute;
    left: -1.35rem;
    top: .55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9A063;
}
.gc-tl b {
    display: block;
    font-size: .78rem;
    letter-spacing: .08em;
    color: #203F3A;
    margin-bottom: .1rem;
}

/* 详情图 */
.gc-figure { margin: .7rem 0 1rem; }
.gc-figure img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 10px;
}
.gc-figure figcaption {
    font-size: .72rem;
    letter-spacing: .04em;
    color: #8a8578;
    margin-top: .4rem;
}

.gc-link {
    color: #A6402F;
    text-decoration: none;
    border-bottom: 1px solid rgba(166, 64, 47, .3);
    transition: border-color .2s ease, color .2s ease;
}
.gc-link:hover { border-bottom-color: #A6402F; }
.gc-note-sm {
    font-size: .76rem;
    line-height: 1.85;
    color: #8a8578;
    margin-top: .6rem;
}

/* 文创来源标签的成色 */
.gc-good__tag--real { background: #E6EEE9; color: #2f574d; border-color: rgba(47, 87, 77, .22); }
.gc-good__tag--concept { background: #F4E4CE; color: #8a5a3c; border-color: rgba(138, 90, 60, .24); }
.gc-good__tag--proto { background: #E9E6EE; color: #574a66; border-color: rgba(87, 74, 102, .24); }
.gc-good__tag--ref { background: #E6EEE9; color: #2f574d; border-color: rgba(47, 87, 77, .22); }

/* 统一产品图比例 */
.gc-good__media { aspect-ratio: 4 / 3; }
.gc-good__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   文创卡片：概念设计媒体（冰箱贴 / 铜奔马摆件 / 彩陶文具）
   ========================================================================== */
.gc-good__media--magnet,
.gc-good__media--steed,
.gc-good__media--stationery {
    display: grid;
    place-items: center;
    overflow: hidden;
}
.gc-good__media--magnet {
    padding: 0;
    background:
        radial-gradient(90% 80% at 50% 38%, #fbf4e6 0%, #efe4d2 58%, #e5d7c2 100%);
}
.gc-magnet-gallery {
    position: absolute;
    inset: .55rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    width: auto;
    height: auto;
}
.gc-magnet-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .4rem;
    background: #f7efdf;
    box-shadow: 0 6px 14px -10px rgba(46, 32, 18, .5);
}
.gc-magnet-gallery img:first-child {
    object-fit: contain !important;
    padding: .12rem;
}
.gc-magnet-set {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.35rem, .9vw, .6rem);
    width: 88%;
}
.gc-magnet {
    position: relative;
    flex: 1 1 0;
    aspect-ratio: 1 / 1;
    border-radius: 20%;
    border: 2px solid #e3c58c;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    box-shadow: 0 9px 18px rgba(46, 32, 18, .22), inset 0 0 0 1px rgba(255, 255, 255, .18);
    overflow: hidden;
    transform: rotate(-3deg);
}
.gc-magnet:nth-child(2) { transform: translateY(-4px) rotate(1deg); }
.gc-magnet:nth-child(3) { transform: rotate(3deg); }
.gc-magnet::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 18, 15, 0) 48%, rgba(12, 18, 15, .58) 100%);
}
.gc-magnet i {
    position: absolute;
    left: 0; right: 0; bottom: .28rem;
    z-index: 1;
    text-align: center;
    font-style: normal;
    font-size: .62rem;
    letter-spacing: .08em;
    color: #fff8e8;
}

.gc-good__media--steed {
    background:
        radial-gradient(70% 66% at 50% 42%, #3a554c 0%, #223b34 58%, #172a25 100%);
}
.gc-good__media--steed .gc-steed {
    position: relative;
    z-index: 2;
    width: 74%;
    height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
    transform: translateY(-4%);
}
.gc-steed-base {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 13%;
    width: 42%;
    height: 11%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 35%, #8a7355 0%, #5d4b38 52%, #2b241d 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .35);
}

.gc-good__media--stationery {
    background:
        radial-gradient(90% 80% at 50% 40%, #fbf5e9 0%, #eee2cf 100%);
}
.gc-good__media--postcard img {
    object-fit: contain;
    padding: .4rem;
    background: #f1e7d4;
}
.gc-notebook {
    position: relative;
    width: 48%;
    aspect-ratio: 3 / 4;
    transform: rotate(-4deg);
    border-radius: 5px 9px 9px 5px;
    background: #fbf6ea;
    box-shadow:
        6px 8px 0 -2px #e7dbc7,
        12px 16px 26px rgba(54, 38, 20, .22);
    overflow: hidden;
}
.gc-notebook__spine {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 10%;
    z-index: 3;
    background: linear-gradient(90deg, #cdb995 0%, #eadfc9 55%, #f7efdf 100%);
}
.gc-notebook__cover {
    position: absolute;
    inset: 3px 3px 3px 10%;
    border-radius: 3px 7px 7px 3px;
    background-size: cover;
    background-position: center;
    filter: saturate(.86) contrast(.98);
}
.gc-notebook__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 35%, transparent 0 12%, rgba(43, 42, 39, .55) 12% 14%, transparent 14% 22%, rgba(43, 42, 39, .55) 22% 24%, transparent 24%),
        radial-gradient(circle at 72% 65%, transparent 0 10%, rgba(43, 42, 39, .45) 10% 12%, transparent 12% 20%, rgba(43, 42, 39, .45) 20% 22%, transparent 22%);
    opacity: .55;
    mix-blend-mode: multiply;
}
.gc-notebook__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 14, 8, .28) 0%, rgba(20, 14, 8, .04) 18%, transparent 42%);
}
.gc-notebook__label {
    position: absolute;
    left: 18%;
    bottom: 9%;
    z-index: 4;
    padding: .16rem .4rem;
    border-radius: 9999px;
    background: rgba(255, 250, 240, .86);
    color: #5b3a2a;
    font-size: .58rem;
    letter-spacing: .1em;
    white-space: nowrap;
}

/* 图片类型图例与素材说明 */
.gc-good__legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 1.1rem 0 .2rem;
    font-size: .74rem;
    color: #6f7d76;
}
.gc-good__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.gc-good__legend i {
    width: .55rem; height: .55rem; border-radius: 50%;
    background: #8aa094;
}
.gc-good__legend i.is-real { background: #5e7f63; }
.gc-good__legend i.is-proto { background: #7b6b8a; }
.gc-good__legend i.is-concept { background: #c9a063; }
.gc-good__legend i.is-ref { background: #9b8f7d; }
.gc-good__note { max-width: 52rem; }
.gc-good__related {
    margin: .9rem 0 0;
    font-size: .78rem;
    line-height: 1.9;
    color: #6f7d76;
}
.gc-good__related a { color: #A6402F; text-decoration: none; border-bottom: 1px solid rgba(166, 64, 47, .28); }
.gc-good__related a:hover { border-bottom-color: #A6402F; }
.gc-good__extra {
    margin: .35rem 0 0;
    font-size: .76rem;
    line-height: 1.9;
    color: #6f7d76;
}
.gc-good__extra button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #A6402F;
    cursor: pointer;
    border-bottom: 1px solid rgba(166, 64, 47, .28);
}
.gc-good__extra button:hover { border-bottom-color: #A6402F; }

/* ==========================================================================
   详情弹窗：产品大图 / 故事导语 / 双图 / 关联地点
   ========================================================================== */
.gc-modal__figure {
    margin: 0 0 1rem;
    background: #f1e7d4;
    border-radius: 10px;
    overflow: hidden;
}
.gc-modal__figure img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}
.gc-modal__figure img.is-contain {
    object-fit: contain;
    padding: .7rem;
    background: #f7f1e5;
}
.gc-modal__figure figcaption {
    padding: .42rem .7rem .55rem;
    font-size: .72rem;
    line-height: 1.7;
    color: #7b776b;
    background: #f7f1e5;
}

.gc-modal__body .gc-kicker {
    margin: 0 0 .2rem;
    font-size: .66rem;
    letter-spacing: .2em;
    color: #A6402F;
    text-transform: uppercase;
}
.gc-figure-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin: .5rem 0 .9rem;
}
.gc-figure-pair .gc-figure { margin: 0; }
.gc-figure-pair .gc-figure img { height: 150px; }
.gc-figure-pair .gc-figure figcaption { min-height: 2.4em; }

.gc-modal__body .gc-rel {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .2rem 0 .55rem;
}
.gc-rel a {
    display: inline-flex;
    align-items: center;
    padding: .18rem .58rem;
    border: 1px solid rgba(166, 64, 47, .26);
    border-radius: 9999px;
    font-size: .76rem;
    line-height: 1.7;
    color: #A6402F;
    text-decoration: none;
    background: rgba(255, 252, 246, .6);
}
.gc-rel a:hover { border-color: #A6402F; background: rgba(166, 64, 47, .06); }

.gc-story__more {
    margin: 1.2rem 0 0;
    font-size: .8rem;
    line-height: 1.9;
    color: #6f7d76;
}
.gc-story__more a { color: #A6402F; text-decoration: none; border-bottom: 1px solid rgba(166, 64, 47, .28); }
.gc-story__more a:hover { border-bottom-color: #A6402F; }

/* 从其他页面按锚点跳转时，避免卡片被双层导航遮住 */
#story-dh, #story-hx, #story-gy, #story-sj,
#good-shuqian, #good-bingxiangtie, #good-mingxinpian,
#good-xiangbao, #good-tongbenma, #good-caitao { scroll-margin-top: 120px; }

/* 子页卡片按钮统一为轻量胶囊 */
body.gc-sub .gc-good__btn,
body.gc-sub .gc-story__btn {
    margin-top: auto;
    align-self: flex-start;
    padding: .42rem .9rem;
    border: 1px solid rgba(25, 59, 56, .18);
    border-radius: 9999px;
    background: rgba(255, 253, 247, .66);
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
body.gc-sub .gc-good__btn:hover,
body.gc-sub .gc-story__btn:hover {
    color: #A6402F;
    border-color: rgba(166, 64, 47, .42);
    background: rgba(166, 64, 47, .05);
}

@media (max-width: 560px) {
    .gc-figure-pair { grid-template-columns: 1fr; }
    .gc-figure-pair .gc-figure img { height: 170px; }
    .gc-notebook { width: 54%; }
}

/* 文创实物 / 器具参考：图片铺满卡片 */
.gc-good__media--product { background: #f4ead8; }
.gc-good__media--product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: transparent;
}
