@charset "UTF-8";
/*
Theme Name: 52Theme
Theme URI: http://zhuti.xxx
Author: 52主题网
Author URI: http://zhuti.xxx
Description: 一款面向虚拟资源站的 WordPress 主题，支持分类 Tab 筛选、资源下载框、暗黑模式、移动端底栏与可视化主题设置。
Version: 1.21.12
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 52theme
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. 设计变量
   ============================================================ */
:root {
    --t52-primary: #4a6cf7;
    --t52-primary-hover: #2563eb;
    --t52-primary-soft: rgba(74, 108, 247, .1);
    --t52-primary-border: rgba(74, 108, 247, .25);
    --t52-bg: #f6f7fb;
    --t52-card: #ffffff;
    --t52-text: #1f2430;
    --t52-text-2: #5c6577;
    --t52-text-3: #8b93a5;
    --t52-border: #e8ebf2;
    --t52-border-strong: #d8dde9;
    --t52-header-bg: rgba(255, 255, 255, .86);
    --t52-header-h: 64px;
    --t52-container: 1300px;
    --t52-sidebar: 300px;
    --t52-radius: 8px;
    --t52-radius-sm: 6px;
    --t52-radius-pill: 999px;
    --t52-shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
    --t52-shadow-sm: 0 4px 14px rgba(16, 24, 40, .07);
    --t52-shadow-md: 0 14px 36px rgba(16, 24, 40, .12);
    --t52-shadow-dropdown: 0 4px 12px -2px rgba(0, 0, 0, .08), 0 12px 32px -4px rgba(0, 0, 0, .1);
    --t52-font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --t52-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --t52-ease: cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --t52-primary: #6d8bff;
    --t52-primary-hover: #8ba3ff;
    --t52-primary-soft: rgba(109, 139, 255, .16);
    --t52-primary-border: rgba(109, 139, 255, .35);
    --t52-bg: #0e1116;
    --t52-card: #171b22;
    --t52-text: #e8ebf2;
    --t52-text-2: #a6adbb;
    --t52-text-3: #7b8496;
    --t52-border: #262c37;
    --t52-border-strong: #333b49;
    --t52-header-bg: rgba(17, 21, 27, .86);
    --t52-shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --t52-shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
    --t52-shadow-md: 0 14px 36px rgba(0, 0, 0, .5);
    --t52-shadow-dropdown: 0 4px 12px -2px rgba(0, 0, 0, .5), 0 12px 32px -4px rgba(0, 0, 0, .45);
}

/* ============================================================
   2. 基础样式
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--t52-header-h) + 20px);
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--t52-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--t52-text);
    background: var(--t52-bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .3s var(--t52-ease), color .3s var(--t52-ease);
}

body.t52-no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--t52-text);
    text-decoration: none;
    transition: color .2s var(--t52-ease);
}

a:hover {
    color: var(--t52-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    color: var(--t52-text);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

svg {
    display: block;
}

::selection {
    background: var(--t52-primary);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--t52-primary);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

.skip-link:focus {
    background: var(--t52-card);
    border-radius: var(--t52-radius-sm);
    box-shadow: var(--t52-shadow-md);
    clip: auto;
    clip-path: none;
    color: var(--t52-primary);
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 16px;
    padding: 12px 20px;
    top: 16px;
    width: auto;
    z-index: 100000;
}

/* ============================================================
   3. 布局
   ============================================================ */
.t52-container {
    width: 100%;
    max-width: var(--t52-container);
    margin: 0 auto;
    padding: 0 24px;
}

.t52-main {
    padding: 32px 0 64px;
    min-height: 50vh;
}

/* 无横幅的内容页：避开固定导航，避免首屏被遮挡 */
body.t52-singular:not(.t52-home) .t52-main:not(.t52-account-page):not(.t52-pay-page) {
    padding-top: calc(var(--t52-header-h) + 28px);
}

.t52-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--t52-sidebar);
    gap: 24px;
    align-items: start;
}

.t52-card {
    background: var(--t52-card);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-xs);
    border: 1px solid transparent;
}

html[data-theme="dark"] .t52-card {
    border-color: var(--t52-border);
}

/* ============================================================
   4. 顶部导航
   ============================================================ */
.t52-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--t52-header-h);
    background: var(--t52-header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--t52-border);
    transition: transform .35s var(--t52-ease), background-color .3s var(--t52-ease), border-color .3s var(--t52-ease);
}

.t52-header.is-transparent {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
}

.t52-header.is-stuck {
    background: var(--t52-header-bg);
    border-bottom-color: var(--t52-border);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: var(--t52-shadow-xs);
}

.t52-header.is-hidden {
    transform: translateY(-100%);
}

/* 抽屉 / 弹层打开时保持导航可见，避免顶部留白 */
body.t52-no-scroll .t52-header.is-hidden {
    transform: translateY(0);
}

.t52-header-inner {
    height: 100%;
    max-width: var(--t52-container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.t52-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 120px;
}

.t52-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.t52-logo-link:hover {
    color: inherit;
}

.t52-logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.t52-logo-img.t52-logo-dark {
    display: none;
}

html[data-theme="dark"] .t52-logo-img.t52-logo-light {
    display: none;
}

html[data-theme="dark"] .t52-logo-img.t52-logo-dark {
    display: block;
}

.t52-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--t52-primary), #8b5cf6);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(74, 108, 247, .35);
}

.t52-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.t52-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.t52-nav-item {
    position: relative;
}

.t52-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 14px;
    border-radius: var(--t52-radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

.t52-header.is-transparent .t52-nav-link {
    color: rgba(255, 255, 255, .92);
}

.t52-nav-link:hover,
.t52-nav-item.current-menu-item > .t52-nav-link,
.t52-nav-item.current-menu-ancestor > .t52-nav-link {
    color: var(--t52-primary);
    background: var(--t52-primary-soft);
}

.t52-header.is-transparent .t52-nav-link:hover,
.t52-header.is-transparent .t52-nav-item.current-menu-item > .t52-nav-link {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.t52-nav-arrow {
    width: 14px;
    height: 14px;
    transition: transform .25s var(--t52-ease);
}

.t52-nav-item:hover .t52-nav-arrow {
    transform: rotate(180deg);
}

.t52-nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 178px;
    padding: 8px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--t52-ease), transform .2s var(--t52-ease), visibility .2s;
    z-index: 20;
}

.t52-nav-item:hover .t52-nav-submenu,
.t52-nav-item:focus-within .t52-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.t52-nav-submenu .t52-nav-link {
    display: flex;
    width: 100%;
    color: var(--t52-text);
    font-size: 14px;
    padding: 8px 12px;
}

.t52-nav-submenu .t52-nav-link:hover {
    color: var(--t52-primary);
    background: var(--t52-primary-soft);
}

.t52-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.t52-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: inherit;
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-action-btn svg {
    width: 20px;
    height: 20px;
}

.t52-action-btn:hover {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

.t52-header.is-transparent .t52-action-btn:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.t52-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.t52-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border-radius: var(--t52-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    border: 1px solid var(--t52-border-strong);
    background: var(--t52-card);
    transition: all .2s var(--t52-ease);
}

.t52-auth-btn--primary {
    background: var(--t52-primary);
    border-color: var(--t52-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(74, 108, 247, .28);
}

.t52-auth-btn:hover {
    border-color: var(--t52-primary);
    color: var(--t52-primary);
}

.t52-auth-btn--primary:hover {
    background: var(--t52-primary-hover);
    border-color: var(--t52-primary-hover);
    color: #fff;
}

.t52-header.is-transparent .t52-auth-btn {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
}

.t52-header.is-transparent .t52-auth-btn--primary {
    background: #fff;
    border-color: #fff;
    color: var(--t52-primary);
}

.t52-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--t52-radius-sm);
    color: inherit;
}

.t52-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.t52-icon-moon {
    display: none;
}

html[data-theme="dark"] .t52-icon-sun {
    display: none;
}

html[data-theme="dark"] .t52-icon-moon {
    display: block;
}

/* 搜索浮层 */
.t52-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18vh 24px 24px;
    background: rgba(12, 16, 24, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--t52-ease), visibility .25s;
}

.t52-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.t52-search-panel {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--t52-card);
    border-radius: 14px;
    box-shadow: var(--t52-shadow-md);
    padding: 28px;
    transform: translateY(-14px);
    transition: transform .3s var(--t52-ease);
}

.t52-search-overlay.is-open .t52-search-panel {
    transform: translateY(0);
}

.t52-search-panel-title {
    font-size: 18px;
    margin-bottom: 16px;
}

.t52-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-pill);
    padding: 6px 8px 6px 20px;
}

.t52-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
}

.t52-search-form input::placeholder {
    color: var(--t52-text-3);
}

.t52-search-clear {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--t52-text-3);
}

.t52-search-clear:hover {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

.t52-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary);
    color: #fff;
    font-weight: 600;
}

.t52-search-submit:hover {
    background: var(--t52-primary-hover);
}

.t52-search-submit svg {
    width: 18px;
    height: 18px;
}

.t52-search-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--t52-text-2);
}

.t52-search-close:hover {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

/* 移动端菜单 */
.t52-mobile-menu {
    position: fixed;
    inset: var(--t52-header-h) 0 0 auto;
    width: min(86vw, 360px);
    background: var(--t52-card);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .16);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--t52-ease), visibility .3s;
    z-index: 999;
}

.t52-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

.t52-mobile-nav-item {
    border-bottom: 1px solid var(--t52-border);
}

.t52-mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.t52-mobile-nav-link {
    flex: 1;
    display: block;
    padding: 13px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--t52-text);
}

.t52-mobile-submenu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t52-text-3);
}

.t52-mobile-arrow {
    width: 16px;
    height: 16px;
    transition: transform .25s var(--t52-ease);
}

.t52-mobile-nav-item.has-open > .t52-mobile-nav-row .t52-mobile-arrow {
    transform: rotate(180deg);
}

.t52-mobile-submenu {
    display: none;
    padding-left: 14px;
    background: var(--t52-bg);
    border-radius: var(--t52-radius-sm);
    margin-bottom: 10px;
}

.t52-mobile-submenu .t52-mobile-nav-link {
    font-size: 14px;
    padding: 10px 4px;
}

.t52-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.t52-mobile-actions .t52-auth-btn {
    width: 100%;
}

.t52-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 24, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 998;
}

.t52-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   5. Hero 横幅
   ============================================================ */
.t52-hero {
    position: relative;
    min-height: var(--t52-hero-h, 480px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(120deg, #172554 0%, #2340a8 46%, #6d4bd8 100%);
}

.t52-hero.has-image {
    background-size: cover;
    background-position: center;
}

.t52-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .16), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(139, 92, 246, .28), transparent 46%);
    pointer-events: none;
}

.t52-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .42);
    pointer-events: none;
}

