/* 公众号爆文大师 —— 微信绿 Soft UI（区别于通用蓝工具感） */
body.gzh-viral-page {
    color: #1a2e22 !important;
    background: #f3f8f5 !important;
}
body.gzh-viral-page .gzh-main-tabs {
    padding: 0 12px 12px;
    gap: 8px;
    background: transparent;
    border-bottom: none;
    margin-top: -2px;
}
body.gzh-viral-page .gzh-main-tabs .ps-tab {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid rgba(7, 193, 96, 0.12);
    background: #fff;
    color: #64748b;
}
body.gzh-viral-page .gzh-main-tabs .ps-tab.active {
    color: #059669;
    border-color: rgba(7, 193, 96, 0.35);
    background: #ecfdf5;
}
/* 公众号 / 小红书 hero —— 高级 AI 海报卡片 */
body.gzh-viral-page .lh-subhero,
body.xhs-viral-page .lh-subhero,
body.xhs-viral-page .lh-subhero--xhs {
    position: relative;
    margin: 10px 12px 14px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
}
body.gzh-viral-page .lh-subhero__card,
body.xhs-viral-page .lh-subhero__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 18px 20px;
    border-radius: 22px;
    text-align: center;
    transform: translateZ(0);
}
body.gzh-viral-page .lh-subhero__card {
    background:
        radial-gradient(120% 90% at 12% -10%, rgba(52, 211, 153, 0.28), transparent 55%),
        radial-gradient(90% 80% at 100% 0%, rgba(14, 165, 233, 0.16), transparent 48%),
        radial-gradient(70% 60% at 50% 120%, rgba(16, 185, 129, 0.12), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #f3fbf7 48%, #e8f7ef 100%);
    border: 1px solid rgba(7, 193, 96, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 10px 28px rgba(7, 193, 96, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.04);
}
body.xhs-viral-page .lh-subhero__card {
    background:
        radial-gradient(120% 90% at 10% -8%, rgba(255, 105, 135, 0.22), transparent 55%),
        radial-gradient(90% 80% at 100% 0%, rgba(251, 146, 60, 0.12), transparent 48%),
        radial-gradient(70% 60% at 50% 120%, rgba(244, 63, 94, 0.10), transparent 55%),
        linear-gradient(165deg, #ffffff 0%, #fff5f7 48%, #ffeef2 100%);
    border: 1px solid rgba(255, 36, 66, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(255, 36, 66, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.04);
}
body.gzh-viral-page .lh-subhero__card::before,
body.xhs-viral-page .lh-subhero__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 75%);
}
body.gzh-viral-page .lh-subhero__card::after,
body.xhs-viral-page .lh-subhero__card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -36px;
    top: -42px;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
}
body.gzh-viral-page .lh-subhero__card::after {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.45) 0%, rgba(7, 193, 96, 0.08) 55%, transparent 72%);
}
body.xhs-viral-page .lh-subhero__card::after {
    background: radial-gradient(circle, rgba(255, 107, 129, 0.42) 0%, rgba(255, 36, 66, 0.08) 55%, transparent 72%);
}
body.gzh-viral-page .lh-subhero__shine,
body.xhs-viral-page .lh-subhero__shine {
    position: absolute;
    left: -20%;
    top: -40%;
    width: 70%;
    height: 70%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%);
    transform: rotate(8deg);
}
body.gzh-viral-page .lh-subhero__eyebrow,
body.xhs-viral-page .lh-subhero__eyebrow,
body.gzh-viral-page .lh-subhero__title,
body.xhs-viral-page .lh-subhero__title,
body.gzh-viral-page .lh-subhero__sub,
body.xhs-viral-page .lh-subhero__sub,
body.gzh-viral-page .lh-subhero__pills,
body.xhs-viral-page .lh-subhero__pills {
    position: relative;
    z-index: 1;
}
body.gzh-viral-page .lh-subhero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(7, 193, 96, 0.22);
    box-shadow: 0 4px 14px rgba(7, 193, 96, 0.10);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #166534;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.xhs-viral-page .lh-subhero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 36, 66, 0.18);
    box-shadow: 0 4px 14px rgba(255, 36, 66, 0.10);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #9f1239;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.gzh-viral-page .lh-subhero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #07c160 100%);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.16);
    animation: lh-poster-pulse 2.4s ease-in-out infinite;
}
body.xhs-viral-page .lh-subhero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b81 0%, #ff2442 100%);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.16);
    animation: lh-poster-pulse 2.4s ease-in-out infinite;
}
@keyframes lh-poster-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}
body.gzh-viral-page .lh-subhero__title {
    margin: 0;
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.38;
    color: #0f3d2a;
}
body.xhs-viral-page .lh-subhero__title {
    margin: 0;
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.38;
    color: #7f1d1d;
}
body.gzh-viral-page .lh-subhero__title br,
body.xhs-viral-page .lh-subhero__title br {
    display: block;
    content: "";
}
body.gzh-viral-page .lh-subhero__sub,
body.xhs-viral-page .lh-subhero__sub {
    margin: 12px auto 0;
    max-width: 34em;
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    font-weight: 500;
}
body.gzh-viral-page .lh-subhero[hidden],
body.xhs-viral-page .lh-subhero[hidden] {
    display: none !important;
}
body.gzh-viral-page .lh-subhero__pills,
body.xhs-viral-page .lh-subhero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
body.gzh-viral-page .lh-subhero__pills li {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 193, 96, 0.22);
    color: #166534;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
