:root {
    /* 主色系 */
    --color-primary: #1677FF;
    --color-primary-light: #4096FF;
    --color-primary-dark: #094DD1;
    --color-primary-glow: rgba(22, 119, 255, 0.3);

    /* 功能色 */
    --color-success: #00C48C;
    --color-warning: #FF7D29;
    --color-danger: #F53F3F;
    --color-info: #845EF7;

    /* 浅色模式（默认） - 加深一点点，提升对比度 */
    --bg-body: #E8EEF6;
    --bg-card: #FFFFFF;
    --bg-card-gradient: linear-gradient(180deg, #FFFFFF 0%, #F0F4FA 100%);
    --bg-table-stripe: rgba(22, 119, 255, 0.04);
    --bg-table-header: rgba(9, 77, 209, 0.08);
    
    --text-main: #14181F;
    --text-secondary: #566373;
    
    --border-color: #D3E0F0;
    --border-light: rgba(22, 119, 255, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(22, 119, 255, 0.06);
    --shadow-md: 0 4px 16px rgba(22, 119, 255, 0.1);
    --shadow-lg: 0 8px 24px rgba(22, 119, 255, 0.15);
    --shadow-inner: inset 0 1px 3px rgba(255, 255, 255, 0.8);
    
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* 尺寸与间距 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;

    --header-height: 64px;
}

[data-theme="dark"] {
    /* 深色模式 */
    --bg-body: #0A101C;
    --bg-card: #121A2D;
    --bg-card-gradient: linear-gradient(180deg, #121A2D 0%, #0A101C 100%);
    --bg-table-stripe: rgba(22, 119, 255, 0.05);
    --bg-table-header: rgba(9, 77, 209, 0.2);
    
    --text-main: #F2F5FA;
    --text-secondary: #94A3B8;
    
    --border-color: #23304A;
    --border-light: rgba(22, 119, 255, 0.15);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(22, 119, 255, 0.15);
    --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    
    --glass-bg: rgba(18, 26, 45, 0.85);
}

/* ================= 基础重置 ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--color-primary-light);
    text-shadow: 0 0 8px var(--color-primary-glow);
}

ul, ol {
    list-style: none;
}

/* ================= 布局 ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-nav {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    position: sticky;
    top: 0;
    z-index: 90;
}

.top-nav-inner {
    gap: 16px;
    min-width: 0;
}

.top-nav-brand,
.top-nav-menu {
    flex-shrink: 0;
}

/* ========== 顶栏文字广告跑马灯 ========== */
.header-ad-marquee {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    margin: 0 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1.5px solid rgba(22, 119, 255, 0.42);
    background:
        linear-gradient(90deg, rgba(22, 119, 255, 0.16), rgba(14, 196, 196, 0.12), rgba(22, 119, 255, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 16px rgba(22, 119, 255, 0.16);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

[data-theme="dark"] .header-ad-marquee {
    border-color: rgba(96, 165, 255, 0.55);
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.32), rgba(14, 196, 196, 0.22), rgba(37, 99, 235, 0.32));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 18px rgba(37, 99, 235, 0.35);
}

.header-ad-marquee-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.header-ad-marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    height: 100%;
    padding-left: 14px;
    animation: headerAdMarquee 24s linear infinite;
    will-change: transform;
}

.header-ad-marquee:hover .header-ad-marquee-track {
    animation-play-state: paused;
}

.header-ad-item {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    line-height: 1;
    color: #0639a8;
    -webkit-text-fill-color: #0639a8;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 0 12px rgba(22, 119, 255, 0.28);
    animation: headerAdPulseText 2.8s ease-in-out infinite;
}

[data-theme="dark"] .header-ad-item {
    color: #9fd0ff;
    -webkit-text-fill-color: #9fd0ff;
    text-shadow:
        0 0 10px rgba(96, 165, 255, 0.65),
        0 0 22px rgba(56, 189, 248, 0.35),
        0 1px 0 rgba(0, 0, 0, 0.35);
}

.header-ad-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.6rem;
    font-size: 1rem;
    color: #1677FF;
    opacity: 0.95;
    animation: headerAdPulse 2.2s ease-in-out infinite;
}

[data-theme="dark"] .header-ad-sep {
    color: #7dd3fc;
}

@keyframes headerAdMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes headerAdPulseText {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.92; filter: brightness(1.12); }
}

@keyframes headerAdPulse {
    0%, 100% { opacity: 0.65; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 900px) {
    .header-ad-marquee {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-ad-marquee-track,
    .header-ad-item,
    .header-ad-sep {
        animation: none;
    }
    .header-ad-marquee-track {
        transform: none;
        justify-content: center;
        width: 100%;
        padding: 0 16px;
    }
    .header-ad-item:nth-of-type(n + 2),
    .header-ad-sep {
        display: none;
    }
    .header-ad-item {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.page-content {
    padding: var(--space-lg);
    flex: 1;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ================= 组件：卡片 ================= */
.tech-card {
    background: var(--bg-card);
    background-image: var(--bg-card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm), var(--shadow-inner);
    padding: var(--space-md);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.tech-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ================= 组件：按钮 ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    outline: none;
    white-space: nowrap;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 填充按钮 */
.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 4px var(--color-primary-glow);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    box-shadow: 0 4px 12px var(--color-primary-glow);
    color: #FFFFFF;
}

/* 线性按钮 */
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: rgba(22, 119, 255, 0.1);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* 文字按钮 */
.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px;
}

.btn-text:hover {
    color: var(--color-primary);
    background: rgba(22, 119, 255, 0.05);
}

/* 功能色按钮 */
.btn-success { background: var(--color-success); color: #FFF; }
.btn-danger { background: var(--color-danger); color: #FFF; }
.btn-warning { background: var(--color-warning); color: #FFF; }

.btn-success:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3); }
.btn-danger:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(245, 63, 63, 0.3); }
.btn-warning:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(255, 125, 41, 0.3); }

/* ================= 组件：表单与输入框 ================= */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-body);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.form-control:hover {
    box-shadow: inset 0 0 0 1px var(--border-light);
}

.form-control:focus {
    background-color: var(--bg-card);
    box-shadow: inset 0 0 0 1px var(--color-primary), 0 0 0 3px var(--color-primary-glow);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 开关组件 */
.tech-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.tech-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tech-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.tech-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFF;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .tech-switch-slider {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

input:checked + .tech-switch-slider:before {
    transform: translateX(20px);
}

/* ================= 组件：表格 ================= */
.tech-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 1.25em 0;
}

.tech-table {
    display: table !important;
    width: 100%;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    line-height: 1.65;
}

.tech-table th, .tech-table td {
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    word-break: break-word;
    min-width: 8em;
}

.tech-table th {
    background-color: var(--bg-table-header);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 16px 22px;
    letter-spacing: 0.01em;
    min-width: 7em;
}

.tech-table td + td,
.tech-table th + th {
    border-left: 1px solid var(--border-color);
}

.tech-table tbody tr:last-child td {
    border-bottom: none;
}

[data-theme="dark"] .tech-table th {
    color: var(--color-primary-light);
}

.tech-table tbody tr {
    transition: background-color 0.2s ease;
}

.tech-table tbody tr:nth-child(even) {
    background-color: var(--bg-table-stripe);
}

.tech-table tbody tr:hover {
    background-color: rgba(22, 119, 255, 0.05);
}

/* ================= 组件：弹窗 ================= */
body.modal-open {
    overflow: hidden !important;
}

body.modal-open .top-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tech-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 28, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overscroll-behavior: contain;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tech-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tech-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 48px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-light);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
    overflow: hidden;
    overscroll-behavior: contain;
}

.tech-modal-overlay.active .tech-modal {
    transform: translateY(0) scale(1);
}

.tech-modal-header {
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.1), transparent);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.tech-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tech-modal-close:hover {
    color: var(--color-danger);
    background: rgba(245, 63, 63, 0.1);
}

.tech-modal-body {
    padding: 24px;
}

.tech-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ================= 组件：标签 ================= */
.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    background: rgba(22, 119, 255, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(22, 119, 255, 0.2);
}

.tech-tag.success { background: rgba(0, 196, 140, 0.1); color: var(--color-success); border-color: rgba(0, 196, 140, 0.2); }
.tech-tag.warning { background: rgba(255, 125, 41, 0.1); color: var(--color-warning); border-color: rgba(255, 125, 41, 0.2); }
.tech-tag.danger { background: rgba(245, 63, 63, 0.1); color: var(--color-danger); border-color: rgba(245, 63, 63, 0.2); }

/* ================= 空状态与加载动画 ================= */
.tech-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    color: var(--text-secondary);
}

