/* 最新消息推荐栏 */
.announcement-wrapper {
  height: 50px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #8B5A2B, #A68B65);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 60px; /* 为图标留出更多空间 */
}

.announcement-icon {
  position: absolute;
  left: 15px;
  display: flex;
  align-items: center;
  height: 100%;
  z-index: 2;
}

.static-icon {
  font-size: 18px;
  color: white;
  position: relative;
}

.sound-waves {
  display: flex;
  align-items: center;
  margin-left: 8px;
  height: 100%;
}

.wave {
  display: inline-block;
  width: 4px;
  height: 12px;
  background: white;
  margin-right: 3px;
  border-radius: 2px;
  animation: soundWave 1.5s infinite ease-in-out;
  opacity: 0.7;
}

.wave:nth-child(1) { animation-delay: 0.1s; }
.wave:nth-child(2) { animation-delay: 0.3s; height: 16px; }
.wave:nth-child(3) { animation-delay: 0.5s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.8); opacity: 0.6; }
  50% { transform: scaleY(1.5); opacity: 1; }
}

.announcement-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.announcement-item {
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  position: absolute;
  width: calc(100% - 30px);
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-in-out;
}

.announcement-item:first-child {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}


.more-link {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.more-link:hover {
  color: white;
}
        
        /* 右侧内容区 - 重新设计为上下布局 */
        .content {
            margin-left: 280px;
            padding: 20px;
            width: calc(100% - 240px);
            min-height: 100vh;
            background-color: #fff9f0;
            display: flex;
            flex-wrap: wrap; /* 允许内容换行 */
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            min-width: 700px; /* 设置最小宽度 */
            margin-right: 20px;
        }
        
        /* 右侧边栏 */
        .right-sidebar {
            width: 300px;
            flex-shrink: 0; /* 防止侧边栏被压缩 */
        }
        
        /* 通用区块样式 */
        .content-block {
            background-color: #fff;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .block-header {
            padding: 10px 15px;
            background: linear-gradient(to right, #8B5A2B, #A68B65);
            color: #fff;
            font-size: 18px;
            display: flex;
            align-items: center;
        }
        
        .block-header i {
            margin-right: 10px;
            font-size: 20px;
        }
        
        .block-body {
            padding: 15px 20px;
        }
        
        /* 文章列表样式 - 修改为两列 */
        .article-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .article-item {
            padding: 12px 0;
            border-bottom: 1px dashed #e0d5c0;
            display: flex;
        }
        
        .article-item:last-child {
            border-bottom: none;
        }
        
        .article-date {
            width: 60px;
            color: #8B5A2B;
            font-size: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #f9f3e6;
            border-radius: 4px;
            margin-right: 15px;
            padding: 5px;
        }
        
        .article-date .day {
            font-size: 18px;
            font-weight: bold;
            line-height: 1;
        }
        
        .article-date .month {
            font-size: 12px;
        }
        
        .article-info {
            flex: 1;
        }
        
        .article-title {
            font-size: 16.5px;
            margin-bottom: 5px;
            color: #5a4a3a;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .article-title:hover {
            color: #8B5A2B;
        }
        
        .article-meta {
            font-size: 12px;
            color: #aaa;
        }
/* 视频列表样式 - 修改为横向6个 */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }
        
        @media (max-width: 1600px) {
            .video-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }
        
        @media (max-width: 1400px) {
            .video-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        .video-item {
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .video-thumbnail {
            width: 100%;
            height: 130px; /* 增加30px高度 */
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .video-item:hover .video-thumbnail {
            transform: scale(1.05);
        }
        
        .play-icon {
            position: absolute;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: rgba(255, 255, 255, 0.8);
            font-size: 20px;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
            border: 1px solid rgba(255,255,255,0.2);
        }
        
        .video-title {
            margin-top: 5px;
            font-size: 14px;
            color: #5a4a3a;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .video-meta {
            font-size: 10px;
            color: #aaa;
        }
        
        /* 图片列表样式 - 瀑布流 */
        .image-masonry {
            column-count: 5; /* 改为4列瀑布流 */
            column-gap: 10px;
        }
        
        @media (max-width: 1600px) {
            .image-masonry {
                column-count: 4;
            }
        }
        
        @media (max-width: 1400px) {
            .image-masonry {
                column-count: 3;
            }
        }
        
        .image-item {
            break-inside: avoid;
            margin-bottom: 10px;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .image-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s;
        }
        
        .image-item:hover img {
            transform: scale(1.05);
        }
        
        .image-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            padding: 8px;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .image-item:hover .image-caption {
            opacity: 1;
        }
        
    /* 音频列表样式 - 纵向排列 */
    .audio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .audio-item {
        display: flex;
        padding: 10px;
        background-color: #f9f3e6;
        border-radius: 6px;
        position: relative;
        overflow: hidden;
    }
    
    .audio-cover {
        width: 60px;
        height: 60px;
        background-color: #e0d5c0;
        border-radius: 4px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8B5A2B;
        font-size: 24px;
        position: relative;
        overflow: hidden;
    }
    
    .audio-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .audio-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 30px;
        height: 30px;
        background-color: rgba(139, 90, 43, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        opacity: 0;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }
    
    .audio-item:hover .audio-play-btn {
        opacity: 1;
    }
    
    .audio-info {
        flex: 1;
    }
    
    .audio-title {
        font-size: 15px;
        margin-bottom: 5px;
        color: #5a4a3a;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .audio-author {
        font-size: 12px;
        color: #8B5A2B;
        margin-bottom: 3px;
    }
    
    .audio-meta {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: #aaa;
    }
        
        /* 右侧边栏样式 */
        /* 签到区块 */
        .checkin-box {
            text-align: center;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .checkin-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: linear-gradient(to right, #8B5A2B, #A68B65);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-bottom: 15px;
        }
        
        .checkin-btn:hover {
            background-color: #6d4622;
        }
        
        .checkin-btn.checked {
            background-color: #C6A300;
        }
        
        .checkin-title {
            font-size: 16px;
            color: #8B5A2B;
            margin-bottom: 15px;
            text-align: left;
        }
        
        .checkin-members {
            list-style: none;
        }
        
        .member-item {
            display: flex;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px dashed #e0d5c0;
        }
        
.index-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0e6d2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #8B5A2B;
    font-weight: bold;
    overflow: hidden;
        }
        
        .index-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
        .member-info {
            flex: 1;
            text-align: left;
        }
        
        .member-name {
            font-size: 14px;
            color: #5a4a3a;
        }
        
        .member-meta {
            font-size: 11px;
            color: #aaa;
        }
        
        /* 直播区块 */
        .live-item {
            margin-bottom: 15px;
        }
        
        .live-thumbnail {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        
        .live-status {
            display: inline-block;
            padding: 2px 8px;
            background-color: #e74c3c;
            color: white;
            border-radius: 4px;
            font-size: 12px;
            margin-bottom: 8px;
        }
        
        .live-title {
            font-size: 15px;
            margin-bottom: 5px;
            color: #5a4a3a;
        }
        
        .live-desc {
            font-size: 13px;
            color: #888;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .live-meta {
            font-size: 12px;
            color: #aaa;
        }

/* 微博滚动样式 - 修改为无缝循环 */
.weibo-list {
    height: 400px;
    overflow: hidden;
    position: relative;
}
      
        .weibo-scroll {
            position: absolute;
            width: 100%;
            animation: scrollWeibo 50s linear infinite;
        }
        
        @keyframes scrollWeibo {
            0% { transform: translateY(0); }
            100% { transform: translateY(-100%); }
        }
        
        .weibo-item {
            padding: 12px 0;
            border-bottom: 1px dashed #e0d5c0;
        }
        
        .weibo-content {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 8px;
        }
        
        .weibo-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            margin-bottom: 8px;
        }
        
        .weibo-image {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
        }
        
        .weibo-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #aaa;
        }

/* 在线抄经列表样式 */
.sutra-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sutra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f3e6;
    border-radius: 6px;
    border-left: 4px solid #8B5A2B;
    transition: all 0.3s ease;
}

.sutra-item:hover {
    background-color: #f5e8c4;
    transform: translateX(5px);
}

.sutra-info {
    flex: 1;
}

.sutra-title {
    font-size: 18px;
    color: #5a4a3a;
    margin-bottom: 5px;
}

.sutra-desc {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

.sutra-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #8B5A2B;
}

.sutra-meta i {
    margin-right: 3px;
}

.copy-btn {
    padding: 8px 15px;
    background-color: #8B5A2B;
    color: white;
    border-radius: 4px;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: #6d4622;
    text-decoration: none;
}

/* 抄经页面样式 (单独页面) */
.sutra-copy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.sutra-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0d5c0;
}

.sutra-header h1 {
    color: #5a4a3a;
    margin-bottom: 10px;
}

.original-text {
    background-color: #f9f3e6;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 2;
    font-size: 16px;
}

.copy-area textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #e0d5c0;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.save-btn {
    background-color: #5bc0de;
    color: white;
}