body.xhs-viral-page .lh-subhero__pills li {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 36, 66, 0.16);
    color: #9f1239;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* 菜单页顶栏角标：与 AI 助理一致显示「灵涵速推」 */
html body.gzh-viral-page .nav-brand-mark,
html body.xhs-viral-page .nav-brand-mark,
html body.page-tab-gzh-master .nav-brand-mark,
html body.page-tab-xhs-master .nav-brand-mark {
    display: inline-flex !important;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f4f4f5 !important;
    color: #27272a !important;
    border: 1px solid #e4e4e7 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* 兼容旧类名（若仍残留） */
body.gzh-viral-page .gzh-promo {
    display: none !important;
}
body.gzh-viral-page .gzh-promo__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
body.gzh-viral-page .gzh-promo__sub {
    font-size: 12px;
    opacity: 0.92;
    line-height: 1.5;
    margin: 0;
}
body.gzh-viral-page .gzh-inner-tabs {
    display: flex;
    gap: 8px;
    padding: 0 14px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
body.gzh-viral-page .gzh-inner-tabs::-webkit-scrollbar { display: none; }
body.gzh-viral-page .gzh-inner-tab {
    flex: 0 0 auto;
    border: none;
    background: #fff;
    color: #52525b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
body.gzh-viral-page .gzh-inner-tab.is-on {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 0 0 1px rgba(7, 193, 96, 0.28);
}
body.gzh-viral-page .gzh-cat-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}
body.gzh-viral-page .gzh-cat-row::-webkit-scrollbar { display: none; }
body.gzh-viral-page .gzh-cat-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(7, 193, 96, 0.14);
    background: #fff;
    color: #64748b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
body.gzh-viral-page .gzh-cat-chip.is-on {
    background: #ecfdf5;
    border-color: rgba(7, 193, 96, 0.35);
    color: #059669;
}
body.gzh-viral-page .gzh-tpl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
body.gzh-viral-page .gzh-tpl-card--skel {
    pointer-events: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
body.gzh-viral-page .gzh-tpl-thumb--skel {
    background: linear-gradient(90deg, #f4f4f5 0%, #e4e4e7 50%, #f4f4f5 100%);
    background-size: 200% 100%;
    animation: gzh-skel-shimmer 1.1s ease-in-out infinite;
}
body.gzh-viral-page .gzh-tpl-label--skel {
    display: block;
    height: 10px;
    margin: 8px auto 0;
    width: 72%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4f4f5 0%, #e4e4e7 50%, #f4f4f5 100%);
    background-size: 200% 100%;
    animation: gzh-skel-shimmer 1.1s ease-in-out infinite;
}
@keyframes gzh-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
body.gzh-viral-page .gzh-tpl-card {
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    text-align: left;
    padding: 0;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 16px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s cubic-bezier(.22, 1, .36, 1), box-shadow 0.2s ease;
}
body.gzh-viral-page .gzh-tpl-card:active {
    transform: scale(0.98);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 3px 8px rgba(15, 23, 42, 0.1);
}
body.gzh-viral-page .gzh-tpl-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
body.gzh-viral-page .gzh-tpl-thumb {
    aspect-ratio: 3 / 2;
    background: linear-gradient(145deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}
body.gzh-viral-page .gzh-tpl-thumb--cover {
    display: block;
    padding: 0;
    background: #f4f4f5;
}
body.gzh-viral-page .gzh-tpl-thumb--cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
body.gzh-viral-page .gzh-tpl-thumb--fallback::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #52525b;
    text-align: center;
    line-height: 1.35;
}
body.gzh-viral-page .gzh-tpl-label {
    display: block;
    padding: 9px 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
body.gzh-viral-page .gzh-panel { display: none; padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
body.gzh-viral-page .gzh-panel.is-show { display: block; }
body.gzh-viral-page .gzh-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
body.gzh-viral-page .gzh-tag-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.gzh-viral-page .gzh-tag-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    background: linear-gradient(180deg, #c2410c, #9a3412);
    cursor: pointer;
    min-height: 44px;
}
body.gzh-viral-page .gzh-tag-btn.is-on {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}
body.gzh-viral-page .gzh-purple-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #07c160, #059669);
    cursor: pointer;
    margin-top: 12px;
}
body.gzh-viral-page a.gzh-purple-btn,
body.gzh-viral-page a.gzh-purple-btn:visited,
body.gzh-viral-page a.gzh-purple-btn:hover,
body.gzh-viral-page a.gzh-purple-btn:active {
    color: #fff;
    text-decoration: none;
}
body.gzh-viral-page .gzh-activate-card {
    padding: 16px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
body.gzh-viral-page .gzh-activate-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
body.gzh-viral-page .gzh-activate-card__user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
body.gzh-viral-page .gzh-activate-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, #34d399, #07c160);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.gzh-viral-page .gzh-activate-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.gzh-viral-page .gzh-activate-card__status {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    font-size: 13px;
}
body.gzh-viral-page .gzh-activate-card__status-key {
    color: #71717a;
}
body.gzh-viral-page .gzh-activate-card__status-val {
    font-weight: 700;
}
body.gzh-viral-page .gzh-activate-card__status-val.is-active {
    color: #2563eb;
}
body.gzh-viral-page .gzh-activate-card__status-val.is-inactive {
    color: #ea580c;
}
body.gzh-viral-page .gzh-activate-card__expire {
    margin: 0 0 14px;
    font-size: 12px;
    color: #71717a;
    min-height: 0;
}
body.gzh-viral-page .gzh-activate-card__expire:empty {
    display: none;
    margin: 0;
}
body.gzh-viral-page .gzh-activate-card__msg {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}
body.gzh-viral-page .gzh-activate-card__msg.is-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
body.gzh-viral-page .gzh-activate-card__msg.is-err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
body.gzh-viral-page .gzh-activate-card__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3f3f46;
    margin: 0 0 8px;
}
body.gzh-viral-page .gzh-activate-card__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fafafa;
    padding: 12px 14px;
    font-size: 15px;
    color: #18181b;
    letter-spacing: 0.03em;
}
body.gzh-viral-page .gzh-activate-card__input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}
body.gzh-viral-page .gzh-activate-card__btn {
    width: 100%;
    margin-top: 12px;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #07c160, #059669);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28);
}
body.gzh-viral-page .gzh-activate-card__btn:active {
    transform: scale(0.99);
}
body.gzh-viral-page .gzh-activate-card__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
body.gzh-viral-page .gzh-purple-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
body.gzh-viral-page .gzh-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #18181b;
}
body.gzh-viral-page .gzh-field-label--soft {
    color: #059669;
    font-size: 13px;
    font-weight: 700;
}
body.gzh-viral-page .gzh-input,
body.gzh-viral-page .gzh-select {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    background: #f4f4f5;
    padding: 12px 14px;
    font-size: 14px;
    color: #18181b;
}
body.gzh-viral-page .gzh-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
body.gzh-viral-page .gzh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
body.gzh-viral-page .gzh-radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
body.gzh-viral-page .gzh-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3f3f46;
    cursor: pointer;
    margin: 0;
}
body.gzh-viral-page .gzh-radio-option input {
    accent-color: #07c160;
    width: 16px;
    height: 16px;
    margin: 0;
}
body.gzh-viral-page .gzh-cover-banner {
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: 168px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(145deg, #312e81, #581c87);
    overflow: hidden;
    position: relative;
}
body.gzh-viral-page .gzh-cover-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
body.gzh-viral-page .gzh-cover-banner-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 16px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.45;
}
body.gzh-viral-page .gzh-tutorial {
    padding: 0 14px 80px;
}
body.gzh-viral-page .gzh-tutorial__step {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.gzh-viral-page .gzh-tutorial__step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #059669;
}
body.gzh-viral-page .gzh-tutorial__step p,
body.gzh-viral-page .gzh-tutorial__step li {
    font-size: 13px;
    line-height: 1.65;
    color: #6b7280;
}
body.gzh-viral-page .gzh-tutorial__step ol {
    margin: 8px 0 0;
    padding-left: 18px;
}
body.gzh-viral-page .gzh-profile-card {
    margin: 0 14px 12px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.gzh-viral-page .gzh-profile-card + .gzh-profile-card {
    margin-top: 0;
}
body.gzh-viral-page .gzh-link-btn {
    display: inline-block;
    margin-top: 8px;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
body.gzh-viral-page .gzh-coze-guide {
    margin: 0 0 14px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.07) 0%, rgba(237, 233, 254, 0.55) 100%);
}
body.gzh-viral-page .gzh-coze-guide__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
body.gzh-viral-page .gzh-coze-guide__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #07c160 0%, #34d399 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.22);
}
body.gzh-viral-page .gzh-coze-guide__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #5b21b6;
    line-height: 1.35;
}
body.gzh-viral-page .gzh-coze-guide__hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.65;
    color: #6b7280;
}
body.gzh-viral-page .gzh-coze-guide__hint strong {
    color: #059669;
    font-weight: 700;
}
body.gzh-viral-page .gzh-coze-guide__hint code,
body.gzh-viral-page .gzh-tutorial__step code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.1);
    color: #059669;
    font-size: 12px;
}
body.gzh-viral-page .gzh-coze-guide__note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #9ca3af;
}
body.gzh-viral-page .gzh-coze-guide__note--tutorial {
    margin-top: 10px;
    color: #a78bfa;
}
body.gzh-viral-page .gzh-coze-guide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(7, 193, 96, 0.22);
    background: #fff;
    color: #059669;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}
