/* ===== 布局 ===== */
.container {
    width: 95%;
    max-width: var(--maxw);
    margin: 20px auto;
    display: flex;
    gap: 24px;
}
.left { width: 70%; }

.left img {
    max-width: 100%;
    height: auto;
    display: block;
}

.right { width: 30%; }

/* PC 右侧跟随滚动 */
.right .sticky {
    position: sticky;
    top: 50px;
}

/* ===== 卡片基础 ===== */
.login-card, .about, .exhibit-card {
    background: var(--card);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15,20,25,0.06);
}
.login-card h4 { margin-bottom: 10px; }

.login-card textarea,
.login-card button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.login-card textarea {
    resize: vertical;
}

.login-card button {
    background: #4a90e2;
    color: #fff;
    border: none;
    cursor: pointer;
}


/* ===== 信息类列表 ===== */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { font-size: 16px; margin-bottom: 8px; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list li:hover, .contact-list a:hover { color: #3498db; cursor: pointer; }

/* ===== 内容页 ===== */
.left h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}
.info-line {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.content-body {
    font-size: 16px;
    line-height: 1.78;
}

.content-body a { color: inherit; text-decoration: none; }


.content-body img {
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== banner ===== */
.banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;   /* 可保留 */
}

/* ===== 轮播图 ===== */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ===== 轮播图 ===== */
.slideshow-container {
    width: 100%;
    position: relative;
}

.slideshow-container img {
    width: 100%;        /* 宽度拉满 */
    height: 300px;       /* 高度自动按比例变化 */

    position: absolute;
    opacity: 0;
    transition: opacity 1s;
}

.slideshow-container img.active {
    opacity: 1;
    position: relative; /* 让 active 的图占据布局高度 */
}


.usearch-box {  display: flex;  width: 100%;  gap: 0;margin-bottom: 10px;}
.usearch-box input {  flex: 1;  padding: 10px;  border: 1px solid #ddd;  border-radius: 6px 0 0 6px;  outline: none;}
.usearch-box button {  padding: 10px 16px;  border: none;  background: var(--accent);  color: #fff;  border-radius: 0 6px 6px 0;  cursor: pointer;}

/* ===== 图片类通用 ===== */
.about img,
.exhibit-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== 展开全文 ===== */
.fulltext { display: none; }
.fulltext.open { display: block; }


/* ===== 移动端优化 ===== */
@media(max-width: 768px) {
    .container { flex-direction: column; padding: 0 16px; }
    .left, .right { width: 100%; }

    /* 右栏固定在底部 */
    .right {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 12px 16px;
        background: var(--card);
        box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
        border-radius: 12px 12px 0 0;
        z-index: 999;
    }
}

@media(max-width: 480px) {
    .container { padding: 0 16px; }
    .right .sticky { position: static; }

.slideshow-container img {
    width: 100%;        /* 宽度拉满 */
    height: 160px;       /* 高度自动按比例变化 */

    position: absolute;
    opacity: 0;
    transition: opacity 1s;
}

}