.t52-hero-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: calc(var(--t52-header-h) + 40px) 20px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.t52-hero-title {
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.t52-hero-subtitle {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.t52-hero-search {
    width: 100%;
    margin-top: 28px;
    margin-bottom: 24px;
}

.t52-hero .t52-search-form {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 18px 40px rgba(8, 12, 24, .3);
    padding: 7px 8px 7px 22px;
}

.t52-hero .t52-search-form input[type="search"] {
    color: #1f2430;
}

.t52-hero .t52-search-form input::placeholder {
    color: #8b93a5;
}

.t52-hero-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.t52-keyword-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: none;
    backdrop-filter: blur(6px);
}

.t52-keyword-tag:hover {
    color: #fff;
    background: rgba(255, 255, 255, .3);
}

/* ============================================================
   6. 快捷入口（位于 Hero 内）
   ============================================================ */
.t52-hero-quick {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--t52-container);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.t52-hero-quick-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.t52-quick-card {
    flex: 1 1 0;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    transition: background-color .3s var(--t52-ease), border-color .3s var(--t52-ease);
}

.t52-quick-card:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.t52-quick-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    overflow: hidden;
}

.t52-quick-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.t52-quick-icon svg {
    width: 20px;
    height: 20px;
}

.t52-quick-info {
    min-width: 0;
}

.t52-quick-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t52-quick-desc {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   7. 区块与 Tab
   ============================================================ */
.t52-section {
    padding: 32px 0 0;
}

.t52-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--t52-border);
}

.t52-section-title {
    position: relative;
    display: block;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
}

.t52-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: var(--t52-primary);
}

.t52-section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--t52-text-3);
}

.t52-section-more:hover {
    color: var(--t52-primary);
}

.t52-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t52-tab {
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    font-size: 14px;
    color: var(--t52-text-3);
    transition: all .2s var(--t52-ease);
    white-space: nowrap;
}

.t52-tab:hover {
    color: var(--t52-primary);
    background: var(--t52-primary-soft);
}

.t52-tab.is-active {
    background: var(--t52-primary-soft);
    border-color: var(--t52-primary-border);
    color: var(--t52-primary);
    box-shadow: none;
}

.t52-tab.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* ============================================================
   8. 文章卡片
   ============================================================ */
.t52-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.t52-post-grid.is-loading {
    opacity: .45;
    pointer-events: none;
}

.t52-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--t52-card);
    border-radius: var(--t52-radius);
    overflow: hidden;
    box-shadow: var(--t52-shadow-xs);
    transition: transform .28s var(--t52-ease), box-shadow .28s var(--t52-ease);
}

.t52-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t52-shadow-md);
}

.t52-post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.t52-post-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--t52-card);
    border-radius: var(--t52-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #3b4a8f, #6d4bd8);
}

.t52-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--t52-ease);
}

.t52-post-card:hover .t52-post-thumb img {
    transform: scale(1.06);
}

/* 主题截图：电脑屏幕展示 */
.t52-theme-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 22px 12px;
    border: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(74, 108, 247, .14), transparent 46%),
        radial-gradient(circle at 82% 84%, rgba(124, 58, 237, .14), transparent 46%),
        var(--t52-bg);
}

.t52-monitor {
    position: relative;
    width: 88%;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, .18));
    transition: transform .35s var(--t52-ease);
}

.t52-post-card:hover .t52-monitor {
    transform: translateY(-4px);
}

.t52-monitor-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 7px solid #111827;
    border-bottom-width: 11px;
    border-radius: 10px;
    background: #0b1020;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05);
}

.t52-monitor-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.t52-post-card:hover .t52-theme-stage .t52-monitor-screen img {
    transform: none;
}

.t52-monitor-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 42%);
    pointer-events: none;
}

.t52-monitor-screen .t52-post-thumb-fallback {
    font-size: 44px;
}

.t52-monitor-stand {
    display: block;
    width: 20%;
    height: 16px;
    margin: 0 auto;
    background: linear-gradient(#e2e8f0, #94a3b8);
    clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}

.t52-monitor-base {
    display: block;
    width: 46%;
    height: 7px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(#94a3b8, #64748b);
}

.t52-post-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
    letter-spacing: -.04em;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.t52-post-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: var(--t52-primary);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .3s, transform .3s;
}

.t52-post-card:hover .t52-post-cat {
    opacity: 1;
    transform: translateY(0);
}

.t52-post-cat:hover {
    color: #fff;
    background: var(--t52-primary-hover);
}

.t52-post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}

.t52-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .2s;
}

.t52-post-card:hover .t52-post-title {
    color: var(--t52-primary);
}

.t52-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 4px;
    background: var(--t52-bg);
    font-size: 13px;
    line-height: 1.6;
    color: var(--t52-text-2);
}

.t52-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 0;
    font-size: 11px;
    color: var(--t52-text-3);
}

.t52-post-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.t52-post-meta-left img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.t52-post-meta-right {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.t52-post-meta-right svg {
    width: 14px;
    height: 14px;
}

/* 列表式卡片 */
.t52-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t52-post-list .t52-post-card-link {
    flex-direction: row;
    align-items: stretch;
}

.t52-post-list .t52-post-thumb {
    flex: 0 0 240px;
    aspect-ratio: 16 / 10;
}

.t52-post-list .t52-post-content {
    padding: 20px;
}

.t52-post-list .t52-post-title {
    font-size: 19px;
    -webkit-line-clamp: 1;
    min-height: 0;
}

.t52-post-list .t52-post-excerpt {
    -webkit-line-clamp: 2;
    font-size: 14px;
}

/* ============================================================
   8.5 精选主题（Bento 轮播）
   ============================================================ */
.t52-featured-section {
    padding-top: 28px;
}

.t52-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.t52-slider {
    position: relative;
    height: 390px;
    border-radius: var(--t52-radius);
    overflow: hidden;
    background: #1a1a2e;
}

.t52-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity .6s var(--t52-ease);
    z-index: 0;
}

.t52-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.t52-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s linear;
}

.t52-slide.is-active .t52-slide-bg {
    transform: scale(1.05);
}

.t52-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .72));
}

.t52-slide-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    color: #fff;
}

.t52-slide-cat {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    font-size: 12px;
}

.t52-slide-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.t52-slide-price {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--t52-radius-pill);
    background: rgba(255, 255, 255, .92);
    color: var(--t52-primary);
    font-size: 14px;
    font-weight: 700;
}

.t52-slider-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.t52-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transition: all .25s var(--t52-ease);
}

.t52-slider-dot.is-active {
    width: 18px;
    border-radius: var(--t52-radius-pill);
    background: #fff;
}

.t52-bento-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.t52-bento-thumb,
.t52-bento-small {
    position: relative;
    display: block;
    border-radius: var(--t52-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.t52-bento-thumb {
    min-height: 0;
}

.t52-bento-thumb::after,
.t52-bento-small::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7));
}

.t52-bento-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t52-bento-price {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: var(--t52-radius-pill);
    background: rgba(255, 255, 255, .92);
    color: var(--t52-primary);
    font-size: 12px;
    font-weight: 700;
}

.t52-bento-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.t52-bento-small {
    aspect-ratio: 16 / 9;
}

/* ============================================================
   9. 分类精选
   ============================================================ */
.t52-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.t52-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-xs);
    overflow: hidden;
    transition: transform .25s var(--t52-ease), box-shadow .25s var(--t52-ease), border-color .25s;
}

.t52-cat-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--t52-primary-soft);
    transition: transform .35s var(--t52-ease);
}

.t52-cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--t52-primary-border);
    box-shadow: var(--t52-shadow-md);
}

.t52-cat-card:hover::after {
    transform: scale(1.3);
}

.t52-cat-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.t52-cat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--t52-primary), #8b5cf6);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.t52-cat-name {
    font-size: 17px;
    font-weight: 600;
}

.t52-cat-count {
    display: block;
    font-size: 12px;
    color: var(--t52-text-3);
    font-weight: 400;
    margin-top: 2px;
}

.t52-cat-desc {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--t52-text-3);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t52-cat-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--t52-border);
}

.t52-cat-links a {
    font-size: 13px;
    color: var(--t52-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t52-cat-links a::before {
    content: "·";
    margin-right: 6px;
    color: var(--t52-primary);
    font-weight: 700;
}

/* ============================================================
   9.5 分类精选与下载模式
   ============================================================ */
.t52-featured-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.t52-featured-cat {
    position: relative;
    display: block;
    height: 300px;
    border-radius: var(--t52-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    transition: transform .3s var(--t52-ease), box-shadow .3s var(--t52-ease);
}

.t52-featured-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--t52-shadow-md);
}

.t52-featured-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 30%, rgba(0, 0, 0, .78));
}

.t52-featured-cat-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
}

.t52-featured-cat-count {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    font-size: 12px;
}

.t52-featured-cat-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.t52-featured-cat-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
}

.t52-featured-cat-more {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.t52-cat-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.t52-cat-mini .t52-tab span {
    margin-left: 4px;
    opacity: .6;
}

.t52-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.t52-mode-card {
    padding: 26px;
    text-align: center;
    background: var(--t52-card);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-xs);
    transition: transform .25s var(--t52-ease), box-shadow .25s var(--t52-ease);
}

.t52-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t52-shadow-md);
}

.t52-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--t52-primary), #8b5cf6);
    color: #fff;
}

.t52-mode-icon svg {
    width: 24px;
    height: 24px;
}

.t52-mode-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.t52-mode-card p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--t52-text-3);
}

.t52-mode-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--t52-primary);
}

/* ============================================================
   10. 数据条
   ============================================================ */
.t52-stats {
    margin-top: 52px;
    padding: 40px 0;
    background: linear-gradient(120deg, #172554, #2340a8 55%, #6d4bd8);
    color: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.t52-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .4;
}

.t52-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.t52-stat-value {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.t52-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

/* ============================================================
   10.5 区块标题与 CTA
   ============================================================ */
.t52-cta {
    padding: 20px 0 0;
}

.t52-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 40px 44px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(120deg, #172554, #2340a8 55%, #6d4bd8);
    color: #fff;
}

.t52-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .4;
}

.t52-cta-text,
.t52-cta-actions {
    position: relative;
    z-index: 1;
}

.t52-cta-text h2 {
    font-size: 26px;
    color: #fff;
}

.t52-cta-text p {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .76);
}

.t52-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.t52-cta .t52-btn {
    background: #fff;
    color: #1f2430;
    box-shadow: none;
}

.t52-cta .t52-btn:hover {
    background: #eef2ff;
    color: var(--t52-primary);
}

.t52-cta .t52-btn--ghost {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.t52-cta .t52-btn--ghost:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ============================================================
   11. 侧边栏
   ============================================================ */
.t52-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--t52-header-h) + 20px);
}

.t52-widget {
    padding: 20px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-xs);
}

.t52-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.t52-widget-title::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--t52-primary);
}

/* 区块小工具 */
.t52-widget.widget_block .wp-block-group,
.t52-widget.widget_block .wp-block-search,
.t52-widget.widget_block .wp-block-latest-posts,
.t52-widget.widget_block .wp-block-categories,
.t52-widget.widget_block .wp-block-archives {
    margin: 0;
}

