/* ==================== 通用样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", "SimHei", sans-serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* 核心：模块页面显示/隐藏控制 */
.module-page {
    display: none;
    flex: 1;
}
.module-page.active {
    display: block;
}

/* ==================== 头部导航栏样式 ==================== */

/* 头部背景：放射线条深红背景 */
.header {
    width: 100%;
    background-image: url("../img/daohanglan.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

/* 导航栏半透明条带 */
.header-bar {
    width: 100%;
    height: 60px;
    background-color: rgba(165, 13, 22, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
}

/* Logo组排版 */
.header-logo-group {
    display: flex;
    align-items: center;
}
.gqt-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.fudan-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* 导航菜单核心修改 - 主导航【默认红色 悬浮白色】 */
.header-nav {
    display: flex;
    justify-content: center; /* 居中对齐导航项 */
}
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav ul li { margin: 0 1.5vw; }

.nav-item_inner { display: flex; align-items: center; }

.dropdown-arrow { font-size: 16px; color: #ffffff;}

.nav-item a {
    color: #ffffff; /* 主导航默认文字白色 */
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
}
/* 主导航-鼠标悬浮/选中激活 统一白色高亮+加深 */
.nav-item:hover a,
.nav-item.active a {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 2px #fff;
}
/* 添加导航项底部指示线效果 */
.nav-item.active a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffcc00;
    border-radius: 1px;
}
.nav-item:hover a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

/* 搜索框样式 - 适当向左移动以避免重叠 */
.header-search form {
    display: flex !important;
    align-items: center;
}
.search-input {
    height: 32px;
    width: 180px;
    padding: 0 15px;
    border: none;
    border-radius: 16px 0 0 16px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #f0e6d6;
    font-size: 14px;
    transition: all 0.3s ease;
}
.search-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    width: 200px; /* 聚焦时稍微变宽 */
}
.search-input::placeholder {
    color: #f0e6d6;
    opacity: 0.8;
}
.search-btn {
    height: 32px;
    width: 40px;
    border: none;
    border-radius: 0 16px 16px 0;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 15px;
    color: #f0e6d6;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 清除搜索按钮 */
.clear-search-btn {
    display: none;
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f0e6d6;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.clear-search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    height: 32px;
    width: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: #f0e6d6;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px; /* 移动端汉堡菜单位置，与搜索框对齐 */
}
.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==================== 横幅区域 ==================== */
.banner {
    width: 100%;
    padding-bottom: 39.0625%;
    overflow: hidden;
    background-image: url("../img/shouye.png");
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* ==================== 主体内容区（通用） ==================== */
.content {
    padding: 30px 0;
}
.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
}

/* ==================== 首页模块专属样式 ==================== */

/* 专题卡片样式（首页专属） - 修改为支持链接标签 */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 40px -10px;
    padding: 0 20px;
}

.feature-item {
    width: calc(25% - 20px);
    margin: 0 10px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* 去掉链接下划线 */
    color: inherit; /* 继承文字颜色 */
    display: block; /* 确保链接作为块级元素显示 */
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.feature-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.feature-title {
    padding: 15px;
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.5;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 共青团简介模块样式（首页专属） */
.intro-section {
    margin: 40px 20px;
}
.intro-section .intro-container {
    width: 100%;
    height: 600px;
    margin: 0 auto;
    display: flex;
    position: relative;
    padding-top: 60px;
    font-family: "PingFang SC", "Microsoft Yahei", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.intro-section .top-orange-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 300px;
    height: 3px;
    background-color: #f0b888;
}
.intro-section .bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9.375vw;
    font-weight: 800;
    color: rgba(240, 184, 136, 0.08);
    z-index: 0;
    letter-spacing: 10px;
    white-space: nowrap;
}
.intro-section .left-area {
    width: 40%;
    padding-right: 40px;
    position: relative;
    z-index: 1;
}
.intro-section .intro-label {
    display: inline-block;
    background-color: #e83a46;
    color: #ffffff;
    font-size: 16px;
    padding: 8px 20px;
    margin-bottom: 80px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 2px;
}
.intro-section .slogan-box {
    background-color: #fff5f7;
    padding: 60px 40px;
}
.intro-section .slogan-item {
    color: #f0b888;
    font-weight: 600;
    line-height: 1.2;
}
.intro-section .slogan2 {
    font-size: 56px;
    margin-bottom: 15px;
}
.intro-section .slogan1 {
    font-size: 42px;
    margin-bottom: 15px;
}
.intro-section .slogan3 {
    font-size: 32px;
}
.intro-section .right-area {
    width: 60%;
    padding-top: 8px;
    position: relative;
    z-index: 1;
}
.intro-section .content-text {
    color: #333333;
    font-size: 16px;
    line-height: 2.0;
    letter-spacing: 0.5px;
}
.intro-section .content-text p {
    margin-bottom: 25px;
    text-align: justify;
}

/* 新闻区域样式（首页专属） */
.news-section {
    margin: 40px 20px;
}
.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}
.news-header .tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}
.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s;
}
.tab-btn.active {
    color: #b81c22;
    font-weight: 700;
}
.tab-btn.active:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #b81c22;
}
.bg-text-news {
    position: absolute;
    right: 0;
    font-size: 4.1vw;
    font-weight: 900;
    color: rgba(184, 28, 34, 0.05);
    z-index: -1;
}
.news-content {
    display: flex;
    gap: 30px;
}
.news-list {
    flex: 2;
}
.news-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    align-items: flex-start;
    cursor: pointer;
}
.news-item:hover {
    background-color: #f9f9f9;
}
.news-item:last-child {
    border-bottom: none;
}
.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    width: 70px;
    height: 70px;
    margin-right: 20px;
    padding: 8px;
    background-color: #fff5f5;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #eebf4a;
}
.date-day {
    font-size: 28px;
    font-weight: 700;
    color: #b81c22;
    line-height: 1;
}
.date-month {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-info {
    flex: 1;
}
.news-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-info .news-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}
.news-tab-content {
    display: none;
}
.news-tab-content.active {
    display: block;
}