.tech-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
    position: relative;
}

.tech-empty-icon::before, .tech-empty-icon::after {
    content: '';
    position: absolute;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.tech-empty-icon::before {
    width: 60px; height: 60px;
    border-top-color: var(--color-primary);
    animation: spin 3s linear infinite;
}

.tech-empty-icon::after {
    width: 40px; height: 40px;
    border-bottom-color: var(--color-primary-light);
    animation: spin 2s linear infinite reverse;
}

.tech-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.tech-loading-bar {
    width: 4px;
    height: 24px;
    background: var(--color-primary);
    margin: 0 4px;
    border-radius: 2px;
    animation: loading-pulse 1s ease-in-out infinite;
    box-shadow: 0 0 8px var(--color-primary-glow);
}

.tech-loading-bar:nth-child(2) { animation-delay: 0.1s; }
.tech-loading-bar:nth-child(3) { animation-delay: 0.2s; }
.tech-loading-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes loading-pulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ================= AI 执行进度遮罩 ================= */
.ai-progress-overlay {
    z-index: 11000;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(132, 94, 247, 0.22), transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(22, 119, 255, 0.16), transparent 50%),
        rgba(10, 16, 28, 0.78);
    backdrop-filter: blur(6px);
}

.ai-progress-modal {
    max-width: 560px;
    width: min(94vw, 560px);
    border: 1px solid rgba(132, 94, 247, 0.28);
    background:
        linear-gradient(165deg, rgba(132, 94, 247, 0.08), transparent 42%),
        var(--bg-card);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(132, 94, 247, 0.08);
}

.ai-progress-panel {
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-progress-orb {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    position: relative;
    display: grid;
    place-items: center;
}

.ai-progress-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-info);
    border-right-color: rgba(22, 119, 255, 0.55);
    animation: ai-progress-spin 1.1s linear infinite;
}

.ai-progress-orb-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--color-info);
    background: linear-gradient(145deg, rgba(132, 94, 247, 0.16), rgba(22, 119, 255, 0.1));
    box-shadow: inset 0 0 0 1px rgba(132, 94, 247, 0.18);
}

.ai-progress-orb-core i,
.ai-progress-orb-core svg {
    width: 22px;
    height: 22px;
}

.ai-progress-copy {
    text-align: center;
}

.ai-progress-eyebrow {
    margin: 0 0 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-info);
    font-weight: 600;
}

.ai-progress-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.ai-progress-task {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-progress-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ai-progress-meta-item {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(22, 119, 255, 0.04);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-progress-meta-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.ai-progress-meta-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
}

.ai-progress-timer {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--color-info);
}

.ai-progress-track {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(132, 94, 247, 0.12);
}

.ai-progress-track-bar {
    height: 100%;
    width: 28%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-info));
    animation: ai-progress-indeterminate 1.6s ease-in-out infinite;
}

.ai-progress-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.ai-progress-steps li {
    position: relative;
    padding: 8px 10px 8px 30px;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: var(--text-secondary);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.ai-progress-steps li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--border-color);
}

.ai-progress-steps li.is-done {
    color: var(--color-success);
}

.ai-progress-steps li.is-done::before {
    background: var(--color-success);
}

.ai-progress-steps li.is-active {
    color: var(--color-info);
    background: rgba(132, 94, 247, 0.08);
    font-weight: 600;
}

.ai-progress-steps li.is-active::before {
    background: var(--color-info);
    box-shadow: 0 0 0 4px rgba(132, 94, 247, 0.15);
}

.ai-progress-prompt {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.ai-progress-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(22, 119, 255, 0.04);
}

.ai-progress-prompt-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.ai-progress-prompt-body {
    margin: 0;
    padding: 10px 12px;
    max-height: 160px;
    overflow: auto;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ai-progress-error {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(245, 63, 63, 0.08);
    border: 1px solid rgba(245, 63, 63, 0.25);
}

.ai-progress-error-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-danger);
    margin-bottom: 6px;
}

.ai-progress-error-header i,
.ai-progress-error-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ai-progress-error-message {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-wrap;
}

.ai-progress-error-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ai-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.ai-progress-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.ai-progress-panel[data-ai-progress-state="failed"] .ai-progress-orb-ring {
    animation: none;
    border-color: rgba(245, 63, 63, 0.35);
    border-top-color: var(--color-danger);
}

.ai-progress-panel[data-ai-progress-state="failed"] .ai-progress-orb-core {
    color: var(--color-danger);
    background: rgba(245, 63, 63, 0.1);
    box-shadow: inset 0 0 0 1px rgba(245, 63, 63, 0.2);
}

.ai-progress-panel[data-ai-progress-state="failed"] .ai-progress-eyebrow {
    color: var(--color-danger);
}

.ai-progress-panel[data-ai-progress-state="failed"] .ai-progress-track-bar {
    animation: none;
    width: 100%;
    background: var(--color-danger);
}

.ai-progress-panel[data-ai-progress-state="success"] .ai-progress-orb-ring {
    animation: none;
    border-color: rgba(0, 196, 140, 0.35);
    border-top-color: var(--color-success);
}

.ai-progress-panel[data-ai-progress-state="success"] .ai-progress-orb-core {
    color: var(--color-success);
    background: rgba(0, 196, 140, 0.1);
}

.ai-progress-panel[data-ai-progress-state="success"] .ai-progress-track-bar {
    animation: none;
    width: 100%;
    background: var(--color-success);
}

@keyframes ai-progress-spin {
    to { transform: rotate(360deg); }
}

@keyframes ai-progress-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(360%); }
}

@media (max-width: 520px) {
    .ai-progress-panel {
        padding: 22px 18px 18px;
    }

    .ai-progress-meta {
        grid-template-columns: 1fr;
    }

    .ai-progress-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-progress-footer .btn {
        width: 100%;
    }
}

.is-hidden {
    display: none !important;
}

/* ================= 辅助类 ================= */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--text-secondary); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ================= 侧边栏菜单项 ================= */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) var(--space-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(22, 119, 255, 0.05);
    color: var(--color-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.1), transparent);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.nav-item svg {
    stroke-width: 2px;
}

/* ================= 前台样式特定 ================= */
.hero-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 40%);
    opacity: 0.3;
    z-index: -1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-main), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* 进度条 */
.tech-progress {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.tech-progress-bar {
    height: 100%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
    transition: width 0.3s ease;
}

/* 提示浮层 */
.tech-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--bg-card);
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-toast.show {
    transform: translateX(0);
}

.tech-toast.success { border-color: var(--color-success); }
.tech-toast.error { border-color: var(--color-danger); }
.tech-toast.warning { border-color: var(--color-warning); }

/* Markdown 输出适配 */
.markdown-body {
    color: var(--text-main);
    line-height: 1.8;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    color: var(--text-main);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.markdown-body pre {
    position: relative;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
}
/* 终端/代码窗在前台 markdown-body 内时，覆盖上面的浅色 pre 背景 */
.markdown-body .fx-terminal pre,
.markdown-body .fx-terminal code,
.markdown-body .fx-terminal .hljs,
.markdown-body .fx-terminal .hljs * {
    background: #0b0b0b !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
}
.markdown-body .fx-code-window pre {
    background: #0f172a !important;
    color: #e5eefc !important;
    border: 0 !important;
}
.markdown-body .fx-code-window code,
.markdown-body .fx-code-window .hljs,
.markdown-body .fx-code-window .hljs * {
    background: transparent !important;
    color: #e5eefc !important;
}
.markdown-body pre.has-code-copy {
    padding-bottom: 42px;
}
.markdown-body code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    background: rgba(22, 119, 255, 0.05);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
}
.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
/* 用户自定义颜色的代码块：跳过/保留内联颜色，不被代码高亮主题覆盖 */
.markdown-body pre[data-ceo-preserve-style] code,
.markdown-body pre code[data-ceo-preserve-style],
.markdown-body pre code.nohighlight {
    color: inherit;
}
.markdown-body .code-copy-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08);
    backdrop-filter: blur(6px);
    opacity: 0.78;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.markdown-body pre:hover > .code-copy-btn,