.t52-widget .wp-block-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.4;
}

.t52-widget .wp-block-heading::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--t52-primary);
}

.t52-widget .wp-block-group__inner-container > :first-child {
    margin-top: 0;
}

.t52-widget .wp-block-group__inner-container > :last-child {
    margin-bottom: 0;
}

/* 区块搜索 */
.t52-widget .wp-block-search__label {
    display: none;
}

.t52-widget .wp-block-search__inside-wrapper {
    display: flex;
    gap: 8px;
}

.t52-widget .wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--t52-border-strong);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    color: var(--t52-text);
    font-size: 14px;
}

.t52-widget .wp-block-search__input:focus {
    outline: none;
    border-color: var(--t52-primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, .12);
}

.t52-widget .wp-block-search__button {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.t52-widget .wp-block-search__button:hover {
    background: var(--t52-primary-hover);
}

/* 区块最新文章 */
.t52-widget .wp-block-latest-posts {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.t52-widget .wp-block-latest-posts li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--t52-border);
    font-size: 14px;
    line-height: 1.6;
    list-style: none;
}

.t52-widget .wp-block-latest-posts li:first-child {
    padding-top: 0;
}

.t52-widget .wp-block-latest-posts li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.t52-widget .wp-block-latest-posts a {
    display: flex;
    gap: 8px;
    color: var(--t52-text-2);
    text-decoration: none;
}

.t52-widget .wp-block-latest-posts a::before {
    content: "";
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    margin-top: .62em;
    border-radius: 50%;
    background: var(--t52-primary);
}

.t52-widget .wp-block-latest-posts a:hover {
    color: var(--t52-primary);
}

/* 区块分类 / 归档 */
.t52-widget .wp-block-categories,
.t52-widget .wp-block-archives {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.t52-widget .wp-block-categories li,
.t52-widget .wp-block-archives li {
    margin: 0;
    list-style: none;
}

.t52-widget .wp-block-categories a,
.t52-widget .wp-block-archives a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--t52-text-2);
    text-decoration: none;
    transition: background .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-widget .wp-block-categories a:hover,
.t52-widget .wp-block-archives a:hover {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

.t52-author-card {
    text-align: center;
}

.t52-author-avatar img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
    border: 3px solid var(--t52-card);
    box-shadow: 0 0 0 1px var(--t52-border);
}

.t52-author-name {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
}

.t52-author-desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--t52-border);
}

.t52-author-stat b {
    display: block;
    font-size: 17px;
}

.t52-author-stat span {
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-hot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t52-hot-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.t52-hot-index {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--t52-text-3);
    background: var(--t52-bg);
}

.t52-hot-item:nth-child(1) .t52-hot-index {
    background: var(--t52-primary);
    color: #fff;
}

.t52-hot-item:nth-child(2) .t52-hot-index {
    background: rgba(74, 108, 247, .65);
    color: #fff;
}

.t52-hot-item:nth-child(3) .t52-hot-index {
    background: rgba(74, 108, 247, .35);
    color: #fff;
}

.t52-hot-title {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t52-hot-date {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t52-tag-cloud a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    font-size: 12px;
    color: var(--t52-text-2);
}

.t52-tag-cloud a:hover {
    background: var(--t52-primary-soft);
    border-color: var(--t52-primary-border);
    color: var(--t52-primary);
}

/* ============================================================
   11.5 主题商品
   ============================================================ */
.t52-theme-thumb--download-site {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.t52-theme-thumb--corporate {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.t52-theme-thumb--resource {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.t52-theme-thumb--blog {
    background: linear-gradient(135deg, #9a3412, #f59e0b);
}

.t52-theme-thumb--tool {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
}

.t52-theme-thumb--portfolio {
    background: linear-gradient(135deg, #831843, #ec4899);
}

.t52-theme-thumb--default {
    background: linear-gradient(135deg, #3b4a8f, #6d4bd8);
}

.t52-theme-price {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--t52-radius-pill);
    background: rgba(255, 255, 255, .96);
    color: var(--t52-primary);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(8, 12, 24, .18);
}

.t52-theme-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 12px;
    color: var(--t52-text-3);
}

/* 主题详情 */
.t52-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 24px;
}

.t52-product-cover {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b4a8f, #6d4bd8);
}

.t52-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t52-product-cover .t52-post-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 92px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.t52-product-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 108, 247, .16), transparent 46%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, .16), transparent 46%),
        var(--t52-bg);
}

.t52-monitor--lg {
    width: 84%;
}

.t52-monitor--lg .t52-monitor-screen {
    border-width: 9px;
    border-bottom-width: 14px;
    border-radius: 12px;
}

.t52-monitor--lg .t52-monitor-stand {
    width: 18%;
    height: 20px;
}

.t52-monitor--lg .t52-monitor-base {
    width: 42%;
    height: 8px;
}

.t52-product-info {
    padding: 34px;
    min-width: 0;
}

.t52-product-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.t52-product-cat {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
    font-size: 12px;
    font-weight: 600;
}

.t52-product-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t52-product-platform {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    color: var(--t52-text-2);
    font-size: 12px;
}

.t52-product-updated {
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-product-title {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.35;
}

.t52-product-excerpt {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--t52-text-2);
}

.t52-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--t52-primary);
}

/* 会员价：原价划线 + 会员标签 */
.t52-price-original {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--t52-text-3);
}

.t52-price-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--t52-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: #b45309;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .28);
}

a.t52-price-tag:hover {
    color: #92400e;
    background: rgba(245, 158, 11, .2);
}

html[data-theme="dark"] .t52-price-tag {
    color: #fbbf24;
    background: rgba(251, 191, 36, .14);
    border-color: rgba(251, 191, 36, .3);
}

html[data-theme="dark"] a.t52-price-tag:hover {
    color: #fde68a;
    background: rgba(251, 191, 36, .22);
}

.t52-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t52-product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--t52-border);
    list-style: none;
}

.t52-product-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 13px;
}

.t52-product-specs span {
    color: var(--t52-text-3);
    flex: 0 0 auto;
}

.t52-product-specs b {
    font-weight: 600;
    color: var(--t52-text);
    word-break: break-all;
}

.t52-product-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-product-body {
    padding: 32px;
    margin-bottom: 24px;
}

.t52-product-features {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--t52-border);
}

.t52-product-features h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.t52-product-features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.t52-product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 14px;
    color: var(--t52-text-2);
}

.t52-product-features svg {
    flex: 0 0 auto;
    color: #10b981;
}

.t52-product-related {
    margin-top: 32px;
}

/* 插件商店 */
.t52-plugin-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.t52-post-grid > .t52-plugin-card {
    grid-column: span 2;
}

.t52-plugin-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    transition: transform .25s var(--t52-ease), box-shadow .25s var(--t52-ease);
}

.t52-plugin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--t52-shadow-sm);
}

.t52-plugin-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--t52-primary), #8b5cf6);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.t52-plugin-icon--seo {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.t52-plugin-icon--cache {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.t52-plugin-icon--media {
    background: linear-gradient(135deg, #9a3412, #f59e0b);
}

.t52-plugin-icon--security {
    background: linear-gradient(135deg, #991b1b, #ef4444);
}

.t52-plugin-icon--form {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.t52-plugin-icon--member {
    background: linear-gradient(135deg, #831843, #ec4899);
}

.t52-plugin-main {
    flex: 1;
    min-width: 0;
}

.t52-plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.t52-plugin-cat,
.t52-plugin-platform {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
    font-size: 11px;
}

.t52-plugin-platform {
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    color: var(--t52-text-3);
}

.t52-plugin-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.t52-plugin-title a {
    color: var(--t52-text);
}

.t52-plugin-title a:hover {
    color: var(--t52-primary);
}

.t52-plugin-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--t52-text-3);
}

.t52-plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--t52-text-3);
}

.t52-plugin-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.t52-plugin-side b {
    font-size: 20px;
    color: var(--t52-primary);
}

.t52-plugin-side .t52-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    box-shadow: none;
}

.t52-plugin-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.t52-plugin-hero-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

.t52-plugin-hero-info {
    flex: 1;
    min-width: 0;
}

/* 主题截图轮播 */
.t52-screens {
    margin-bottom: 24px;
    padding: 24px;
}

.t52-screens-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.t52-screens-head .t52-widget-title {
    margin: 0;
}

.t52-screens-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: var(--t52-bg);
}

.t52-screens-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-screens-tab.is-active {
    background: var(--t52-card);
    color: var(--t52-primary);
    box-shadow: var(--t52-shadow-xs);
}

.t52-screens-view[hidden] {
    display: none;
}

.t52-screens-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--t52-bg);
}

.t52-screens-track {
    display: flex;
    transition: transform .4s var(--t52-ease);
}

.t52-screen {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
}

.t52-screen img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--t52-shadow-sm);
}

.t52-screens-view[data-screens-view="mobile"] .t52-screen img {
    max-width: 260px;
    max-height: 560px;
    border: 8px solid #111827;
    border-radius: 24px;
}

.t52-screens-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--t52-text);
    font-size: 22px;
    box-shadow: var(--t52-shadow-sm);
    transform: translateY(-50%);
}

.t52-screens-prev {
    left: 10px;
}

.t52-screens-next {
    right: 10px;
}

.t52-screens-dots {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.t52-screens-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    transition: width .2s, background-color .2s;
}

.t52-screens-dot.is-active {
    width: 16px;
    background: var(--t52-primary);
}

/* ============================================================
   12. 文章页
   ============================================================ */
.t52-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-breadcrumb a {
    color: var(--t52-text-3);
}

.t52-breadcrumb a:hover {
    color: var(--t52-primary);
}

/* 文章目录：扁平列表 */
.t52-toc {
    margin: 0 0 28px;
    border: 1px solid var(--t52-border);
    border-radius: 10px;
    background: var(--t52-card);
    overflow: hidden;
}

.t52-toc summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--t52-text);
    list-style: none;
    border-bottom: 1px solid var(--t52-border);
    transition: color .2s var(--t52-ease);
}

.t52-toc summary:hover {
    color: var(--t52-primary);
}

.t52-toc:not([open]) summary {
    border-bottom-color: transparent;
}

.t52-toc summary::-webkit-details-marker {
    display: none;
}

.t52-toc summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s var(--t52-ease);
}

.t52-toc[open] summary::before {
    transform: rotate(45deg);
}

.t52-toc-title {
    flex: 0 0 auto;
}

.t52-toc-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--t52-text-3);
}

.entry-content .t52-toc-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entry-content .t52-toc-item {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--t52-border);
    list-style: none;
}

.entry-content .t52-toc-item:last-child {
    border-bottom: 0;
}

.t52-toc-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    border-radius: 2px;
    background: var(--t52-primary);
    transform: translateY(-50%);
    transition: height .2s var(--t52-ease);
}

.entry-content .t52-toc-item.is-active::before {
    height: 58%;
}

