/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 占位图通用样式 */
.img-placeholder {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9900;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px dashed #999;
    min-height: 100px; /* 确保占位图可见 */
}

.img-placeholder.img-label {
    color: #666;
    font-size: 1rem;
}

/* === 头部与导航栏 === */
header {
    width: 100%;
    background-color: #fff;
}

.banner {
    position: relative;              /* 用于蒙层定位，只保留一个 */
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0044cc;
}
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.4); /* 当前的灰色蒙层 */
    z-index: 1;
    pointer-events: none;
}

.top-info {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 12px;
    color: #fff;                 /* 改为白色，与蒙层形成对比 */
    text-align: left;
    z-index: 2;                  /* 确保文字在蒙层之上 */
}

.logo-area {
    position: relative;           /* 使 z-index 生效 */
    z-index: 2;                   /* 确保文字在蒙层之上 */
}

.banner-logo {
    display: block;
    height: 88px;
    width: auto;
    margin: 0 auto 14px;
    max-width: 360px;
    object-fit: contain;
}

.logo-area h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #2b55f5;             /* 与导航栏一致的品牌蓝，在背景上清晰醒目 */
}

.logo-area p {
    font-size: 1.1rem;
    color: #ffffff;
}
nav {
    background-color: #2b55f5;
    display: flex;
    justify-content: center;
}

nav a {
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #1a3ecc;
}

/* === 页面主体容器 === */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* === 首页特定样式 === */
.index-title {
    text-align: center;
    margin: 20px 0 30px;
    font-size: 2rem;
}

.index-title a {
    color: #2b55f5;
    text-decoration: none;
}

.index-title a:hover {
    text-decoration: underline;
}

/* 微信公众号引导卡片 */
.wechat-card {
    margin-top: 24px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    border: 1px solid #e0e8f5;
    border-radius: 12px;
    text-align: center;
}

.wechat-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.wechat-card-desc {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.wechat-card-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2b55f5;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.2s;
}

.wechat-card-btn:hover {
    background: #1a3ecc;
}

.hero-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-img-wrap {
    flex: 1;
    display: block;
}

.hero-img {
    height: 300px;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.recommend-list {
    flex: 1;
}

.recommend-list h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.recommend-title-link {
    color: #2b55f5;
    text-decoration: none;
}

.recommend-title-link:hover {
    text-decoration: underline;
}

.recommend-list ul li {
    list-style: none;
    margin-bottom: 15px;
}

.recommend-list ul li a {
    display: block;              /* 使链接占满整行 */
    white-space: nowrap;         /* 禁止换行 */
    overflow: hidden;            /* 隐藏超出部分 */
    text-overflow: ellipsis;     /* 超出显示省略号 */
    max-width: 100%;             /* 确保宽度不超过父容器 */
    color: #333;                 /* 保留原有颜色 */
    transition: color 0.2s;
}

.recommend-list ul li a:hover {
    color: #2b55f5;
    text-decoration: underline;
}

.bottom-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
}

