/* 站点首页 · 亮/暗色（对齐 AI 积分页金橙风格） */
body.home .breadcrumbs,
body.home .breadcrumb,
body.home .site-banner,
body.front-page .breadcrumbs,
body.front-page .breadcrumb {
    display: none !important;
}

.ptg-home-page {
    --ptg-h-bg: #f7f9fc;
    --ptg-h-card: #ffffff;
    --ptg-h-text: #1f2329;
    --ptg-h-sub: #6b7280;
    --ptg-h-muted: #9ca3af;
    --ptg-h-border: #ececf0;
    --ptg-h-track: #f0e6d8;
    --ptg-h-accent: #ff5000;
    --ptg-h-gold: #e5a751;
    --ptg-h-gold-soft: #fff7ed;
    --ptg-h-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    --ptg-h-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08);
    background: var(--ptg-h-bg);
    color: var(--ptg-h-text);
    padding: 28px 0 48px;
}

[data-bs-theme="dark"].ptg-home-page,
.ptg-home-page[data-theme="dark"] {
    --ptg-h-bg: #121214;
    --ptg-h-card: #1a1a1c;
    --ptg-h-text: #f3f4f6;
    --ptg-h-sub: #b9a894;
    --ptg-h-muted: #8a8074;
    --ptg-h-border: #2e2e32;
    --ptg-h-track: #2a241c;
    --ptg-h-gold-soft: #3a3024;
    --ptg-h-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --ptg-h-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.ptg-home-page .ptg-home-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* —— Hero / 搜索 —— */
.ptg-home-hero {
    text-align: center;
    margin-bottom: 20px;
}

.ptg-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--ptg-h-gold-soft);
    border: 1px solid rgba(229, 167, 81, 0.35);
    color: #b47400;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-badge,
.ptg-home-page[data-theme="dark"] .ptg-home-badge {
    color: #f0d39a;
}

.ptg-home-badge i {
    color: var(--ptg-h-accent);
}

.ptg-home-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ptg-h-text);
}

.ptg-home-title em {
    font-style: normal;
    background: linear-gradient(90deg, #ff8c00, #ff5000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ptg-home-desc {
    margin: 0 auto 22px;
    max-width: 100%;
    width: max-content;
    font-size: clamp(13px, 2.4vw, 15px);
    line-height: 1.5;
    color: var(--ptg-h-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
    box-sizing: border-box;
}

.ptg-home-search-card {
    background: var(--ptg-h-card);
    border: 1px solid var(--ptg-h-border);
    border-radius: 20px;
    box-shadow: var(--ptg-h-shadow-lg);
    padding: 22px 22px 18px;
    text-align: left;
}

.ptg-home-search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ptg-home-search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ptg-home-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    background: var(--ptg-h-bg);
    border: 1px solid var(--ptg-h-border);
}

.ptg-home-search-input-wrap > i.fa-search,
.ptg-home-search-input-wrap > i.fas {
    color: var(--ptg-h-muted);
    flex: 0 0 auto;
}

.ptg-home-search-input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    height: 48px;
    font-size: 15px;
    color: var(--ptg-h-text);
}

.ptg-home-search-input-wrap input::placeholder {
    color: var(--ptg-h-muted);
}

/* 隐藏原生 search 清除钮，只保留自定义圆圈 X */
.ptg-home-search-input-wrap input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.ptg-home-search-input-wrap input[type="search"]::-webkit-search-cancel-button,
.ptg-home-search-input-wrap input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.ptg-home-search-input-wrap input[type="search"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.ptg-home-search-status {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #ff8c00;
    white-space: nowrap;
    padding: 0 4px;
    line-height: 1;
    user-select: none;
}

.ptg-home-search-clear {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--ptg-h-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.ptg-home-search-clear:hover {
    color: var(--ptg-h-accent);
    background: rgba(255, 140, 0, 0.12);
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-search-clear,
.ptg-home-page[data-theme="dark"] .ptg-home-search-clear {
    background: rgba(255, 255, 255, 0.08);
}

.ptg-home-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 50;
    max-height: min(420px, 60vh);
    overflow: auto;
    padding: 10px;
    border-radius: 16px;
    background: var(--ptg-h-card);
    border: 1px solid var(--ptg-h-border);
    box-shadow: var(--ptg-h-shadow-lg);
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 0, 0.4) transparent;
}

.ptg-home-suggest::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ptg-home-suggest::-webkit-scrollbar-track {
    background: transparent;
}

.ptg-home-suggest::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.35);
    border-radius: 999px;
}

.ptg-home-suggest-sec + .ptg-home-suggest-sec {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ptg-h-border);
}

.ptg-home-suggest-hd {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ptg-h-muted);
    padding: 2px 6px 8px;
}

.ptg-home-suggest-hd i {
    color: var(--ptg-h-accent);
}

.ptg-home-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ptg-home-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.ptg-home-suggest-item:hover {
    background: rgba(255, 140, 0, 0.08);
}

.ptg-home-suggest-cover {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ptg-h-bg);
    border: 1px solid var(--ptg-h-border);
}