.markdown-body .code-copy-btn:focus-visible,
.markdown-body .code-copy-btn.is-copied {
    opacity: 1;
}
.markdown-body .code-copy-btn:hover {
    color: var(--color-primary);
    border-color: rgba(22, 119, 255, 0.35);
    background: #fff;
    transform: translateY(-1px);
}
.markdown-body .code-copy-btn.is-copied {
    color: var(--color-success);
    border-color: rgba(0, 196, 140, 0.35);
}
.markdown-body .code-copy-btn i,
.markdown-body .code-copy-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.fx-terminal .code-copy-btn {
    background: rgba(20, 20, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.fx-terminal .code-copy-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(30, 30, 30, 0.98);
}
[data-theme="dark"] .markdown-body .code-copy-btn {
    background: rgba(18, 26, 45, 0.92);
    color: var(--text-secondary);
}
[data-theme="dark"] .markdown-body .code-copy-btn:hover {
    background: rgba(18, 26, 45, 1);
    color: var(--color-primary-light);
}
.markdown-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 16px;
    color: var(--text-secondary);
    background: rgba(22, 119, 255, 0.02);
    margin: 0;
    padding: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.markdown-body ul,
.markdown-body ol {
    list-style: revert;
    padding-left: 1.5em;
    margin: 0.75em 0 1.2em;
}

.markdown-body ul { list-style-type: disc; }
.markdown-body ol { list-style-type: decimal; }
.markdown-body li { margin: 0.35em 0; }
.markdown-body li > ul,
.markdown-body li > ol { margin: 0.25em 0; }

.markdown-body table {
    display: table;
    width: 100%;
    min-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin: 1.4em 0;
    line-height: 1.65;
}
.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    vertical-align: top;
    word-break: break-word;
    min-width: 8em;
}
.markdown-body th {
    background: var(--bg-table-header);
    padding: 16px 20px;
    font-weight: 600;
}

/* 二次美化后的 tech-table：撑满容器，避免被 markdown 规则挤窄 */
.markdown-body .tech-table-container {
    width: 100%;
    max-width: 100%;
    margin: 1.4em 0;
}
.markdown-body .tech-table {
    display: table !important;
    width: 100%;
    min-width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.markdown-body .tech-table th,
.markdown-body .tech-table td {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 22px;
    min-width: 8em;
}
.markdown-body .tech-table th {
    padding: 16px 22px;
}
.markdown-body .tech-table td + td,
.markdown-body .tech-table th + th {
    border-left: 1px solid var(--border-color);
}
.markdown-body .tech-table tbody tr:last-child td {
    border-bottom: none;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* WordPress emoji 图片保持行内，避免编辑器/预览里被当成大图 */
.markdown-body img.emoji,
.markdown-body img[data-emoji],
.markdown-body img[src*="s.w.org/images/core/emoji"],
.markdown-body img[src*="/emoji/"],
.simple-visual-editor img.emoji,
.simple-visual-editor img[data-emoji],
.simple-visual-editor img[src*="s.w.org/images/core/emoji"],
.simple-visual-editor img[src*="/emoji/"] {
    display: inline !important;
    width: 1.15em;
    height: 1.15em;
    max-width: none;
    margin: 0 0.08em;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    vertical-align: -0.2em;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}

/* ================= 补充工具类 ================= */
.flex-1 { flex: 1 1 0%; min-width: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mt-2 { margin-top: 8px; }
.pl-12 { padding-left: 48px; }
.font-weight-600 { font-weight: 600; }
.text-info { color: var(--color-info); }

.tech-tag.info {
    background: rgba(132, 94, 247, 0.1);
    color: var(--color-info);
    border-color: rgba(132, 94, 247, 0.2);
}

.btn.small,
.btn-outline.small,
.ghost-button.small {
    padding: 4px 10px;
    font-size: 0.85rem;
}

.btn-outline.danger,
.btn.danger {
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-outline.danger:hover,
.btn.danger:hover {
    background: rgba(245, 63, 63, 0.1);
    box-shadow: 0 0 8px rgba(245, 63, 63, 0.25);
}

/* ================= 幽灵按钮 / 页头操作 ================= */
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.ghost-button:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(22, 119, 255, 0.06);
    text-shadow: none;
}

.ghost-button.danger {
    color: var(--color-danger);
}

.ghost-button.danger:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: rgba(245, 63, 63, 0.08);
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.section-heading h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-main);
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(0, 196, 140, 0.1);
    color: var(--color-success);
    border-color: rgba(0, 196, 140, 0.2);
}

.alert.error {
    background: rgba(245, 63, 63, 0.1);
    color: var(--color-danger);
    border-color: rgba(245, 63, 63, 0.2);
}

.muted {
    color: var(--text-secondary);
}

.panel-card {
    background: var(--bg-card);
    background-image: var(--bg-card-gradient);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.panel-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    gap: var(--space-md);
}

.admin-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .admin-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-cols-2,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 72px;
    }

    .nav-item span {
        display: none;
    }
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stack-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.stack-form label span {
    font-weight: 500;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
    background-color: var(--bg-card);
}

.checkbox-line {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 4px var(--color-primary-glow);
    transition: all 0.2s ease;
}

.primary-button:hover {
    background: var(--color-primary-light);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.link-button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

.link-button.danger {
    color: var(--color-danger);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background: var(--bg-table-header);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

[data-theme="dark"] .data-table th {
    color: var(--color-primary-light);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-row form {
    display: inline;
}

/* ================= 编辑器 / 目录补充 ================= */
.simple-editor-note {
    margin-bottom: var(--space-md);
}

.simple-editor-note strong {
    display: block;
    margin-bottom: 4px;
}

.body-module-empty,
.toc-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(22, 119, 255, 0.02);
}

.toc-list,
.toc-sublist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: var(--color-primary);
    text-shadow: none;
}

.video-fallback {
    margin: 1.4em 0;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(22, 119, 255, 0.35);
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.06), rgba(64, 150, 255, 0.02));
    text-align: center;
}

.video-fallback a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.video-fallback a:hover {
    text-decoration: underline;
}

.video-player {
    margin: 1.6em 0;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(64, 150, 255, 0.22), transparent 55%),
        radial-gradient(100% 90% at 100% 100%, rgba(9, 77, 209, 0.18), transparent 50%),
        linear-gradient(160deg, #0b1220 0%, #121a2d 48%, #0a101c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 40px rgba(9, 30, 66, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-player-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.video-player-chrome-left,
.video-player-chrome-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.video-player-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: video-player-pulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes video-player-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.video-player-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-player-chip--hd {
    color: #91caff;
    border-color: rgba(64, 150, 255, 0.35);
    background: rgba(22, 119, 255, 0.18);
}

.video-player-stage {
    position: relative;
    padding: 0 10px 12px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55)),
        #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-player .video-embed {
    margin: 0;
}

.markdown-body > .video-embed,
.simple-visual-editor > .video-embed {
    margin: 1.4em 0;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(9, 30, 66, 0.16);
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.video-embed video {
    object-fit: contain;
}

.markdown-body.is-loading-content {
    min-height: 240px;
    position: relative;
}

.markdown-body.is-loading-content::before {
    content: '内容加载中…';
    display: block;
    padding: 48px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.video-player[data-video-provider="file"] video:not([src]) {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55)),
        #111;
}

.video-player[data-video-provider="file"] video[data-defer-video]:not([data-video-ready="1"])::after {
    content: none;
}

.simple-visual-editor .video-player,
.markdown-body .video-player {
    max-width: 100%;
}

@media (max-width: 720px) {
    .video-player {
        border-radius: 14px;
    }

    .video-player-chrome {
        padding: 10px 12px;
    }

    .video-player-stage {
        padding: 0 8px 10px;
    }

    .video-player-chip:not(.video-player-chip--hd) {
        display: none;
    }
}

.editor-image-resizer {
    position: absolute;
    border: 2px solid var(--color-primary);
    pointer-events: none;
    z-index: 50;
}

