/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #fff9df;
    background-image: url("./bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto;
    min-height: 100vh;
    color: #333;
}
/* 版块项容器样式 */
.sub-forum-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.sub-forum-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 图标样式 */
.sub-forum-icon {
    flex-shrink: 0; /* 固定图标宽度 */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sub-forum-icon svg {
    vertical-align: middle;
}

/* 名称与版主信息样式 */
.sub-forum-info {
    flex-grow: 1; /* 占满剩余空间 */
    min-width: 0; /* 解决文本溢出问题 */
}
.sub-forum-name {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-forum-moderators {
    font-size: 12px;
    color: #666;
}

/* 统计信息样式 */
.sub-forum-stats {
    flex-shrink: 0;
    text-align: right;
    min-width: 180px; /* 固定统计区宽度 */
}
.byg_first_img{max-width: 18px;}
.stats-item {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
}
.stats-item:first-child {
    margin-left: 0;
}
.pn em, .pn span, .pn strong {
  padding: 0 10px;
  line-height: 21px;
}
.pgsbtn, .pn {
  /* 基础样式保持不变 */
  padding: 9px 12px !important;
  background: #ff9f00 !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  
  /* 新增：启用 Flex 布局实现垂直居中 */
  display: inline-flex; /* 保持 inline 特性的同时启用 Flex */
  align-items: center; /* 垂直方向居中对齐内部内容 */
  justify-content: center; /* 水平方向居中对齐内部内容（可选，按需添加） */
  
  /* 清除可能干扰居中的样式 */
  line-height: normal !important; /* 重置行高，避免固定行高影响居中 */
  vertical-align: middle; /* 对齐基线，避免与其他元素错位 */
  box-sizing: border-box; /* 确保 padding 不影响元素总高度 */
}

.pn em, .pn span, .pn strong {
  padding: 0 10px;
  line-height: 21px;
}
.m_c .o{height:45px!important;}
.pls {
  width: 160px;
background: #fddc95!important;
  overflow: hidden;
  border-right: none!important;
}
.ad .plc {
background: #fddc95!important;
  padding: 0;
  overflow: hidden;
}
.user_avatar{max-width: 48px;border-radius: 50%;}
/* 纵向列布局 */
.section-b .course-grid,
.section-c .course-grid {
    display: flex;
    gap: 15px;
}

.course-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 模块间箭头样式 */
.module-arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-right {
    height: 30px;
    width: 2px;
    background-color: #FFD700;
    position: relative;
}

.arrow-right::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #FFD700;
}

/* 第一排菜单样式 */
.course-box.first-row {
    background-color: transparent;border:1px solid #F5B041;
   
}

/* 带竖线尾巴的向下箭头样式 - 只在第一排显示 */
.course-box.first-row a {
    position: relative;
    padding-bottom: 20px;
}

/* 竖线尾巴 */
.course-box.first-row a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background-color: #FFD700;
}

/* 三角形箭头 */
.course-box.first-row a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FFD700;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .module-arrow-right {
        display: none;
    }
    
    .section-b .course-grid,
    .section-c .course-grid {
        flex-direction: column;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .sub-forum-inner {
        flex-wrap: wrap;
    }
    .sub-forum-stats {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 50px; /* 与图标对齐 */
    }
    .section-column{width:100%!important;}
}

.temple-history-section img {
    max-width: 100%;
}
.container1 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
  
}

