/* ============================================================
 * framework-design.css
 * Design polish for fybo + plugins (loads LAST).
 * Restored brand: dark cyan cyber / light blue. Keeps spacing,
 * radius, motion, tap targets — does NOT wipe home atmosphere.
 *
 * 注意：禁止用 @import 拉外网字体。@import 会阻塞本文件后续规则生效，
 * 再叠加 head+footer 二次加载时，首屏会先清晰再被后写样式闪掉。
 * ============================================================ */

:root {
    --fy-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --fy-mono: "Geist Mono", "Cascadia Code", "Consolas", monospace;
    --fy-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fy-dur: 500ms;
    --fy-dur-fast: 300ms;

    --fy-space-25: 2px;
    --fy-space-50: 4px;
    --fy-space-75: 8px;
    --fy-space-100: 12px;
    --fy-space-200: 16px;
    --fy-space-300: 24px;
    --fy-space-400: 32px;
    --fy-space-500: 40px;
    --fy-space-600: 48px;
    --fy-space-700: 64px;

    /* Dark · cyber cyan */
    --fy-bg-primary: #04070f;
    --fy-bg-secondary: #0a1322;
    --fy-bg-card: #0d1728;
    --fy-text-primary: #e8f6ff;
    --fy-text-secondary: #bcd8ea;
    --fy-text-muted: #6a829a;
    --fy-border: rgba(0, 240, 255, .18);
    --fy-hover: rgba(0, 240, 255, .08);
    --fy-active: #00e5ff;
    --fy-active-light: #00f0ff;
    --fy-nav-glider: #00f0ff;
    --fy-nav-glider-glow: rgba(0, 240, 255, .35);
    --fy-publish-bg: #00e5ff;
    --fy-publish-text: #041018;
    --fy-publish-shadow: rgba(0, 229, 255, .28);
    --fy-toast-bg: #0d1728;
    --fy-toast-text: #e8f6ff;
    --fy-toast-border: rgba(0, 240, 255, .28);
    --fy-toast-shadow: rgba(0, 0, 0, .45);
    --fy-radius: 18px;
    --fy-radius-lg: 18px;
    --fy-radius-md: 12px;
    --fy-radius-sm: 8px;
}

[data-theme="light"] {
    /* Light · blue brand */
    --fy-bg-primary: #eef4fb;
    --fy-bg-secondary: #ffffff;
    --fy-bg-card: #ffffff;
    --fy-text-primary: #0a1a2a;
    --fy-text-secondary: #33475b;
    --fy-text-muted: #7c93a8;
    --fy-border: rgba(0, 136, 204, .18);
    --fy-hover: rgba(0, 136, 204, .08);
    --fy-active: #0088cc;
    --fy-active-light: #00a8d9;
    --fy-nav-glider: #0088cc;
    --fy-nav-glider-glow: rgba(0, 136, 204, .28);
    --fy-publish-bg: #0088cc;
    --fy-publish-text: #ffffff;
    --fy-publish-shadow: rgba(0, 136, 204, .22);
    --fy-toast-bg: #ffffff;
    --fy-toast-text: #0a1a2a;
    --fy-toast-border: rgba(0, 136, 204, .22);
    --fy-toast-shadow: rgba(10, 40, 70, .14);
}

html {
    font-size: 16px;
}