/* ================= 正文美化特效 ================= */
.content-button,
.markdown-body .content-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 650;
    box-shadow: 0 10px 24px var(--color-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.content-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px var(--color-primary-glow);
    filter: brightness(1.04);
}
.content-button.button-success {
    background: linear-gradient(135deg, #00c48c, #34d399);
    box-shadow: 0 10px 24px rgba(0, 196, 140, 0.28);
}
.content-button.button-warning {
    background: linear-gradient(135deg, #ff7d29, #ffb347);
    box-shadow: 0 10px 24px rgba(255, 125, 41, 0.28);
}
.download-button,
.markdown-body .download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px dashed rgba(22, 119, 255, 0.45);
    color: var(--color-primary) !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.1), rgba(22, 119, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.download-button:hover {
    transform: translateY(-1px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.12);
}

.badge-chip,
.markdown-body .badge-chip,
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.14), rgba(64, 150, 255, 0.08));
    color: var(--color-primary);
    border: 1px solid rgba(22, 119, 255, 0.2);
    box-shadow: 0 4px 10px rgba(22, 119, 255, 0.08);
    vertical-align: middle;
}
.badge-chip.badge-success,
.tech-tag.success {
    background: linear-gradient(135deg, rgba(0, 196, 140, 0.16), rgba(0, 196, 140, 0.06));
    color: var(--color-success);
    border-color: rgba(0, 196, 140, 0.25);
    box-shadow: 0 4px 10px rgba(0, 196, 140, 0.1);
}
.badge-chip.badge-warning,
.tech-tag.warning {
    background: linear-gradient(135deg, rgba(255, 125, 41, 0.16), rgba(255, 125, 41, 0.06));
    color: var(--color-warning);
    border-color: rgba(255, 125, 41, 0.25);
}
.badge-chip.badge-dark {
    background: linear-gradient(135deg, #1f2937, #0f172a);
    color: #fff;
    border-color: transparent;
}

/* ---- Callouts ---- */
.fx-callout {
    position: relative;
    margin: 1.25em 0;
    padding: 16px 18px 16px 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(22, 119, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.fx-callout:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(22, 119, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.fx-callout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
}
.fx-callout::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.12), transparent 70%);
    pointer-events: none;
}
.fx-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 740;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.fx-callout-title svg,
.fx-callout-title i {
    width: 18px;
    height: 18px;
}
.fx-callout-body {
    color: var(--text-secondary);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}
.fx-callout--info {
    border-color: rgba(22, 119, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.12) 0%, rgba(22, 119, 255, 0.02) 48%, var(--bg-card) 100%);
}
.fx-callout--info::before { background: linear-gradient(180deg, #1677ff, #69b1ff); }
.fx-callout--info .fx-callout-title { color: var(--color-primary); }

.fx-callout--success {
    border-color: rgba(0, 196, 140, 0.2);
    background: linear-gradient(135deg, rgba(0, 196, 140, 0.12) 0%, rgba(0, 196, 140, 0.02) 48%, var(--bg-card) 100%);
}
.fx-callout--success::before { background: linear-gradient(180deg, #00c48c, #34d399); }
.fx-callout--success .fx-callout-title { color: var(--color-success); }
.fx-callout--success::after { background: radial-gradient(circle, rgba(0, 196, 140, 0.14), transparent 70%); }

.fx-callout--warning {
    border-color: rgba(255, 125, 41, 0.22);
    background: linear-gradient(135deg, rgba(255, 125, 41, 0.14) 0%, rgba(255, 125, 41, 0.02) 48%, var(--bg-card) 100%);
}
.fx-callout--warning::before { background: linear-gradient(180deg, #ff7d29, #ffb347); }
.fx-callout--warning .fx-callout-title { color: var(--color-warning); }
.fx-callout--warning::after { background: radial-gradient(circle, rgba(255, 125, 41, 0.14), transparent 70%); }

.fx-callout--danger {
    border-color: rgba(245, 63, 63, 0.22);
    background: linear-gradient(135deg, rgba(245, 63, 63, 0.12) 0%, rgba(245, 63, 63, 0.02) 48%, var(--bg-card) 100%);
}
.fx-callout--danger::before { background: linear-gradient(180deg, #f53f3f, #ff7875); }
.fx-callout--danger .fx-callout-title { color: var(--color-danger); }
.fx-callout--danger::after { background: radial-gradient(circle, rgba(245, 63, 63, 0.14), transparent 70%); }

.fx-callout--glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(22, 119, 255, 0.22);
    box-shadow: 0 12px 36px rgba(22, 119, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.fx-callout--glass::before {
    background: linear-gradient(180deg, rgba(132, 94, 247, 0.95), rgba(22, 119, 255, 0.85));
}
[data-theme="dark"] .fx-callout--glass {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(18, 26, 45, 0.5));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- Banners ---- */
.fx-banner {
    margin: 1.35em 0;
    padding: 22px 24px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28), transparent 35%),
        linear-gradient(135deg, #1677ff 0%, #3b9bff 42%, #36cfc9 100%);
    box-shadow: 0 16px 40px rgba(22, 119, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
}
.fx-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 48%, transparent 66%);
    animation: fxBannerShine 4.8s ease-in-out infinite;
    pointer-events: none;
}
.fx-banner::after {
    content: '';
    position: absolute;
    right: -36px;
    bottom: -46px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: -50px -30px 0 rgba(255, 255, 255, 0.08);
}
.fx-banner-title {
    font-size: 1.2rem;
    font-weight: 780;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.fx-banner-desc {
    margin: 0;
    opacity: 0.96;
    position: relative;
    z-index: 1;
    line-height: 1.75;
    max-width: 52ch;
}
.fx-banner--sunset {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.25), transparent 35%),
        linear-gradient(135deg, #ff7d29 0%, #f53f3f 52%, #ff9a62 100%);
    box-shadow: 0 16px 40px rgba(245, 63, 63, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.fx-banner--aurora {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(135deg, #722ed1 0%, #1677ff 48%, #13c2c2 100%);
    box-shadow: 0 16px 40px rgba(114, 46, 209, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@keyframes fxBannerShine {
    0%, 100% { transform: translateX(-30%); opacity: 0.35; }
    50% { transform: translateX(30%); opacity: 0.7; }
}

/* ---- Timeline ---- */
.fx-timeline {
    margin: 1.35em 0;
    padding: 8px 0 4px 6px;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, rgba(22, 119, 255, 0.55), rgba(54, 207, 201, 0.15)) 1;
}
.fx-timeline-item {
    position: relative;
    padding: 0 0 20px 24px;
}
.fx-timeline-item:last-child { padding-bottom: 0; }
.fx-timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677ff, #36cfc9);
    box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.14), 0 6px 14px rgba(22, 119, 255, 0.28);
}
.fx-timeline-title {
    font-weight: 740;
    margin-bottom: 6px;
    color: var(--text-main);
}
.fx-timeline-body {
    color: var(--text-secondary);
    line-height: 1.75;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.05), transparent);
    border: 1px solid rgba(22, 119, 255, 0.08);
}

/* ---- Checklist ---- */
.fx-checklist,
.markdown-body ul.fx-checklist {
    list-style: none !important;
    margin: 1.15em 0;
    padding: 0 !important;
    display: grid;
    gap: 10px;
}
.fx-checklist > li,
.markdown-body ul.fx-checklist > li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 196, 140, 0.08), rgba(22, 119, 255, 0.03));
    border: 1px solid rgba(0, 196, 140, 0.16);
    margin: 0;
    box-shadow: 0 6px 16px rgba(0, 196, 140, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fx-checklist > li:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 22px rgba(0, 196, 140, 0.1);
}
.fx-checklist > li::marker,
.markdown-body ul.fx-checklist > li::marker {
    content: '';
    color: transparent;
}
.fx-checklist > li::before {
    content: '✓';
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 760;
    color: #fff;
    background: linear-gradient(135deg, #00c48c, #34d399);
    box-shadow: 0 4px 10px rgba(0, 196, 140, 0.35);
    margin-top: 0;
}

/* ---- Code / Terminal ---- */
.fx-code-window {
    margin: 1.35em 0;
    border: 1px solid rgba(22, 119, 255, 0.16);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 14px 34px rgba(22, 119, 255, 0.1);
}
.fx-code-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background:
        linear-gradient(90deg, rgba(22, 119, 255, 0.1), rgba(54, 207, 201, 0.05));
    border-bottom: 1px solid rgba(22, 119, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}
.fx-code-window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
    margin-right: 34px;
}
.fx-code-window pre {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.02), transparent) !important;
}

.fx-terminal {
    margin: 1.35em 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0b0b;
    color: #ffffff;
    border: 1px solid #2a2a2a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.fx-terminal-bar {
    padding: 10px 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    background: #151515;
    border-bottom: 1px solid #2a2a2a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.fx-terminal pre,
.fx-terminal code,
.fx-terminal .hljs,
.fx-terminal .hljs *,
.markdown-body .fx-terminal pre,
.markdown-body .fx-terminal code,
.markdown-body .fx-terminal .hljs,
.markdown-body .fx-terminal .hljs *,
.simple-visual-editor .fx-terminal pre,
.simple-visual-editor .fx-terminal code {
    background: #0b0b0b !important;
    color: #ffffff !important;
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.fx-terminal pre,
.markdown-body .fx-terminal pre,
.simple-visual-editor .fx-terminal pre {
    padding: 16px 18px;
}
.fx-terminal .code-copy-btn {
    background: rgba(20, 20, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.fx-terminal .code-copy-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(30, 30, 30, 0.98);
}

/* ---- Compare / Quote / Divider ---- */
.fx-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 1.35em 0;
}
.fx-compare-item {
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.06);
    transition: transform 0.2s ease;
}
.fx-compare-item:hover { transform: translateY(-2px); }
.fx-compare-item--bad {
    background: linear-gradient(160deg, rgba(245, 63, 63, 0.12), rgba(245, 63, 63, 0.02) 55%, var(--bg-card));
    border-color: rgba(245, 63, 63, 0.28);
    box-shadow: 0 10px 24px rgba(245, 63, 63, 0.08);
}
.fx-compare-item--good {
    background: linear-gradient(160deg, rgba(0, 196, 140, 0.12), rgba(0, 196, 140, 0.02) 55%, var(--bg-card));
    border-color: rgba(0, 196, 140, 0.28);
    box-shadow: 0 10px 24px rgba(0, 196, 140, 0.08);
}
.fx-compare-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 740;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}
.fx-compare-item--bad .fx-compare-label {
    color: var(--color-danger);
    background: rgba(245, 63, 63, 0.1);
}
.fx-compare-item--good .fx-compare-label {
    color: var(--color-success);
    background: rgba(0, 196, 140, 0.1);
}

.fx-quote {
    margin: 1.35em 0;
    padding: 22px 24px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(54, 207, 201, 0.14), transparent 40%),
        linear-gradient(135deg, rgba(22, 119, 255, 0.1), rgba(132, 94, 247, 0.06));
    border: 1px solid rgba(22, 119, 255, 0.16);
    box-shadow: 0 14px 32px rgba(22, 119, 255, 0.08);
    position: relative;
}
.fx-quote::before {
    content: '“';
    position: absolute;
    top: 2px;
    left: 14px;
    font-size: 56px;
    color: rgba(22, 119, 255, 0.22);
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
}
.fx-quote-body {
    padding-left: 22px;
    color: var(--text-main);
    line-height: 1.85;
    font-weight: 560;
    font-size: 1.05rem;
}

.fx-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.8em 0;
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.fx-divider::before,
.fx-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.35), rgba(54, 207, 201, 0.35), transparent);
}