/* 头部横幅样式 */
.header-banner {
    position: relative;
    height: 320px;
    background: url("./banner-bg.png") no-repeat center/cover;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.banner-inner {
    position: relative;
    height: 100%;
    padding: 10px 20px;
}

/* 欢迎语 */
.welcome-text {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 顶部右侧功能区/导航 */
.top-nav {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
}
.top-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 25px;
  font-size: 16px;font-weight:bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  /* 新增：黑色透明背景层 */
  background: rgba(0, 0, 0, 0.3); /* 0.3 是透明度（0=全透，1=不透明） */
  padding: 6px 12px; /* 内边距：上下6px、左右12px，避免背景紧贴文字 */
  border-radius: 4px; /* 可选：轻微圆角，让背景更柔和（可删除） */
}

/* 可选： hover 状态优化（鼠标悬浮时加深背景） */
.top-nav a:hover {
  background: rgba(0, 0, 0, 0.5); /* 透明度从0.3提升到0.5，增强交互感 */
}
 注册登录按钮样式优化 */
.top-nav a:nth-child(1),  /* 注册按钮 */
.top-nav a:nth-child(2) { /* 登录按钮 */
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 500;
}
.top-nav a:nth-child(1):hover,  /* 注册按钮 hover 效果 */
.top-nav a:nth-child(2):hover { /* 登录按钮 hover 效果 */
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.search-group {
  width: 250px; /* 父容器宽度足够 */
  display: flex; /* 用 Flex 更灵活（可选，inline-block 也可） */
  align-items: center; /* 垂直居中 */
}
.search-group input {
    height: 32px;
    padding: 0 12px;
    border: none;
    outline: none;
    border-radius: 16px;
    width: 180px;
}


.search-group button {
    height: 32px;
    width: 40px;
    border: none;
    background: #ffb400;
    color: #fff;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-icon {
    position: relative;
    width: 18px;
    height: 18px;
}
.search-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.search-icon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 2px;
    background-color: #fff;
    transform: rotate(-45deg);
    transform-origin: right bottom;
}

/* 寺标区域 */
.temple-logo {
  position: absolute;
  top: 0; /* 距离顶部的距离，可根据需要调整 */
  left: 150px; /* 距离左侧的距离，可根据需要调整 */
  text-align: center; /* 如需保留图片居中显示在容器内可保留 */
}

.temple-logo img {
 max-height:145px;
}

/* 主导航栏样式 */
.main-nav {
    background-color: #ff9f00;
    padding: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.main-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    flex-wrap: wrap;
}
.main-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 15px;
    display: inline-block;
    transition: all 0.3s ease;
}
.main-nav li:hover a,  /* hover状态：li的hover影响子元素a */
.main-nav li.active a {  /* active状态：li有active类，影响子元素a */
    background: url("./menu-active-bg.png") no-repeat center/cover;
    background-color: #e68a00; 
    padding: 12px 30px; 
    text-decoration: none;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动端下拉菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 20px;
    left: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.mobile-menu.active {
    display: block;
}
.mobile-menu .menu-section {
    border-bottom: 1px solid #f5f5f5;
}
.mobile-menu .auth-links {
    padding: 10px 0;
}
.mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.mobile-menu a:hover {
    background-color: #fff5bd;
    color: #ff9f00;
}
.mobile-menu .menu-title {
    padding: 10px 20px;
    font-weight: bold;
    color: #ff9f00;
    background-color: #fff5bd;
}
.mobile-menu .menu-section .active a {  /* 移动端active状态 */
    color: #ff9f00;
    background-color: #fff5bd;
}

/* ========== 首页模块样式 ========== */
/* 隐西寺介绍模块 */
.temple-section {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.temple-section img {
    width: 100%;
    max-width: 400px; 
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}
.temple-section .section-content {
    flex: 1;
    min-width: 300px;
}
.temple-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 10px 15px;
}
.temple-section .section-header h2 {
    font-size: 24px;
    color: #ff9f00;
    text-align: left;
}
.temple-section .section-header .more-link {
    color: #ff9f00;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.temple-section .section-header .more-link:hover {
    color: #e68a00;
    text-decoration: underline;
}
.temple-section .section-content p {
    line-height: 1.8;
    margin-bottom: 10px;
}
.temple-section::after {
    content: '';
    display: block;
    height: 6px;
    margin-top: 15px;
    border-radius: 3px;
    background: linear-gradient(
        to right, 
        rgba(254, 231, 101, 0.2),
        #fee765,
        rgba(254, 231, 101, 0.2)
    );
}



/* 寺志内容样式 */
.temple-history-section {
    background: #fff5bd;line-height:28px;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.temple-history-section .temple-history-header {
    text-align: center;
    margin-bottom: 15px;
}
.temple-history-section .temple-history-header h2 {
    font-size: 24px;
    color: #ff9f00;
}
.temple-history-section p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    text-indent: 2em;
}
.temple-history-figure {
    text-align: center;
    margin: 20px 0;
}
.temple-history-figure img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}
.temple-history-figure figcaption {
    font-size: 14px;
    color: #666;
}

