/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", "方正兰亭纤黑_GBK", Arial, sans-serif;
    color: #58595B;
    background-color: #fff;
    line-height: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 10px 0 0 0;
}

a {
    color: #58595B;
    text-decoration: none;
    display: block;
}

/* 移除所有链接的悬停效果 */
a:hover {
    opacity: 1; /* 保持完全不透明，无变化 */
}

/* 主容器 - 缺省高度 */
.container {
    width: 1280px;
    /* 高度缺省，由内容自动撑开 */
    display: grid;
    grid-template-rows: 112px 5px auto 5px 112px;
    grid-template-columns: 90px 1100px 90px;
    grid-template-areas: 
        "header-logo header-center header-contact"
        "gap-top gap-top gap-top"
        "sidebar-left main sidebar-right"
        "gap-bottom gap-bottom gap-bottom"
        "footer-copyright footer-nav footer-home";
    margin: 0 auto;
}

/* 顶部区域 - 确保垂直居中对齐 */
.header-logo, .header-center, .header-contact,
.sidebar-left, .main, .sidebar-right,
.footer-copyright, .footer-nav, .footer-home {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    grid-area: header-logo;
}

.header-center {
    grid-area: header-center;
}

.header-contact {
    grid-area: header-contact;
}

/* 侧边栏 */
.sidebar-left {
    grid-area: sidebar-left;
}

.sidebar-right {
    grid-area: sidebar-right;
}

/* 主内容区域 */
.main {
    grid-area: main;
    position: relative;
    overflow: hidden;
}

/* 轮播图样式 - 修改为保持图片完整显示 */
.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为 contain 避免裁剪 */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none; /* 防止非活动图片干扰点击 */
    background-color: #fff; /* 添加白色背景确保边框区域可见 */
}

.slideshow img.active {
    opacity: 1;
    pointer-events: auto; /* 只有活动图片可以点击 */
}

/* 底部区域 */
.footer-copyright {
    grid-area: footer-copyright;
}

.footer-nav {
    grid-area: footer-nav;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 112px;
}

.nav-buttons {
    display: flex;
    gap: 30px;
}

.footer-home {
    grid-area: footer-home;
}

/* 间隙区域 */
.gap-top {
    grid-area: gap-top;
    height: 5px;
}

.gap-bottom {
    grid-area: gap-bottom;
    height: 5px;
}

/* 备案信息 */
.footer-info {
    text-align: center;
    font-size: 12px;
    margin-top: 25px;
    margin-bottom: 10px;
    height: 25px;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .container {
        width: 100%;
        transform: scale(0.8);
        transform-origin: top center;
    }
}

@media (max-width: 1024px) {
    .container {
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .container {
        transform: scale(0.6);
    }
}