body.gzh-viral-page .gzh-coze-guide__btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}
body.gzh-viral-page .gzh-coze-guide__btn--block {
    display: flex;
    width: 100%;
}
body.gzh-viral-page .gzh-coze-guide__btn--inline {
    display: inline-flex;
    margin: 4px 0;
    vertical-align: middle;
}
body.gzh-viral-page .gzh-hist-list { padding: 0 14px; }
body.gzh-viral-page .gzh-hist-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
}
body.gzh-viral-page .gzh-hist-item__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}
body.gzh-viral-page .gzh-hist-item__meta {
    font-size: 12px;
    color: #71717a;
}
body.gzh-viral-page .gzh-picker-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}
body.gzh-viral-page .gzh-picker-sheet.is-open { display: block; }
body.gzh-viral-page .gzh-picker-sheet__shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
body.gzh-viral-page .gzh-picker-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}
body.gzh-viral-page .gzh-picker-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f5;
}
body.gzh-viral-page .gzh-picker-sheet__head button {
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    color: #71717a;
}
body.gzh-viral-page .gzh-picker-sheet__head .is-confirm {
    color: #059669;
    font-weight: 700;
}
body.gzh-viral-page .gzh-picker-sheet__list {
    overflow-y: auto;
    padding: 8px 0;
}
body.gzh-viral-page .gzh-picker-option {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}
body.gzh-viral-page .gzh-picker-option.is-on {
    color: #059669;
    font-weight: 700;
}
/* 标题列表 */
body.gzh-viral-page .gzh-title-list {
    margin-top: 12px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
}
body.gzh-viral-page .gzh-title-item {
    padding: 12px 14px;
    font-size: 14px;
    color: #3f3f46;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f5;
    transition: background 0.15s;
    line-height: 1.5;
}
body.gzh-viral-page .gzh-title-item:last-child {
    border-bottom: none;
}
body.gzh-viral-page .gzh-title-item:hover {
    background: #ecfdf5;
}
body.gzh-viral-page .gzh-title-item.is-selected {
    background: #d1fae5;
    color: #059669;
    font-weight: 600;
}
body.gzh-viral-page .gzh-title-hint {
    padding: 8px 14px;
    font-size: 12px;
    color: #a1a1aa;
    background: #fafafa;
}