/* 清明共修+新闻模块 */
.event-section {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.event-col {
    width: 100%;
    max-width: 48%;
    min-width: 300px;
    margin-bottom: 20px;
}
.event-col .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 10px 15px;
}
.event-col .section-header .icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-size: contain;
}
.qingming-icon {
    background-image: url("images/qingming-icon.png");
}
.news-icon {
    background-image: url("images/news-icon.png");
}
.event-col .section-header h3 {
    font-size: 20px;
    color: #ff9f00;
    display: flex;
    align-items: center;
    margin: 0;
    text-align: left;
    flex: 1;
}
.event-col .section-header .more-link {
    color: #ff9f00;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.event-col .section-header .more-link:hover {
    color: #e68a00;
    text-decoration: underline;
}

/* 清明共修内容 */
.event-left .event-content {
    overflow: hidden;
}
.event-left .event-content img {
    float: left;
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin: 0 20px 10px 0;
}
.event-left .event-content p {
    line-height: 1.8;
}

/* 新闻列表 */
.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    display: flex;
    justify-content: space-between;
    line-height: 1.8;
    padding: 5px 0;
    position: relative;
    padding-left: 18px;
}
.news-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background-color: #ff9f00;
    border-radius: 50%;
}
.news-list li span {
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
}

/* ========== 教言页面专属样式 ========== */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* 左侧导航 */
.side-nav {
    width: 240px;
    margin-right: 20px;
}
.side-nav h3 {
    font-size: 16px;
    color: #ff9f00;
    margin-bottom: 10px;
    border-left: 4px solid #ff9f00;
    padding-left: 8px;
}
.side-nav ul {
    list-style: none;
    margin-bottom: 20px;
}
.side-nav ul li {
    margin-bottom: 5px;
}
.side-nav ul li a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 6px 8px;
    transition: background 0.3s;
}
.side-nav ul li a:hover {
    background-color: #fff5bd;
    color: #ff9f00;
}

/* 注册区域 */
.register-section {
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 15px;
}
.register-section h4 {
    font-size: 16px;
    color: #ff9f00;
    margin-bottom: 10px;
}
.register-section form {
    display: flex;
    flex-direction: column;
}
.register-section input {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #fddc95;
    border-radius: 4px;
}
.register-section button {
    padding: 8px;
    background-color: #ff9f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.register-section button:hover {
    background-color: #e68a00;
}
.register-section .register-link {
    margin-top: 10px;
    font-size: 14px;
    color: #ff9f00;
    text-decoration: none;
    display: inline-block;
}
.register-section .register-link:hover {
    text-decoration: underline;
}

/* 主内容区 */
.main-content {
    flex: 1;
    min-width: 300px;
}
.teachings-header {
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}
.teachings-header h2 {
    font-size: 20px;
    color: #ff9f00;
}

/* 教言列表 */
.teachings-list {
    margin-bottom: 20px;
}
.teaching-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 15px;
}
.teaching-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}
.teaching-info {
    flex: 1;
}
.teaching-info h3 {
    font-size: 18px;
    color: #ff9f00;
    margin-bottom: 10px;
}
.teaching-info h3 a{color: #ff9f00;}
.teaching-info p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #666;
}
.teaching-info .meta {
    font-size: 14px;
    color: #999;
}
.teaching-info .meta span {
    margin-right: 15px;
}