/* 轮播图样式 */
.news-image-slider {
    flex: 1;
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.slider-wrapper {
    width: 100%;
    height: 100%;
}
.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slider-img.active {
    opacity: 1;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}
.prev-btn { 
    left: 10px; 
}
.next-btn { 
    right: 10px; 
}
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}
.indicator.active {
    background: #fff;
}

/* ==================== 通用模块样式（概况/青年学习等） ==================== */
.module-content {
    position: relative;
    min-height: 400px;
    padding: 50px 0;
}
/* 模块背景大文字 */
.bg-big-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 14.58vw;
    font-weight: 800;
    color: #f9e9eb;
    z-index: 0;
    letter-spacing: 20px;
    opacity: 0.8;
}
/* 左侧装饰图 */
.decor-img {
    margin-right: 1vw;
}
.decor-img img {
    width: 300px;
    height: 300px;
    border-radius: 2px;
    filter: sepia(20%) hue-rotate(350deg) brightness(110%) contrast(90%);
}
/* 其他模块的文字样式 */
.module-text {
    position: relative;
    z-index: 2;
    padding: 30px 0;
    font-size: 16px;
    line-height: 2.2;
    color: #333;
    flex: 1;
    min-width: 1px;
}
.module-text p {
    margin-bottom: 25px;
    text-align: justify;
}
.module-text h2 {
    color: #b81c22;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: "STKaiti", serif;
}

/* ==================== 青年工作模块与服务指南模块样式 ==================== */

/* 内容宽度限制 */
.content-width {
    width: 1200px;
    margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb-nav .content-width {
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: #b01c29;
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: #b01c29;
    font-weight: bold;
}

/* 主内容区布局 */
.module-main {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    min-height: 600px;
}

/* 左侧导航栏 */
.module-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-header {
    background-color: #b01c29;
    color: white;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu .menu-item {
    display: block;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    border-left: 4px solid transparent;
}

.sidebar-menu .menu-item:hover {
    background-color: #f9f9f9;
    color: #b01c29;
    border-left-color: #b01c29;
}

.sidebar-menu .menu-item.active {
    background-color: #fff5f5;
    color: #b01c29;
    font-weight: bold;
    border-left-color: #b01c29;
}

.sidebar-menu .menu-item.active::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #b01c29;
    border-radius: 50%;
}

/* 右侧内容区 */
.module-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    
    align-items: center;
    padding: 0 20px;
}