.ptg-home-suggest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ptg-home-suggest-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ptg-home-suggest-meta .t {
    font-size: 14px;
    font-weight: 600;
    color: var(--ptg-h-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptg-home-suggest-meta .s {
    font-size: 12px;
    color: var(--ptg-h-muted);
}

.ptg-home-suggest-empty {
    padding: 16px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--ptg-h-muted);
}

.ptg-home-search-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #ff8c00, #ff5000);
    box-shadow: 0 8px 18px rgba(255, 80, 0, 0.25);
}

.ptg-home-search-btn:hover {
    filter: brightness(1.05);
}

.ptg-home-hot-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.ptg-home-hot-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ptg-h-accent);
    margin-right: 2px;
}

.ptg-home-hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ptg-h-sub);
    background: var(--ptg-h-bg);
    border: 1px solid var(--ptg-h-border);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.ptg-home-hot-tag:hover {
    color: var(--ptg-h-accent);
    border-color: rgba(255, 80, 0, 0.35);
    background: var(--ptg-h-gold-soft);
}

/* 站点统计：放在首页内容底部 */
.ptg-home-stats-wrap {
    margin-top: 28px;
    padding-top: 8px;
}

.ptg-home-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 18px 14px;
    border-radius: 16px;
    background: var(--ptg-h-card);
    border: 1px solid var(--ptg-h-border);
    box-shadow: var(--ptg-h-shadow);
}

.ptg-home-stat {
    text-align: center;
    padding: 8px 6px;
    position: relative;
}

.ptg-home-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 0;
    width: 1px;
    height: 64%;
    background: var(--ptg-h-border);
}

.ptg-home-stat .num {
    display: block;
    font-family: "DIN Alternate", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ff9a1f 0%, #ff5000 55%, #e03e00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-stat .num,
.ptg-home-page[data-theme="dark"] .ptg-home-stat .num {
    background: linear-gradient(135deg, #ffd08a 0%, #ff8c00 45%, #ff5000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ptg-home-stat .label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--ptg-h-sub);
}

.ptg-home-stat .delta {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0a7a3e;
    background: rgba(10, 122, 62, 0.08);
    border-radius: 999px;
    padding: 2px 8px;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-stat .delta,
.ptg-home-page[data-theme="dark"] .ptg-home-stat .delta {
    color: #6ee7a0;
    background: rgba(110, 231, 160, 0.12);
}

/* —— 网站动态 —— */
.ptg-home-dynamic {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.18);
    overflow: hidden;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-dynamic,
.ptg-home-page[data-theme="dark"] .ptg-home-dynamic {
    background: rgba(255, 140, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.22);
}

.ptg-home-dynamic-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff8c00, #ff5000);
    white-space: nowrap;
}

.ptg-home-dynamic-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ptg-home-dynamic-track {
    display: flex;
    width: max-content;
    gap: 28px;
    /* 功能型资讯条：即使系统开启「减少动态效果」也保持滚动，否则整条像卡住 */
    animation: ptg-home-marquee 32s linear infinite;
}

.ptg-home-dynamic:hover .ptg-home-dynamic-track {
    animation-play-state: paused;
}

@keyframes ptg-home-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ptg-home-dynamic-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--ptg-h-text);
}

.ptg-home-dynamic-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    background: var(--ptg-h-border);
}

.ptg-home-dynamic-item .name {
    font-weight: 700;
    color: var(--ptg-h-text);
}

.ptg-home-dynamic-item .info a {
    color: var(--ptg-h-sub);
    text-decoration: none;
}

.ptg-home-dynamic-item .info a:hover {
    color: var(--ptg-h-accent);
}

.ptg-home-dynamic-item .times {
    margin-left: 6px;
    color: var(--ptg-h-muted);
    font-size: 12px;
}

/* 网站动态为内容滚动条，不因 prefers-reduced-motion 停掉 */

/* —— 主体双栏 —— */
.ptg-home-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.ptg-home-main {
    min-width: 0;
}

/* 首页模组卡：只保留时间 / 浏览 / 下载，左中右均分（对齐游戏卡） */
.ptg-home-page .meta-fav,
.ptg-home-page .meta-likes,
.ptg-home-page .meta-comments,
.ptg-home-page .meta-size {
    display: none !important;
}

.ptg-home-page .entry-meta,
.ptg-home-page .ptg-entry-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    width: 100%;
    gap: 4px;
    flex-wrap: nowrap;
}

.ptg-home-page .entry-meta > span,
.ptg-home-page .ptg-entry-meta > span {
    flex: 0 1 auto;
    white-space: nowrap;
}

.ptg-home-page .entry-meta .meta-date {
    justify-self: flex-start;
}

.ptg-home-page .entry-meta .meta-views {
    text-align: center;
}

.ptg-home-page .entry-meta .meta-downs {
    margin-left: 0 !important;
    text-align: right;
}

.ptg-home-aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}