.fx-kbd,
.markdown-body .fx-kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    background: linear-gradient(180deg, #fff, #eef4fc);
    box-shadow: 0 2px 0 rgba(22, 119, 255, 0.18), inset 0 1px 0 #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84em;
    line-height: 1.5;
    color: var(--text-main);
}
[data-theme="dark"] .fx-kbd,
[data-theme="dark"] .markdown-body .fx-kbd {
    background: linear-gradient(180deg, #1a2438, #121a2d);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fx-mark,
.markdown-body .fx-mark {
    background: linear-gradient(120deg, rgba(255, 214, 102, 0.75), rgba(255, 236, 153, 0.35));
    padding: 0 5px;
    border-radius: 5px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.fx-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 1.35em 0;
}
.fx-feature-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.1), transparent 45%),
        var(--bg-card);
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.fx-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(22, 119, 255, 0.14);
    border-color: rgba(22, 119, 255, 0.28);
}
.fx-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.18), rgba(54, 207, 201, 0.12));
    color: var(--color-primary);
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.fx-feature-title { font-weight: 740; margin-bottom: 6px; }
.fx-feature-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin: 0; }

.fx-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.8em 0 1.1em;
}

.tip-box,
.info-box,
.success-box,
.warning-box {
    margin: 1.2em 0;
    padding: 15px 17px;
    border-radius: 14px;
    border-left: 5px solid var(--color-primary);
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.08), transparent 70%);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.06);
}
.info-box { border-left-color: var(--color-info, #845ef7); background: linear-gradient(90deg, rgba(132, 94, 247, 0.1), transparent 70%); }
.success-box { border-left-color: var(--color-success); background: linear-gradient(90deg, rgba(0, 196, 140, 0.1), transparent 70%); }
.warning-box { border-left-color: var(--color-warning); background: linear-gradient(90deg, rgba(255, 125, 41, 0.1), transparent 70%); }

/* ---- Sticky / Chat / Steps ---- */
.fx-sticky {
    margin: 1.35em 0;
    padding: 18px 20px;
    border-radius: 6px 18px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 28%),
        linear-gradient(145deg, #fff4b8 0%, #ffe27a 100%);
    color: #5a4718;
    box-shadow: 0 14px 30px rgba(255, 193, 7, 0.22), 3px 3px 0 rgba(0, 0, 0, 0.04);
    transform: rotate(-0.6deg);
    position: relative;
}
.fx-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 38%;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.fx-sticky-title { font-weight: 780; margin: 10px 0 8px; }
.fx-sticky-body { margin: 0; line-height: 1.75; }
[data-theme="dark"] .fx-sticky {
    background: linear-gradient(145deg, #4a3c1d, #3a2f16);
    color: #ffe8a3;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.fx-chat {
    display: grid;
    gap: 12px;
    margin: 1.35em 0;
}
.fx-chat-bubble {
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.75;
    border: 1px solid transparent;
    background: var(--bg-card);
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.08);
}
.fx-chat-bubble--q {
    justify-self: start;
    border-bottom-left-radius: 5px;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(22, 119, 255, 0.04));
    border-color: rgba(22, 119, 255, 0.16);
}
.fx-chat-bubble--a {
    justify-self: end;
    border-bottom-right-radius: 5px;
    background: linear-gradient(135deg, rgba(0, 196, 140, 0.14), rgba(0, 196, 140, 0.04));
    border-color: rgba(0, 196, 140, 0.2);
}
.fx-chat-role {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 740;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.55);
}