.section-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-title {
    background-color: #2b55f5;
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 首页：中心领导与风采展示等高、图片对齐 */
.leader-preview {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    min-height: 150px;
}

.leader-preview-photo {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

.leader-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-preview-info h4 {
    color: #2b55f5;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.leader-preview-info p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.leader-preview-info .leader-others {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #2b55f5;
}

.showcase-preview {
    display: flex;
    gap: 15px;
    min-height: 150px;
}

.showcase-preview-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showcase-preview-img {
    height: 150px;
    margin-bottom: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

.showcase-preview-caption {
    text-align: center;
    color: #2b55f5;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* === 子页面通用（左右分栏） === */
.subpage-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #f4f4f4; /* 将背景改成和网页一样的浅灰色 */
    padding: 15px; /* 加上内边距，让按钮和框框边缘保持一点距离，不会显得拥挤 */
    border-radius: 8px; /* 加上圆角，让容器看起来更平滑美观 */
}
.sidebar-nav {
    display: flex;
    flex-direction: column; /* 竖向排列 */
    gap: 15px; /* 这里就是按钮中间空出来的距离 */
    background-color: transparent; /* 确保外框没有任何颜色，透出网页背景色 */
}

.sidebar-nav a {
    display: block;
    background-color: #2b55f5; /* 按钮默认的蓝色 */
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px; /* 顺手加个稍微圆润一点的边角，比较现代。如果不喜欢可以直接删掉这行 */
    transition: background 0.2s;
    /* 注意这里不要写 margin-bottom 了，统一用上面的 gap 控制间距 */
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #ffaa00; /* 选中或鼠标放上去的橙色 */
}

.main-content {
    flex: 1;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

.article-list li a {
    font-size: 1.1rem;
    color: #2b55f5;
}

.article-list li a:hover {
    text-decoration: underline;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.report-intro {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* 领导展示网格 */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.leader-card {
    display: flex;
    gap: 15px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    align-items: flex-start;
}

.leader-photo,
.leader-photo-img {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.leader-info h3 {
    color: #2b55f5;
    margin-bottom: 5px;
}

.leader-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* 风采展示图墙 */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.showcase-item {
    text-align: center;
}

.showcase-img {
    height: 180px;
    margin-bottom: 10px;
    overflow: hidden;
}

.showcase-title {
    color: #2b55f5;
    font-weight: bold;
}

/* 中心简介：图2 布局（左侧信息列表 + 右侧对外标识） */
.intro-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 280px;
}

.intro-dl {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.intro-dl dt {
    color: #2b55f5;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 4px;
}

.intro-dl dt:first-child {
    margin-top: 0;
}

.intro-dl dd {
    margin: 0 0 0 1em;
    color: #333;
}

.intro-logo {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.intro-logo-title {
    font-size: 1.1rem;
    color: #2b55f5;
    margin-bottom: 15px;
}

.intro-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

/* 中心架构：图1（标题 + 组织架构图 + 注意） */
.structure-title {
    color: #2b55f5;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.structure-version {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.structure-img-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.structure-img-wrap .lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.structure-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.structure-note {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    padding: 15px 18px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2b55f5;
}

/* 交流页面 */
.exchange-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.contact-grid .exchange-card {
    margin-bottom: 0;
}

.contact-detail {
    margin-top: 8px;
    color: #2b55f5;
    font-size: 0.95rem;
}

.faq-list {
    list-style: none;
    margin-top: 15px;
}

.faq-list li {
    margin-bottom: 15px;
}

/* 交流页：标题装饰条（图1/图2 蓝条、黄条） */
.section-title-bar {
    padding-left: 16px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    border-left-width: 5px;
    border-left-style: solid;
}

.section-title-bar-blue {
    color: #2b55f5;
    border-left-color: #2b55f5;
}

.section-title-bar-yellow {
    color: #d4a012;
    border-left-color: #ffaa00;
}

.exchange-intro {
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* 线上交流：二维码左右并排 */
.qr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.qr-block {
    text-align: center;
    padding: 24px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-block-title {
    font-size: 1.25rem;
    color: #2b55f5;
    margin-bottom: 12px;
    font-weight: bold;
}

.qr-block-desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 4em;
}

.qr-id {
    font-size: 0.9rem;
    color: #666;
}

.qr-placeholder.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    min-height: 180px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.95rem;
    background: #fff;
}

.qr-img-link {
    display: block;
    cursor: zoom-in;
}

.qr-img {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
}

/* 线下交流：地址与班级信息卡片 */
.offline-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.offline-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 22px 24px;
    border-left: 4px solid #2b55f5;
}

.offline-card:last-of-type {
    border-left-color: #ffaa00;
}

.offline-label {
    font-size: 1.1rem;
    color: #2b55f5;
    margin-bottom: 10px;
    font-weight: bold;
}

.offline-card:last-of-type .offline-label {
    color: #d4a012;
}

.offline-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.offline-text + .offline-text {
    margin-top: 8px;
}

/* 图片点击放大（灯箱） */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.lightbox-open {
    display: flex;
}

.lightbox-overlay .lightbox-img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    cursor: default;
}

.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.lightbox-overlay .lightbox-close:hover {
    color: #ffaa00;
}

/* 可点击展示的图片统一为块级、铺满容器 */
.showcase-img img,
.showcase-preview-img img,
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === 页脚 === */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #d9d9d9;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 20px;
}