.content-section {
    display: none;
    padding: 30px;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #b01c29;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #b01c29;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.section-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ==================== 青年工作模块特定样式 ==================== */

.youth-work-container {
    min-height: 600px;
}

/* 社团活动网格 */
.club-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.club-category {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #b01c29;
    transition: transform 0.3s, box-shadow 0.3s;
}

.club-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.club-category h4 {
    color: #b01c29;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.club-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.club-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    color: #555;
}

.club-list li:last-child {
    border-bottom: none;
}

.club-info {
    margin-top: 25px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #eebf4a;
}

.club-info p {
    margin-bottom: 10px;
}

.club-info p:last-child {
    margin-bottom: 0;
}

/* ==================== 服务指南模块特定样式 ==================== */

.service-guide-container {
    min-height: 600px;
}

/* 团务资料下载样式 - 根据图片重新设计 */
.section-header {
    margin-bottom: 30px;
}

.section-header .section-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #b01c29;
}

.section-intro {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #b01c29;
    margin-bottom: 30px;
}

.section-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* 下载内容区域 */
.download-content {
    margin-top: 30px;
}

/* 下载部分样式 - 简化版 */
.download-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.download-section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.download-section-header h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.download-section-header .section-description {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* 简化版下载列表 */
.download-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list-simple li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.download-list-simple li:hover {
    background-color: #f0f0f0;
}

.download-list-simple li:last-child {
    border-bottom: none;
}

.download-list-simple .doc-name {
    font-size: 15px;
    color: #333;
}

.download-btn-simple {
    background-color: #b01c29;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn-simple:hover {
    background-color: #8d0100;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(141, 1, 0, 0.2);
}

/* 实际下载按钮样式 */
.download-btn-simple.download-real {
    background-color: #4CAF50;
    font-weight: bold;
}

.download-btn-simple.download-real:hover {
    background-color: #388E3C;
    box-shadow: 0 4px 8px rgba(56, 142, 60, 0.2);
}

/* 演示下载按钮样式 */
.download-btn-simple.download-demo {
    background-color: #757575;
}

.download-btn-simple.download-demo:hover {
    background-color: #616161;
    box-shadow: 0 4px 8px rgba(97, 97, 97, 0.2);
}

/* 简化版下载说明 */
.download-instruction-simple {
    margin-top: 25px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #eebf4a;
}

.download-instruction-simple h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.download-instruction-simple p {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.download-instruction-simple .download-note {
    font-size: 13px;
    color: #ff9800;
    background-color: #fff8e1;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
    margin-top: 10px;
}

/* 团关系转接咨询样式 - 根据图片重新设计 */
.transfer-content {
    margin-top: 30px;
}

/* 转接流程样式 */
.transfer-process {
    margin-bottom: 25px;
}

.process-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #b01c29;
}

.process-item h3 {
    font-size: 18px;
    color: #b01c29;
    margin-bottom: 10px;
    font-weight: bold;
}

.process-item p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* 常见问题样式 */
.transfer-faq {
    margin-top: 30px;
}

.transfer-faq .faq-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #b01c29;
}

.faq-item-simple {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #b01c29;
}

.faq-item-simple:last-child {
    margin-bottom: 0;
}

.faq-item-simple p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.faq-item-simple strong {
    color: #b01c29;
    font-weight: bold;
}