.entry-content .t52-toc-item a {
    position: relative;
    display: block;
    padding: 9px 16px 9px 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--t52-text-2);
    text-decoration: none;
    transition: color .2s var(--t52-ease), background .2s var(--t52-ease);
}

.entry-content .t52-toc-level-2 a {
    color: var(--t52-text);
}

.entry-content .t52-toc-level-3 a {
    padding-left: 34px;
    font-size: 13.5px;
}

.entry-content .t52-toc-level-4 a {
    padding-left: 50px;
    font-size: 13px;
}

.entry-content .t52-toc-item a:hover {
    background: var(--t52-bg);
    color: var(--t52-text);
}

.entry-content .t52-toc-item a.is-active {
    background: transparent;
    color: var(--t52-primary);
    font-weight: 600;
}

.t52-single-card {
    padding: 32px;
}

.t52-single-header {
    margin-bottom: 26px;
}

.t52-single-title {
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.t52-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--t52-border);
    font-size: 14px;
    color: var(--t52-text-3);
}

.t52-single-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.t52-single-cats a {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
    font-size: 12px;
}

.t52-single-meta-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.t52-single-meta-right span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.t52-single-meta-right svg {
    width: 15px;
    height: 15px;
}

.t52-single-thumb {
    margin-bottom: 26px;
    border-radius: var(--t52-radius);
    overflow: hidden;
}

.t52-single-thumb img {
    width: 100%;
}

/* 正文 */
.entry-content {
    font-size: 16px;
    line-height: 1.95;
    color: var(--t52-text);
    word-wrap: break-word;
}

.entry-content > * + * {
    margin-top: 1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.9em;
    margin-bottom: .7em;
    line-height: 1.45;
    word-break: break-word;
    scroll-margin-top: calc(var(--t52-header-h) + 24px);
}

.entry-content > h1:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child,
.entry-content > h5:first-child {
    margin-top: 0;
}

.entry-content h2 {
    font-size: 22px;
    padding-left: 12px;
    border-left: 4px solid var(--t52-primary);
}

.entry-content h3 {
    font-size: 19px;
}

.entry-content h4 {
    font-size: 17px;
}

.entry-content h5 {
    font-size: 15px;
    color: var(--t52-text-2);
}

.entry-content h6 {
    font-size: 14px;
    color: var(--t52-text-3);
}

/* 连续标题之间收紧间距，避免出现过大的空白 */
.entry-content h2 + h3,
.entry-content h3 + h4,
.entry-content h4 + h5,
.entry-content h5 + h6 {
    margin-top: .8em;
}

.entry-content a {
    color: var(--t52-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 有序列表保留序号，序号用主题色 */
.entry-content ol {
    padding-left: 1.5em;
    list-style: decimal;
}

.entry-content ol > li {
    margin: .45em 0;
}

.entry-content ol > li::marker {
    color: var(--t52-primary);
    font-weight: 600;
}

/* 无序列表：自制圆点，长文本换行自动对齐 */
.entry-content ul {
    padding-left: 0;
    list-style: none;
}

.entry-content ul > li {
    position: relative;
    margin: .5em 0;
    padding-left: 20px;
    list-style: none;
}

.entry-content ul:not(.t52-toc-list) > li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--t52-primary);
    opacity: .65;
}

/* 二级无序列表：空心点 + 缩进 */
.entry-content ul ul {
    margin: .35em 0;
    padding-left: 4px;
}

.entry-content ul ul:not(.t52-toc-list) > li::before {
    background: transparent;
    border: 1.5px solid var(--t52-primary-border);
}

.entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4em auto;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    box-shadow: var(--t52-shadow-xs);
}

.entry-content img.wp-smiley {
    display: inline;
    margin: 0;
    border: 0;
    box-shadow: none;
    vertical-align: middle;
}

.entry-content figure {
    margin: 1.6em 0;
}

.entry-content figure img {
    margin: 0 auto;
}

.entry-content .t52-zoomable {
    cursor: zoom-in;
}

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--t52-primary);
    background: var(--t52-primary-soft);
    border-radius: 0 var(--t52-radius-sm) var(--t52-radius-sm) 0;
    color: var(--t52-text-2);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    margin: 1.6em 0;
    padding: 18px 20px;
    border-radius: var(--t52-radius);
    background: #141821;
    color: #e6e9f2;
    overflow-x: auto;
    font-family: var(--t52-mono);
    font-size: 13px;
    line-height: 1.7;
    tab-size: 4;
}

.entry-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
    font-family: var(--t52-mono);
    font-size: .9em;
}

.entry-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* 代码块：语言标签 + 复制按钮 */
.t52-code-block {
    margin: 1.6em 0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--t52-radius);
    overflow: hidden;
    background: #141821;
}

.t52-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: #0f131b;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.t52-code-lang {
    font-size: 12px;
    letter-spacing: .06em;
    color: #9aa4b8;
    text-transform: uppercase;
}

.t52-code-copy {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #d7dcea;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s var(--t52-ease), border-color .2s var(--t52-ease);
}

.t52-code-copy:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .32);
}

.entry-content .t52-code-block pre {
    margin: 0;
    border-radius: 0;
    max-height: 520px;
    overflow: auto;
}

/* Highlight.js 与代码框融合 */
.entry-content .hljs {
    padding: 0;
    background: transparent;
    overflow: visible;
}

.entry-content .t52-code-block pre code {
    font-size: 13px;
}

/* 表格横向滚动 */
.t52-table-scroll {
    margin: 1.6em 0;
    overflow-x: auto;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    -webkit-overflow-scrolling: touch;
}

.t52-table-scroll table {
    min-width: 560px;
    margin: 0;
}

.t52-table-scroll th:first-child,
.t52-table-scroll td:first-child {
    border-left: 0;
}

.t52-table-scroll th:last-child,
.t52-table-scroll td:last-child {
    border-right: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--t52-border);
    text-align: left;
}

.entry-content th {
    background: var(--t52-bg);
    font-weight: 600;
}

.entry-content hr {
    border: none;
    border-top: 1px dashed var(--t52-border);
    margin: 2em 0;
}

.entry-content figcaption,
.wp-caption-text {
    font-size: 12px;
    color: var(--t52-text-3);
    text-align: center;
    margin-top: 8px;
}

/* 图片灯箱 */
body.t52-lightbox-open {
    overflow: hidden;
}

.t52-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(8, 12, 20, .9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.t52-lightbox img {
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
    object-fit: contain;
}

.t52-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.t52-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
}

/* 分享海报 */
body.t52-poster-open {
    overflow: hidden;
}

.t52-poster-overlay {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, .78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.t52-poster-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(400px, 92vw);
    max-height: 92vh;
}

.t52-poster-dialog img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.t52-poster-actions {
    display: flex;
    gap: 10px;
}

.t52-poster-save {
    box-shadow: none;
}

.t52-poster-loading {
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #e5e7eb;
    font-size: 14px;
}

@media (max-width: 640px) {
    .entry-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .entry-content h2 {
        font-size: 20px;
    }

    .entry-content h3 {
        font-size: 18px;
    }

    .entry-content pre {
        padding: 14px;
        font-size: 12px;
    }

    .t52-code-bar {
        padding: 6px 10px;
    }

    .t52-lightbox {
        padding: 14px;
    }

    .t52-lightbox-close {
        top: 10px;
        right: 12px;
    }
}

.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* 资源下载框 */
.52theme-box {
    margin: 30px 0;
    padding: 22px;
    border-radius: var(--t52-radius);
    border: 1px solid var(--t52-primary-border);
    background:
        radial-gradient(circle at 100% 0, var(--t52-primary-soft), transparent 55%),
        var(--t52-card);
}

.52theme-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.52theme-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
}

.52theme-title svg {
    width: 20px;
    height: 20px;
    color: var(--t52-primary);
}

.52theme-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
    font-size: 12px;
    font-weight: 600;
}

.52theme-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin-bottom: 18px;
}

.52theme-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--t52-bg);
    border-radius: var(--t52-radius-sm);
}

.52theme-row span {
    color: var(--t52-text-3);
    flex: 0 0 auto;
}

.52theme-row b {
    font-weight: 600;
    color: var(--t52-text);
    word-break: break-all;
}

.52theme-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.t52-resource-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.52theme-badge--price {
    background: rgba(245, 158, 11, .14);
    color: #d97706;
}

.t52-resource-locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    color: var(--t52-text-2);
    font-size: 13px;
}

.t52-resource-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border-radius: var(--t52-radius-sm);
    border: 1px dashed var(--t52-primary-border);
    background: var(--t52-primary-soft);
}

.t52-resource-buy-text {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-resource-buy-text strong {
    font-size: 15px;
    color: var(--t52-text);
}

.52theme-read-box {
    margin: 26px 0;
    padding: 22px;
    border-radius: var(--t52-radius);
    border: 1px dashed var(--t52-primary-border);
    background:
        radial-gradient(circle at 0 0, var(--t52-primary-soft), transparent 60%),
        var(--t52-card);
}

.52theme-read-box.is-open {
    border-style: solid;
    background: var(--t52-card);
}

.52theme-read-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--t52-text);
}

.52theme-read-head svg {
    color: var(--t52-primary);
}

.52theme-read-desc {
    margin: 10px 0;
    font-size: 14px;
    color: var(--t52-text-2);
}

.52theme-read-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--t52-text-3);
}

.52theme-read-meta b {
    color: #d97706;
    font-size: 16px;
}

.52theme-read-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* 回复可见提示框 */
.52theme-read-box--reply {
    border-color: rgba(245, 158, 11, .35);
    background:
        radial-gradient(circle at 0 0, rgba(245, 158, 11, .12), transparent 60%),
        var(--t52-card);
}

.52theme-read-box--reply .52theme-read-head svg {
    color: #f59e0b;
}

.t52-download-quota {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.t52-download-quota > div {
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t52-download-quota span {
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-download-quota b {
    font-size: 17px;
    color: var(--t52-text);
}

@media (max-width: 640px) {
    .t52-download-quota {
        grid-template-columns: 1fr;
    }

    .t52-resource-buy {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 推广中心 */
.t52-promo-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.t52-promo-stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t52-promo-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
}

.t52-promo-stat span {
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-promo-stat b {
    font-size: 18px;
    color: var(--t52-text);
}

.t52-promo-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    border: 1px dashed var(--t52-primary-border);
    background: var(--t52-primary-soft);
}

.t52-promo-link-title {
    flex: 0 0 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--t52-text-2);
}

.t52-promo-link input {
    flex: 1 1 260px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--t52-border-strong);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-card);
    color: var(--t52-text);
    font-size: 13px;
}

.t52-promo-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-promo-title {
    margin: 26px 0 12px;
    font-size: 16px;
}

.t52-promo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.t52-promo-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-promo-form-grid input,
.t52-promo-form-grid select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--t52-border-strong);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-card);
    color: var(--t52-text);
}

.t52-promo-form-wide {
    grid-column: 1 / -1;
}

.t52-promo-withdraw {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
}

.t52-promo-withdraw > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-promo-withdraw strong {
    font-size: 16px;
    color: var(--t52-text);
}

