/*
 Theme Name: GeneratePress Child
 Template: generatepress
*/
       /* ===== 全局重置 & 配色 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background: #FEFAF7;
            color: #3D4F52;
            line-height: 1.6;
        }

        .container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== 顶部导航栏 ===== */
        .top-bar {
            background: #3D4F52;
            color: #DFE6E7;
            font-size: 13px;
            padding: 6px 0;
        }
        .top-bar .container {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .top-bar a {
            color: #DFE6E7;
            text-decoration: none;
            margin-left: 18px;
            transition: color 0.2s;
        }
        .top-bar a:hover {
            color: #E88D67;
        }

        .header {
            background: #FFFFFF;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
            padding: 14px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }
        .logo {
            font-size: 30px;
            font-weight: 900;
            color: #E88D67;
            letter-spacing: -0.5px;
        }
        .logo span {
            color: #3D4F52;
        }

        .nav-menu {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 24px;
        }
        .nav-menu a {
            text-decoration: none;
            color: #3D4F52;
            font-weight: 700;
            font-size: 16px;
            transition: color 0.2s;
            padding: 4px 0;
            border-bottom: 3px solid transparent;
        }
        .nav-menu a:hover,
        .nav-menu a.active {
            color: #E88D67;
            border-bottom-color: #E88D67;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: #F5F0EC;
            border-radius: 50px;
            padding: 4px 6px 4px 18px;
        }
        .search-box input {
            border: none;
            background: transparent;
            padding: 8px 0;
            font-size: 14px;
            outline: none;
            width: 140px;
            font-family: inherit;
        }
        .search-box button {
            background: #E88D67;
            border: none;
            color: #fff;
            padding: 7px 18px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            font-size: 14px;
            transition: 0.2s;
        }
        .search-box button:hover {
            background: #d97a52;
        }

        /* ===== 门户主导航（分类入口） ===== */
        .portal-nav {
            background: #FFFFFF;
            border-radius: 20px;
            margin: 24px 0 30px 0;
            padding: 16px 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px 30px;
            border: 1px solid #F0E8E3;
        }
        .portal-nav a {
            text-decoration: none;
            color: #3D4F52;
            font-weight: 600;
            font-size: 15px;
            padding: 6px 8px;
            border-radius: 12px;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .portal-nav a:hover {
            background: #FCEAE2;
            color: #E88D67;
        }

        /* ===== 主视觉 Hero（门户大图） ===== */
        .hero {
            background: linear-gradient(135deg, #FCEAE2 0%, #FFF3ED 100%);
            border-radius: 28px;
            padding: 40px 44px;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            border: 1px solid rgba(232, 141, 103, 0.12);
        }
        .hero-text {
            flex: 1 1 280px;
        }
        .hero-text h1 {
            font-size: 38px;
            font-weight: 900;
            color: #3D4F52;
            line-height: 1.2;
        }
        .hero-text h1 .highlight {
            color: #E88D67;
        }
        .hero-text p {
            font-size: 17px;
            color: #5A6F73;
            margin: 12px 0 22px 0;
            max-width: 460px;
        }
        .hero-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .hero-tags span {
            background: #FFFFFF;
            padding: 6px 18px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            color: #E88D67;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        }
        .hero-image {
            flex: 1 1 180px;
            text-align: center;
            font-size: 100px;
            line-height: 1;
            filter: drop-shadow(0 8px 20px rgba(232, 141, 103, 0.15));
        }

        /* ===== 通用标题 ===== */
        .section-title {
            font-size: 26px;
            font-weight: 800;
            color: #3D4F52;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-title .more {
            font-size: 14px;
            font-weight: 600;
            color: #E88D67;
            margin-left: auto;
            text-decoration: none;
        }
        .section-title .more:hover {
            text-decoration: underline;
        }
        .section-sub {
            color: #7A8F93;
            margin-bottom: 24px;
            font-size: 15px;
        }

        /* ===== 双栏布局：左侧资讯 + 右侧侧边栏 ===== */
        .two-col {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 32px;
            margin: 36px 0;
        }

        /* ===== 左侧：资讯列表 ===== */
        .news-list {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .news-item {
            background: #FFFFFF;
            border-radius: 20px;
            padding: 18px 22px;
            border: 1px solid #F0E8E3;
            display: flex;
            gap: 18px;
            align-items: center;
            transition: 0.2s;
        }
        .news-item:hover {
            border-color: #E88D67;
            box-shadow: 0 4px 16px rgba(232, 141, 103, 0.06);
        }
        .news-icon {
            font-size: 36px;
            flex-shrink: 0;
        }
        .news-content h4 {
            font-size: 17px;
            font-weight: 700;
            color: #3D4F52;
        }
        .news-content p {
            font-size: 14px;
            color: #7A8F93;
        }
        .news-meta {
            font-size: 12px;
            color: #B0C0C3;
            margin-top: 4px;
        }
        .news-meta span {
            margin-right: 14px;
        }

        /* ===== 右侧：侧边栏 ===== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        .sidebar-card {
            background: #FFFFFF;
            border-radius: 20px;
            padding: 22px 20px;
            border: 1px solid #F0E8E3;
        }
        .sidebar-card h3 {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 14px;
            color: #3D4F52;
            border-bottom: 2px solid #FCEAE2;
            padding-bottom: 10px;
        }

        .sidebar-card ul {
            list-style: none;
            padding: 0;
        }
        .sidebar-card ul li {
            padding: 8px 0;
            border-bottom: 1px solid #F5F0EC;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .sidebar-card ul li:last-child {
            border-bottom: none;
        }
        .sidebar-card ul li a {
            color: #3D4F52;
            text-decoration: none;
        }
        .sidebar-card ul li a:hover {
            color: #E88D67;
        }
        .hot-badge {
            background: #E88D67;
            color: #fff;
            font-size: 10px;
            padding: 1px 10px;
            border-radius: 30px;
            margin-left: auto;
        }
        .new-badge {
            background: #B5D0C8;
            color: #fff;
            font-size: 10px;
            padding: 1px 10px;
            border-radius: 30px;
            margin-left: auto;
        }

        /* 侧边栏：工具入口 */
        .tool-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .tool-grid a {
            background: #FCF5F0;
            padding: 14px 8px;
            border-radius: 16px;
            text-align: center;
            text-decoration: none;
            color: #3D4F52;
            font-weight: 700;
            font-size: 13px;
            transition: 0.2s;
        }
        .tool-grid a:hover {
            background: #E88D67;
            color: #fff;
        }
        .tool-grid a .icon {
            display: block;
            font-size: 28px;
            margin-bottom: 4px;
        }

        /* ===== 社区 / 热门板块 ===== */
        .community-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 20px 0 30px 0;
        }
        .community-card {
            background: #FFFFFF;
            border-radius: 20px;
            padding: 20px;
            border: 1px solid #F0E8E3;
            text-align: center;
            transition: 0.2s;
        }
        .community-card:hover {
            border-color: #E88D67;
            transform: translateY(-4px);
        }
        .community-card .icon {
            font-size: 40px;
            display: block;
            margin-bottom: 6px;
        }
        .community-card h4 {
            font-size: 16px;
            font-weight: 700;
        }
        .community-card p {
            font-size: 13px;
            color: #7A8F93;
        }

        /* ===== 商城推荐（轻量） ===== */
        .shop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 18px;
            margin: 16px 0 30px 0;
        }
        .shop-item {
            background: #FFFFFF;
            border-radius: 18px;
            padding: 18px 12px;
            text-align: center;
            border: 1px solid #F0E8E3;
            transition: 0.2s;
        }
        .shop-item:hover {
            border-color: #E88D67;
        }
        .shop-item .icon {
            font-size: 44px;
            display: block;
        }
        .shop-item h5 {
            font-size: 14px;
            margin: 4px 0 2px;
        }
        .shop-item .price {
            color: #E88D67;
            font-weight: 800;
            font-size: 15px;
        }

        /* ===== 页脚 ===== */
        .footer {
            background: #3D4F52;
            color: #DFE6E7;
            padding: 36px 0 24px;
            border-radius: 30px 30px 0 0;
            margin-top: 20px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 30px;
            margin-bottom: 24px;
        }
        .footer-grid h4 {
            color: #fff;
            font-size: 17px;
            margin-bottom: 10px;
        }
        .footer-grid a {
            color: #B8CCCE;
            text-decoration: none;
            display: block;
            font-size: 14px;
            padding: 4px 0;
        }
        .footer-grid a:hover {
            color: #E88D67;
        }
        .footer-bottom {
            text-align: center;
            border-top: 1px solid #53686C;
            padding-top: 20px;
            font-size: 14px;
            opacity: 0.8;
        }
        .footer-bottom .love {
            color: #F4A261;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 900px) {
            .two-col {
                grid-template-columns: 1fr;
            }
            .hero {
                flex-direction: column-reverse;
                text-align: center;
                padding: 28px 20px;
            }
            .hero-text p {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-tags {
                justify-content: center;
            }
            .search-box input {
                width: 100px;
            }
            .header-inner {
                flex-direction: column;
                align-items: stretch;
            }
            .nav-menu {
                justify-content: center;
            }
            .search-box {
                width: 100%;
            }
            .search-box input {
                flex: 1;
            }
        }
        @media (max-width: 480px) {
            .portal-nav {
                gap: 6px 14px;
            }
            .portal-nav a {
                font-size: 13px;
            }
            .hero-text h1 {
                font-size: 28px;
            }
            .hero-image {
                font-size: 70px;
            }
        }