body {
    font-family: var(--fy-font);
    font-size: 14px;
    line-height: 20px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    background: var(--fy-bg-primary);
    color: var(--fy-text-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.fy-card-title,
.fy-post-title,
.fy-zd-title,
.fy-login-title {
    font-family: var(--fy-font);
    font-style: normal;
    font-weight: 600;
    text-wrap: balance;
}

p, .fy-post-text, .fy-zd-lede, .fy-login-subtitle {
    text-wrap: pretty;
}

em, i, cite {
    font-style: normal;
}

code, pre, kbd, .plg-demo-home-share,
.faka-codes code {
    font-family: var(--fy-mono);
}

/* ---------- Motion defaults ---------- */
.fy-card,
.fy-post,
.fy-btn,
.fy-filter-item,
.fy-sidebar,
.fy-entry,
.plg-demo-home-item,
.plg-demo-home-tag,
[class*="plg-"] [class*="-card"],
[class*="plg-"] [class*="-item"] {
    transition-property: transform, opacity, background-color, border-color, box-shadow, color, filter;
    transition-duration: var(--fy-dur-fast);
    transition-timing-function: var(--fy-ease);
}

/* No press-scale feedback on touch (project standard: 触摸不加按压特效).
   Active state only dims color; hover lift lives under a fine-pointer media query. */
.fy-main :is(button, a, .fy-btn, .fy-filter-item, .plg-demo-home-tag, .faka-buy,
    .hz-market-detail, .hz-reco-action, .fy-publish-action, [class*="-btn"],
    [class*="-action"], [class*="-buy"], [class*="-item"], [class*="-card"]):active {
    transform: none !important;
    scale: none !important;
}

.fy-btn:focus-visible,
.fy-filter-item:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--fy-active);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.fy-btn {
    padding: 8px 12px;
    border-radius: var(--fy-radius-sm);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.fy-btn-primary {
    /* 禁止绑可能变成 #171717 的 --fy-active，避免黑底深字 */
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    color: #041018 !important;
    border: 0 !important;
    background-image: none !important;
    -webkit-text-fill-color: #041018 !important;
}

[data-theme="light"] .fy-btn-primary {
    background: #0088cc !important;
    background-color: #0088cc !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.fy-btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.fy-btn-ghost,
.fy-btn-secondary {
    background: transparent;
    border: 1px solid var(--fy-border);
}

.fy-publish-action {
    border-radius: var(--fy-radius-sm);
    box-shadow: none;
    font-weight: 600;
    transition: color var(--fy-dur-fast) var(--fy-ease),
        background var(--fy-dur-fast) var(--fy-ease),
        transform var(--fy-dur-fast) var(--fy-ease);
}

@media (hover:hover) and (pointer:fine) {
    .fy-publish-action:hover {
        transform: translateY(-1px);
    }
}

/* ---------- Cards / posts ---------- */
.fy-card,
.fy-post,
.fy-entry,
.fy-bbs-tag-card {
    border-radius: var(--fy-radius);
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-card);
    box-shadow: none;
}

.fy-card:hover,
.fy-post:hover,
.fy-entry:hover {
    border-color: color-mix(in srgb, var(--fy-active) 35%, var(--fy-border));
    box-shadow: none;
    transform: translateY(-2px);
}

.fy-card-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    gap: var(--fy-space-75);
    margin-bottom: var(--fy-space-100);
}

.fy-post-title {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.fy-filter-bar {
    gap: var(--fy-space-75);
}

.fy-filter-item {
    border-radius: 999px;
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-secondary);
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.fy-filter-item.fy-active,
.fy-filter-item:hover {
    background: #00e5ff;
    background-color: #00e5ff;
    color: #041018;
    border-color: transparent;
}

[data-theme="light"] .fy-filter-item.fy-active,
[data-theme="light"] .fy-filter-item:hover {
    background: #0088cc;
    background-color: #0088cc;
    color: #ffffff;
}

/* ---------- Shell ---------- */
.fy-sidebar,
.fy-rightbar {
    background: var(--fy-bg-secondary) !important;
    border-color: var(--fy-border) !important;
    box-shadow: none !important;
}

.fy-sidebar::after,
.fy-rightbar::after,
.fy-logo::after {
    display: none !important;
    content: none !important;
}

.fy-main {
    background: var(--fy-bg-primary);
}

/* ---------- Home / cyberpunk — restore brand atmosphere ---------- */
.fy-main {
    --fy-cp-c: #00f0ff;
    --fy-cp-y: #fce300;
    --fy-cp-m: #ff2b6d;
    --fy-cp-c2: #7d3fd1;
    --fy-cp-bg: #04070f;
    --fy-cp-panel: #0a1322;
    --fy-cp-panel2: #0d1728;
    --fy-cp-line: #16233a;
    --fy-cp-line2: #24344f;
    --fy-cp-txt: #bcd8ea;
}

[data-theme="light"] .fy-main {
    --fy-cp-c: #0088cc;
    --fy-cp-y: #b8860b;
    --fy-cp-m: #c2185b;
    --fy-cp-c2: #6a3fd1;
    --fy-cp-bg: #eef4fb;
    --fy-cp-panel: #ffffff;
    --fy-cp-panel2: #f2f7fc;
    --fy-cp-line: #d5e1ec;
    --fy-cp-line2: #b7c9da;
    --fy-cp-txt: #33475b;
}

/* Light polish only — do NOT flatten hero gradients / scene */
.fy-hero,
.fy-page-index .fy-hero {
    margin-bottom: var(--fy-space-300);
}

.fy-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--fy-space-600) var(--fy-space-300);
    text-align: center;
}