.t52-promo-amount {
    color: #16a34a;
    font-size: 14px;
}

@media (max-width: 900px) {
    .t52-promo-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-promo-stats--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .t52-promo-form-grid {
        grid-template-columns: 1fr;
    }
}

.t52-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 22px;
    border-radius: var(--t52-radius-pill);
    font-size: 14px;
    font-weight: 600;
    background: var(--t52-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(74, 108, 247, .28);
    transition: all .2s var(--t52-ease);
}

.t52-btn svg {
    width: 17px;
    height: 17px;
}

.t52-btn:hover {
    background: var(--t52-primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

.t52-btn--ghost {
    background: var(--t52-card);
    color: var(--t52-text-2);
    border: 1px solid var(--t52-border);
    box-shadow: none;
}

.t52-btn--ghost:hover {
    background: var(--t52-primary-soft);
    border-color: var(--t52-primary-border);
    color: var(--t52-primary);
}

.52theme-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--t52-text-3);
}

/* 文章底部 */
.t52-single-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--t52-border);
}

.t52-single-actions-left,
.t52-single-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t52-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--t52-radius-pill);
    border: 1px solid var(--t52-border);
    background: var(--t52-card);
    font-size: 13px;
    color: var(--t52-text-2);
    transition: all .2s var(--t52-ease);
}

.t52-action-pill svg {
    width: 16px;
    height: 16px;
}

.t52-action-pill:hover,
.t52-action-pill.is-active {
    color: var(--t52-primary);
    border-color: var(--t52-primary-border);
    background: var(--t52-primary-soft);
}

.t52-single-copyright {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-single-copyright strong {
    display: block;
    margin-bottom: 6px;
    color: var(--t52-text-2);
    font-size: 13px;
}

.t52-single-copyright p {
    margin: 0;
    line-height: 1.9;
    word-break: break-all;
}

/* 上下篇 */
.t52-single-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.t52-single-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    box-shadow: var(--t52-shadow-xs);
    transition: all .2s var(--t52-ease);
}

.t52-single-nav-item:hover {
    border-color: var(--t52-primary-border);
    box-shadow: var(--t52-shadow-sm);
    transform: translateY(-2px);
}

.t52-single-nav-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-single-nav-title {
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t52-single-nav-date {
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-single-nav-next {
    text-align: right;
}

.t52-single-nav-next .t52-single-nav-label {
    justify-content: flex-end;
}

.t52-single-nav-empty {
    opacity: .6;
}

/* 相关文章 */
.t52-related {
    margin-top: 26px;
}

.t52-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.t52-related-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    transition: all .2s var(--t52-ease);
}

.t52-related-item:hover {
    border-color: var(--t52-primary-border);
    box-shadow: var(--t52-shadow-sm);
}

.t52-related-thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 56px;
    border-radius: var(--t52-radius-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #3b4a8f, #6d4bd8);
}

.t52-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t52-related-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    font-weight: 700;
}

.t52-related-title {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   13. 分类页 / 搜索页 / 页面 / 404
   ============================================================ */
.t52-archive-hero {
    position: relative;
    padding: calc(var(--t52-header-h) + 42px) 24px 42px;
    background: linear-gradient(120deg, #172554, #2340a8 55%, #6d4bd8);
    color: #fff;
    overflow: hidden;
}

.t52-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .45;
}

.t52-archive-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--t52-container);
    margin: 0 auto;
}

.t52-archive-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: 26px;
    font-weight: 700;
}

.t52-archive-title {
    font-size: 30px;
    color: #fff;
}

.t52-archive-desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .76);
}

.t52-archive-count {
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin-left: 8px;
    padding: 0 10px;
    border-radius: var(--t52-radius-pill);
    background: rgba(255, 255, 255, .16);
    font-size: 12px;
    vertical-align: middle;
}

.t52-archive-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.t52-filter-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.t52-filter-label {
    flex: 0 0 64px;
    padding-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--t52-text-3);
}

.t52-filter-block .t52-archive-filter {
    flex: 1;
    margin-bottom: 0;
}

.t52-archive-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

/* 搜索：类型筛选 */
.t52-search-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: var(--t52-container);
    margin: 22px auto 0;
}

.t52-search-tab {
    padding: 6px 16px;
    border-radius: var(--t52-radius-pill);
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.t52-search-tab:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.t52-search-tab.is-active {
    background: #fff;
    border-color: #fff;
    color: #1f2937;
}

.t52-search-empty-form {
    max-width: 520px;
    margin: 24px auto 0;
}

.t52-search-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.t52-empty {
    padding: 70px 24px;
    text-align: center;
    background: var(--t52-card);
    border: 1px dashed var(--t52-border-strong);
    border-radius: var(--t52-radius);
    color: var(--t52-text-3);
}

.t52-empty svg {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    color: var(--t52-text-3);
    opacity: .5;
}

.t52-empty h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--t52-text);
}

/* 分页 */
.t52-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.t52-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 4px;
    padding: 0 12px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    font-size: 14px;
    color: var(--t52-text-2);
    transition: all .2s var(--t52-ease);
}

.t52-pagination .page-numbers:hover {
    color: var(--t52-primary);
    border-color: var(--t52-primary-border);
}

.t52-pagination .page-numbers.current {
    background: var(--t52-primary);
    border-color: var(--t52-primary);
    color: #fff;
}

.t52-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* 页面 / 404 */
.t52-page-card {
    padding: 36px;
}

.t52-page-title {
    font-size: 28px;
    margin-bottom: 22px;
}

.t52-404 {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.t52-404-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--t52-primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.t52-404 h1 {
    margin-top: 16px;
    font-size: 24px;
}

.t52-404 p {
    margin-top: 10px;
    color: var(--t52-text-3);
}

/* 评论 */
.t52-comments {
    margin-top: 24px;
    padding: 28px 32px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-list .children {
    list-style: none;
    padding-left: 24px;
}

.comment-body {
    padding: 16px 0;
    border-top: 1px solid var(--t52-border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    margin: 4px 0 8px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.comment-content {
    font-size: 14px;
    color: var(--t52-text-2);
}

.comment-respond {
    margin-top: 24px;
}

.comment-reply-title {
    font-size: 18px;
    margin-bottom: 14px;
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.comment-form p {
    margin: 0;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-url,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    outline: none;
    transition: border-color .2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--t52-primary);
}

.comment-form .submit,
.t52-comments .submit {
    height: 40px;
    padding: 0 24px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary);
    color: #fff;
    font-weight: 600;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--t52-text-3);
}

.comment-form .required {
    color: #ef4444;
}

.comment-reply {
    margin-top: 8px;
    font-size: 12px;
}

.comment-reply-link {
    color: var(--t52-primary);
    font-weight: 500;
}

/* ============================================================
   13.5 登录与用户中心
   ============================================================ */
.t52-auth-wrap {
    max-width: 760px;
    margin: 32px auto 56px;
}

.t52-auth-shell {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 520px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .12);
    overflow: hidden;
}

.t52-auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 28px;
    background: linear-gradient(150deg, #172554, #2340a8 55%, #6d4bd8);
    color: #fff;
    overflow: hidden;
}

.t52-auth-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .35;
    pointer-events: none;
}

.t52-auth-intro-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.t52-auth-intro-body {
    position: relative;
    z-index: 1;
}

.t52-auth-intro-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #fff;
}

.t52-auth-intro-desc {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
}

.t52-auth-intro-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.t52-auth-intro-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.t52-auth-intro-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.t52-auth-intro-icon svg {
    width: 18px;
    height: 18px;
}

.t52-auth-intro-item h4 {
    margin: 0 0 3px;
    font-size: 14px;
    color: #fff;
}

.t52-auth-intro-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
}

.t52-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 30px 28px;
}

.t52-auth-header {
    margin-bottom: 22px;
    text-align: center;
}

.t52-auth-header .t52-auth-desc {
    margin: 0;
}

.t52-auth-panel .t52-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.t52-auth-panel .t52-auth-field label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--t52-text-2);
}

.t52-auth-panel .t52-auth-field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--t52-border);
    border-radius: 6px;
    background: var(--t52-bg);
    outline: none;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.t52-auth-panel .t52-auth-field input:focus {
    border-color: var(--t52-primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, .12);
}

.t52-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 18px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-auth-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-auth-check input,
.t52-auth-terms input {
    accent-color: var(--t52-primary);
}

.t52-auth-link {
    color: var(--t52-primary);
    font-size: 13px;
}

.t52-auth-submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--t52-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}

.t52-auth-submit:hover {
    background: var(--t52-primary-hover);
}

.t52-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 18px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--t52-text-3);
}

.t52-auth-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--t52-border);
    text-align: center;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-auth-footer a {
    color: var(--t52-primary);
    font-weight: 500;
}

/* 登录注册弹窗 */
.t52-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--t52-ease), visibility .25s;
}

.t52-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.t52-auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 24, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.t52-auth-dialog {
    position: relative;
    z-index: 1;
    width: 760px;
    max-width: 96vw;
    max-height: 90vh;
    overflow: auto;
    transform: translateY(14px);
    transition: transform .3s var(--t52-ease);
}

.t52-auth-modal.is-open .t52-auth-dialog {
    transform: translateY(0);
}

.t52-auth-dialog .t52-auth-shell {
    min-height: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.t52-auth-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1f2430;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.t52-auth-modal-close:hover {
    background: #fff;
    color: var(--t52-primary);
}

.t52-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 8px;
    background: var(--t52-bg);
}

.t52-auth-tab {
    flex: 1;
    height: 34px;
    border-radius: 6px;
    color: var(--t52-text-2);
    font-size: 14px;
}

.t52-auth-tab.is-active {
    background: var(--t52-card);
    color: var(--t52-primary);
    box-shadow: var(--t52-shadow-xs);
}

.t52-auth-view[hidden] {
    display: none;
}

.t52-auth-switch {
    padding: 0;
    border: none;
    background: none;
    color: var(--t52-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.t52-auth-switch:hover {
    opacity: .8;
}

.t52-auth-error.is-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

/* 购买弹窗 */
.t52-buy-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--t52-ease), visibility .25s;
}

.t52-buy-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.t52-buy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 16, 24, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.t52-buy-dialog {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: 94vw;
    max-height: 90vh;
    padding: 28px;
    overflow: auto;
    background: var(--t52-card);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
    text-align: center;
}

.t52-buy-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--t52-bg);
    color: var(--t52-text);
    font-size: 21px;
    line-height: 1;
}

.t52-buy-title {
    margin: 0 0 8px;
    padding: 0 24px;
    font-size: 18px;
}

.t52-buy-price {
    margin-bottom: 16px;
    color: var(--t52-primary);
    font-size: 28px;
    font-weight: 700;
}

.t52-buy-qr img {
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
    padding: 8px;
    border: 1px solid var(--t52-border);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.t52-buy-note {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--t52-text-3);
}

.t52-buy-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.t52-buy-tip {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--t52-text-3);
}