/* ==================== 机构设置样式 ==================== */
.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.breadcrumbs a {
    color: #666;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #b01c29;
    text-decoration: underline;
}
/* 左列表+右内容 横向并排 */
.org-layout {
    width: 100%;
    min-height: 500px;
    border: 1px solid #ddd;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
}
/* 左侧机构设置区域 */
.org-sidebar {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    background-color: #fafafa;
}
/* 左侧红色标题栏 */
.org-sidebar-title {
    background-color: #b01c29;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    text-align: center;
}
/* 左侧部门列表 */
.org-department-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.org-department-list li {
    border-bottom: 1px solid #e0e0e0;
}
.org-department {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    background-color: #fff;
}
.org-department:hover {
    background-color: #f5f5f5;
    color: #b01c29;
}
/* 选中部门样式 */
.org-department.active {
    color: #b01c29;
    font-weight: bold;
    background-color: #fff5f5;
    border-left: 3px solid #b01c29;
}

/* 右侧部门介绍区域 */
.org-content {
    padding: 25px 35px;
    background-color: #fff;
}
/* 右侧标题样式 */
.org-detail h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    
}
.org-detail h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #b01c29;
}
.org-section h3 {
    font-size: 18px;
    color: #b01c29;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #b01c29;
}
/* 右侧正文样式 */
.org-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
.org-description p {
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 2em;
}
.org-detail {
    display: none;
    animation: fadeIn 0.5s ease;
}
.org-detail.active {
    display: block;
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 搜索相关样式 ==================== */
.search-results-container {
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
}

.search-results-container h2 {
    color: #b01c29;
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.search-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 16px;
}

.search-keyword {
    color: #b01c29;
    font-weight: bold;
}

.result-count {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

/* 搜索结果项样式 */
.search-result-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-result-item h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-count {
    background-color: #f0f0f0;
    color: #666;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.excerpts {
    margin: 15px 0;
}

.excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.excerpt mark {
    background-color: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
}

.view-page-btn {
    display: inline-block;
    background-color: #b01c29;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
}

.view-page-btn:hover {
    background-color: #8d0100;
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.no-results p {
    margin-bottom: 15px;
    color: #666;
}

.no-results ul {
    list-style-type: none;
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

.no-results li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.no-results li:before {
    content: "•";
    color: #b01c29;
    position: absolute;
    left: 0;
}

/* 高亮样式 */
.search-highlight {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 2px 0;
    border-radius: 2px;
}

.search-highlight mark {
    background-color: #ffeb3b;
    color: #333;
    font-weight: bold;
}

/* ==================== 友情链接样式 ==================== */
.friend-link-footer {
    background-color: #fbeae1;
    padding: 15px 0;
    text-align: left;
    padding-left: 20px;
    margin-top: auto;
}
.friend-link-footer h2 {
    margin: 0;
    color: #974B34;
    font-size: 18px;
}
.friend-link-footer-content {
    background: linear-gradient(to bottom, #cd2323, #8d0100);
    color: white;
    padding: 30px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.footer-logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.footer-logo-group img {
    width: 80px;
}
.school-logo {
    width: 120px !important;
   margin-left: 10px;
}
.contact-info,
.click-count {
    font-size: 18px;
    line-height: 1.8;
}
.contact-info a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}
.contact-info a:hover {
    color: #ffcc00;
    border-bottom: 1px solid #ffcc00;
    text-decoration: none;
}
.committee-name {
    font-size: 18px;
    margin-top: 10px;
}

/* ==================== 下拉菜单样式 ==================== */

/* 下拉菜单容器 */
.nav-item.dropdown {
    position: relative;
}
/* 下拉箭头 */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.dropdown-menu.compact-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    min-width: 150px;
    background-color: #b01c29;
    border: 1px solid #8d0100;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 8px 0;
}
.menu-item.horizontal-text {
    display: block;
    width: 100%;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}
.menu-item.horizontal-text:last-child {
    border-bottom: none;
}
.menu-item.horizontal-text:hover {
    background-color: #ffffff;
    color: #b01c29;
}
.nav-item.dropdown:hover .dropdown-menu.compact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ==================== 响应式适配 ==================== */

@media (max-width: 1200px) {
.header-nav ul li { margin:0 0.5vw; }
    .content {
        width: 95%;
        margin: 0 auto;
    }
    
    .content-width {
        width: 95%;
        margin: 0 auto;
    } 
    .feature-grid {
      margin:0 -5px;
    }
    .feature-item {
        width: calc(50% - 10px);
        margin: 0 5px;
    }
    
    .news-image-slider {
        height: 300px;
    }
    
    .search-results-container {
        width: 95%;
    }
    
    .club-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 150px; /* 中等屏幕减少搜索框宽度 */
    }
    
    .search-input:focus {
        width: 170px; /* 聚焦时稍微变宽 */
    }
    
    /* 服务指南响应式调整 */
    .download-section,
    .process-item {
        padding: 15px;
    }
    
    /* 机构设置响应式 */
    .org-layout {
        flex-direction: column;
    }
    
    .org-sidebar {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .org-department-list {
        display: flex;
        flex-wrap: wrap;
    }
    
    .org-department-list li {
        flex: 1;
        min-width: 150px;
    }
    
    .org-department {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .org-department.active {
        border-left: none;
        border-bottom: 3px solid #b01c29;
    }
}

@media (max-width: 992px) {
    .nav-item a {
        font-size: 15px; /* 稍微减小字体大小 */
    }
    
    .search-input {
        width: 130px; /* 平板设备减少搜索框宽度 */
    }
    
    .search-input:focus {
        width: 150px; /* 聚焦时稍微变宽 */
    }
    
    .header-bar {
        padding: 0 30px; /* 减少内边距 */
    }
    
    .header-logo-group {
        left: 30px; /* 调整Logo位置 */
    }
    
    .header-search, .menu-toggle {
        right: 15px; /* 调整搜索框和汉堡菜单位置，进一步向左移动 */
    }
    
    .module-main {
        flex-direction: column;
    }
    
    .module-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sidebar-menu li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        flex: 1;
    }
    
    .sidebar-menu li:last-child {
        border-right: none;
    }
    
    .sidebar-menu .menu-item {
        text-align: center;
        padding: 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-menu .menu-item.active {
        border-left: none;
        border-bottom: 3px solid #b01c29;
    }
    
    .sidebar-menu .menu-item.active::after {
        display: none;
    }
}

@media (max-width: 768px) {
.intro-section .intro-label { margin-bottom: 10px; }
.download-content { margin-top: 0; }
.news-info h3 { font-size: 16px; }
.org-content { padding: 0; }
.date-box {
    min-width: 40px;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    padding: 4px;
    border-radius: 2px;
}
.date-day { font-size: 16px; }
.date-month { font-size: 12px; }
    .menu-toggle {
        display: block;
    }
    
    .header-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(165, 13, 22, 0.95);
        display: none;
        z-index: 1000;
        margin: 0; /* 移动端重置margin */
        flex: none; /* 移动端取消flex:1 */
        justify-content: flex-start; /* 保持左对齐 */
        max-width: 100%; /* 移动端全宽度 */
        transform: none; /* 移动端取消向右平移 */
    }
    
    .header-nav.active {
        display: block;
    }
    
    .header-nav ul {
        flex-direction: column;
        padding: 20px;
        align-items: flex-start; /* 左对齐导航项 */
    }
    
    .header-search {
        display: none;
    }
    
    .feature-grid {
        margin: 0;
    }
.feature-item { width: 100%; margin: 0 0 10px 0; }
    
    .intro-section .intro-container {
        flex-direction: column;
        height: auto;
        padding-top: 30px;
    }
    
    .intro-section .left-area, .intro-section .right-area {
        width: 100%;
        padding: 0 20px;
    }
    
    .news-content {
        flex-direction: column;
    }

    .module-text {
        margin-left: 0;
        width: 100%;
        padding: 0 20px;
    }
.decor-img img { max-width:100%; height:auto;  }

.module-content { 
        flex-direction: column; padding: 15px; }

    .news-image-slider {
        height: 250px;
    }
    
    .slider-btn {
        width: 30px;
        height: 40px;
        font-size: 14px;
    }
    
    /* 服务指南移动端调整 */
    .download-list-simple li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }
    
    .download-btn-simple {
        align-self: flex-start;
    }
    
    .section-header .section-title {
        font-size: 22px;
    }
    
    .section-intro {
        padding: 15px;
    }
    
    .download-section-header h3 {
        font-size: 18px;
    }
    
    .download-instruction-simple h4 {
        font-size: 16px;
    }
    
    .process-item h3 {
        font-size: 16px;
    }
    
    .transfer-faq .faq-title {
        font-size: 18px;
    }
    
    .faq-item-simple p {
        font-size: 14px;
    }
    
    /* 移动端机构设置调整 */
    .org-layout {
        flex-direction: column;
        border: none;
        margin-top: 0;
    }
    
    .org-sidebar {
        width: 100%;
        margin-bottom: 10px;
        border-right: none;
        border-bottom: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .org-department-list {
        flex-direction: column;
    }
    
    .org-department {
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    
    .org-department.active {
        border-left: 3px solid #b01c29;
        border-bottom: none;
    }
    
    .org-content {
        padding: 0px;
    }
 .org-content form {padding: 0px;}
    
    .org-detail h2 {
        font-size: 20px;
    }
    
    .org-section h3 {
        font-size: 16px;
    }
    
    /* 移动端下拉菜单修复 */
    .nav-item.dropdown {
        flex-direction: column;
        width: 100%;
        padding: 5px 0;
        margin: 0;
    }
    
    .dropdown-menu.compact-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 5px;
        border-radius: 0;
        width: 100%;
    }
.org-description p { 
    margin: 0 !important; }
    
    .nav-item.dropdown.active .dropdown-menu.compact-menu {
        display: block;
        transform: translateX(0%) translateY(0);
    }
    
    .menu-item.horizontal-text {
        padding: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-item a {  position: static;}
.nav-item_inner a { flex:1; min-width: 1px; }
    .dropdown-arrow {
      padding: 5px;
    }
    
    .nav-item.dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* 移动端搜索样式调整 */
    .search-results-container {
        padding: 20px 15px;
    }
    
    .search-results-container h2 {
        font-size: 22px;
    }
    
    .search-result-item {
        padding: 15px;
    }
    
    .search-result-item h3 {
        font-size: 18px;
    }
    
    .view-page-btn {
        width: 100%;
        padding: 10px;
    }
    
    /* 移动端友情链接调整 */
    .friend-link-footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .contact-info,
    .click-count {
        font-size: 16px;
    }
    
    .contact-info a {
        display: inline-block;
        word-break: break-all;
    }
    
    /* 移动端Logo和汉堡菜单调整 */
    .header-bar {
        padding: 0 20px; /* 进一步减少内边距 */
    }
    
    .header-logo-group {
        left: 20px; /* 调整Logo位置 */
    }
    
    .menu-toggle {
        right: 20px; /* 调整汉堡菜单位置 */
    }
    
    /* 移动端模块样式调整 */
    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .content-section {
        padding: 0px;
    }
.module-main { margin-bottom: 0; }
    #vsb_content img { max-width: 100% !important; height: auto !important; display: block; }
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .club-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-menu li {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .sidebar-menu li:last-child {
        border-bottom: none;
    }
    
    .sidebar-menu .menu-item {
        border-bottom: none;
        border-left: 4px solid transparent;
        text-align: left;
    }
    
    .sidebar-menu .menu-item.active {
        border-left: 4px solid #b01c29;
        border-bottom: none;
    }
.tab-btn { 
    font-size: 14px; margin-right: 5px;
    padding: 7px 5px; }
.news-item { padding: 10px 0; }
}

/* 大屏幕额外优化 */
@media (min-width: 1400px) {
    
    .nav-item a {
        font-size: 17px; /* 大屏幕稍微增大字体 */
    }
    
    .content-width {
        width: 1300px;
    }
    
    .module-sidebar {
        width: 280px;
    }
    
    .org-sidebar {
        width: 250px;
    }
}

/* 优化导航栏视觉效果 */
.nav-item.dropdown .dropdown-menu.compact-menu {
    min-width: 160px; /* 增加下拉菜单宽度 */
}

.nav-item a {
    letter-spacing: 0.5px; /* 增加字母间距，提高可读性 */
}