.fx-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 1.35em 0;
}
.fx-step {
    position: relative;
    padding: 18px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    background:
        radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.12), transparent 55%),
        var(--bg-card);
    text-align: center;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
    transition: transform 0.2s ease;
}
.fx-step:hover { transform: translateY(-3px); }
.fx-step-num {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 780;
    color: #fff;
    background: linear-gradient(135deg, #1677ff, #36cfc9);
    box-shadow: 0 0 0 5px rgba(22, 119, 255, 0.12), 0 8px 16px rgba(22, 119, 255, 0.3);
}
.fx-step-title { font-weight: 740; margin-bottom: 6px; }
.fx-step-desc { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

.fx-filetree {
    margin: 1.35em 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(22, 119, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(22, 119, 255, 0.07), transparent 40%),
        var(--bg-card);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.9;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
}
.fx-filetree-item { color: var(--text-main); }
.fx-filetree-item--dir { color: var(--color-primary); font-weight: 700; }
.fx-filetree-item--dir::before { content: '📁 '; }
.fx-filetree-item--file { color: var(--text-secondary); }
.fx-filetree-item--file::before { content: '📄 '; }
.fx-filetree-nest { padding-left: 18px; border-left: 1px dashed rgba(22, 119, 255, 0.2); margin-left: 6px; }

.fx-def {
    margin: 1.25em 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(114, 46, 209, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(114, 46, 209, 0.14), transparent 40%),
        linear-gradient(135deg, rgba(114, 46, 209, 0.08), rgba(22, 119, 255, 0.04));
    box-shadow: 0 12px 28px rgba(114, 46, 209, 0.1);
}
.fx-def-term {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 780;
    color: #722ed1;
    margin-bottom: 8px;
}
.fx-def-desc { margin: 0; color: var(--text-secondary); line-height: 1.75; }

.fx-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 1.25em 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(22, 119, 255, 0.16);
    background:
        linear-gradient(120deg, rgba(22, 119, 255, 0.08), transparent 55%),
        var(--bg-card);
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.fx-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(22, 119, 255, 0.14);
    border-color: rgba(22, 119, 255, 0.35);
}
.fx-link-card-title { font-weight: 740; margin-bottom: 4px; color: var(--color-primary); }
.fx-link-card-desc { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.fx-link-card-arrow {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1677ff, #36cfc9);
    color: #fff;
    box-shadow: 0 8px 16px rgba(22, 119, 255, 0.3);
}

.fx-shot {
    margin: 1.35em 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.16);
    background: var(--bg-card);
    box-shadow: 0 16px 36px rgba(22, 119, 255, 0.1);
}
.fx-shot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.1), rgba(54, 207, 201, 0.05));
    border-bottom: 1px solid rgba(22, 119, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 650;
}
.fx-shot-body { padding: 16px; }
.fx-shot-body img {
    display: block;
    width: 100%;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.fx-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 1.35em 0;
}
.fx-pros,
.fx-cons {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.06);
}
.fx-pros {
    background: linear-gradient(160deg, rgba(0, 196, 140, 0.14), rgba(0, 196, 140, 0.02) 60%, var(--bg-card));
    border-color: rgba(0, 196, 140, 0.25);
}
.fx-cons {
    background: linear-gradient(160deg, rgba(245, 63, 63, 0.12), rgba(245, 63, 63, 0.02) 60%, var(--bg-card));
    border-color: rgba(245, 63, 63, 0.25);
}
.fx-pros h4,
.fx-cons h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 760;
}
.fx-pros h4 { color: var(--color-success); }
.fx-cons h4 { color: var(--color-danger); }
.fx-pros ul,
.fx-cons ul {
    margin: 0;
    padding-left: 1.15em;
    color: var(--text-secondary);
    line-height: 1.75;
}

.fx-ribbon {
    margin: 1.35em 0;
    padding: 18px 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 119, 255, 0.12), transparent 40%),
        var(--bg-card);
    border: 1px solid rgba(22, 119, 255, 0.16);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
}
.fx-ribbon::before {
    content: attr(data-ribbon);
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1677ff, #36cfc9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 760;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    box-shadow: 0 6px 14px rgba(22, 119, 255, 0.3);
}
.fx-ribbon--hot::before { background: linear-gradient(135deg, #f53f3f, #ff7875); box-shadow: 0 6px 14px rgba(245, 63, 63, 0.3); }
.fx-ribbon--new::before { background: linear-gradient(135deg, #00c48c, #34d399); box-shadow: 0 6px 14px rgba(0, 196, 140, 0.3); }
.fx-ribbon-title { font-weight: 760; margin-bottom: 8px; padding-right: 72px; }
.fx-ribbon-body { margin: 0; color: var(--text-secondary); line-height: 1.75; }

.fx-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 1.35em 0;
}
.fx-metric {
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    background:
        radial-gradient(circle at 50% 0%, rgba(22, 119, 255, 0.12), transparent 55%),
        var(--bg-card);
    text-align: center;
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.08);
    transition: transform 0.2s ease;
}
.fx-metric:hover { transform: translateY(-2px); }
.fx-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1677ff, #13c2c2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.fx-metric-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.fx-accordion {
    margin: 1.15em 0;
    border-radius: 14px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.06);
}
.fx-accordion + .fx-accordion { margin-top: 10px; }
.fx-accordion > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.07), transparent 72%);
    transition: background 0.2s ease;
}
.fx-accordion > summary:hover {
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.12), transparent 72%);
}
.fx-accordion > summary::-webkit-details-marker { display: none; }
.fx-accordion > summary::after {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    margin-top: -4px;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.fx-accordion[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
    opacity: 1;
}
.fx-accordion-body {
    padding: 0 16px 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ 折叠卡片（比通用手风琴更精致） */
.fx-faq {
    margin: 1.5em 0 1.1em;
}
.fx-faq-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.18rem !important;
    font-weight: 780 !important;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.fx-faq-title::before {
    content: '';
    width: 4px;
    height: 1.05em;
    border-radius: 999px;
    background: linear-gradient(180deg, #1677ff, #36cfc9);
    flex-shrink: 0;
}
.fx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fx-faq-item {
    margin: 0 !important;
    border-radius: 14px;
    border: 1px solid rgba(22, 119, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.95)),
        var(--bg-card);
    box-shadow: 0 4px 16px rgba(15, 35, 80, 0.05);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.fx-faq-item:hover {
    border-color: rgba(22, 119, 255, 0.28);
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.1);
}
.fx-faq-item[open] {
    border-color: rgba(22, 119, 255, 0.34);
    box-shadow: 0 10px 28px rgba(22, 119, 255, 0.12);
}
.fx-faq-item > summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    font-weight: 680;
    color: var(--text-main);
    line-height: 1.55;
    user-select: none;
    transition: background 0.2s ease;
}
.fx-faq-item > summary::-webkit-details-marker { display: none; }
.fx-faq-item > summary::before {
    content: 'Q';
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(145deg, #1677ff 0%, #4096ff 100%);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.28);
    flex-shrink: 0;
}
.fx-faq-item > summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: 0.65;
    transition: transform 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
    flex-shrink: 0;
}
.fx-faq-item[open] > summary {
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.07), transparent);
}
.fx-faq-item[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 3px;
    border-color: var(--color-primary);
    opacity: 1;
}
.fx-faq-body {
    position: relative;
    padding: 4px 16px 16px 56px;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid rgba(22, 119, 255, 0.08);
}
.fx-faq-body::before {
    content: 'A';
    position: absolute;
    left: 16px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 820;
    color: var(--color-success);
    background: rgba(0, 196, 140, 0.12);
    border: 1px solid rgba(0, 196, 140, 0.22);
}
.fx-faq-body > :first-child { margin-top: 0; }
.fx-faq-body > :last-child { margin-bottom: 0; }
.fx-faq-body p { margin: 0.55em 0; }
.fx-faq-body ul,
.fx-faq-body ol { margin: 0.5em 0; padding-left: 1.2em; }

[data-theme="dark"] .fx-faq-item {
    background:
        linear-gradient(180deg, rgba(22, 119, 255, 0.08), transparent 55%),
        var(--bg-card);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] .fx-faq-body {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.fx-hotkeys {
    display: grid;
    gap: 10px;
    margin: 1.25em 0;
}
.fx-hotkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(22, 119, 255, 0.12);
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.05), transparent);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.05);
}
.fx-hotkey-action { color: var(--text-main); font-weight: 650; }
.fx-hotkey-keys { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.fx-pulse {
    margin: 1.35em 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(22, 119, 255, 0.28);
    background:
        radial-gradient(circle at 12% 20%, rgba(22, 119, 255, 0.18), transparent 42%),
        radial-gradient(circle at 90% 80%, rgba(54, 207, 201, 0.12), transparent 40%),
        var(--bg-card);
    box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.2);
    animation: fxPulseSoft 2.4s ease-in-out infinite;
}
.fx-pulse-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 780;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.fx-pulse-body { margin: 0; color: var(--text-secondary); line-height: 1.75; }
@keyframes fxPulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.2), 0 12px 28px rgba(22, 119, 255, 0.08); }
    50% { box-shadow: 0 0 0 10px rgba(22, 119, 255, 0), 0 16px 34px rgba(22, 119, 255, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
    .fx-pulse,
    .fx-banner::before { animation: none; }
}

/* 编辑器特效插入按钮美化 */
.tech-card .btn.btn-outline[data-insert-text],
.tech-card .btn.btn-outline[data-visual-action],
.tech-card .btn.btn-outline[data-wrap-prefix] {
    border-radius: 999px;
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.9));
    border-color: rgba(22, 119, 255, 0.18);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.tech-card .btn.btn-outline[data-insert-text]:hover,