/* ========== AI生成动画 ========== */
.gzh-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}
.gzh-loading-content {
    text-align: center;
    color: #fff;
}
.gzh-loading-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}
.gzh-loading-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}
.gzh-loading-tips {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

/* 动画1: 职场短文 - 打字机效果 */
.gzh-anim-typewriter {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.gzh-anim-typewriter span {
    width: 12px;
    height: 24px;
    background: linear-gradient(135deg, #07c160, #34d399);
    border-radius: 3px;
    animation: typewriter 1.4s ease-in-out infinite;
}
.gzh-anim-typewriter span:nth-child(2) { animation-delay: 0.2s; }
.gzh-anim-typewriter span:nth-child(3) { animation-delay: 0.4s; }
.gzh-anim-typewriter span:nth-child(4) { animation-delay: 0.6s; }
.gzh-anim-typewriter span:nth-child(5) { animation-delay: 0.8s; }
@keyframes typewriter {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* 动画2: 民谚爆文 - 古风卷轴 */
.gzh-anim-scroll {
    width: 80px;
    height: 80px;
    position: relative;
}
.gzh-anim-scroll::before, .gzh-anim-scroll::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    border-radius: 4px;
    left: 50%;
    transform: translateX(-50%);
}
.gzh-anim-scroll::before { top: 0; }
.gzh-anim-scroll::after { bottom: 0; }
.gzh-anim-scroll-inner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 56px;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 4px;
    overflow: hidden;
    animation: scrollUnroll 2s ease-in-out infinite;
}
.gzh-anim-scroll-inner::before {
    content: '谚';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #92400e;
    font-weight: 700;
    animation: fadeChar 2s ease-in-out infinite;
}
@keyframes scrollUnroll {
    0%, 100% { height: 20px; }
    50% { height: 56px; }
}
@keyframes fadeChar {
    0%, 30%, 100% { opacity: 0; }
    50%, 70% { opacity: 1; }
}

/* 动画3: 真相短文 - 灯泡闪烁 */
.gzh-anim-bulb {
    width: 60px;
    height: 80px;
    position: relative;
}
.gzh-anim-bulb-glass {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #fef08a, #facc15);
    border-radius: 50% 50% 45% 45%;
    margin: 0 auto;
    animation: bulbGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.6);
}
.gzh-anim-bulb-base {
    width: 24px;
    height: 16px;
    background: linear-gradient(180deg, #6b7280, #4b5563);
    margin: -4px auto 0;
    border-radius: 0 0 6px 6px;
}
@keyframes bulbGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.4); transform: scale(0.95); }
    50% { box-shadow: 0 0 50px rgba(250, 204, 21, 0.9); transform: scale(1.05); }
}