.t52-auth-card {
    padding: 36px;
}

.t52-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 800;
}

.t52-auth-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.t52-auth-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--t52-text-2);
}

.t52-auth-error {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

.t52-auth-success {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 13px;
    line-height: 1.7;
}

.t52-auth-card .login-username,
.t52-auth-card .login-password,
.t52-auth-card .login-remember {
    margin-bottom: 14px;
}

.t52-auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-auth-card input[type="text"],
.t52-auth-card input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--t52-border);
    border-radius: 6px;
    background: var(--t52-bg);
    outline: none;
    transition: border-color .2s;
}

.t52-auth-card input[type="text"]:focus,
.t52-auth-card input[type="password"]:focus {
    border-color: var(--t52-primary);
}

.t52-auth-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.t52-auth-card .login-submit {
    margin: 20px 0 0;
}

.t52-auth-card .login-submit input {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.t52-auth-card .login-submit input:hover {
    background: var(--t52-primary-hover);
}

.t52-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 13px;
}

.t52-auth-links a {
    color: var(--t52-text-2);
}

.t52-auth-links a:hover {
    color: var(--t52-primary);
}

.t52-main.t52-account-page {
    padding-top: calc(var(--t52-header-h) + 28px);
}

.t52-notice {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--t52-radius);
    font-size: 14px;
    border: 1px solid transparent;
}

.t52-notice.is-toast {
    position: fixed;
    top: calc(var(--t52-header-h) + 16px);
    left: 50%;
    right: auto;
    z-index: 1200;
    width: max-content;
    max-width: min(92vw, 460px);
    margin: 0;
    box-shadow: var(--t52-shadow-md);
    transform: translateX(-50%);
    transition: opacity .25s var(--t52-ease), transform .25s var(--t52-ease);
}

.t52-notice.is-toast.is-hiding {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

.t52-notice--success {
    background: rgba(16, 185, 129, .1);
    border-color: rgba(16, 185, 129, .25);
    color: #047857;
}

.t52-notice--error {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .25);
    color: #b91c1c;
}

html[data-theme="dark"] .t52-notice--success {
    color: #34d399;
}

html[data-theme="dark"] .t52-notice--error {
    color: #f87171;
}

.t52-account-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 34px 24px 26px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, var(--t52-primary-soft), transparent 62%),
        var(--t52-card);
}

.t52-account-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--t52-card);
    border: 4px solid var(--t52-card);
    box-shadow: var(--t52-shadow-sm);
}

.t52-account-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t52-account-hero-name {
    margin: 14px 0 0;
    font-size: 20px;
}

.t52-account-hero-email {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--t52-text-3);
    word-break: break-all;
}

.t52-account-hero-joined {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-account-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--t52-text-2);
}

.t52-account-chips > span {
    padding: 2px 10px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-bg);
}

.t52-account-chips .t52-account-level {
    padding: 2px 10px;
}

.t52-account-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.t52-account-hero-actions .t52-btn[disabled] {
    opacity: .6;
    cursor: default;
}

.t52-account {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.t52-account-side {
    position: sticky;
    top: calc(var(--t52-header-h) + 18px);
}

.t52-account-level {
    padding: 1px 8px;
    border-radius: var(--t52-radius-pill);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* 用户中心数据总览 */
.t52-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.t52-dashboard[hidden] {
    display: none;
}

.t52-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.t52-dash-stat {
    padding: 18px 20px;
}

.t52-dash-stat > span {
    display: block;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-dash-stat b {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
}

.t52-dash-stat b em {
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    color: var(--t52-text-3);
}

.t52-dash-block {
    padding: 24px 26px;
}

.t52-dash-block-head {
    margin-bottom: 18px;
}

.t52-dash-block-head h2 {
    font-size: 17px;
}

.t52-dash-list {
    display: flex;
    flex-direction: column;
}

.t52-dash-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--t52-border);
    font-size: 14px;
}

.t52-dash-list li:last-child {
    border-bottom: 0;
}

.t52-dash-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    color: var(--t52-text-2);
}

.t52-dash-list-icon svg {
    width: 16px;
    height: 16px;
}

.t52-dash-list-label {
    flex: 1 1 auto;
    color: var(--t52-text-2);
}

.t52-dash-list b {
    font-size: 15px;
}

.t52-dash-list-arrow {
    width: 14px;
    height: 14px;
    color: var(--t52-text-3);
    opacity: .7;
}

.t52-dash-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.t52-dash-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    color: var(--t52-text-2);
    font-size: 13px;
    font-weight: 500;
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-dash-quick-item svg {
    width: 20px;
    height: 20px;
}

.t52-dash-quick-item:hover {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

/* 用户中心列表 */
.t52-account-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t52-account-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 14px;
}

.t52-account-list li a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t52-account-list li > span {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-account-list--comment li > div {
    min-width: 0;
}

.t52-account-list--comment li a {
    display: block;
    white-space: normal;
    line-height: 1.6;
}

.t52-account-list--comment li > div span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-account-empty > svg {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    color: var(--t52-text-3);
}

.t52-account-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.t52-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--t52-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--t52-text-2);
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-menu-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: .82;
}

.t52-menu-link:hover,
.t52-menu-link.is-active {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

.t52-menu-link.is-active {
    font-weight: 600;
}

.t52-menu-group {
    display: flex;
    flex-direction: column;
}

.t52-menu-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--t52-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--t52-text-2);
    text-align: left;
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-menu-group-head:hover {
    background: var(--t52-bg);
    color: var(--t52-text);
}

.t52-menu-group-head svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    opacity: .82;
}

.t52-menu-group-head .t52-menu-group-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: .6;
    transition: transform .25s var(--t52-ease);
}

.t52-menu-group.is-open .t52-menu-group-arrow {
    transform: rotate(180deg);
}

.t52-menu-group-body {
    display: none;
    margin: 2px 0 4px 18px;
    padding-left: 10px;
    border-left: 1px solid var(--t52-border);
}

.t52-menu-group.is-open .t52-menu-group-body {
    display: block;
}

.t52-menu-group-body a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--t52-radius-sm);
    font-size: 13px;
    color: var(--t52-text-2);
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-menu-group-body a:hover,
.t52-menu-group-body a.is-active {
    background: var(--t52-primary-soft);
    color: var(--t52-primary);
}

.t52-menu-group-body a.is-active {
    font-weight: 600;
}

.t52-account-menu-tag {
    margin-left: auto;
    min-width: 20px;
    padding: 0 6px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 20px;
    text-align: center;
}

.t52-account-logout {
    margin-top: 4px;
    border-top: 1px solid var(--t52-border);
    border-radius: 0 0 var(--t52-radius-sm) var(--t52-radius-sm);
    color: #ef4444;
}

.t52-account-logout:hover {
    background: rgba(239, 68, 68, .08);
    color: #dc2626;
}

.t52-account-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.t52-account-panel {
    padding: 28px;
}

.t52-account-panel[hidden] {
    display: none;
}

.t52-panel-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--t52-border);
}

.t52-panel-head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.t52-panel-head h1,
.t52-panel-head h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

.t52-panel-head p {
    margin: 0;
    font-size: 13px;
    color: var(--t52-text-2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.t52-account-panel h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.t52-account-panel h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.t52-panel-head h2 {
    margin-bottom: 6px;
}

.t52-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.t52-profile-grid {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.t52-avatar-field {
    text-align: center;
}

.t52-avatar-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
}

.t52-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t52-avatar-upload {
    display: inline-flex;
    cursor: pointer;
}

.t52-form-hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--t52-text-3);
}

.t52-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.t52-form-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
}

.t52-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t52-form-field--full {
    grid-column: 1 / -1;
}

.t52-form-field > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--t52-text-2);
}

.t52-form-field > span em {
    color: #ef4444;
    font-style: normal;
}

.t52-form-field input,
.t52-form-field select,
.t52-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 14px;
    color: var(--t52-text);
    transition: border-color .2s var(--t52-ease), box-shadow .2s var(--t52-ease);
}

.t52-form-field input:focus,
.t52-form-field select:focus,
.t52-form-field textarea:focus {
    outline: none;
    border-color: var(--t52-primary);
    box-shadow: 0 0 0 3px var(--t52-primary-soft);
}

.t52-form-field textarea {
    resize: vertical;
    min-height: 96px;
}

.t52-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 14px;
    cursor: pointer;
}

.t52-form-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--t52-primary);
}

/* 投稿：文章 / 资源切换 */
.t52-submit-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-bg);
}

.t52-submit-tabs button {
    padding: 7px 18px;
    border-radius: var(--t52-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--t52-text-2);
    transition: background-color .2s var(--t52-ease), color .2s var(--t52-ease);
}

.t52-submit-tabs button.is-active {
    background: var(--t52-card);
    color: var(--t52-primary);
    box-shadow: var(--t52-shadow-xs);
}

.t52-submit-history {
    margin: 26px 0 12px;
}

.t52-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.t52-form-actions .t52-btn {
    padding: 9px 22px;
}

.t52-account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--t52-border);
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-account-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-account-tip strong {
    color: var(--t52-text);
}

.t52-account-tip .t52-link {
    margin-left: auto;
    color: var(--t52-primary);
    font-weight: 600;
}

.t52-account-empty {
    padding: 36px 28px;
    border: 1px dashed var(--t52-border-strong);
    border-radius: var(--t52-radius);
    text-align: center;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-account-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--t52-text-2);
}

.t52-account-empty p {
    margin: 0 0 16px;
}

/* 工单 */
.t52-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.t52-ticket-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    color: inherit;
}

.t52-ticket-row:hover {
    border-color: var(--t52-primary-border);
    background: var(--t52-card);
    color: inherit;
}

.t52-ticket-row-main {
    min-width: 0;
    flex: 1 1 auto;
}

.t52-ticket-row-main b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t52-ticket-row-main span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-ticket-arrow {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--t52-text-3);
}

.t52-ticket-badge {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: var(--t52-radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--t52-bg);
    color: var(--t52-text-2);
}

.t52-ticket-badge--open {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.t52-ticket-badge--progress {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

.t52-ticket-badge--closed {
    background: rgba(107, 114, 128, .12);
    color: #4b5563;
}

html[data-theme="dark"] .t52-ticket-badge--open {
    color: #fbbf24;
}

html[data-theme="dark"] .t52-ticket-badge--progress {
    color: #60a5fa;
}

html[data-theme="dark"] .t52-ticket-badge--closed {
    color: #9ca3af;
}

.t52-ticket-back {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--t52-text-2);
}

.t52-ticket-back:hover {
    color: var(--t52-primary);
}

.t52-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t52-ticket-msg {
    padding: 16px 18px;
    border-radius: var(--t52-radius);
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
}

.t52-ticket-msg.is-staff {
    background: var(--t52-primary-soft);
    border-color: var(--t52-primary-border);
}

.t52-ticket-msg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.t52-ticket-msg-head img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.t52-ticket-msg-head b {
    display: block;
    font-size: 13px;
}

.t52-ticket-msg-head span {
    display: block;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-ticket-staff-tag {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}

.t52-ticket-msg-body {
    font-size: 14px;
    line-height: 1.75;
    color: var(--t52-text);
    word-break: break-word;
}

.t52-ticket-msg-body p:last-child {
    margin-bottom: 0;
}

.t52-ticket-reply,
.t52-ticket-new {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--t52-border);
}

.t52-ticket-new {
    margin-top: 0;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
}

/* ============================================================
   14. 页脚
   ============================================================ */
.t52-footer {
    margin-top: 48px;
    background: var(--t52-bg);
    border-top: 1px solid var(--t52-border);
    color: var(--t52-text-2);
    font-size: 13px;
}

.t52-footer-main {
    padding: 40px 0 32px;
}

.t52-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 28px 24px;
}