.tech-card .btn.btn-outline[data-visual-action]:hover,
.tech-card .btn.btn-outline[data-wrap-prefix]:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 119, 255, 0.4);
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.12);
    background: linear-gradient(180deg, #fff, #eaf3ff);
}
[data-theme="dark"] .tech-card .btn.btn-outline[data-insert-text],
[data-theme="dark"] .tech-card .btn.btn-outline[data-visual-action],
[data-theme="dark"] .tech-card .btn.btn-outline[data-wrap-prefix] {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(18, 26, 45, 0.9));
}

.markdown-body .fx-callout,
.markdown-body .fx-banner,
.markdown-body .fx-timeline,
.markdown-body .fx-code-window,
.markdown-body .fx-terminal,
.markdown-body .fx-feature-card,
.markdown-body .fx-sticky,
.markdown-body .fx-steps,
.markdown-body .fx-metric,
.markdown-body .fx-ribbon,
.markdown-body .fx-link-card,
.markdown-body .fx-shot,
.markdown-body .fx-quote,
.markdown-body .fx-pulse,
.markdown-body .fx-accordion,
.markdown-body .fx-faq,
.markdown-body .fx-def,
.markdown-body .fx-filetree,
.markdown-body .video-player {
    max-width: 100%;
}

@media (max-width: 768px) {
    .fx-compare,
    .fx-feature-grid,
    .fx-proscons,
    .fx-steps,
    .fx-metric-grid {
        grid-template-columns: 1fr;
    }
    .fx-banner { padding: 18px; border-radius: 16px; }
    .fx-chat-bubble { max-width: 100%; }
    .fx-faq-item > summary { padding: 14px; gap: 10px; }
    .fx-faq-body { padding: 4px 14px 14px 52px; }
    .fx-faq-body::before { left: 14px; top: 10px; }
}

/* ================= 教程页开屏广告弹窗 ================= */
.popup-ad-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    overscroll-behavior: contain;
    background:
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(9, 77, 209, 0.28), transparent 70%),
        rgba(6, 12, 28, 0.62);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-ad-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 关闭后必须彻底不可点：display:flex 会盖过 UA 的 [hidden]，手机上易残留全屏遮罩 */
.popup-ad-overlay:not(.active) {
    pointer-events: none !important;
}

.popup-ad-overlay[hidden],
.popup-ad-overlay.is-dismissed {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.popup-ad-aurora {
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(ellipse 42% 38% at 18% 28%, rgba(22, 119, 255, 0.5), transparent 62%),
        radial-gradient(ellipse 38% 34% at 82% 22%, rgba(14, 196, 196, 0.32), transparent 58%),
        radial-gradient(ellipse 48% 40% at 50% 88%, rgba(0, 196, 140, 0.26), transparent 60%),
        radial-gradient(ellipse 28% 28% at 72% 68%, rgba(64, 150, 255, 0.22), transparent 55%);
    animation: popup-ad-aurora-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.popup-ad-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(105, 177, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 177, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 75%);
    opacity: 0.55;
}

.popup-ad-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.popup-ad-particle {
    position: absolute;
    left: calc(4% + (var(--i) * 4.2%));
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(105, 177, 255, 0.85);
    opacity: 0;
    animation: popup-ad-particle-rise calc(5s + (var(--i) * 0.2s)) ease-in infinite;
    animation-delay: calc(var(--i) * -0.28s);
}

.popup-ad-particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    background: #69b1ff;
}

.popup-ad-particle:nth-child(4n) {
    width: 4px;
    height: 4px;
    background: #36cfc9;
    box-shadow: 0 0 10px rgba(54, 207, 201, 0.8);
}

.popup-ad-particle:nth-child(5n) {
    background: #91caff;
    box-shadow: 0 0 10px rgba(145, 202, 255, 0.85);
}

.popup-ad-card {
    position: relative;
    width: min(420px, 100%);
    padding: 32px 28px 26px;
    border-radius: 22px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.96) 48%, rgba(235, 244, 255, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 0 0 1px rgba(22, 119, 255, 0.14),
        0 28px 64px rgba(9, 30, 66, 0.32),
        0 0 60px rgba(22, 119, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(40px) scale(0.9);
    opacity: 0;
    transform-origin: center bottom;
    transition: transform 0.58s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.42s ease;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}

.popup-ad-card::after {
    content: '';
    position: absolute;
    left: -20%;
    right: -20%;
    top: -40%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(22, 119, 255, 0.14), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .popup-ad-card {
    background:
        linear-gradient(165deg, rgba(20, 30, 52, 0.98) 0%, rgba(12, 20, 38, 0.97) 55%, rgba(16, 26, 48, 0.98) 100%);
    border-color: rgba(64, 150, 255, 0.26);
    box-shadow:
        0 0 0 1px rgba(22, 119, 255, 0.24),
        0 28px 64px rgba(0, 0, 0, 0.55),
        0 0 70px rgba(22, 119, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .popup-ad-card::after {
    background: radial-gradient(ellipse at center, rgba(64, 150, 255, 0.18), transparent 68%);
}

.popup-ad-overlay.active .popup-ad-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-ad-ring {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    pointer-events: none;
    background: conic-gradient(
        from 180deg,
        transparent 0%,
        rgba(22, 119, 255, 0.85) 10%,
        transparent 22%,
        rgba(54, 207, 201, 0.75) 48%,
        transparent 58%,
        rgba(64, 150, 255, 0.8) 82%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    opacity: 0.75;
    animation: popup-ad-ring-spin 4s linear infinite;
}

.popup-ad-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        118deg,
        transparent 28%,
        rgba(255, 255, 255, 0.4) 48%,
        transparent 64%
    );
    transform: translateX(-130%);
    animation: popup-ad-shine 4.2s ease-in-out 0.8s infinite;
    z-index: 0;
}

.popup-ad-overlay.is-burst .popup-ad-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 28%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    box-shadow:
        -42px -28px 0 -2px rgba(105, 177, 255, 0.9),
        46px -22px 0 -1px rgba(54, 207, 201, 0.85),
        -36px 34px 0 0 rgba(145, 202, 255, 0.8),
        40px 32px 0 -2px rgba(22, 119, 255, 0.85),
        0 -48px 0 -1px rgba(255, 255, 255, 0.9),
        0 46px 0 0 rgba(64, 150, 255, 0.7),
        -54px 2px 0 -2px rgba(0, 196, 140, 0.75),
        56px 4px 0 -1px rgba(105, 177, 255, 0.8);
    animation: popup-ad-burst 0.9s ease-out forwards;
    pointer-events: none;
    z-index: 0;
}

.popup-ad-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 119, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="dark"] .popup-ad-close {
    background: rgba(18, 26, 45, 0.78);
    border-color: rgba(64, 150, 255, 0.28);
}

.popup-ad-close:hover {
    color: var(--color-danger);
    background: rgba(245, 63, 63, 0.12);
    transform: rotate(90deg) scale(1.06);
    box-shadow: 0 0 14px rgba(245, 63, 63, 0.22);
}

.popup-ad-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.popup-ad-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #1677ff 0%, #0958d9 55%, #36cfc9 130%);
    box-shadow:
        0 12px 28px rgba(22, 119, 255, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: popup-ad-icon-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.popup-ad-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.35), transparent 70%);
    animation: popup-ad-icon-glow 2.4s ease-in-out infinite;
    pointer-events: none;
}

.popup-ad-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    color: #1677ff;
    background: rgba(22, 119, 255, 0.1);
    border: 1px solid rgba(22, 119, 255, 0.2);
    animation: popup-ad-badge-in 0.55s ease 0.15s both;
}

[data-theme="dark"] .popup-ad-badge {
    color: #91caff;
    background: rgba(22, 119, 255, 0.18);
    border-color: rgba(105, 177, 255, 0.28);
}

.popup-ad-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1677ff;
    box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.5);
    animation: popup-ad-dot-ping 1.8s ease-out infinite;
}