/* 动画4: 人民日报金句 - 五星旋转 */
.gzh-anim-star {
    width: 60px;
    height: 60px;
    position: relative;
    animation: starRotate 3s linear infinite;
}
.gzh-anim-star::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #dc2626;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}
.gzh-anim-star-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    border-top-color: #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: starRing 1s linear infinite;
}
@keyframes starRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes starRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 动画5: 育儿/养生 - 爱心跳动 */
.gzh-anim-heart {
    font-size: 48px;
    color: #ec4899;
    animation: heartBeat 1s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

/* 动画6: 星座 - 星空闪烁 */
.gzh-anim-constellation {
    width: 80px;
    height: 80px;
    position: relative;
}
.gzh-anim-constellation span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle 1.5s ease-in-out infinite;
}
.gzh-anim-constellation span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.gzh-anim-constellation span:nth-child(2) { top: 30%; left: 60%; animation-delay: 0.3s; }
.gzh-anim-constellation span:nth-child(3) { top: 50%; left: 30%; animation-delay: 0.6s; }
.gzh-anim-constellation span:nth-child(4) { top: 70%; left: 70%; animation-delay: 0.9s; }
.gzh-anim-constellation span:nth-child(5) { top: 80%; left: 40%; animation-delay: 1.2s; }
.gzh-anim-constellation-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M16 8 L48 24 L24 40 L56 56 L32 64' stroke='rgba(255,255,255,0.3)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
}
@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 动画7: 旅游 - 飞机环绕 */
.gzh-anim-travel {
    width: 80px;
    height: 80px;
    position: relative;
}
.gzh-anim-travel-earth {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset -8px -8px 20px rgba(0,0,0,0.3);
}
.gzh-anim-travel-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    animation: planeOrbit 2s linear infinite;
}
.gzh-anim-travel-plane::before {
    content: '✈';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    font-size: 20px;
    color: #fff;
}
@keyframes planeOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 动画8: 心理学 - 大脑脉冲 */
.gzh-anim-brain {
    width: 60px;
    height: 60px;
    position: relative;
}
.gzh-anim-brain::before {
    content: '🧠';
    font-size: 48px;
    animation: brainPulse 2s ease-in-out infinite;
}
.gzh-anim-brain-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: brainWave 1.5s ease-out infinite;
}
.gzh-anim-brain-wave:nth-child(2) { animation-delay: 0.5s; }
.gzh-anim-brain-wave:nth-child(3) { animation-delay: 1s; }
@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes brainWave {
    0% { width: 60px; height: 60px; opacity: 1; }
    100% { width: 120px; height: 120px; opacity: 0; }
}

/* 动画9: 生僻字 - 汉字变换 */
.gzh-anim-hanzi {
    font-size: 48px;
    color: #fff;
    font-weight: 700;
    animation: hanziChange 3s steps(1) infinite;
}
@keyframes hanziChange {
    0% { content: '龘'; }
    20% { content: '靐'; }
    40% { content: '龖'; }
    60% { content: '麤'; }
    80% { content: '驫'; }
}
.gzh-anim-hanzi::before {
    content: '龘';
    animation: hanziSwap 3s steps(1) infinite;
}
@keyframes hanziSwap {
    0%, 19% { content: '龘'; }
    20%, 39% { content: '靐'; }
    40%, 59% { content: '龖'; }
    60%, 79% { content: '麤'; }
    80%, 100% { content: '驫'; }
}