.t52-footer-grid.has-contact {
    grid-template-columns: 1.6fr repeat(4, 1fr) 1.1fr;
}

.t52-footer-brand-logo {
    margin-bottom: 14px;
}

.t52-footer-brand-logo img {
    height: 32px;
    width: auto;
}

.t52-footer-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--t52-text);
}

.t52-footer-desc {
    line-height: 1.8;
    color: var(--t52-text-3);
    max-width: 320px;
}

.t52-footer-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--t52-text);
}

.t52-footer-links li {
    margin-bottom: 10px;
}

.t52-footer-links a {
    color: var(--t52-text-2);
    transition: color .2s;
}

.t52-footer-links a:hover {
    color: var(--t52-primary);
}

.t52-footer-contact {
    display: flex;
    gap: 14px;
}

.t52-footer-qr {
    text-align: center;
}

.t52-footer-qr img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: var(--t52-card);
    border: 1px solid var(--t52-border);
    padding: 4px;
    object-fit: cover;
}

.t52-footer-qr span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-footer-bottom {
    border-top: 1px solid var(--t52-border);
    padding: 16px 0;
}

.t52-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--t52-text-3);
    font-size: 13px;
}

.t52-footer-bottom-inner a {
    color: var(--t52-text-3);
}

.t52-footer-bottom-inner a:hover {
    color: var(--t52-primary);
}

.t52-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================================
   15. 移动端底栏
   ============================================================ */
.t52-mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--t52-card);
    border-top: 1px solid var(--t52-border);
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .1);
    transition: transform .3s var(--t52-ease);
}

/* 向下滚动时收起，避免遮挡卡片价格等内容 */
.t52-mobile-bar.is-hidden {
    transform: translateY(100%);
}

body.t52-no-scroll .t52-mobile-bar {
    transform: none;
}

.t52-mobile-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 58px;
}

.t52-mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--t52-text-3);
}

.t52-mobile-bar-item svg {
    width: 21px;
    height: 21px;
}

.t52-mobile-bar-item.is-active,
.t52-mobile-bar-item:hover {
    color: var(--t52-primary);
}

/* ============================================================
   15. 商城与支付
   ============================================================ */
.t52-checkout-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t52-gateway-select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--t52-border-strong);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-card);
    font-size: 14px;
    color: var(--t52-text);
}

.t52-main.t52-pay-page {
    padding-top: calc(var(--t52-header-h) + 40px);
}

.t52-pay-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px;
}

.t52-pay-card h1 {
    margin: 0 0 20px;
    font-size: 22px;
    text-align: center;
}

.t52-pay-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: var(--t52-radius);
    background: var(--t52-bg);
    font-size: 14px;
}

.t52-pay-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.t52-pay-summary span {
    color: var(--t52-text-3);
    font-size: 13px;
}

.t52-pay-summary b {
    text-align: right;
}

.t52-pay-price {
    font-size: 20px;
    color: #ef4444;
}

.t52-pay-discount {
    color: #16a34a;
}

.t52-pay-status {
    padding: 2px 10px;
    border-radius: var(--t52-radius-pill);
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
}

.t52-pay-status--pending {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.t52-pay-status--paid {
    background: rgba(16, 185, 129, .12);
    color: #047857;
}

.t52-pay-status--closed,
.t52-pay-status--refunded {
    background: rgba(107, 114, 128, .12);
    color: #4b5563;
}

.t52-pay-pending,
.t52-pay-result {
    margin-top: 22px;
    text-align: center;
}

.t52-pay-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    margin: 0 auto 14px;
}

.t52-pay-qr img,
.t52-pay-qr canvas {
    border-radius: 8px;
}

.t52-pay-tip {
    font-size: 14px;
    color: var(--t52-text);
}

.t52-pay-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--t52-text-3);
}

.t52-pay-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.t52-order-row {
    min-width: 0;
}

.t52-order-row > a {
    display: block;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t52-order-row > span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-order-side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.t52-order-side .t52-link {
    font-size: 13px;
    color: var(--t52-primary);
    font-weight: 600;
}

.t52-checkout-form input[name="coupon"] {
    height: 40px;
    width: 150px;
    padding: 0 12px;
    border: 1px solid var(--t52-border-strong);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-card);
    font-size: 14px;
}

.t52-vip-status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--t52-radius);
    background: var(--t52-bg);
}

.t52-vip-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.t52-vip-badge--none {
    background: var(--t52-border-strong);
    color: var(--t52-text-2);
}

.t52-vip-status b {
    display: block;
    font-size: 16px;
}

.t52-vip-status div span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--t52-text-3);
}

/* 会员权益对比 */
.t52-vip-compare {
    margin-bottom: 18px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    overflow: hidden;
}

.t52-vip-compare-head,
.t52-vip-compare ul li {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
}

.t52-vip-compare-head {
    background: var(--t52-bg);
    font-weight: 600;
    color: var(--t52-text-2);
}

.t52-vip-compare ul li {
    border-top: 1px solid var(--t52-border);
    color: var(--t52-text-2);
}

.t52-vip-compare ul li > span:first-child {
    font-weight: 600;
    color: var(--t52-text);
}

.t52-vip-compare .is-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--t52-primary);
}

.t52-vip-compare-head .is-vip {
    color: var(--t52-primary);
}

.t52-vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.t52-vip-plan {
    padding: 20px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    background: var(--t52-card);
}

.t52-vip-plan--upgrade {
    border-color: var(--t52-primary-border);
    background: var(--t52-primary-soft);
}

.t52-vip-plan h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.t52-vip-price {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
}

.t52-vip-plan > p {
    margin: 4px 0 14px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-vip-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t52-vip-form select,
.t52-vip-form input[type="text"] {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 13px;
}

.t52-vip-form .t52-btn {
    width: 100%;
}

.t52-coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.t52-coupon-card {
    position: relative;
    padding: 16px;
    border: 1px solid var(--t52-border);
    border-radius: var(--t52-radius);
    background: var(--t52-card);
}

.t52-coupon-card.is-used,
.t52-coupon-card.is-expired {
    opacity: .6;
}

.t52-coupon-value {
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
}

.t52-coupon-info {
    margin-top: 6px;
}

.t52-coupon-info b {
    display: block;
    font-size: 14px;
}

.t52-coupon-info span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--t52-text-3);
}