.popup-ad-title {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-family: "Noto Serif SC", "Source Han Serif SC", serif;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    background: linear-gradient(115deg, #094dd1 0%, #1677ff 42%, #0e9aa0 88%, #1677ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: popup-ad-title-shine 5s linear infinite, popup-ad-title-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

[data-theme="dark"] .popup-ad-title {
    background: linear-gradient(115deg, #91caff 0%, #69b1ff 40%, #36cfc9 78%, #91caff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

.popup-ad-divider {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
}

.popup-ad-divider span {
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #1677ff, #36cfc9, transparent);
    box-shadow: 0 0 10px rgba(22, 119, 255, 0.45);
    animation: popup-ad-divider-glow 2.2s ease-in-out infinite;
}

.popup-ad-body {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    padding: 0 4px;
}

.popup-ad-line {
    margin: 0 0 7px;
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: popup-ad-line-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.32s + var(--line) * 0.1s);
}

.popup-ad-line:last-child {
    margin-bottom: 0;
}

.popup-ad-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.popup-ad-cta {
    min-width: 176px;
    position: relative;
    overflow: hidden;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(22, 119, 255, 0.32);
    animation: popup-ad-cta-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, popup-ad-cta-glow 2.6s ease-in-out 1s infinite;
}

.popup-ad-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
    transform: translateX(-120%);
    animation: popup-ad-cta-sweep 3s ease-in-out 1.2s infinite;
}

.popup-ad-skip {
    font-size: 0.84rem;
    opacity: 0.72;
    animation: popup-ad-line-in 0.45s ease 0.65s both;
}

@keyframes popup-ad-aurora-drift {
    from { transform: translate(-2%, -1%) rotate(0deg) scale(1); }
    to { transform: translate(2%, 2%) rotate(8deg) scale(1.06); }
}

@keyframes popup-ad-particle-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% { opacity: 0.85; }
    78% { opacity: 0.35; }
    100% {
        transform: translateY(-105vh) scale(1.15);
        opacity: 0;
    }
}

@keyframes popup-ad-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes popup-ad-shine {
    0%, 58% { transform: translateX(-130%); }
    88%, 100% { transform: translateX(130%); }
}

@keyframes popup-ad-burst {
    0% {
        opacity: 1;
        transform: scale(0.35);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(2.6);
        filter: blur(2px);
    }
}

@keyframes popup-ad-icon-in {
    from { opacity: 0; transform: translateY(12px) scale(0.7); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popup-ad-icon-glow {
    0%, 100% { opacity: 0.55; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes popup-ad-badge-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popup-ad-dot-ping {
    0% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(22, 119, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 119, 255, 0); }
}

@keyframes popup-ad-title-shine {
    to { background-position: 200% center; }
}

@keyframes popup-ad-title-in {
    from { opacity: 0; transform: translateY(14px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes popup-ad-divider-glow {
    0%, 100% { opacity: 0.6; width: 48px; }
    50% { opacity: 1; width: 72px; }
}

@keyframes popup-ad-line-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popup-ad-cta-in {
    from { opacity: 0; transform: translateY(12px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popup-ad-cta-glow {
    0%, 100% { box-shadow: 0 10px 26px rgba(22, 119, 255, 0.32); }
    50% { box-shadow: 0 12px 34px rgba(22, 119, 255, 0.5), 0 0 22px rgba(54, 207, 201, 0.22); }
}

@keyframes popup-ad-cta-sweep {
    0%, 62% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 520px) {
    .popup-ad-overlay {
        padding: 16px;
        align-items: flex-end;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .popup-ad-card {
        width: 100%;
        padding: 28px 18px 20px;
        border-radius: 20px 20px 16px 16px;
        transform: translateY(48px) scale(1);
    }
    .popup-ad-overlay.active .popup-ad-card {
        transform: translateY(0) scale(1);
    }
    .popup-ad-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .popup-ad-title {
        font-size: 1.32rem;
    }
    .popup-ad-line {
        font-size: 0.92rem;
    }
    .popup-ad-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .popup-ad-aurora,
    .popup-ad-particle,
    .popup-ad-ring,
    .popup-ad-shine,
    .popup-ad-icon,
    .popup-ad-icon-glow,
    .popup-ad-badge,
    .popup-ad-badge-dot,
    .popup-ad-title,
    .popup-ad-divider span,
    .popup-ad-line,
    .popup-ad-cta,
    .popup-ad-cta::after {
        animation: none !important;
    }
    .popup-ad-icon,
    .popup-ad-badge,
    .popup-ad-line,
    .popup-ad-cta,
    .popup-ad-skip {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .popup-ad-overlay.active .popup-ad-card {
        transition: none;
    }
}

/* ================= 前台页脚 ================= */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-desc {
    font-size: 0.9rem;
    max-width: 400px;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.top-nav-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.top-nav-menu--drawer {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    z-index: 130;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-toggle:hover {
    border-color: rgba(22, 119, 255, 0.45);
    color: var(--color-primary);
    background: rgba(22, 119, 255, 0.06);
}

.mobile-nav-icon-close {
    display: none;
}

body.mobile-nav-open .mobile-nav-icon-open {
    display: none;
}

body.mobile-nav-open .mobile-nav-icon-close {
    display: block;
}

.mobile-nav-label {
    display: inline;
}

.mobile-nav-backdrop {
    display: none;
}

/* ================= 前台手机端全局适配 ================= */
@media (max-width: 768px) {
    html {
        scrollbar-gutter: auto;
    }

    body {
        overflow-x: hidden;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-nav {
        height: 56px;
        --header-height: 56px;
        padding: 0 4px;
        /* 避免 backdrop-filter 把 fixed 菜单锁死在顶栏高度内 */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg-card);
    }

    :root {
        --header-height: 56px;
        --space-xl: 32px;
        --space-lg: 24px;
    }

    /* 打开菜单时抬高顶栏按钮，保证可点关闭 */
    body.mobile-nav-open .top-nav {
        z-index: 132 !important;
    }

    .top-nav-brand {
        min-width: 0;
        max-width: calc(100% - 56px);
    }

    .top-nav-brand-text {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52vw;
    }

    .top-nav-brand .text-primary {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        position: relative;
        z-index: 132;
    }

    .top-nav-menu--desktop {
        display: none !important;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(10, 16, 28, 0.45);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-backdrop[hidden] {
        display: none !important;
    }

    .top-nav-menu--drawer {
        display: flex;
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        width: min(78vw, 300px);
        z-index: 131;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 14px calc(20px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-card);
        border-left: 1px solid var(--border-color);
        box-shadow: -12px 0 36px rgba(15, 23, 42, 0.18);
        transform: translateX(105%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
        visibility: hidden;
    }

    body.mobile-nav-open .top-nav-menu--drawer {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .top-nav-menu--drawer .btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .top-nav-menu--drawer .btn-primary {
        justify-content: center;
        margin-top: 8px;
    }

    .site-footer {
        padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .site-footer-desc {
        max-width: none;
        line-height: 1.7;
    }

    .site-footer-links {
        flex-wrap: wrap;
        gap: 12px 18px;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }

    .hero-section {
        padding: 48px 0 36px !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
        letter-spacing: -0.5px;
        line-height: 1.25;
        margin-bottom: 14px !important;
    }

    .hero-subtitle {
        font-size: 0.98rem !important;
        line-height: 1.7 !important;
        padding: 0 4px;
        margin-bottom: 20px !important;
    }

    .home-layout {
        gap: 24px !important;
        padding: 8px 0 32px !important;
    }

    .topic-section {
        margin-bottom: 20px !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    .topic-header {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        gap: 10px;
        flex-wrap: wrap;
    }

    .topic-header h2 {
        font-size: 1.2rem !important;
        gap: 8px !important;
    }

    .tutorial-item {
        padding: 14px 4px !important;
    }

    .tutorial-title {
        font-size: 1rem !important;
    }

    .tutorial-summary {
        font-size: 0.86rem !important;
        -webkit-line-clamp: 3;
    }

    .search-page-form,
    .hero-search-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .search-page-form .btn,
    .hero-search-form .btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .search-page-form .form-control,
    .hero-search-form .form-control {
        font-size: 16px !important; /* 避免 iOS 自动放大 */
        height: 46px !important;
    }

    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .tech-toast {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        transform: translateY(120%);
    }

    .tech-toast.show {
        transform: translateY(0);
    }

    .tech-lock-box {
        padding: 36px 18px !important;
        margin: 24px 0 !important;
    }

    .markdown-body pre,
    .markdown-body table {
        max-width: 100%;
    }

    .markdown-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .top-nav-brand-text {
        max-width: 46vw;
    }

    .topic-header h2 {
        font-size: 1.08rem !important;
    }
}