.fy-hero-search:focus-within,
.fy-hero-composer:focus-within {
    border-color: var(--fy-cp-c, var(--fy-active)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-cp-c, var(--fy-active)) 22%, transparent) !important;
}

.fy-hero-search-button {
    border-radius: var(--fy-radius-sm) !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
}

[data-theme="light"] .fy-hero-search-button {
    background: #0088cc !important;
    background-color: #0088cc !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.fy-hero-search-button:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.fy-hero-search-button .fy-icon-forward::before,
.fy-search-page-form button .fy-icon-forward::before {
    font-family: var(--fy-font) !important;
}

/* ---------- 盒子桌面 section (centered intro; spacing owned by home) ---------- */
.fy-zd {
    text-align: center;
}

.fy-zd-eyebrow {
    color: var(--fy-cp-c, var(--fy-active)) !important;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.fy-zd-title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 48px;
    line-height: 1;
    font-weight: 700 !important;
    margin-top: var(--fy-space-75);
    margin-bottom: var(--fy-space-100);
    text-align: center;
    background: linear-gradient(94deg, var(--fy-cp-c) 0%, var(--fy-cp-y) 50%, var(--fy-cp-m) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

[data-theme="light"] .fy-zd-title {
    background: linear-gradient(94deg, #0088cc 0%, #00a8d9 55%, #6a3fd1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fy-zd-lede {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--fy-cp-txt, var(--fy-text-secondary)) !important;
    font-size: 16px;
    line-height: 24px;
}

.fy-zd-lede strong {
    color: var(--fy-text-primary) !important;
    font-weight: 600;
}

/* Tagline reveal (skill B11) */
.fy-tagline-reveal {
    margin: var(--fy-space-700) 0;
    padding: var(--fy-space-600) var(--fy-space-300);
    max-width: 680px;
}

.fy-tagline-reveal .fy-tagline-line {
    display: block;
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
    text-wrap: balance;
}

@media (min-width: 769px) {
    .fy-tagline-reveal .fy-tagline-line {
        font-size: 48px;
        line-height: 1;
    }
}

.fy-tagline-reveal .fy-tagline-word {
    display: inline-block;
    margin-right: 0.28em;
    color: color-mix(in srgb, var(--fy-text-primary) 30%, transparent);
    transition: color 600ms var(--fy-ease);
}

.fy-tagline-reveal .fy-tagline-word.is-on {
    color: var(--fy-text-primary);
}

/* Scroll reveal */
.fy-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--fy-ease), transform 700ms var(--fy-ease);
    will-change: opacity, transform;
}

.fy-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fy-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 300ms linear;
    }
    .fy-tagline-reveal .fy-tagline-word {
        color: var(--fy-text-primary);
        transition: none;
    }
    .fy-card:hover,
    .fy-post:hover,
    .fy-entry:hover,
    .fy-btn:hover,
    .fy-btn:active {
        transform: none;
    }
}

/* ---------- Login ---------- */
.fy-login-card {
    border-radius: var(--fy-radius) !important;
    border: 1px solid var(--fy-border) !important;
    background: var(--fy-bg-card) !important;
    box-shadow: none !important;
    padding: var(--fy-space-400) var(--fy-space-300) var(--fy-space-300) !important;
}

.fy-login-card::before {
    display: none !important;
}

.fy-login-title {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
}

.fy-login-tabs {
    border-radius: var(--fy-radius-md) !important;
    background: var(--fy-bg-primary) !important;
    padding: var(--fy-space-50) !important;
}

.fy-login-tab {
    border-radius: var(--fy-radius-sm) !important;
    font-weight: 600 !important;
    transition: background var(--fy-dur-fast) var(--fy-ease), color var(--fy-dur-fast) var(--fy-ease) !important;
}

.fy-login-tab.is-active {
    color: #041018 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

[data-theme="light"] .fy-login-tab.is-active {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
}

.fy-login-input {
    border-radius: var(--fy-radius-sm) !important;
    font-size: 16px !important;
    line-height: 24px !important;
}

.fy-login-input:focus {
    border-color: var(--fy-active) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-active) 18%, transparent) !important;
}

.fy-login-submit,
.fy-login-card button[type="submit"],
.fy-login-modal-submit {
    border-radius: var(--fy-radius-sm) !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}