/* ========== 新闻页面样式 ========== */
.news-section {
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #fddc95;
}
.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.news-sidebar {
    width: 240px;
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    flex-shrink: 0;
}
.nav-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff9f00;
    margin-bottom: 15px;
    border-bottom: 1px solid #fddc95;
    padding-bottom: 5px;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.nav-list li {
    margin: 10px 0;
}
.nav-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-list li a.active,
.nav-list li a:hover {
    color: #ff9f00;
    text-decoration: underline;
}
.register-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.register-box h4 {
    font-size: 14px;
    color: #ff9f00;
    margin-bottom: 15px;
}
.register-box input {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #fddc95;
    border-radius: 4px;
    outline: none;
}
.register-box button {
    width: 100%;
    padding: 8px;
    background-color: #ff9f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.register-box button:hover {
    background-color: #e68a00;
}
.register-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #ff9f00;
    text-decoration: none;
}

.news-content {
    flex: 1;
    background-color: #fff;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
}
.news-title {
    font-size: 22px;
    color: #ff9f00;
    margin-bottom: 15px;
    border-bottom: 2px solid #fee765;
    padding-bottom: 10px;
}
.news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.news-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}
.news-body p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-indent: 2em;
}

/* ========== 会员中心样式 ========== */
.content-section {
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.member-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;margin-top:1.3rem;
}

.member-sidebar {
    width: 240px;
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    flex-shrink: 0;
}


.member-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff9f00;
    margin-bottom: 15px;
    border-bottom: 1px solid #fddc95;
    padding-bottom: 5px;
}
.member-nav {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.member-nav li {
    margin: 10px 0;
}
.member-nav li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.member-nav li a.active,
.member-nav li a:hover {
    color: #ff9f00;
    text-decoration: underline;
}
.member-profile {
    text-align: center;
}
.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #fddc95;
}
.member-name {
    font-size: 16px;
    color: #c43b00;
    font-weight: bold;
    margin-bottom: 15px;
}
.logout-btn {
    padding: 8px 20px;
    background-color: #ff9f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.logout-btn:hover {
    background-color: #e68a00;
}
.member-main {
    flex: 1;
    background-color: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
}
.post-section {
    margin-bottom: 20px;
}
.post-subtitle {
    font-size: 18px;
    color: #ff9f00;
    margin-bottom: 15px;
    border-bottom: 1px solid #fddc95;
    padding-bottom: 10px;
}
.post-list {
    list-style: none;
    padding: 0;
}
.post-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #fddc95;
}
.post-list li:last-child {
    border-bottom: none;
}
.post-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-list li a:hover {
    color: #ff9f00;
}
.post-comment {
    float: right;
    color: #666;
    font-size: 14px;
}
/* 登录后用户信息模块样式 */
.sidebar-module.user-info-module {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 18px 15px;
  text-align: center;
}