.ptg-home-section {
    background: var(--ptg-h-card);
    border: 1px solid var(--ptg-h-border);
    border-radius: 16px;
    box-shadow: var(--ptg-h-shadow);
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}

.ptg-home-section-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ptg-home-section-hd h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--ptg-h-text);
    white-space: nowrap;
}

.ptg-home-section-hd h3 i {
    color: var(--ptg-h-gold);
    margin-right: 6px;
}

.ptg-home-tabs {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.ptg-home-tabs .filter-link {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--ptg-h-sub);
    padding: 4px 0;
    position: relative;
    opacity: 0.85;
}

.ptg-home-tabs .filter-link:hover,
.ptg-home-tabs .filter-link.active {
    color: var(--ptg-h-accent);
    opacity: 1;
}

.ptg-home-tabs .filter-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: var(--ptg-h-accent);
    border-radius: 2px;
}

.ptg-home-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ptg-h-sub);
    text-decoration: none;
    white-space: nowrap;
}

.ptg-home-more:hover {
    color: var(--ptg-h-accent);
}

/* 游戏墙：桌面固定一行 5 个（勿改成 4） */
.ptg-home-page .ptg-tax-covers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 991.98px) {
    .ptg-home-page .ptg-tax-covers {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ptg-home-page .ptg-tax-covers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ptg-home-page .ptg-tax-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ptg-home-page .ptg-tax-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 204 / 307;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ptg-h-border);
    box-shadow: var(--ptg-h-shadow);
}

.ptg-home-page .ptg-tax-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ptg-home-page .ptg-tax-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ptg-h-text);
    line-height: 1.35;
}

.ptg-home-page .ptg-tax-stats {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 12px;
    color: var(--ptg-h-muted);
}

.ptg-home-page .ptg-tax-stats .ptg-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 模组列表区域：沿用主题卡片，微调间距 */
.ptg-home-page .ptg-mod-pane .row {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
}

.ptg-home-page .ptg-mod-pane .row > .col {
    display: flex;
}

.ptg-home-page .ptg-mod-pane .post-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.ptg-home-page .ptg-mod-pane .entry-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ptg-home-page .ptg-mod-pane .entry-cat-dot {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.4;
}

.ptg-home-page .ptg-mod-pane .entry-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptg-home-page .ptg-mod-pane .entry-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

.ptg-home-page .ptg-mod-pane .entry-meta {
    margin-top: auto;
}

.ptg-home-page .ptg-mod-loading {
    padding: 28px 0;
    text-align: center;
    color: var(--ptg-h-sub);
}

/* 右侧最新入库 */
.ptg-home-side-card {
    background: var(--ptg-h-card);
    border: 1px solid var(--ptg-h-border);
    border-radius: 16px;
    box-shadow: var(--ptg-h-shadow);
    padding: 16px;
}

.ptg-home-side-card .hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ptg-home-side-card .hd h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ptg-h-text);
}

.ptg-home-side-card .hd h4 i {
    color: var(--ptg-h-gold);
    margin-right: 6px;
}

.ptg-home-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ptg-home-side-list li {
    border-top: 1px solid var(--ptg-h-border);
}

.ptg-home-side-list li:first-child {
    border-top: 0;
}

.ptg-home-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.ptg-home-side-item:hover .t {
    color: var(--ptg-h-accent);
}

.ptg-home-side-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ptg-h-bg);
    flex: 0 0 48px;
}

.ptg-home-side-body {
    flex: 1;
    min-width: 0;
}

.ptg-home-side-body .t {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ptg-h-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.ptg-home-side-body .m {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--ptg-h-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ptg-home-side-tag {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.ptg-home-side-tag.ver {
    background: rgba(10, 122, 62, 0.1);
    color: #0a7a3e;
}

.ptg-home-side-tag.new {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-side-tag.ver,
.ptg-home-page[data-theme="dark"] .ptg-home-side-tag.ver {
    background: rgba(110, 231, 160, 0.14);
    color: #6ee7a0;
}

[data-bs-theme="dark"].ptg-home-page .ptg-home-side-tag.new,
.ptg-home-page[data-theme="dark"] .ptg-home-side-tag.new {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

.ptg-home-empty {
    padding: 20px 8px;
    text-align: center;
    color: var(--ptg-h-sub);
    font-size: 13px;
}

@media (max-width: 992px) {
    .ptg-home-body {
        grid-template-columns: 1fr;
    }

    .ptg-home-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .ptg-home-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 0;
        padding: 14px 8px;
    }

    .ptg-home-stat:nth-child(3n)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .ptg-home-search-form {
        flex-direction: column;
    }

    .ptg-home-search-btn {
        height: 46px;
    }

    .ptg-home-aside {
        grid-template-columns: 1fr;
    }

    .ptg-home-page .ptg-tax-covers {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .ptg-home-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ptg-home-stat:nth-child(3n)::after {
        display: block;
    }

    .ptg-home-stat:nth-child(2n)::after {
        display: none;
    }

    .ptg-home-dynamic {
        padding: 8px 10px;
    }

    .ptg-home-hot-tags {
        gap: 6px;
    }
}