/* 动画10: 养生 - 植物生长 */
.gzh-anim-health {
    font-size: 48px;
    animation: healthGrow 2s ease-in-out infinite;
}
@keyframes healthGrow {
    0%, 100% { transform: scale(0.8) rotate(-5deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

/* 动画11: 小林漫画 - 画笔绘制 */
.gzh-anim-xiaolin {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.gzh-anim-xiaolin span {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    animation: xiaolinPaint 1.2s ease-in-out infinite;
}
.gzh-anim-xiaolin span:nth-child(1) { background: #f87171; animation-delay: 0s; }
.gzh-anim-xiaolin span:nth-child(2) { background: #fbbf24; animation-delay: 0.2s; }
.gzh-anim-xiaolin span:nth-child(3) { background: #34d399; animation-delay: 0.4s; }
@keyframes xiaolinPaint {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 50px; opacity: 1; }
}

/* 动画12: 漫画 - 翻页效果 */
.gzh-anim-comic {
    width: 80px;
    height: 60px;
    position: relative;
    perspective: 300px;
}
.gzh-anim-comic-page {
    position: absolute;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 2px solid #ddd;
    border-radius: 4px;
    transform-origin: left center;
    animation: comicFlip 2.4s ease-in-out infinite;
}
.gzh-anim-comic-page:nth-child(1) { left: 15px; animation-delay: 0s; }
.gzh-anim-comic-page:nth-child(2) { left: 18px; animation-delay: 0.8s; }
.gzh-anim-comic-page:nth-child(3) { left: 21px; animation-delay: 1.6s; }
@keyframes comicFlip {
    0%, 40% { transform: rotateY(0deg); }
    60%, 100% { transform: rotateY(-150deg); }
}

/* 动画: 收入对比漫画 - 金币对比 */
.gzh-anim-income {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
}
.gzh-anim-income-coin {
    animation: incomeFloat 1.5s ease-in-out infinite alternate;
}
.gzh-anim-income-coin:first-child { animation-delay: 0s; }
.gzh-anim-income-coin:last-child { animation-delay: 0.75s; }
.gzh-anim-income-vs {
    font-size: 18px;
    font-weight: bold;
    color: #059669;
    animation: incomeVsPulse 1s ease-in-out infinite;
}
@keyframes incomeFloat {
    0% { transform: translateY(5px) scale(0.9); }
    100% { transform: translateY(-5px) scale(1.1); }
}
@keyframes incomeVsPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 动画: 职场漫画 - 办公元素 */
.gzh-anim-workplace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
}
.gzh-anim-workplace span {
    animation: workplaceFloat 1.2s ease-in-out infinite;
}
.gzh-anim-workplace span:nth-child(1) { animation-delay: 0s; }
.gzh-anim-workplace span:nth-child(2) { animation-delay: 0.4s; }
.gzh-anim-workplace span:nth-child(3) { animation-delay: 0.8s; }
@keyframes workplaceFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.15); }
}

/* 动画13: 默认 - 渐变圆环 */
.gzh-anim-default {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: #07c160;
    border-radius: 50%;
    animation: defaultSpin 1s linear infinite;
}
@keyframes defaultSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 历史记录列表（公众号图文卡片） ========== */
#gzhHistoryList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 8px;
}
.gzh-history-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #f0f0f5;
}
.gzh-history-item:last-child {
    margin-bottom: 0;
}
.gzh-history-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72px;
    display: flex;
    align-items: stretch;
    z-index: 0;
}
.gzh-history-action-del {
    flex: 1;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.gzh-history-action-del:active {
    background: #dc2626;
}
.gzh-history-slide {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.22s ease;
    will-change: transform;
}
.gzh-history-slide.is-open {
    transform: translateX(-72px);
}
.gzh-history-main {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.gzh-history-feed:active {
    background: #fafafa;
}
.gzh-history-main--static {
    cursor: default;
}
.gzh-history-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2.35 / 1;
    background: #e4e4e7;
    overflow: hidden;
}
.gzh-history-cover--generating {
    background: transparent;
}
.gzh-history-cover-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gzh-history-cover-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}
.gzh-history-cover-fallback span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gzh-history-body {
    padding: 12px 14px 14px;
}
.gzh-history-title {
    font-size: 16px;
    font-weight: 700;
    color: #18181b;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gzh-history-digest {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #71717a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gzh-history-draft-hint {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.55;
    color: #166534;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}
.gzh-history-meta {
    font-size: 12px;
    color: #a1a1aa;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f4f4f5;
}
.gzh-history-account {
    color: #52525b;
    font-weight: 500;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gzh-history-time {
    margin-left: auto;
    flex-shrink: 0;
}
.gzh-history-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.gzh-history-status--draft {
    background: #dcfce7;
    color: #16a34a;
}
.gzh-history-status--ok {
    background: #e0e7ff;
    color: #4f46e5;
}
.gzh-history-status--error {
    background: #fee2e2;
    color: #dc2626;
}
.gzh-history-status--generating {
    background: linear-gradient(90deg, #ede9fe, #fae8ff, #ede9fe);
    background-size: 200% 100%;
    animation: gzhGenStatusShimmer 2s linear infinite;
    color: #059669;
}
.gzh-history-mp-btn {
    border: none;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}
.gzh-history-mp-btn:active {
    background: #d1fae5;
}

/* 生成中卡片动画 */
.gzh-history-item--generating .gzh-history-main:active {
    background: transparent;
}
.gzh-history-cover--generating {
    background: #1e1b4b;
}
.gzh-history-gen-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.gzh-history-gen-mesh {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.55), transparent 42%),
        radial-gradient(circle at 78% 68%, rgba(236, 72, 153, 0.45), transparent 40%),
        radial-gradient(circle at 52% 52%, rgba(6, 182, 212, 0.35), transparent 55%),
        linear-gradient(135deg, #312e81 0%, #4c1d95 45%, #831843 100%);
    animation: gzhGenMeshPulse 4s ease-in-out infinite;
}
.gzh-history-gen-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.16) 50%,
        transparent 65%
    );
    transform: translateX(-120%);
    animation: gzhGenShimmerSweep 2.4s ease-in-out infinite;
}
.gzh-history-gen-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
.gzh-history-gen-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
    border-right-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.45);
    animation: gzhGenSpin 0.85s linear infinite;
}
.gzh-history-gen-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.gzh-history-gen-badge-spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.25);
    border-top-color: #07c160;
    animation: gzhGenSpin 0.75s linear infinite;
    flex-shrink: 0;
}
.gzh-history-status--generating {
    gap: 6px;
}
@keyframes gzhGenSpin {
    to { transform: rotate(360deg); }
}
@keyframes gzhGenMeshPulse {
    0%, 100% { transform: scale(1); filter: saturate(1); }
    50% { transform: scale(1.04); filter: saturate(1.15); }
}
@keyframes gzhGenShimmerSweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}
@keyframes gzhGenStatusShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* 长按操作面板 */
.gzh-history-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}
.gzh-history-sheet.is-show {
    pointer-events: auto;
}
.gzh-history-sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
}
.gzh-history-sheet.is-show .gzh-history-sheet-mask {
    opacity: 1;
}
.gzh-history-sheet-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transform: translateY(110%);
    transition: transform 0.22s ease;
}
.gzh-history-sheet.is-show .gzh-history-sheet-panel {
    transform: translateY(0);
}
.gzh-history-sheet-del,
.gzh-history-sheet-cancel {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
}
.gzh-history-sheet-del {
    color: #ef4444;
    font-weight: 600;
    border-bottom: 1px solid #f4f4f5;
}
.gzh-history-sheet-cancel {
    color: #52525b;
}

