﻿
    /* 版块列表容器 */
  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: '微软雅黑', sans-serif;
            background: #fff3e6;
        }

        /* 顶部Banner */
        .header {

            background: #ff9933;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            max-width: 180px;
            height: auto;
        }

        .ad-pc {
            max-width: 500px;
            display: block;
        }

        .ad-mobile {
            display: none;
            width: 100%;
            padding: 10px;
            background: #ffad33;
            text-align: center;
        }

        /* 导航菜单 */
        .nav {
            background: #ffad33;
            padding: 10px;
            overflow-x: auto;
            white-space: nowrap;
        }

        .nav-item {
            display: inline-block;
            padding: 8px 20px;
            color: #fff;
            margin: 0 5px;
            border-radius: 15px;
            background: rgba(255,255,255,0.2);
        }

        /* 帖子列表 */
        .post-list {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 15px;
        }

        .post-item {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: flex;
            align-items: flex-start;
        }

        .post-image {
            flex: 0 0 100px;
            margin-right: 15px;
            border-radius: 4px;
            overflow: hidden;
        }

        .post-image img {
            width: 100%;
            height: 80px;
            object-fit: cover;
        }

        .post-content {
            flex: 1;
        }

        .post-title {
            color: #663300;
            font-size: 1.1em;
            margin-bottom: 8px;
            word-break: break-word;
        }

        .post-meta {
            color: #999;
            font-size: 0.9em;
        }

   /* 新增横向滑动区块 */
    .post-row {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 15px;
        overflow-x: auto;
    }

    .post-scroll {
        display: flex;
        gap: 20px;
        padding-bottom: 15px;
    }

    /* 第三种帖子样式 */
    .post-item3 {
        flex: 0 0 280px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .post-image3 {
        width: 100%;
        height: 180px;
        position: relative;
    }

    .post-image3 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-content3 {
        padding: 12px;
        flex: 1;
    }

        /* 底部 */
        .footer {
            background: #663300;
            color: #fff;
            padding: 30px 15px;
            margin-top: 40px;
        }

        .friend-links {
            max-width: 1200px;
            margin: 0 auto 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .friend-links a {
            color: #ffd9b3;
            text-decoration: none;
        }

        .copyright {
            text-align: center;
            margin-top: 20px;
            color: #ffd9b3;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .ad-pc {
                display: none;
            }
            
            .ad-mobile {
                display: block;
            }

            .post-item {
                flex-direction: column;
            }

            .post-image {
                width: 100%;
                flex: none;
                margin-bottom: 10px;
            }

       .post-item3 {
            flex: 0 0 240px;
        }
        
        .post-image3 {
            height: 150px;
        } 

            .friend-links {
                flex-direction: column;
            }
        }

    /* 版块区块容器 */

    .forum-grid {
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 15px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }

    /* 版块卡片 */
    .forum-card {
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

    .forum-card:hover {
        transform: translateY(-3px);
    }

    /* 版块标题区 */
    .forum-header {
        border-bottom: 2px solid #ffe0b3;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .forum-title {
        color: #663300;
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .moderators {
        font-size: 0.9em;
        color: #ff8000;
    }

    /* 统计信息 */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 15px 0;
    }

    .stat-item {
        text-align: center;
        padding: 10px;
        background: #fff8f0;
        border-radius: 6px;
    }

    .stat-number {
        font-size: 1.2em;
        color: #ff6600;
        font-weight: bold;
    }

    .stat-label {
        font-size: 0.85em;
        color: #999;
    }

    /* 最新主题 */
    .latest-post {
        border-top: 1px dashed #ffd9b3;
        padding-top: 15px;
    }

    .post-title {
        color: #666;
        margin-bottom: 5px;
        transition: color 0.3s;
        cursor: pointer;
    }

    .post-title:hover {
        color: #3399ff;
    }

    .post-info {
        font-size: 0.85em;
        color: #999;
        display: flex;
        gap: 15px;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .forum-grid {
            grid-template-columns: 1fr;
        }

        .stats-grid {
            grid-template-columns: 1fr;
        }

        .post-info {
            flex-wrap: wrap;
            gap: 8px;
        }
    }

 @media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr)); /* 强制保持三列 */
        gap: 8px; /* 缩小间距 */
        overflow-x: auto; /* 允许横向滚动 */
        -webkit-overflow-scrolling: touch; /* 启用弹性滚动 */
        padding-bottom: 5px; /* 留出滚动条空间 */
    }

    .stat-item {
        min-width: 90px; /* 最小宽度限制 */
        padding: 8px; /* 缩小内边距 */
        flex-shrink: 0; /* 禁止项目收缩 */
    }

    .stat-number {
        font-size: 1.2rem !important; /* 适当缩小数字 */
        line-height: 1.2;
    }

    .stat-label {
        font-size: 0.85rem !important; /* 缩小标签 */
        white-space: nowrap; /* 禁止换行 */
    }

    /* 隐藏滚动条（可选） */
    .stats-grid::-webkit-scrollbar {
        display: none;
    }
}