[data-theme="light"] .fy-login-submit,
[data-theme="light"] .fy-login-card button[type="submit"],
[data-theme="light"] .fy-login-modal-submit {
    background: #0088cc !important;
    background-color: #0088cc !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ---------- Plugin shared polish (all card.php) ----------
 * Flatten 套娃: outer shell / hero / strip 只留一层，不要叠框。
 */
[class*="plg-"][class*="-home-template"],
.plg-music-wrap,
.plg-llq-home,
[class*="plg-"][class*="-wrap"] {
    font-family: var(--fy-font);
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.plg-tvjizhang-ledger,
.plg-tvjizhang-bills {
    font-family: var(--fy-font);
}

/* Hero = single centered top band. Exclude *-section-hero (those are mid-page heads). */
body [class*="plg-"][class*="-home-template"] .plg-demo-home-hero,
body [class*="plg-"][class*="-home-template"] .plg-faka-hero,
body [class*="plg-"][class*="-home-template"] .plg-hezishichang-hero,
body [class*="plg-"][class*="-home-template"] .plg-hezishichang-hero-mini,
body [class*="plg-"][class*="-home-template"] .plg-music-hero,
body [class*="plg-"][class*="-home-template"] .plg-tvjizhang-hero,
body [class*="plg-"][class*="-home-template"] .plg-shop-hero,
body [class*="plg-"][class*="-home-template"] .plg-yc-hero,
body [class*="plg-"][class*="-home-template"] .plg-jy-hero,
body [class*="plg-"][class*="-home-template"] .plg-llq-hero,
body [class*="plg-"][class*="-home-template"] .plg-zjz-hero,
body [class*="plg-"][class*="-home-template"] .plg-kuzhan-hero,
body [class*="plg-"][class*="-home-template"] .plg-aiz-hero,
body [class*="plg-"][class*="-home-template"] .plg-guanyu-contact-hero,
body .plg-music-wrap .plg-music-hero,
body .plg-llq-home .plg-llq-hero,
body .plg-guanyu-contact-hero,
body .plg-demo-home-hero,
body .plg-shop-hero,
body .plg-faka-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 var(--fy-space-300) !important;
    padding: 52px 16px 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    box-shadow: none !important;
    text-align: center !important;
    overflow: visible !important;
    background: transparent !important;
    color: var(--fy-text-primary) !important;
}
body [class*="plg-"][class*="-home-template"] .plg-demo-home-hero::before,
body [class*="plg-"][class*="-home-template"] .plg-demo-home-hero::after,
body .plg-shop-hero::before,
body .plg-shop-hero::after,
body .plg-faka-hero::before,
body .plg-faka-hero::after,
body .plg-demo-home-hero::before,
body .plg-demo-home-hero::after,
body [class*="plg-"][class*="-hero"]:not([class*="section-hero"])::before,
body [class*="plg-"][class*="-hero"]:not([class*="section-hero"])::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: none !important;
}

