/*!
 * happiness-industry.css —— 幸福宝「行业博览 · 全球GDP排行」页
 * 浅色国际化风（侧边导航 + 国家卡片）；变量复用 happiness.css，不再覆盖全局 :root。
 * 宽度/左右留白由 .hx-page-wrap 统一（与首页一致）；页头/页脚由 happiness.css 提供。
 */

        /* 页面容器：最大 1400px 居中，两侧 20px 留白（与首页 .container 一致） */
        .hx-page-wrap { max-width: var(--container); margin: 24px auto 56px; padding: 0 20px; }

        .btn { padding: 10px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
        .btn-primary { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3); }

        /* ── Breadcrumb ── */
        .breadcrumb {
            display: flex; align-items: center; gap: 8px;
            padding: 12px 20px; margin-bottom: 24px; font-size: 14px;
            color: #7f8c8d; background: white;
            border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .breadcrumb a { color: #7f8c8d; text-decoration: none; transition: color 0.3s; }
        .breadcrumb a:hover { color: #2575fc; }
        .breadcrumb .current { color: #2c3e50; font-weight: 500; }

        /* ── Banner ── */
        .page-banner {
            background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 30%, #f0f4ff 70%, #f8fafc 100%);
            border: 1px solid var(--border-color);
            border-radius: 16px; padding: 44px 40px; margin-bottom: 24px;
            position: relative; overflow: hidden;
        }
        .page-banner::before {
            content: ''; position: absolute; top: -60px; right: -60px;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
            border-radius: 50%;
        }
        .page-banner::after {
            content: ''; position: absolute; bottom: -40px; left: -40px;
            width: 240px; height: 240px;
            background: radial-gradient(circle, rgba(106,17,203,0.04) 0%, transparent 70%);
            border-radius: 50%;
        }
        .banner-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
        .banner-text h1 { font-size: 34px; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
        .banner-text h1 span { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .banner-text p { font-size: 15px; color: #64748b; max-width: 620px; line-height: 1.7; }
        .banner-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2);
            padding: 6px 16px; border-radius: 20px; font-size: 13px;
            color: var(--primary); margin-bottom: 14px;
        }
        .banner-badge .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
        .banner-globe { font-size: 100px; color: rgba(37,99,235,0.06); animation: float 3s ease-in-out infinite; }
        @keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

        /* ── Sidebar Layout ── */
        .layout { display: flex; gap: 24px; }
        .sidebar {
            width: 240px; flex-shrink: 0;
            background: white; border: 1px solid var(--border-color);
            border-radius: 12px; padding: 20px 0;
            position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto;
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        }
        .sidebar-title {
            display: flex; align-items: center; gap: 8px;
            padding: 0 20px 16px; margin-bottom: 16px;
            border-bottom: 2px solid #f0f3f8;
            font-size: 16px; font-weight: 700; color: #2c3e50;
        }
        .sidebar-title small {
            display: block; font-size: 12px; color: #94a3b8; font-weight: 400; margin-top: 2px;
        }
        .sidebar-nav { list-style: none; padding: 0 12px; }
        .sidebar-nav a {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px; border-radius: 8px; font-size: 13px;
            color: #5e697c; text-decoration: none; transition: all 0.25s;
        }
        .sidebar-nav a:hover, .sidebar-nav a.active {
            background: var(--gradient); color: white; border-radius: 8px;
            box-shadow: 0 4px 12px rgba(106,17,203,.25);
        }
        .sidebar-nav a .rank-num {
            width: 24px; height: 24px; border-radius: 6px;
            background: #f1f5f9;
            display: flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 700; color: #64748b;
        }
        .sidebar-nav a:hover .rank-num, .sidebar-nav a.active .rank-num {
            background: rgba(255,255,255,0.3); color: white;
        }

        /* ── Main Content ── */
        .main { flex: 1; min-width: 0; }

        /* ── Country Card ── */
        .country-card {
            background: white; border: 1px solid var(--border-color);
            border-radius: 12px; margin-bottom: 20px; overflow: hidden;
            box-shadow: 0 8px 24px rgba(0,0,0,0.08); transition: all 0.3s;
        }
        .country-card:hover { border-color: #c4b5fd; box-shadow: 0 8px 28px rgba(106,17,203,0.1); }
        .country-header {
            display: flex; align-items: center; gap: 16px;
            padding: 18px 24px;
            background: #fafbfc;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer; transition: background 0.3s;
        }
        .country-header:hover { background: #f0f4ff; }
        .country-rank {
            width: 42px; height: 42px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; font-weight: 900;
            flex-shrink: 0;
        }
        .country-rank.r1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #1a1a2e; box-shadow: 0 0 16px rgba(255,215,0,0.4); }
        .country-rank.r2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #1a1a2e; }
        .country-rank.r3 { background: linear-gradient(135deg, #cd7f32, #b86824); color: #fff; }
        .country-rank.r4 { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
        .country-flag { width: 72px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .country-info { flex: 1; min-width: 0; }
        .country-name { font-size: 18px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 10px; }
        .country-name .en { font-size: 12px; color: #94a3b8; font-weight: 400; }
        .country-meta { display: flex; align-items: center; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
        .country-meta .gdp { font-size: 15px; font-weight: 700; color: #2563eb; }
        .country-meta .gdp-share { font-size: 12px; color: #94a3b8; }
        .country-meta .site-count { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 4px; }
        .country-toggle {
            font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 6px;
            transition: color 0.3s;
        }
        .country-toggle i { transition: transform 0.3s; }
        .country-card.open .country-toggle i { transform: rotate(180deg); }

        /* ── Websites Grid ── */
        .websites-wrap { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.4s ease; }
        .country-card.open .websites-wrap { max-height: 800px; padding: 20px 24px; }
        .websites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
        .site-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 16px;
            background: #f8fafc; border: 1px solid var(--border-color);
            border-radius: 10px; text-decoration: none;
            transition: all 0.3s;
        }
        .site-item:hover {
            background: #eef2ff; border-color: #a5b4fc;
            transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.1);
        }
        .site-icon {
            width: 38px; height: 38px; border-radius: 10px;
            background: rgba(37,99,235,0.1);
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; color: #2563eb; flex-shrink: 0;
        }
        .site-info { min-width: 0; }
        .site-info .s-name { font-size: 14px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .site-info .s-desc { font-size: 11px; color: #94a3b8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .site-arrow { color: #94a3b8; font-size: 12px; opacity: 0; transform: translateX(-4px); transition: all 0.3s; }
        .site-item:hover .site-arrow { opacity: 1; transform: translateX(0); color: #2563eb; }

        /* 返回顶部按钮统一由 happiness.css + hxfooter 提供（与首页一致） */

        /* ── Stats Row ── */
        .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
        .stat-item {
            background: white; border: 1px solid var(--border-color);
            border-radius: 12px; padding: 22px 20px; text-align: center;
            box-shadow: 0 8px 24px rgba(0,0,0,0.08); transition: all 0.3s;
        }
        .stat-item:hover { border-color: #a5b4fc; transform: translateY(-2px); }
        .stat-item .val { font-size: 28px; font-weight: 800; color: var(--primary); }
        .stat-item .lbl { font-size: 13px; color: #64748b; margin-top: 4px; }

        /* ── Expand All Button ── */
        .expand-bar {
            display: flex; justify-content: flex-end; gap: 10px;
            margin-bottom: 16px;
        }
        .expand-btn {
            padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border-color);
            background: white; color: #64748b;
            font-size: 13px; cursor: pointer; transition: all 0.3s;
            display: flex; align-items: center; gap: 6px;
        }
        .expand-btn:hover { border-color: #a5b4fc; color: var(--primary); background: #eef2ff; }

        /* 页脚统一由 happiness.css + hxfooter 提供（与首页一致） */

        /* ── Scrollbar ── */
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

        /* ── Responsive ── */
        @media (max-width: 1200px) {
            .layout { flex-direction: column; }
            .sidebar {
                width: 100%; position: static; max-height: none;
                padding: 16px;
            }
            .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; }
            .sidebar-nav a { padding: 8px 12px; font-size: 12px; }
            .websites-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
        }
        @media (max-width: 768px) {
            .hx-page-wrap { margin-top: 16px; padding: 0 12px; }
            .page-banner { padding: 30px 22px; }
            .banner-inner { flex-direction: column; }
            .banner-globe { display: none; }
            .banner-text h1 { font-size: 26px; }
            .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .websites-grid { grid-template-columns: 1fr 1fr; }
            .country-header { flex-wrap: wrap; }
        }
        @media (max-width: 560px) {
            .stats-row { grid-template-columns: 1fr; }
            .websites-grid { grid-template-columns: 1fr; }
        }