/* 新增通用样式 */
.stats-grid {
    scrollbar-width: none; /* Firefox隐藏滚动条 */

    /* 隐藏滚动条（可选） */
    .stats-grid::-webkit-scrollbar {
        display: none;
    }

 .forum-header {
        margin-bottom: 12px; /* 增加区块间距 */
    }
    
    .stats-grid {
        margin: 12px 0; /* 优化统计模块间距 */
    }
    
    .latest-post {
        padding-top: 12px; /* 更明显的分隔 */
    }

        /* 版块标题 */
        .forum-title {
            font-size: 1.4rem !important; /* 原1.3em */
            line-height: 1.3;
        }
        
        /* 版主信息 */
        .moderators {
            font-size: 1rem !important; /* 原0.9em */
            line-height: 1.4;
        }
        
        /* 统计数字 */
        .stat-number {
            font-size: 1.4rem !important; /* 原1.2em */
        }
        
        /* 统计标签 */
        .stat-label {
            font-size: 0.95rem !important; /* 原0.85em */
        }
        
        /* 最新主题标题 */
        .post-title {
            font-size: 1.1rem !important;
            line-height: 1.4;
            margin-bottom: 8px;
        }
        
        /* 作者时间信息 */
        .post-info {
            font-size: 0.95rem !important; /* 原0.85em */
        }
        
        /* 调整卡片内边距 */
        .forum-card {
            padding: 15px;
        }
        
        /* 增大点击区域 */
        .post-title {
            padding: 3px 0;
        }
        
        /* 优化行高 */
        .latest-post {
            line-height: 1.5;
        }
    }

    /* 通用字体优化（适用于所有设备） */
    .forum-card {
        font-size: 16px; /* 设置基准字号 */
    }
    
    .stat-item {
        padding: 12px; /* 增大触控区域 */
    }

   /* 触控友好设计

.post-title {
    min-height: 44px; /* 符合苹果人机指南的最小触控尺寸 */
    display: flex;
    align-items: center;
}

.moderators {
    padding: 5px 0; /* 增加版主信息行间距 */
 .stat-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 60px; /* 固定高度保持统一 */
    }
    
    .stat-number {
        margin-bottom: 2px; /* 紧凑布局 */
    }
    
    .stat-label {
        transform: scale(0.9); /* 轻微缩放标签 */
        transform-origin: center;
    }
}

  /* 极端屏幕适配：

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(80px, 1fr));
        gap: 5px;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 5px;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
    }
}

    /* 内容块容器 */


       * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: '微软雅黑', sans-serif;
            background: #f5f5f5;
            color: #333;
        }

        /* 顶部标题栏 */
        .page-header {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .post-title {
            font-size: 1.3em;
            color: #663300;
            max-width: 70%;
        }

        /* 分页导航 */
        .page-nav {
            display: flex;
            gap: 8px;
        }

        .page-item {
            padding: 8px 12px;
            border-radius: 4px;
            background: #f0f0f0;
            text-decoration: none;
            color: #666;
        }

        .page-item.active {
            background: #ff9933;
            color: white;
        }

        /* 楼层容器 */
        .post-floor {
            background: white;
            margin: 15px auto;
            padding: 20px;
            max-width: 1200px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        /* 用户信息区 */
        .user-info {
            display: grid;
            grid-template-columns: 60px 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }

        /* 内容区 */
        .content {
            line-height: 1.6;
            overflow: hidden;
            max-height: none; /* 初始展开状态 */
            position: relative;
        }

        .content.collapsed {
            max-height: 200px;
            transition: max-height 0.5s ease;
        }

        .content.collapsed::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
            opacity: 1;
            transition: opacity 0.3s;
        }

        .toggle-btn {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            padding: 8px 20px;
            background: rgba(255,255,255,0.9);
            border: 1px solid #ddd;
            border-radius: 20px;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            color: #3399ff;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .post-title {
                max-width: 100%;
            }

            .page-nav {
                width: 100%;
                overflow-x: auto;
            }

            .user-info {
                grid-template-columns: 1fr;
            }
        }