.user-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 头像样式 - 强化圆角效果 */
.user-avatar-container {
  margin-bottom: 12px;
  position: relative;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* 完全圆形头像 */
  object-fit: cover;
  border: 3px solid #fff5bd;
  box-shadow: 0 2px 5px rgba(255,159,0,0.15);
  transition: transform 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

/* 用户信息文本样式 */
.user-name {
  font-size: 18px;
  color: #c43b00;
  font-weight: bold;
  margin: 0 0 5px;
  padding: 0;
  border: none;
}

.user-role {
  font-size: 13px;
  color: #666;
  background-color: #fff5bd;
  padding: 2px 10px;
  border-radius: 12px;
  margin: 0 0 15px;
  display: inline-block;
}

/* 统计信息样式 */
.user-stats {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #fddc95;
}

.stat-item {
  font-size: 14px;
  color: #666;
}

.stat-item em {
  color: #ff9f00;
  font-style: normal;
  font-weight: bold;
  margin-left: 3px;
}

/* 操作按钮样式 */
.user-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.action-btn {
  display: block;
  padding: 9px 0;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn.primary {
  background-color: #ff9f00;
  color: #fff;
}

.action-btn.primary:hover {
  background-color: #e68a00;
}

.action-btn.secondary {
  background-color: #fff5bd;
  color: #ff9f00;
  border: 1px solid #fddc95;
}

.action-btn.secondary:hover {
  background-color: #fee765;
}

.action-btn.logout {
  background-color: #f8f8f8;
  color: #666;
  border: 1px solid #eee;
}

.action-btn.logout:hover {
  background-color: #f0f0f0;
  color: #333;
}
.px, .pt, .ps, select{background: #fff9df!important;}
.link-register, .link-forgot {
  color: #ff9f00!important;
  text-decoration: none;
  font-size: 14px;
}
 /* 学习地图专属样式 */
 /* 全局CSS中替换原 .arrow-right::after 样式 */
.module-arrow-right .arrow-right {
    right: 0; /* 竖线靠右 */
    left: auto;
}
.module-arrow-right .arrow-right::after {
    content: '';
    position: absolute;
    left: -5px; /* 三角形向左偏移，与竖线对齐 */
    top: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #FFD700; /* 向右的箭头 */
    border-left: none; /* 清除原向左箭头 */
}

        .study-map-title {
            font-size: 24px;
            text-align: center;
            margin-bottom: 20px;
            font-weight: bold;
            color: #ff9f00;
        }
        .study-map-container {
            border: 2px solid #F5B041;
            border-radius: 8px;
            padding: 20px;
            background-color: #FFF8DC;
            margin-bottom: 30px;
        }
        .section-header {
            background-color: #FFD700;
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 6px;
        }
        .badge {
            font-weight: bold;
            color: #000;
            font-size: 18px;
        }
        .sections-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
        }
        .section-column {
            flex: 1;
            border: 1px solid #F5B041;
            border-radius: 8px;
            padding: 15px;
            background-color: #FFF3C4;
        }
        .column-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            text-align: center;
            color: #c43b00;
        }
        .course-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }
        .course-box {
            border: 1px solid #F5B041;
            padding: 8px;
            text-align: center;
            border-radius: 6px;
            background-color: #fce983;
            transition: all 0.3s ease;
        }
        .course-box a {
            color: #333;
            text-decoration: none;
            display: block;
            height: 100%;
        }
        .course-box:hover {
            background-color: #fff5bd;
            transform: translateY(-2px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .course-box:hover a {
            color: #ff9f00;
        }
        .guide-row {
            text-align: center;
            font-weight: bold;
            margin-top: 10px;
            padding: 8px;
            background-color: #FFE4B5;
            border-radius: 6px;
        }
        .guide-row a {
            color: #c43b00;
            text-decoration: none;
        }
        .guide-row a:hover {
            text-decoration: underline;
        }
        .explanation {
            padding: 15px;
            line-height: 1.6;
            background-color: #FFF;
            border-radius: 6px;
            border: 1px solid #F5B041;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .sections-row {
                flex-direction: column;
                gap: 15px;
            }
            .course-grid {
                grid-template-columns: 1fr;
            }
            .study-map-title {
                font-size: 20px;
            }
            .badge {
                font-size: 16px;
            }
            .study-map-container {
                padding: 15px;
            }
        }
/* 响应式适配 */
@media (max-width: 768px) {
  .user-avatar {
    width: 70px;
    height: 70px;
  }
  
  .user-name {
    font-size: 16px;
  }
  
  .user-stats {
    gap: 15px;
    padding-bottom: 12px;
  }
  
  .action-btn {
    padding: 8px 0;
    font-size: 13px;
  }
}
/* ========== 论坛页面样式 ========== */
.forum-section {
    padding: 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.forum-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

/* 论坛左侧边栏 */
.forum-sidebar {
    width: 220px;
    background: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 15px;
    margin-right: 20px;
    flex-shrink: 0;
}
.forum-sidebar h3 {
    font-size: 18px;
    color: #ff9f00;
    margin-bottom: 15px;
    border-bottom: 2px solid #fee765;
    padding-bottom: 5px;
    display: inline-block;
}
.sidebar-nav {
    list-style: none;
    margin-bottom: 20px;
}
.sidebar-nav li {
    margin-bottom: 8px;
}
.nav-item {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.nav-item:hover {
    background-color: #f5f5f5;
}
.sidebar-nav li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar-nav li a:hover {
    color: #ff9f00;
    text-decoration: underline;
}

/* 注册登录表单 */
.login-form {
    margin-top: 20px;
}
.login-form p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}
.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}
.login-form input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #fddc95;
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none;
}
.login-form button {
    width: 100%;
    height: 36px;
    background: #ff9f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.login-form button:hover {
    background: #e68a00;
}
.register-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}
.register-link a {
    color: #2db72d;
    text-decoration: none;
}
.register-link a:hover {
    text-decoration: underline;
}