.gzh-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #a1a1aa;
    font-size: 14px;
}
.gzh-history-more {
    display: block;
    text-align: center;
    padding: 14px;
    color: #059669;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* 字数选择单选组 */
.gzh-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.gzh-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.gzh-radio-item input {
    display: none;
}
.gzh-radio-item span {
    padding: 8px 16px;
    background: #f4f4f5;
    border-radius: 8px;
    font-size: 14px;
    color: #52525b;
    transition: all 0.15s;
}
.gzh-radio-item input:checked + span {
    background: linear-gradient(135deg, #07c160, #34d399);
    color: #fff;
    font-weight: 600;
}

/* ========== 生成成功动画 ========== */
.gzh-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #07c160 0%, #34d399 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.gzh-success-icon {
    font-size: 72px;
    animation: successBounce 0.6s ease-out;
}
.gzh-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    animation: successFadeIn 0.5s ease-out 0.3s both;
}
.gzh-success-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 12px;
    animation: successFadeIn 0.5s ease-out 0.5s both;
}
@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes successFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.gzh-submit-overlay {
    background: radial-gradient(circle at 30% 20%, #6ee7b7 0%, #07c160 45%, #047857 100%);
}
.gzh-submit-burst {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    animation: gzhSubmitBurst 1.6s ease-out infinite;
}
.gzh-submit-icon {
    position: relative;
    z-index: 1;
    animation: gzhSubmitRocket 1.2s ease-in-out infinite;
}
.gzh-submit-progress {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}
.gzh-submit-progress span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    animation: gzhSubmitDot 1s ease-in-out infinite;
}
.gzh-submit-progress span:nth-child(2) { animation-delay: 0.15s; }
.gzh-submit-progress span:nth-child(3) { animation-delay: 0.3s; }
@keyframes gzhSubmitBurst {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes gzhSubmitRocket {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.06); }
}
@keyframes gzhSubmitDot {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* 动画: 趣味漫画 - 笑脸 */
.gzh-anim-fun {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
}
.gzh-anim-fun span {
    animation: funBounce 0.8s ease-in-out infinite;
}
.gzh-anim-fun span:nth-child(1) { animation-delay: 0s; }
.gzh-anim-fun span:nth-child(2) { animation-delay: 0.2s; }
.gzh-anim-fun span:nth-child(3) { animation-delay: 0.4s; }
@keyframes funBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(15deg); }
}

/* 动画: 情感漫画 - 爱心 */
.gzh-anim-emotion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
}
.gzh-anim-emotion span {
    animation: emotionPulse 1s ease-in-out infinite;
}
.gzh-anim-emotion span:nth-child(1) { animation-delay: 0s; }
.gzh-anim-emotion span:nth-child(2) { animation-delay: 0.3s; }
.gzh-anim-emotion span:nth-child(3) { animation-delay: 0.6s; }
@keyframes emotionPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* 动画: 历史漫画 - 古风元素 */
.gzh-anim-history {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
}
.gzh-anim-history span {
    animation: historyFloat 1.5s ease-in-out infinite;
}
.gzh-anim-history span:nth-child(1) { animation-delay: 0s; }
.gzh-anim-history span:nth-child(2) { animation-delay: 0.5s; }
.gzh-anim-history span:nth-child(3) { animation-delay: 1s; }
@keyframes historyFloat {
    0%, 100% { transform: translateY(0) rotate(0); opacity: 0.7; }
    50% { transform: translateY(-12px) rotate(10deg); opacity: 1; }
}

/* 动画: 星座漫画 - 星象闪烁 */
.gzh-anim-zodiac {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 36px;
}
.gzh-anim-zodiac span {
    animation: zodiacTwinkle 1.4s ease-in-out infinite;
}
.gzh-anim-zodiac span:nth-child(1) { animation-delay: 0s; }
.gzh-anim-zodiac span:nth-child(2) { animation-delay: 0.35s; }
.gzh-anim-zodiac span:nth-child(3) { animation-delay: 0.7s; }
@keyframes zodiacTwinkle {
    0%, 100% { transform: scale(0.85) rotate(-6deg); opacity: 0.6; }
    50% { transform: scale(1.15) rotate(6deg); opacity: 1; }
}

/* 内容提示文本框 */
.gzh-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

/* 链接提取行 */
.gzh-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.gzh-link-row .gzh-input {
    flex: 1;
}
.gzh-link-row .gzh-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 14px;
}
.gzh-btn--outline {
    background: #fff;
    color: #059669;
    border: 1px solid #07c160;
}
.gzh-btn--outline:active {
    background: #ecfdf5;
}

