/*  
Theme Name: 精智主题For免费主题w8
Theme URI: http://www.jianzhanpress.com
Description: 本主题由精智主题制作.
Version: 1.0
Author: 精智主题
Author URI: http://www.jianzhanpress.com
*/


* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", Arial, sans-serif;
        }
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.8; /* 优化行高，提升阅读体验 */
        }
        a {
            text-decoration: none;
            color: #333;
            transition: all 0.3s ease;
        }
        ul {
            list-style: none;
        }
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }
        /* 新增：标签样式（提升内容丰富度） */
        .tag {
            display: inline-block;
            padding: 2px 8px;
            background-color: #fef0f0;
            color: #b71c1c;
            font-size: 12px;
            border-radius: 4px;
            margin-right: 5px;
        }
/* 论坛公告：新增模块，提升内容密度和SEO */
        .forum-notice {
            background: #fff;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 20px;
            border-left: 5px solid #b71c1c;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .notice-icon {
            color: #b71c1c;
            font-size: 18px;
            font-weight: bold;
        }
        .notice-text {
            flex: 1;
        }
        .notice-text a {
            color: #b71c1c;
            font-weight: 500;
        }
        .notice-time {
            color: #999;
            font-size: 14px;
        }

        /* 核心内容区：一体化布局，新增模块排版 */
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        /* 双列模块容器：新增，优化内容密度 */
        .double-module {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(580px, 1fr));
            gap: 20px;
        }

        /* 板块分类：突出内容丰富性，优化样式 */
        .section-title {
            font-size: 22px;
            margin-bottom: 20px;
            color: #b71c1c;
            border-left: 5px solid #b71c1c;
            padding-left: 15px;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .section-more {
            font-size: 14px;
            color: #666;
        }
        .section-more a {
            color: #b71c1c;
        }
        .forum-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }
        .category-card {
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
        }
        .category-card:hover {
            transform: translateY(-5px);
        }
        .category-title {
            font-size: 18px;
            color: #b71c1c;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .category-title i {
            display: inline-block;
            width: 24px;
            height: 24px;
            background-color: #b71c1c;
            border-radius: 50%;
            color: #fff;
            text-align: center;
            line-height: 24px;
            font-style: normal;
        }
        .category-desc {
            color: #666;
            margin-bottom: 15px;
        }
        .category-stats {
            display: flex;
            justify-content: space-between;
            color: #999;
            font-size: 14px;
        }

        /* 最新帖子：核心内容模块，新增标签和回复数 */
        .latest-posts {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .post-list {
            display: grid;
            gap: 15px;
        }
        .post-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .post-item:last-child {
            border-bottom: none;
        }
        .post-info {
            flex: 1;
        }
        .post-title {
            font-size: 16px;
            margin-bottom: 8px;
        }
        .post-title a {
            color: #333;
        }
        .post-title a:hover {
            color: #b71c1c;
        }
        .post-meta {
            font-size: 14px;
            color: #999;
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .post-reply {
            color: #fff;
            background-color: #b71c1c;
            padding: 0 6px;
            border-radius: 3px;
            font-size: 12px;
        }
        .post-hits {
            color: #b71c1c;
            font-weight: bold;
        }

        /* 热门推荐：增强内容丰富性 */
        .hot-recommend {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .hot-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        .hot-item {
            display: flex;
            gap: 15px;
        }
        .hot-img {
            width: 80px;
            height: 80px;
            border-radius: 4px;
            background: #f1f1f1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' font-family='Microsoft Yahei' font-size='12' fill='%23999' text-anchor='middle' dominant-baseline='middle'%3E上海后花园%3C/text%3E%3C/svg%3E") no-repeat center center;
            background-size: cover;
        }
        .hot-text {
            flex: 1;
        }
        .hot-text h4 {
            margin-bottom: 5px;
        }
        .hot-text h4 a {
            color: #333;
        }
        .hot-text h4 a:hover {
            color: #b71c1c;
        }
        .hot-text p {
            font-size: 14px;
            color: #666;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 本周热议：新增模块，提升内容密度 */
        .hot-discuss {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .discuss-list {
            display: grid;
            gap: 12px;
        }
        .discuss-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eee;
        }
        .discuss-item:last-child {
            border-bottom: none;
        }
        .discuss-rank {
            width: 24px;
            height: 24px;
            background-color: #b71c1c;
            color: #fff;
            text-align: center;
            line-height: 24px;
            border-radius: 50%;
            font-size: 14px;
            flex-shrink: 0;
        }
        .discuss-rank.top1 {
            background-color: #ffc107;
            color: #b71c1c;
        }
        .discuss-rank.top2 {
            background-color: #e0e0e0;
            color: #333;
        }
        .discuss-rank.top3 {
            background-color: #ff9800;
            color: #fff;
        }
        .discuss-content {
            flex: 1;
        }
        .discuss-title {
            font-size: 15px;
            margin-bottom: 5px;
        }
        .discuss-title a {
            color: #333;
        }
        .discuss-title a:hover {
            color: #b71c1c;
        }
        .discuss-meta {
            font-size: 12px;
            color: #999;
            display: flex;
            gap: 10px;
        }

        /* 用户活跃榜：新增模块，丰富论坛内容 */
        .user-rank {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .rank-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }
        .rank-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
        }
        .rank-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #fef0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #b71c1c;
            font-weight: bold;
        }
        .rank-info {
            flex: 1;
        }
        .rank-username {
            font-size: 15px;
            font-weight: 500;
        }
        .rank-contribution {
            font-size: 12px;
            color: #999;
        }

        /* 友情链接：新增模块，提升SEO外链价值 */
        .friend-link {
            background: #fff;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            margin-bottom: 20px;
        }
        .link-list {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 15px;
        }
        .link-item a {
            color: #666;
            font-size: 14px;
            padding: 5px 10px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        .link-item a:hover {
            background-color: #fef0f0;
            color: #b71c1c;
        }

        /* 底部样式：优化SEO信息，增加站点地图链接 */
        footer {
            background: #333;
            color: #fff;
            padding: 40px 0 20px;
        }
        .footer-inner {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        .footer-col h3 {
            font-size: 18px;
            margin-bottom: 20px;
            color: #ffeb3b;
        }
        .footer-col ul li {
            margin-bottom: 10px;
        }
        .footer-col ul li a {
            color: #ccc;
        }
        .footer-col ul li a:hover {
            color: #ffeb3b;
        }
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #444;
            color: #999;
            font-size: 14px;
            line-height: 1.8;
        }
        .copyright a {
            color: #ccc;
        }

        /* 响应式适配：优化新增模块的移动端展示 */
        @media (max-width: 768px) {
            .header-inner {
                flex-direction: column;
                gap: 15px;
            }
            .nav-list {
                gap: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .search-box {
                width: 100%;
            }
            .search-input {
                width: 100%;
            }
            .banner {
                height: 250px;
            }
            .double-module {
                grid-template-columns: 1fr;
            }
            .hot-item {
                flex-direction: column;
            }
            .hot-img {
                width: 100%;
                height: 120px;
            }
            .link-list {
                justify-content: center;
            }
        }