/* 论坛右侧内容区 */
.forum-content {
    flex: 1;
    background: #fff5bd;
    border: 1px solid #fddc95;
    border-radius: 8px;
    padding: 20px;
    min-width: 300px;
}
.forum-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.forum-main-title {
    font-size: 20px;
    color: #ff9f00;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #fddc95;
}

/* 论坛分类增强：展开+搜索功能 */
.forum-category {
    margin-bottom: 15px;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fee765;
    border-radius: 4px;
    padding: 10px;
}
.category-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-toggle, .category-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.category-search-input {
    padding: 5px 8px;
    border: 1px solid #fddc95;
    border-radius: 4px;
    display: none; /* 初始隐藏 */
}
.category-content {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    display: none; /* 初始隐藏 */
}
.category-content.show {
    display: block;
}
.category-search-input.show {
    display: inline-block;
}
.sub-forum-item {
    margin-bottom: 5px;
    color: #666;
}

/* 帖子列表样式 */
.thread-list-container {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
}
.thread-list-container li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px dashed #fddc95;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.thread-list-container li:last-child {
    border-bottom: none;
}
.thread-list-container li .thread-title {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.thread-list-container li .thread-title:hover {
    color: #ff9f00;
}
.thread-list-container li .thread-author {
    font-size: 14px;
    color: #999;
}

/* 文章内容样式 */
.article-header {
    margin-bottom: 20px;
}
.teach-title {
    font-size: 22px;
    color: #ff9f00;
    margin-bottom: 10px;
    border-bottom: 2px solid #fee765;
    padding-bottom: 10px;
}
.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.article-body {
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 评论区样式 */
.comment-section {
    margin-top: 30px;
}
.comment-title {
    font-size: 16px;
    color: #ff9f00;
    border-bottom: 1px solid #fddc95;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-info {
    flex: 1;
}
.comment-author {
    font-weight: bold;
    color: #c43b00;
    margin-right: 10px;
}
.comment-time {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}
.comment-text {
    margin-top: 5px;
    line-height: 1.6;
}
.reply-btn {
    font-size: 12px;
    color: #ff9f00;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}
.comment-form {
    margin-top: 20px;
}
.comment-form textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #fddc95;
    border-radius: 4px;
    resize: none;
    margin-bottom: 10px;
}
.comment-form button {
    padding: 8px 20px;
    background-color: #ff9f00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.comment-form button:hover {
    background-color: #e68a00;
}

/* 分页样式 */
.forum-pagination,
.pagination {
    margin-top: 20px;
    text-align: center;
}
.forum-pagination a,
.pagination a, 
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    color: #ff9f00;
    text-decoration: none;
    border: 1px solid #fddc95;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #fff;
}
.forum-pagination a:hover,
.pagination a:hover {
    background: #ff9f00;
    color: #fff;
    border-color: #ff9f00;
}
.forum-pagination .current-page,
.pagination .current,
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background: #ff9f00;
    color: #fff;
    border: 1px solid #ff9f00;
    border-radius: 4px;
}