/* Hero copy cluster always centered */
body .plg-shop-hero-copy,
body .plg-faka-hero-copy,
body [class*="plg-"][class*="-hero-copy"],
body [class*="plg-"][class*="-hero-inner"],
body [class*="plg-"][class*="-hero-main"] {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.plg-demo-home-back,
.plg-demo-home-download,
.plg-demo-home-tag,
.plg-demo-home-icon {
    color: var(--fy-text-primary) !important;
    border-color: color-mix(in srgb, var(--fy-active) 22%, var(--fy-border)) !important;
    background: color-mix(in srgb, var(--fy-active) 8%, var(--fy-hover)) !important;
}
/*
 * 发布按钮：字面量色 + 超高优先级，压过各插件 card.php 内联（常为 0,2,0 / 0,3,0）。
 * 深色：青底深字；浅色：蓝底白字。禁止绑 --fy-active。
 */
html body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn,
html body [class*="plg-"] .fy-plugin-hero-menu .fy-plugin-hero-publish-btn,
html body [class*="plg-"][class*="-hero"] .fy-plugin-hero-publish-btn,
html body [class*="plg-"][class*="-home-template"] .fy-plugin-hero-publish-btn,
html body [class*="plg-"][class*="-home-template"] .plg-demo-home-publish,
html body [class*="plg-"] .plg-demo-home-publish,
html body a.fy-plugin-hero-publish-btn,
html body a.plg-demo-home-publish,
html body .plg-yc-publish,
html body .plg-llq-publish,
html body .plg-jy-publish,
html body .fy-bbs-tabs-actions .fy-publish-action {
    --fy-publish-bg: #00e5ff;
    --fy-publish-text: #041018;
    --fy-publish-shadow: rgba(0, 229, 255, .28);
    color: #041018 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, .28) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #041018 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}
html body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn .fy-icon,
html body [class*="plg-"] .fy-plugin-hero-publish-btn .fy-icon,
html body [class*="plg-"] .plg-demo-home-publish .fy-icon,
html body .plg-yc-publish .fy-icon,
html body .plg-llq-publish .fy-icon,
html body .plg-jy-publish .fy-icon,
html body .fy-bbs-tabs-actions .fy-publish-action .fy-icon {
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
}
html body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn:hover,
html body [class*="plg-"] .fy-plugin-hero-publish-btn:hover,
html body [class*="plg-"] .plg-demo-home-publish:hover,
html body .plg-yc-publish:hover,
html body .plg-llq-publish:hover,
html body .plg-jy-publish:hover,
html body .fy-bbs-tabs-actions .fy-publish-action:hover {
    color: #041018 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    border-color: transparent !important;
    filter: brightness(1.08);
    -webkit-text-fill-color: #041018 !important;
}
/* 标签/下载/返回激活态：用 publish 青底，避免 --fy-active=#171717 黑底黑字 */
html body .plg-demo-home-tag.is-active,
html body .plg-demo-home-tag:hover,
html body .plg-demo-home-download:hover,
html body .plg-demo-home-back:hover {
    color: #041018 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    border-color: transparent !important;
    filter: brightness(1.08);
    -webkit-text-fill-color: #041018 !important;
}
html[data-theme="light"] body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn,
html[data-theme="light"] body [class*="plg-"] .fy-plugin-hero-menu .fy-plugin-hero-publish-btn,
html[data-theme="light"] body [class*="plg-"][class*="-hero"] .fy-plugin-hero-publish-btn,
html[data-theme="light"] body [class*="plg-"][class*="-home-template"] .fy-plugin-hero-publish-btn,
html[data-theme="light"] body [class*="plg-"][class*="-home-template"] .plg-demo-home-publish,
html[data-theme="light"] body [class*="plg-"] .plg-demo-home-publish,
html[data-theme="light"] body a.fy-plugin-hero-publish-btn,
html[data-theme="light"] body a.plg-demo-home-publish,
html[data-theme="light"] body .plg-yc-publish,
html[data-theme="light"] body .plg-llq-publish,
html[data-theme="light"] body .plg-jy-publish,
html[data-theme="light"] body .fy-bbs-tabs-actions .fy-publish-action {
    --fy-publish-bg: #0088cc;
    --fy-publish-text: #ffffff;
    --fy-publish-shadow: rgba(0, 136, 204, .22);
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    background-image: none !important;
    box-shadow: 0 4px 14px rgba(0, 136, 204, .22) !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn .fy-icon,
html[data-theme="light"] body [class*="plg-"] .fy-plugin-hero-publish-btn .fy-icon,
html[data-theme="light"] body [class*="plg-"] .plg-demo-home-publish .fy-icon,
html[data-theme="light"] body .plg-yc-publish .fy-icon,
html[data-theme="light"] body .plg-llq-publish .fy-icon,
html[data-theme="light"] body .plg-jy-publish .fy-icon,
html[data-theme="light"] body .fy-bbs-tabs-actions .fy-publish-action .fy-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] body .fy-plugin-hero-menu .fy-plugin-hero-publish-btn:hover,
html[data-theme="light"] body [class*="plg-"] .fy-plugin-hero-publish-btn:hover,
html[data-theme="light"] body [class*="plg-"] .plg-demo-home-publish:hover,
html[data-theme="light"] body .plg-yc-publish:hover,
html[data-theme="light"] body .plg-llq-publish:hover,
html[data-theme="light"] body .plg-jy-publish:hover,
html[data-theme="light"] body .fy-bbs-tabs-actions .fy-publish-action:hover {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    filter: brightness(1.06);
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="light"] body .plg-demo-home-tag.is-active,
html[data-theme="light"] body .plg-demo-home-tag:hover,
html[data-theme="light"] body .plg-demo-home-download:hover,
html[data-theme="light"] body .plg-demo-home-back:hover {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    filter: brightness(1.06);
    -webkit-text-fill-color: #ffffff !important;
}

/* 插件 card 搜索框统一宽度 */
body .hz-market-search,
body .plg-zjz-search,
body .plg-tvjizhang-search,
body .plg-kuzhan-search,
body .plg-music-search,
body .plg-shop-search,
body .aiz-post-search,
body .aiz-shop-query-inline,
body .faka-order-query-inline,
body .plg-shop-hero .faka-order-query-inline {
    width: min(560px, 100%) !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Plugin hero titles: solid brand color (gradient-clip 易和透明底冲突变看不见) */
.plg-demo-home-hero h1,
.plg-shop-hero h1,
.plg-faka-hero h1,
.plg-music-hero-title,
body [class*="plg-"][class*="-hero"]:not([class*="section-hero"]) h1 {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(26px, 4vw, 34px) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: var(--fy-text-primary) !important;
    -webkit-text-fill-color: var(--fy-text-primary) !important;
    text-shadow: none !important;
    filter: none !important;
}
[data-theme="light"] .plg-demo-home-hero h1,
[data-theme="light"] .plg-shop-hero h1,
[data-theme="light"] .plg-faka-hero h1,
[data-theme="light"] .plg-music-hero-title,
[data-theme="light"] body [class*="plg-"][class*="-hero"]:not([class*="section-hero"]) h1 {
    color: var(--fy-text-primary) !important;
    -webkit-text-fill-color: var(--fy-text-primary) !important;
    background: none !important;
}

.plg-demo-home-hero p,
.plg-shop-hero p,
.plg-faka-hero p,
body [class*="plg-"][class*="-hero"]:not([class*="section-hero"]) p,
.plg-music-hero .plg-music-hero-sub {
    max-width: 36em !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--fy-text-secondary) !important;
    text-wrap: pretty;
    text-align: center !important;
}

/* Section strips / heads: NOT cards — avoid box-in-box under hero */
.hz-reco-strip,
.plg-faka-shop-strip,
.plg-faka-tags-strip,
.plg-faka-tags,
.plg-shop-strip,
.plg-shop-posts-strip,
.plg-zm-section-head,
.plg-faka-section-head,
.plg-zjz-section-head,
.aiz-shop-layout-strip,
.aiz-shop-section-head,
[class*="plg-"][class*="-strip"],
[class*="plg-"][class*="-section-head"],
[class*="plg-"][class*="-section-hero"] {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Actual item cards / list rows only */
.plg-demo-home-item,
.plg-faka-card,
.plg-faka-list-item,
.hz-market-card,
.hz-reco-card,
.plg-tvjizhang-bill,
.plg-tvjizhang-reco-card,
.plg-tvjizhang-ledger-card,
.plg-music-wrap .plg-music-item,
.plg-music-wrap .plg-music-row,
.aiz-shop-layout-card,
.plg-jy-solution-item,
.plg-yc-list,
.plg-llq-list,
.plg-kuzhan-site,
.plg-zhuomian-item,
/* Exclude BEM children (*-card-main / *-card-icon) and flat list rows (llq/yc) */
[class*="plg-"][class*="-card"]:not([class*="-card-"]):not([class*="modal"]):not([class*="records"]):not([class*="ledger-card"]):not([class*="llq-card"]):not([class*="yc-card"]) {
    border-radius: var(--fy-radius-md) !important;
    border: 1px solid var(--fy-border) !important;
    background: var(--fy-bg-card) !important;
    box-shadow: none !important;
}

/* Flat list rows inside a single panel — no per-row card chrome */
.plg-llq-list > .plg-llq-card,
.plg-yc-list > .plg-yc-card {
    border: 0 !important;
    border-bottom: 1px dashed var(--fy-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.plg-llq-list > .plg-llq-card:last-child,
.plg-yc-list > .plg-yc-card:last-child {
    border-bottom: 0 !important;
}

.plg-demo-home-item:hover,
.plg-faka-card:hover,
.plg-faka-list-item:hover,
.hz-market-card:hover,
.hz-reco-card:hover,
.plg-tvjizhang-reco-card:hover,
.plg-music-wrap .plg-music-row:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--fy-active) 40%, var(--fy-border)) !important;
    box-shadow: none !important;
    transition: transform var(--fy-dur-fast) var(--fy-ease), border-color var(--fy-dur-fast) var(--fy-ease);
}

.plg-demo-home-tag,
.plg-faka-tags .plg-demo-home-tag,
.plg-zm-section-head .plg-demo-home-tag {
    border-radius: 999px !important;
    background-image: none !important;
    transition: background var(--fy-dur-fast) var(--fy-ease), color var(--fy-dur-fast) var(--fy-ease), border-color var(--fy-dur-fast) var(--fy-ease) !important;
}

.plg-demo-home-tag.is-active,
.plg-faka-tags .plg-demo-home-tag.is-active,
.plg-zm-section-head .plg-demo-home-tag.is-active,
.plg-demo-page-number.is-active {
    color: #041018 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-text-fill-color: #041018 !important;
}

[data-theme="light"] .plg-demo-home-tag.is-active,
[data-theme="light"] .plg-faka-tags .plg-demo-home-tag.is-active,
[data-theme="light"] .plg-zm-section-head .plg-demo-home-tag.is-active,
[data-theme="light"] .plg-demo-page-number.is-active {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    -webkit-text-fill-color: #ffffff !important;
}

.faka-buy,
.hz-market-detail,
.hz-reco-action:not(.is-disabled),
.faka-order-query-inline button,
.faka-order-query button,
.faka-modal-actions button.is-primary,
#fakaBuyForm button[type="submit"].is-primary,
#fakaMerchantApplyForm button[type="submit"],
body .plg-hezishichang-home-template .hz-market-search button,
body .plg-hezishichang-home-template .fy-btn-primary,
.plg-faka-kicker::before {
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
    box-shadow: none !important;
    filter: none !important;
}

[data-theme="light"] .faka-buy,
[data-theme="light"] .hz-market-detail,
[data-theme="light"] .hz-reco-action:not(.is-disabled),
[data-theme="light"] .faka-order-query-inline button,
[data-theme="light"] .faka-order-query button,
[data-theme="light"] .faka-modal-actions button.is-primary,
[data-theme="light"] #fakaBuyForm button[type="submit"].is-primary,
[data-theme="light"] #fakaMerchantApplyForm button[type="submit"],
[data-theme="light"] body .plg-hezishichang-home-template .hz-market-search button,
[data-theme="light"] body .plg-hezishichang-home-template .fy-btn-primary {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    -webkit-text-fill-color: #ffffff !important;
}

.plg-faka-hero h1,
.plg-zm-section-head h2,
.hz-reco-kicker,
.plg-faka-section-head h2,
.plg-faka-kicker,
[class*="plg-"][class*="-home-template"] h1,
[class*="plg-"][class*="-home-template"] h2 {
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

/* Music / generic list rows inside plugins */
[class*="plg-"][class*="music"] .plg-demo-home-item,
.plg-hezimusic-home-template .plg-demo-home-item,
[class*="yinwe"],
[class*="music-row"],
[class*="music-item"] {
    border-radius: var(--fy-radius-md) !important;
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-card);
    transition: transform var(--fy-dur-fast) var(--fy-ease), border-color var(--fy-dur-fast) var(--fy-ease);
}

.plg-faka-hero-kicker,
.plg-zm-kicker,
.hz-reco-kicker {
    letter-spacing: 0.04em !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.plg-faka-card-price b,
.plg-zm-section-head h2 {
    font-weight: 700 !important;
}

.faka-modal,
.faka-payment-modal,
.faka-query-result {
    border-radius: var(--fy-radius) !important;
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-card) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35) !important;
}

.hz-market-recommend {
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
    clip-path: none !important;
    animation: none !important;
}

[data-theme="light"] .hz-market-recommend {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Flatten leftover gradient CTAs in plugin templates.
 * 注意：不要用 [class*="btn"] 误伤 .fy-plugin-hero-publish-btn（会拆掉实心底色）。 */
[class*="plg-"] [style*="linear-gradient"],
[class*="plg-"] button[style*="gradient"],
body [class*="plg-"][style*="gradient"],
body [class*="plg-"] .fy-btn:not(.fy-plugin-hero-publish-btn),
body [class*="plg-"] .fy-btn-primary,
body .plg-tvjizhang-ledger-add,
body .plg-tvjizhang-form-submit,
body .plg-tvjizhang-reco-action,
body .plg-music-wrap .plg-music-btn,
body .plg-music-wrap .plg-music-btn-add,
body .plg-music-wrap .plg-music-btn-fav,
body .plg-music-wrap .plg-music-btn-dl,
body .plg-demo-home-item-download {
    background-image: none !important;
}

body .plg-tvjizhang-ledger-add,
body .plg-tvjizhang-form-submit,
body .plg-tvjizhang-reco-action,
body .plg-demo-home-item-download,
body [class*="plg-"] .fy-btn-primary,
body [class*="plg-"] .plg-demo-home-download,
body [class*="plg-"] a.fy-btn-primary {
    border-radius: var(--fy-radius-sm) !important;
    border: 0 !important;
    background: #00e5ff !important;
    background-color: #00e5ff !important;
    background-image: none !important;
    color: #041018 !important;
    -webkit-text-fill-color: #041018 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    filter: none !important;
    transition: transform var(--fy-dur-fast) var(--fy-ease), filter var(--fy-dur-fast) var(--fy-ease) !important;
}
body .plg-tvjizhang-ledger-add:active,
body .plg-tvjizhang-form-submit:active,
body .plg-demo-home-item-download:active,
body [class*="plg-"] .fy-btn-primary:active {
    transform: scale(0.98);
}
body .plg-tvjizhang-bill-del,
body [class*="plg-"] [class*="-del"],
body [class*="plg-"] [class*="delete"],
body [class*="plg-"] button[aria-label="删除"] {
    background: transparent !important;
    color: var(--fy-text-secondary) !important;
    box-shadow: none !important;
}
[data-theme="light"] body .plg-tvjizhang-ledger-add,
[data-theme="light"] body .plg-tvjizhang-form-submit,
[data-theme="light"] body .plg-tvjizhang-reco-action,
[data-theme="light"] body .plg-demo-home-item-download,
[data-theme="light"] body [class*="plg-"] .fy-btn-primary,
[data-theme="light"] body [class*="plg-"] .plg-demo-home-download,
[data-theme="light"] body [class*="plg-"] a.fy-btn-primary {
    color: #ffffff !important;
    background: #0088cc !important;
    background-color: #0088cc !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Plugin list / tags / pagination spacing (B2) */
.plg-demo-home-list,
.plg-demo-home-tags,
.plg-zm-intro,
.plg-tvjizhang-ledger,
.plg-tvjizhang-bills,
.plg-music-wrap {
    gap: var(--fy-space-200) !important;
}
.plg-demo-home-item,
.plg-tvjizhang-bill {
    padding: var(--fy-space-100) !important;
}
.plg-demo-pagination {
    margin-top: var(--fy-space-300) !important;
    gap: var(--fy-space-75) !important;
}

/* Mobile: plugin cards full width, bigger tap */
@media (max-width: 768px) {
    body .plg-shop-hero,
    body .plg-faka-hero,
    body .plg-demo-home-hero,
    body .plg-music-wrap .plg-music-hero,
    body .plg-hezishichang-hero {
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 0 var(--fy-space-200) !important;
        padding: 44px 12px 20px !important;
        min-height: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    body .plg-shop-hero h1,
    body .plg-faka-hero h1,
    body .plg-demo-home-hero h1,
    body .plg-music-hero-title {
        font-size: 24px !important;
        line-height: 32px !important;
        color: var(--fy-text-primary) !important;
        -webkit-text-fill-color: var(--fy-text-primary) !important;
        background: none !important;
    }
    .plg-demo-home-list,
    .plg-faka-list,
    .hz-market-grid {
        grid-template-columns: 1fr !important;
        gap: var(--fy-space-100) !important;
    }
    .plg-demo-home-item,
    .plg-faka-card,
    .hz-market-card,
    .plg-tvjizhang-bill {
        padding: var(--fy-space-100) !important;
    }
    .plg-demo-home-item-download,
    .plg-demo-home-download,
    .plg-tvjizhang-ledger-add,
    .plg-tvjizhang-form-submit,
    .plg-tvjizhang-reco-action,
    .faka-buy,
    .hz-market-detail,
    .hz-reco-action,
    body [class*="plg-"] .fy-btn-primary,
    body [class*="plg-"] a.fy-btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        font-size: 16px !important;
    }
    /* 音乐行内图标按钮保持紧凑，不强制拉满 */
    .plg-music-wrap .plg-music-search button {
        min-height: 40px !important;
        padding: 8px 12px !important;
    }
    .plg-tvjizhang-ledger-actions,
    .plg-tvjizhang-form-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Empty / muted */
.fy-empty,
.fy-muted {
    color: var(--fy-text-secondary);
}

.fy-load-more .fy-btn {
    min-width: 160px;
}

/* Mobile bottom safe polish */
@media (max-width: 768px) {
    .fy-hero-inner {
        padding: var(--fy-space-400) var(--fy-space-200);
    }
    .fy-hero h1,
    .fy-page-index .fy-hero h1 {
        font-size: 30px;
        line-height: 36px;
    }
    .fy-zd-title {
        font-size: 36px;
        line-height: 40px;
    }
    .fy-tagline-reveal .fy-tagline-line {
        font-size: 30px;
        line-height: 36px;
    }
}