/* 提取文案按钮 - 紫色渐变 */
.gzh-btn--extract {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #07c160 0%, #34d399 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.gzh-btn--extract:active {
    transform: scale(0.98);
    opacity: 0.9;
}
.gzh-btn--extract:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ===== 对齐首页：页面底色 + 浮动底栏 ===== */
body.gzh-viral-page,
body.xhs-viral-page {
  background: #F3F6FB !important;
}
body.gzh-viral-page .app-container,
body.xhs-viral-page .app-container {
  background: transparent;
}
body.gzh-viral-page .nav-header,
body.xhs-viral-page .nav-header {
  /* 底栏切换易触发滚动恢复；sticky 会把 hero 标题盖住，只剩眉题露一点 */
  position: relative !important;
  top: auto !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  z-index: 300;
}
body.gzh-viral-page .ps-card,
body.xhs-viral-page .ps-card {
  border-radius: 16px !important;
  border: 1px solid rgba(15,23,42,0.06) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04) !important;
  background: #fff !important;
}
html body.gzh-viral-page .tab-bar,
html body.xhs-viral-page .tab-bar,
html body.page-tab-gzh-master .tab-bar,
html body.page-tab-xhs-master .tab-bar,
html body.page-tab-assistant .tab-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: var(--h5-app-max-width, 430px) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 2px max(4px, env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-top: 1px solid rgba(15,23,42,0.08) !important;
  border-radius: 0 !important;
  box-shadow: 0 -2px 10px rgba(15,23,42,0.04) !important;
  z-index: 12000 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0 !important;
}
html body.gzh-viral-page .tab-bar .tab-item,
html body.xhs-viral-page .tab-bar .tab-item {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  padding: 6px 2px !important;
  border-radius: 14px !important;
  transition: color .2s ease, background .2s ease !important;
}
html body.gzh-viral-page .tab-bar .tab-item.active {
  color: #059669 !important;
  background: rgba(7, 193, 96, 0.12) !important;
  font-weight: 700 !important;
}
html body.xhs-viral-page .tab-bar .tab-item.active {
  color: #e11d48 !important;
  background: rgba(255, 36, 66, 0.10) !important;
  font-weight: 700 !important;
}
html body.gzh-viral-page .tab-bar .tab-item svg.tab-icon,
html body.xhs-viral-page .tab-bar .tab-item svg.tab-icon,
html body.gzh-viral-page .tab-bar .tab-item svg.tab-icon path,
html body.xhs-viral-page .tab-bar .tab-item svg.tab-icon path,
html body.gzh-viral-page .tab-bar .tab-item svg.tab-icon circle,
html body.xhs-viral-page .tab-bar .tab-item svg.tab-icon circle,
html body.gzh-viral-page .tab-bar .tab-item svg.tab-icon rect,
html body.xhs-viral-page .tab-bar .tab-item svg.tab-icon rect {
  fill: none !important;
  stroke: currentColor !important;
  color: inherit !important;
}
html body.gzh-viral-page .tab-bar .tab-item .tab-label,
html body.xhs-viral-page .tab-bar .tab-item .tab-label {
  font-size: 10px !important;
  font-weight: 650 !important;
}
body.gzh-viral-page .gzh-panel,
body.xhs-viral-page .gzh-panel,
body.xhs-viral-page #createPanels {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
}


/* ===== 小红书页：平台暖红 Soft UI（告别通用蓝工具感） ===== */
html body.xhs-viral-page {
  background: #faf7f8 !important;
  color: #1f1215 !important;
}
body.xhs-viral-page .ps-main-tabs {
  background: transparent !important;
  border-bottom: none !important;
  gap: 8px !important;
  padding: 0 12px 12px !important;
  margin-top: -2px !important;
}
body.xhs-viral-page .ps-main-tabs .ps-tab {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 36, 66, 0.12) !important;
  background: #fff !important;
  color: #64748b !important;
  padding: 8px 12px !important;
}
body.xhs-viral-page .ps-main-tabs .ps-tab.active {
  color: #e11d48 !important;
  border-color: rgba(255, 36, 66, 0.32) !important;
  background: #fff1f2 !important;
}
body.xhs-viral-page .xhs-cat-chip {
  border: 1px solid rgba(255, 36, 66, 0.12) !important;
  background: #fff !important;
  color: #64748b !important;
}
body.xhs-viral-page .xhs-cat-chip.is-on {
  background: #fff1f2 !important;
  border-color: rgba(255, 36, 66, 0.32) !important;
  color: #e11d48 !important;
}
body.xhs-viral-page .xhs-tpl-card.is-on {
  border-color: #ff2442 !important;
  box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.18), 0 6px 16px rgba(255, 36, 66, 0.10) !important;
}
body.xhs-viral-page .gzh-activate-card {
  border: 1px solid rgba(255, 36, 66, 0.12) !important;
  background: linear-gradient(165deg, #fff 0%, #fff5f6 100%) !important;
}
body.xhs-viral-page .gzh-activate-card__avatar,
body.xhs-viral-page .gzh-activate-card__status-val.is-active {
  background: linear-gradient(145deg, #ff2442, #fb7185) !important;
  color: #fff !important;
}

/* 步骤序号：去掉纯黑，跟平台色 */
html body.gzh-viral-page .hec-step-num {
  background: #07c160 !important;
  color: #fff !important;
}
html body.xhs-viral-page .hec-step-num {
  background: #ff2442 !important;
  color: #fff !important;
}
html body.gzh-viral-page .hec-ratio-pill.is-on {
  background: #ecfdf5 !important;
  border-color: rgba(7, 193, 96, 0.4) !important;
  color: #059669 !important;
}
html body.xhs-viral-page .hec-ratio-pill.is-on {
  background: #fff1f2 !important;
  border-color: rgba(255, 36, 66, 0.4) !important;
  color: #e11d48 !important;
}