/* 底部样式 */
.site-footer {
    background-color: #fff5bd;
    border-top: 1px solid #fddc95;
    margin-top: 30px;
    padding: 20px 0;
    color: #666;
}

.footer-inner {
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #fddc95;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-col:last-child {
    margin-right: 0;
}

.footer-col h4 {
    color: #ff9f00;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #fee765;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff9f00;
    text-decoration: underline;
}

.footer-col .icon {
    color: #ff9f00;
    margin-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.6;
}

.footer-note {
    font-size: 12px;
    color: #999;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #ff9f00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    opacity: 1;
    transform: scale(1.1);
    background-color: #e68a00;
}

.forum-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}




/* 响应式设计 */
@media (max-width: 768px) {
    
    
    .forum-sidebar {
        width: 100%;
        display: none; /* 默认隐藏侧边栏 */
    }
    
    .forum-sidebar.active {
        display: flex; /* 激活时显示 */
    }

    
    /* 隐藏桌面视图，显示移动视图 */
    .desktop-view {
        display: none;
    }
    
 
    
    /* 调整筛选菜单 */
    .tf {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tf a, .tf span {
        font-size: 12px;
        padding: 2px 5px;
    }
    
    /* 分页调整 */
    .pgs {
        font-size: 12px;
    }
    
    .pgsbtn {
        padding: 5px 10px;
    }
}



/* 侧边栏样式 */
.sidebar-module {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px;
}

.sidebar-title {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .header-banner {
        height: 280px;
    }
    .temple-logo img {
        width: 140px;
    }
    .main-nav li a {
        padding: 12px 10px;
        font-size: 15px;
    }
    .main-nav li:hover a,
    .main-nav li a.active {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    /* 隐藏桌面端元素，显示移动端菜单 */
    .top-nav, .main-nav {
        display: none;
    }
    .container1 {
    
    width: 100%;
    margin: 0 auto;
    padding: 0!important;
  
}
    .mobile-menu-btn {
        display: flex;
    }
    .thread-list li{padding: 5px 7px!important;}
    .header-banner {
        height: 220px;
    }
    .filter-bar a{display: none!important}
    .welcome-text {
        font-size: 14px;
        top: 10px;
        left: 10px;
    }
    .temple-logo img {
        width: 120px;
    }
    
    /* 首页响应式 */
    .temple-section {
        flex-direction: column;
        padding: 15px;
    }
    .temple-section img {
        max-width: 100%;
        margin-right: 0;
    }
    .event-section {
        flex-direction: column;
        padding: 15px;
    }
    .event-col {
        max-width: 100%;
        margin-right: 0;
    }
    .event-left .event-content img {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    .temple-section .section-header h2 {
        font-size: 20px;
    }
    .event-col .section-header h3 {
        font-size: 18px;
    }
    
    /* 教言页面响应式 */
    .content-wrapper {
        flex-direction: column;
    }
    .side-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .teaching-item {
        flex-direction: column;
        align-items: center;
    }
    .teaching-item img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    /* 论坛页面响应式 */
    .forum-container {
        flex-direction: column;
    }
    .forum-sidebar {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    /* 其他页面响应式 */
    .footer-col {
        min-width: 100%;
        margin-right: 0;
    }
    .news-container,
    .member-container {
        flex-direction: column;
    }
    .news-sidebar,
    .news-content,
    .member-sidebar,
    .member-main {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-banner {
        height: 180px;
    }
    .temple-logo img {
        width: 100px;
    }
    .search-group input {
        width: 140px;
    }
    .mobile-menu {
        width: calc(100% - 40px);
    }
    .main-nav li a {
        padding: 8px 5px;
        font-size: 13px;
    }
    .section-content {
        min-width: auto;
    }
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}
