* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "宋体", "微软雅黑",sans-serif;
    background-color: #fef9f4;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
    color: #2c2b28;
    line-height: 1.5;
}

.main-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    background-color: #fffef9;
    padding: 0 12px; 
}

.container {
    width: 100%;
    margin: 0 auto;
    background-color: #fef9f4;
}

/* 导航区域 — 保持精致简洁 */
.nav-wrapper-custom {
    padding: 24px 0 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fef9f4;
    width: 100%;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.logo-area {
    text-align: center;
    margin-bottom: 8px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-top: 12px; 
    text-align: center;
}

/* 轮播图 */
.hero-carousel {
    width: 100%;
    position: relative;
    margin: 0 auto;
    background: #2b241f;
}
.carousel-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition:transform 0.4s ease;}

.slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-caption {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        max-width: min(75%, 90vw);
        background: rgba(0, 0, 0, 0.5);
        padding: 24px 48px;
        border-radius: 16px; 
    }

.slide-caption h2 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .slide-caption p {
        font-size: 1.2rem;
        font-weight: 400;
    }

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.4rem;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: #cfa778;
    color: #2c2b28;
}

.btn-prev {
    left: 32px;
}

.btn-next {
    right: 32px;
}

/* 指示点设计 */
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 250, 240, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #cfa778;
    width: 36px;
    border-radius: 10px;
}

/* ========== 内容网格：左右等宽，等比例 ========== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    margin: 48px 0 70px;
    width: 100%;
}

.left-panel,.right-panel {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-width: 0;
}

.card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 28px 32px;
    border: 1px solid #f1ece5;
    transition: transform 0.2s;
    text-align: left;
}

.card:hover {
    transform: translateY(-3px);
}

.section-title {
    font-family: '微软雅黑', sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    border-left: 5px solid #cfa778;
    padding-left: 20px;
    margin-bottom: 28px;
    color: #3a2c29;
}

/* 新闻/通告列表左对齐优化 */
.news-list,
.notice-list {
    list-style: none;
    text-align: left;
    padding-left: 0;
}

.news-item,
.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid #f0eae2;
    flex-wrap: wrap;
    gap: 10px !important; 
    text-align: left;
}

.news-item a,
.notice-item a {
    text-decoration: none;
    font-weight: 500;
    color: #2c2b28;
    transition: color 0.2s;
    font-size: 1rem;
    flex: 1;
}

.news-item a:hover,
.notice-item a:hover {
    color: #b45f3b;
}

.date {
    font-size: 0.75rem;
    color: #aa9b90;
    background: #faf5ef;
    padding: 4px 12px;
    border-radius: 40px;
    white-space: nowrap;
}

.more-link {
    margin-top: 20px;
    text-align: right;
}

.more-link a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b45f3b;
    text-decoration: none;
}

/* 右侧海报双栏 */
.posters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px !important;
}

.poster-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    border: 1px solid #f1eae3;
    display: flex;
    flex-direction: column;
    cursor: pointer;   
    max-height: 620px;
}

.poster-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 35px rgba(0, 0, 0, 0.08);
}

.poster-img {
    width: 100%;
    aspect-ratio: 3/4;   
    min-height: unset;
    max-height: 420px; /* 限制图片最大高度，大屏不会超长 */
    object-fit: cover;
    object-position: center top; /* 图片顶部居中，人脸/标题不会被裁掉 */
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.poster-img.loaded {
    opacity: 1;
}

.poster-info {
    padding: 22px 22px 26px;
    background: #ffffff;
    border-top: 1px solid #f6efe8;
}

.poster-info h3 {
    font-family: "微软雅黑", serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #3a2c29;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.poster-info h3 i {
    color: #cfa778;
}

.detail {
    font-size: 0.85rem;
    color: #6e5e55;
    margin: 8px 0;
    line-height: 1.45;
    text-align: left;
}

.poster-tag {
    display: inline-block;
    background: #f7f0e9;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9b6e55;
    margin-top: 12px;
}

/* 教学动态 & 学生活动双栏 */
.dynamic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px !important;
}

.info-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 26px;
    border: 1px solid #f1ece5;
    transition: box-shadow 0.2s;
    text-align: left;
}

.info-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px !important;
    color: #4a3b36;
}

.info-card h4 i {
    color: #cfa778;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    margin-bottom: 18px;
    font-size: 0.92rem;
    border-left: 2px solid #e9dfd6;
    padding-left: 14px;
    text-align: left;
}

.info-list li a {
    text-decoration: none;
    color: #2c2b28;
    font-weight: 470;
    transition: color 0.2s;
}

.info-list li a:hover {
    color: #b45f3b;
}

.info-date {
    font-size: 0.7rem;
    color: #bcaaa0;
    display: block;
    margin-top: 6px;
}

.footer {
    margin-top: 40px;
    border-top: 1px solid #e9dfd8;
    padding: 36px 12px 45px;
    text-align: center;
    font-size: 0.8rem;
    color: #9b8b80;
    background-color: #fef9f4;
    max-width: 1440px;
    width: 100%;
    margin:0 auto; 
}

/* ========== 响应式：当屏幕小于1440px时，让内容可滚动，保持设计完整性 ========== */
/* 平板及手机响应式：宽度自适应并缩放 */
@media (max-width: 1024px) {
    .carousel-container {
        height: 450px;
    }

    .slide-caption h2 {
        font-size: 1.8rem;
    }

    .slide-caption p {
        font-size: 1rem;
    }

    .content-grid {
        gap: 32px;
    }
}

@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .posters-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* 手机横屏 768px 新增过渡断点，修复适配断层 */
@media (max-width: 768px) {
    .main-nav {
        gap: 0.5rem 1rem;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .btn-prev {left:16px;}
    .btn-next {right:16px;}
}

@media (max-width: 640px) {
    .carousel-container {
        height: 300px;
    }

    .slide-caption {
        padding: 16px 28px;
    }

    .slide-caption h2 {
        font-size: 1.2rem;
    }

    .slide-caption p {
        font-size: 0.8rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .posters-row,
    .dynamic-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card {
        padding: 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

/* 超小手机 420px 兜底适配 */
@media (max-width: 420px) {
    .carousel-container {
        height: 240px;
    }
    .slide-caption h2 {
        font-size: 1rem;
    }
    .card {
        padding: 12px;
        border-radius: 20px;
    }
}

/* 辅助隐藏CMS标记不影响显示 */
.cms-placeholder {
    display: none;
}