.t52-coupon-code {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.t52-coupon-code code {
    flex: 1;
    padding: 6px 8px;
    border-radius: var(--t52-radius-sm);
    background: var(--t52-bg);
    font-size: 12px;
}

.t52-coupon-code button {
    border: 0;
    background: none;
    color: var(--t52-primary);
    font-size: 12px;
    cursor: pointer;
}

.t52-coupon-state {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-style: normal;
    color: var(--t52-text-3);
}

/* ============================================================
   16. 响应式
   ============================================================ */
@media (max-width: 1180px) {
    .t52-footer-grid,
    .t52-footer-grid.has-contact {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }

    .t52-footer-contact-col {
        grid-column: span 1;
    }
}

@media (max-width: 960px) {
    .t52-nav {
        display: none;
    }

    .t52-menu-toggle {
        display: inline-flex;
    }

    .t52-header-inner {
        gap: 12px;
    }

    .t52-auth-buttons {
        display: none;
    }

    .t52-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-archive-posts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .t52-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-hero-title {
        font-size: 32px;
    }

    .t52-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-slider {
        height: 300px;
    }

    .t52-bento-side {
        display: none;
    }

    .t52-bento-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .t52-product-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-product-cover {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }

    .t52-container,
    .t52-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .t52-header {
        --t52-header-h: 56px;
    }

    :root {
        --t52-header-h: 56px;
    }

    .t52-mobile-bar {
        display: block;
    }

    .t52-main {
        padding: 20px 0 40px;
    }

    .t52-hero {
        min-height: 260px;
        padding: 0;
    }

    .t52-hero-title {
        font-size: 28px;
    }

    .t52-hero-subtitle {
        font-size: 14px;
    }

    .t52-hero-search {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .t52-hero .t52-search-form {
        padding: 5px 6px 5px 16px;
    }

    .t52-hero .t52-search-form input[type="search"] {
        font-size: 14px;
        padding: 9px 0;
    }

    .t52-search-submit {
        height: 38px;
        padding: 0 14px;
    }

    .t52-search-submit span {
        display: none;
    }

    .t52-hero-keywords {
        gap: 8px;
        margin-top: 0;
    }

    .t52-keyword-tag {
        font-size: 12px;
        padding: 5px 11px;
    }

    .t52-hero-quick {
        padding: 0 16px 24px;
    }

    .t52-hero-quick-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .t52-quick-card {
        flex: 0 0 calc(33.333% - 6px);
        flex-direction: column;
        text-align: center;
        gap: 6px;
        min-width: 0;
        padding: 12px 8px;
    }

    .t52-quick-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .t52-quick-title {
        font-size: 12px;
    }

    .t52-quick-desc {
        font-size: 10px;
    }

    .t52-section {
        padding-top: 30px;
    }

    .t52-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .t52-section-title {
        font-size: 18px;
    }

    .t52-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .t52-tabs::-webkit-scrollbar {
        display: none;
    }

    .t52-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .t52-post-thumb {
        border-width: 4px;
    }

    .t52-post-content {
        padding: 12px;
    }

    .t52-post-title {
        font-size: 14px;
    }

    .t52-post-excerpt {
        display: -webkit-box;
        margin-bottom: 8px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .t52-post-meta {
        padding-top: 0;
    }

    .t52-post-list .t52-post-card-link {
        flex-direction: column;
    }

    .t52-post-list .t52-post-thumb {
        flex-basis: auto;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .t52-cat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .t52-featured-cats {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .t52-featured-cat {
        height: 220px;
    }

    .t52-featured-cat-content {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .t52-featured-cat-content h3 {
        font-size: 19px;
    }

    .t52-mode-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-mode-card {
        padding: 22px;
    }

    .t52-slider {
        height: 220px;
    }

    .t52-slide-content {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .t52-slide-content h3 {
        font-size: 18px;
    }

    .t52-slide-cat {
        height: 22px;
        margin-bottom: 6px;
        font-size: 11px;
    }

    .t52-slide-price {
        height: 26px;
        font-size: 12px;
    }

    .t52-bento-bottom {
        gap: 8px;
    }

    .t52-product-info {
        padding: 22px;
    }

    .t52-product-title {
        font-size: 23px;
    }

    .t52-product-price {
        font-size: 30px;
    }

    .t52-product-specs {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-product-body {
        padding: 20px;
    }

    .t52-account {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-account-hero {
        margin-bottom: 16px;
        padding: 26px 18px 22px;
    }

    .t52-account-side {
        position: static;
    }

    .t52-account-menu {
        display: flex;
    }

    .t52-dash-stats {
        gap: 6px;
    }

    .t52-dash-stat {
        padding: 14px 12px;
    }

    .t52-dash-stat b {
        font-size: 18px;
    }

    .t52-dash-stat > span {
        font-size: 12px;
    }

    .t52-dash-block {
        padding: 20px;
    }

    .t52-dash-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-account-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .t52-profile-grid,
    .t52-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-avatar-field {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .t52-ticket-row-main b {
        white-space: normal;
    }

    .t52-account-panel {
        padding: 20px;
    }

    .t52-auth-card {
        padding: 24px;
    }

    .t52-auth-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .t52-auth-intro {
        display: none;
    }

    .t52-auth-panel {
        padding: 26px 22px;
    }

    .t52-auth-modal {
        padding: 12px;
    }

    .t52-auth-dialog {
        max-height: 94vh;
    }

    .t52-post-grid > .t52-plugin-card {
        grid-column: span 2;
    }

    .t52-plugin-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-plugin-card {
        gap: 12px;
        padding: 14px;
    }

    .t52-plugin-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .t52-plugin-side b {
        font-size: 16px;
    }

    .t52-plugin-hero {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .t52-plugin-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .t52-screens {
        padding: 16px;
    }

    .t52-screens-head {
        align-items: flex-start;
    }

    .t52-screen {
        padding: 8px;
    }

    .t52-screen img {
        max-height: 420px;
    }

    .t52-screens-view[data-screens-view="mobile"] .t52-screen img {
        max-width: 220px;
        max-height: 440px;
    }

    .t52-product-features ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-cta-inner {
        padding: 28px 22px;
    }

    .t52-cta-text h2 {
        font-size: 21px;
    }

    .t52-cta-actions {
        width: 100%;
    }

    .t52-cta-actions .t52-btn {
        flex: 1;
        padding: 0 14px;
    }

    .t52-cat-card {
        padding: 18px;
    }

    .t52-stats {
        margin-top: 32px;
        padding: 28px 0;
        border-radius: 10px;
    }

    .t52-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .t52-stat-value {
        font-size: 26px;
    }

    .t52-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-single-card {
        padding: 20px;
    }

    .t52-single-title {
        font-size: 20px;
    }

    .t52-single-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .t52-single-meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .entry-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .entry-content h2 {
        font-size: 19px;
    }

    .52theme-table {
        grid-template-columns: minmax(0, 1fr);
    }

    .52theme-actions .t52-btn {
        flex: 1;
        padding: 0 12px;
    }

    .t52-single-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-single-nav-next {
        text-align: left;
    }

    .t52-single-nav-next .t52-single-nav-label {
        justify-content: flex-start;
    }

    .t52-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-archive-hero {
        padding: calc(var(--t52-header-h) + 30px) 16px 30px;
    }

    .t52-archive-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 21px;
    }

    .t52-archive-title {
        font-size: 23px;
    }

    .t52-archive-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .t52-page-card {
        padding: 22px;
    }

    .t52-page-title {
        font-size: 23px;
    }

    .t52-comments {
        padding: 20px;
    }

    .comment-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .comment-list .children {
        padding-left: 12px;
    }

    .t52-footer {
        margin-top: 40px;
    }

    .t52-footer-main {
        padding: 36px 0 28px;
    }

    .t52-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .t52-footer-grid.has-contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .t52-footer-brand-col {
        grid-column: 1 / -1;
    }

    .t52-footer-desc {
        max-width: none;
    }

    .t52-footer-contact-col {
        grid-column: 1 / -1;
    }

    .t52-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .t52-404-code {
        font-size: 84px;
    }

    .t52-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        margin: 0 2px;
        padding: 0 8px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .t52-post-grid,
    .t52-archive-posts {
        grid-template-columns: minmax(0, 1fr);
    }

    .t52-post-thumb {
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   17. 动效与可访问性
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.t52-fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--t52-ease), transform .6s var(--t52-ease);
}

.t52-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 透明导航吸顶后恢复深色文字 */
.t52-header.is-transparent.is-stuck {
    color: var(--t52-text);
}

.t52-header.is-transparent.is-stuck .t52-nav-link {
    color: var(--t52-text);
}

.t52-header.is-transparent.is-stuck .t52-nav-link:hover,
.t52-header.is-transparent.is-stuck .t52-nav-item.current-menu-item > .t52-nav-link {
    color: var(--t52-primary);
    background: var(--t52-primary-soft);
}

.t52-header.is-transparent.is-stuck .t52-action-btn {
    color: var(--t52-text);
}

.t52-header.is-transparent.is-stuck .t52-menu-toggle {
    color: var(--t52-text);
}

.t52-header.is-transparent.is-stuck .t52-auth-btn {
    background: var(--t52-card);
    border-color: var(--t52-border-strong);
    color: var(--t52-text);
}

.t52-header.is-transparent.is-stuck .t52-auth-btn--primary {
    background: var(--t52-primary);
    border-color: var(--t52-primary);
    color: #fff;
}

.t52-layout-main {
    min-width: 0;
}

/* 文章标签 */
.t52-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.t52-single-tags a {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--t52-radius-pill);
    background: var(--t52-bg);
    border: 1px solid var(--t52-border);
    font-size: 12px;
    color: var(--t52-text-2);
}

.t52-single-tags a:hover {
    background: var(--t52-primary-soft);
    border-color: var(--t52-primary-border);
    color: var(--t52-primary);
}

/* 轻提示 */
.t52-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 1300;
    padding: 10px 20px;
    border-radius: var(--t52-radius-pill);
    background: rgba(20, 24, 33, .92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity .25s var(--t52-ease), transform .25s var(--t52-ease);
    pointer-events: none;
}

.t52-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* WordPress 对齐类 */
.wp-block-image {
    margin: 1.5em 0;
}

.wp-block-quote {
    margin: 1.6em 0;
}

.blocks-gallery-grid,
.wp-block-gallery {
    padding: 0;
    list-style: none;
}

/* Logo：透明导航未吸顶时切换为浅色文字版 */
.t52-header.is-transparent:not(.is-stuck) .t52-logo-img.t52-logo-light {
    display: none;
}

.t52-header.is-transparent:not(.is-stuck) .t52-logo-img.t52-logo-dark {
    display: block;
}

/* 品牌图形：以新图标替换旧的首字方块 */
.t52-logo-mark {
    background: url("assets/images/brand-icon.png") center / cover no-repeat;
    color: transparent;
    font-size: 0;
    box-shadow: none;
}

/* 截图灯箱 */
.t52-screen img {
    cursor: zoom-in;
}

body.t52-lightbox-open {
    overflow: hidden;
}

.t52-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 5vw;
    background: rgba(9, 12, 20, .9);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.t52-lightbox[hidden] {
    display: none;
}

.t52-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.t52-lightbox-close,
.t52-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    line-height: 1;
    cursor: pointer;
}

.t52-lightbox-close:hover,
.t52-lightbox-nav:hover {
    background: rgba(255, 255, 255, .26);
}

.t52-lightbox-close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    font-size: 26px;
}

.t52-lightbox-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 30px;
    transform: translateY(-50%);
}

.t52-lightbox-prev {
    left: 20px;
}

.t52-lightbox-next {
    right: 20px;
}

.t52-lightbox-count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    letter-spacing: .05em;
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .t52-lightbox {
        padding: 12vh 3vw;
    }

    .t52-lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .t52-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .t52-lightbox-prev {
        left: 8px;
    }

    .t52-lightbox-next {
        right: 8px;
    }
}
/* 列表卡片：直接显示生成好的缩略图，不再叠 CSS 显示器外框 */
.t52-theme-thumb.t52-post-thumb {
    background: var(--t52-bg);
}

.t52-post-thumb > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主题截图：全部平铺展示，完整缩放不裁切 */
.t52-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.t52-screens-grid .t52-screen {
    display: block;
    flex: none;
    padding: 0;
}

.t52-screens-grid .t52-screen img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
}

.t52-screens-view[data-screens-view="mobile"] .t52-screens-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.t52-screens-view[data-screens-view="mobile"] .t52-screens-grid .t52-screen img {
    border-width: 5px;
    border-radius: 16px;
}

@media (max-width: 640px) {
    .t52-screens-grid {
        grid-template-columns: 1fr;
    }

    .t52-screens-view[data-screens-view="mobile"] .t52-screens-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* 卡片缩略图：显示完整图片，不裁切 */
.t52-theme-thumb.t52-post-thumb {
    background: #f1f3f8;
}

.t52-post-thumb > img {
    object-fit: contain;
}

/* 手机版截图改为滑动轮播 */
@media (max-width: 768px) {
    .t52-screens-grid {
        display: flex;
        gap: 12px;
        padding-bottom: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .t52-screens-grid::-webkit-scrollbar {
        display: none;
    }

    .t52-screens-grid .t52-screen {
        flex: 0 0 86%;
        scroll-snap-align: center;
    }

    .t52-screens-view[data-screens-view="mobile"] .t52-screens-grid {
        grid-template-columns: none;
    }

    .t52-screens-view[data-screens-view="mobile"] .t52-screens-grid .t52-screen {
        flex: 0 0 44%;
    }
}
/* 手机版轮播左右切换按钮 */
.t52-screens-view {
    position: relative;
}

.t52-screens-arrow {
    display: none;
}

@media (max-width: 768px) {
    .t52-screens-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: rgba(15, 18, 30, .55);
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .t52-screens-prev {
        left: 6px;
    }

    .t52-screens-next {
        right: 6px;
    }
}
/* 详情页顶部使用生成好的显示器卡片图 */
.t52-product-cover--mockup {
    padding: 0;
    background: #eef2fb;
}

.t52-product-cover--mockup .t52-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
}
/* 首页推荐位使用生成的宣传图时，隐藏底部重复标题 */
.t52-bento-small--promo .t52-bento-title {
    display: none;
}
/* 首屏轮播使用生成的宣传图时，隐藏底部重复的分类与标题 */
.t52-slide--promo .t52-slide-cat,
.t52-slide--promo .t52-slide-content h3 {
    display: none;
}
/* 宣传图自带标题，弱化底部遮罩避免压暗画面 */
.t52-slide--promo::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .34));
}
/* 分类底色使用 background 简写会重置尺寸，这里统一恢复铺满裁切 */
.t52-slider .t52-slide-bg,
.t52-bento .t52-bento-thumb,
.t52-bento .t52-bento-small {
    background-size: cover;
    background-position: center;
}