.reset-btn {
    background-color: #f0ad4e;
    color: white;
}

.complete-btn {
    background-color: #5cb85c;
    color: white;
}
        
        /* 专题区块 */
        .topic-item {
            margin-bottom: 15px;
            display: flex;
        }
        
        .topic-cover {
            width: 80px;
            height: 60px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 12px;
        }
        
        .topic-info {
            flex: 1;
        }
        
        .topic-title {
            font-size: 14px;
            margin-bottom: 5px;
            color: #5a4a3a;
        }
        
        .topic-desc {
            font-size: 12px;
            color: #888;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .load-more:hover {
            text-decoration: underline;
        }

/* 页脚样式 */
.footer {
  padding: 20px;
  text-align: center;
  background-color: #f9f3e6;
  margin-top: 20px;
}

.copyright {
  color: #8B5A2B;
  font-size: 14px;
}

/* 新增的外链发布板块样式 */
.external-link-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0d5c0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.external-link-item:last-child {
    border-bottom: none;
}

.external-link-name {
    color: #5a4a3a;
}

.external-link-date {
    color: #A68B65;
    font-size: 12px;
}

/* 新增的寺院导航板块样式 */
.temple-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0d5c0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.temple-item:last-child {
    border-bottom: none;
}

.temple-name {
    color: #5a4a3a;
}

.temple-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.temple-date {
    color: #A68B65;
    font-size: 12px;
}

.temple-city {
    color: #8B5A2B;
    font-size: 12px;
}

/* 新增的网站和微信导航板块样式 */
.navigation-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.website-navigation, .wechat-navigation {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 5px 0px 15px 0px rgba(0, 0, 0, 0.05);
}

.website-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0d5c0;
}

.website-item:last-child {
    border-bottom: none;
}

.website-name {
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 5px;
}

.website-desc {
    font-size: 13px;
    color: #7a6a5a;
}

.wechat-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #e0d5c0;
    align-items: center;
}

.wechat-item:last-child {
    border-bottom: none;
}

.wechat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.wechat-info {
    flex: 1;
}

.wechat-name {
    font-weight: bold;
    color: #8B5A2B;
    margin-bottom: 3px;
}

.wechat-desc {
    font-size: 13px;
    color: #7a6a5a;
}