@charset "utf-8";
/**
 * 魅思CMS · 商务科技风主题系统（浅色蓝）
 * 文件：mscms-theme.css
 * 说明：整站浅色商务风的设计令牌与公共组件样式（参照 AnyChat 官网设计语言），
 *       所有模板通过 {m:include "index","theme_head"} 统一引入本文件。
 * 注意：本文件为纯 CSS，不依赖 Tailwind 运行时，加载失败时页面仍可正常阅读。
 */

/* ================= 1. 设计令牌 ================= */
:root {
    --ms-bg: #ffffff;
    --ms-bg-2: #fbfcff;
    --ms-bg-3: #f4f7fd;
    --ms-panel: #ffffff;
    --ms-panel-2: #f7fafe;
    --ms-line: #e9eef6;
    --ms-line-2: #d8e2f2;

    --ms-text: #1f2937;
    --ms-text-2: #4b5563;
    --ms-text-3: #6b7280;
    --ms-text-4: #939599;

    --ms-primary: #005dff;
    --ms-primary-2: #3d8bff;
    --ms-primary-3: #0257fd;
    --ms-primary-soft: #ebf2ff;
    --ms-accent: #00a6ff;
    --ms-success: #16a34a;
    --ms-warning: #f59e0b;
    --ms-danger: #ef4444;
    --ms-dark: #30343e;

    --ms-radius: 18px;
    --ms-radius-lg: 26px;
    --ms-header-h: 68px;

    --ms-shadow: 0 10px 34px -14px rgba(15, 42, 96, 0.16);
    --ms-shadow-soft: 0 2px 10px rgba(23, 44, 87, 0.05);
    --ms-glow: 0 14px 34px -14px rgba(0, 93, 255, 0.5);
    --ms-glow-cyan: 0 14px 34px -14px rgba(0, 166, 255, 0.45);
}

/* ================= 2. 基础样式 ================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ms-header-h) + 16px);
}

body {
    color: var(--ms-text);
    background:
        radial-gradient(1100px 480px at 88% -10%, rgba(0, 93, 255, 0.06), transparent 60%),
        radial-gradient(880px 420px at 4% -6%, rgba(0, 166, 255, 0.05), transparent 58%),
        var(--ms-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

::selection {
    background: rgba(0, 93, 255, 0.16);
    color: #0047cc;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 42, 96, 0.22) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 42, 96, 0.18);
    border-radius: 999px;
    border: 2px solid var(--ms-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 93, 255, 0.45);
}

:focus-visible {
    outline: 2px solid rgba(0, 93, 255, 0.65);
    outline-offset: 2px;
    border-radius: 4px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================= 3. 页面装饰元素 ================= */
.ms-grid-bg {
    background-image:
        linear-gradient(rgba(0, 93, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 93, 255, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
}

.ms-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.ms-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--ms-line-2), transparent);
}

/* ================= 4. 公共组件 ================= */
.ms-panel {
    background: var(--ms-panel);
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    box-shadow: var(--ms-shadow-soft);
}

.ms-panel-hover {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.ms-panel-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 93, 255, 0.32);
    box-shadow: 0 24px 50px -26px rgba(0, 93, 255, 0.35);
}

.ms-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ms-radius);
    border: 1px solid var(--ms-line);
    background: var(--ms-panel);
    box-shadow: var(--ms-shadow-soft);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ms-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 93, 255, 0.32);
    box-shadow: 0 26px 54px -28px rgba(0, 93, 255, 0.4);
}

/* 按钮体系 */
.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.ms-btn-primary {
    background: var(--ms-primary);
    color: #fff;
    box-shadow: 0 10px 26px -12px rgba(0, 93, 255, 0.55);
}

.ms-btn-primary:hover {
    background: var(--ms-primary-3);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -12px rgba(0, 93, 255, 0.6);
    color: #fff;
}

.ms-btn-outline {
    background: #fff;
    border-color: rgba(0, 93, 255, 0.55);
    color: var(--ms-primary);
}

.ms-btn-outline:hover {
    transform: translateY(-1px);
    border-color: var(--ms-primary);
    background: var(--ms-primary-soft);
    color: var(--ms-primary-3);
}

.ms-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ms-text-2);
}

.ms-btn-ghost:hover {
    color: var(--ms-primary);
    background: var(--ms-primary-soft);
}

.ms-btn-invert {
    background: #fff;
    border-color: #fff;
    color: #0b2447;
    font-weight: 600;
    box-shadow: 0 16px 36px -16px rgba(4, 26, 66, 0.55);
}

.ms-btn-invert:hover {
    background: #f1f6ff;
    border-color: #f1f6ff;
    color: #0b2447;
    transform: translateY(-1px);
}

.ms-btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 13.5px;
}

.ms-btn-lg {
    padding: 1rem 2.3rem;
    font-size: 16px;
}

.ms-btn[disabled],
.ms-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 眉标 / 标签 */
.ms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.05rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ms-primary);
    background: rgba(0, 93, 255, 0.07);
    border: 1px solid rgba(0, 93, 255, 0.16);
}

.ms-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--ms-primary);
    box-shadow: 0 0 10px rgba(0, 93, 255, 0.55);
}

.ms-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 13px;
    color: var(--ms-text-2);
    background: var(--ms-panel-2);
    border: 1px solid var(--ms-line);
    transition: all 0.25s ease;
}

.ms-chip:hover {
    color: var(--ms-primary);
    border-color: rgba(0, 93, 255, 0.35);
    background: var(--ms-primary-soft);
}

.ms-chip.is-active {
    color: #ffffff;
    background: var(--ms-primary);
    border-color: var(--ms-primary);
    box-shadow: 0 10px 22px -12px rgba(0, 93, 255, 0.6);
}

.ms-chip.is-active:hover {
    color: #ffffff;
    background: var(--ms-primary-3);
    border-color: var(--ms-primary-3);
}

/* 图标底座 */
.ms-icon-tile {
    width: 3rem;
    height: 3rem;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.2rem;
    color: var(--ms-primary);
    background: linear-gradient(160deg, #f0f6ff, #e0edff);
    border: 1px solid #d8e6fb;
    transition: all 0.35s ease;
}

.ms-icon-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgba(0, 93, 255, 0.5);
}

/* 表单 */
.ms-field {
    width: 100%;
    padding: 0.78rem 1rem;
    border-radius: 8px;
    color: var(--ms-text);
    background: #fff;
    border: 1px solid var(--ms-line-2);
    outline: none;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.ms-field::placeholder {
    color: #9aa5b5;
}

.ms-field:focus {
    border-color: rgba(0, 93, 255, 0.6);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 93, 255, 0.12);
}

select.ms-field option {
    background: #fff;
    color: var(--ms-text);
}

textarea.ms-field {
    min-height: 128px;
    resize: vertical;
    line-height: 1.7;
}

/* ================= 5. 顶部导航 ================= */
#navbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(233, 238, 246, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: transparent;
    box-shadow: 0 2px 22px rgba(187, 187, 187, 0.5);
}

.ms-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-nav-link:hover {
    color: var(--ms-primary);
    background: var(--ms-primary-soft);
}

.ms-nav-link.is-active {
    color: var(--ms-primary);
    background: transparent;
    font-weight: 500;
}

.ms-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: var(--ms-primary);
}

#mobileMenu {
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s;
}

#mobileMenu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ms-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: #374151;
    font-size: 15px;
    transition: all 0.25s ease;
}

.ms-mobile-link:hover,
.ms-mobile-link.is-active {
    color: var(--ms-primary);
    background: var(--ms-primary-soft);
}

/* ================= 6. 分页 ================= */
#page {
    margin: 34px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ms-text-2);
}

#page .pageinfo {
    padding: 8px 14px;
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ms-text-3);
}

#page .pageinfo strong {
    font-weight: 600;
    color: var(--ms-primary);
}

#page a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--ms-line);
    background: #fff;
    color: var(--ms-text-2);
    transition: all 0.25s ease;
}

#page a:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 93, 255, 0.45);
    background: var(--ms-primary-soft);
    color: var(--ms-primary);
}

#page .curpage,
#page a.curpage {
    border-color: transparent;
    background: var(--ms-primary);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(0, 93, 255, 0.6);
}

#page .nopage {
    cursor: not-allowed;
    opacity: 0.45;
}

#page .nopage:hover {
    transform: none;
    background: #fff;
    border-color: var(--ms-line);
    color: var(--ms-text-2);
}

/* ================= 7. 文章正文排版 ================= */
.ms-article {
    color: #333333;
    font-size: 16px;
    line-height: 2;
    word-break: break-word;
}

.ms-article p {
    margin-bottom: 1em;
}

.ms-article h2 {
    margin: 1.7em 0 0.75em;
    padding-left: 0.75rem;
    border-left: 3px solid var(--ms-primary);
    color: #111827;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.4;
}

.ms-article h3,
.ms-article h4 {
    margin: 1.4em 0 0.6em;
    color: #111827;
    font-size: 1.12rem;
    font-weight: 700;
}

.ms-article a {
    color: var(--ms-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ms-article a:hover {
    color: var(--ms-primary-3);
}

.ms-article ul,
.ms-article ol {
    margin: 0 0 1em 1.4em;
}

.ms-article ul {
    list-style: disc;
}

.ms-article ol {
    list-style: decimal;
}

.ms-article li {
    margin-bottom: 0.4em;
}

.ms-article blockquote {
    margin: 1.2em 0;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--ms-primary-2);
    border-radius: 0 10px 10px 0;
    background: #f5f9ff;
    color: #44506a;
}

.ms-article img {
    display: block;
    max-width: 100%;
    margin: 1.2rem auto;
    border-radius: 10px;
    border: 1px solid var(--ms-line);
    box-shadow: var(--ms-shadow);
}

.ms-article pre {
    margin: 1.1em 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--ms-line);
    background: #f7f9fc;
    color: #1e293b;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}

.ms-article code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef3fa;
    color: #005dff;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

.ms-article pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.ms-article table {
    width: 100%;
    margin: 1.1em 0;
    border-collapse: collapse;
}

.ms-article th,
.ms-article td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--ms-line);
    text-align: left;
}

.ms-article th {
    background: #f6f9fe;
    color: #111827;
}

.ms-article hr {
    margin: 1.6em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ms-line-2), transparent);
}

/* ================= 8. 动效 ================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.ms-marquee-mask {
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ms-marquee {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: ms-marquee 38s linear infinite;
}

.ms-marquee:hover {
    animation-play-state: paused;
}

@keyframes ms-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes ms-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.ms-float {
    animation: ms-float 6s ease-in-out infinite;
}

@keyframes ms-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 93, 255, 0.35);
    }

    50% {
        box-shadow: 0 0 30px 6px rgba(0, 93, 255, 0.14);
    }
}

.ms-pulse-glow {
    animation: ms-pulse-glow 3.6s ease-in-out infinite;
}

@keyframes ms-shine {
    from {
        background-position: -200% 0;
    }

    to {
        background-position: 200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ms-marquee,
    .ms-float,
    .ms-pulse-glow {
        animation: none;
    }
}

/* ================= 9. 兼容与修正 ================= */
.none {
    display: none !important;
}

.yzm-code {
    cursor: pointer;
    border-radius: 8px;
    vertical-align: middle;
}

/* 键盘用户跳转链接 */
.skip-link {
    position: absolute;
    left: 20px;
    top: -60px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 6px;
    background: var(--ms-primary);
    color: #fff;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 14px;
}

/* ================= 10. 弹窗 / 回到顶部 / 分段选项卡 ================= */
.ms-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.ms-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ms-modal .modal-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 26px;
    border-radius: var(--ms-radius-lg);
    background: #fff;
    border: 1px solid var(--ms-line);
    box-shadow: 0 30px 70px -30px rgba(15, 42, 96, 0.35);
    transform: translateY(16px) scale(0.965);
    opacity: 0.4;
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.34s ease;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.ms-modal.is-open .modal-panel {
    transform: none;
    opacity: 1;
}

.ms-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--ms-line);
    background: #fff;
    color: var(--ms-text-3);
    cursor: pointer;
    transition: all 0.25s ease;
}

.ms-modal-close:hover {
    color: var(--ms-primary);
    border-color: rgba(0, 93, 255, 0.4);
    background: var(--ms-primary-soft);
}

.ms-modal-title {
    margin: 0 40px 4px 0;
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.ms-modal-sub {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ms-text-3);
}

/* 二维码块 */
.ms-qr-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: var(--ms-radius);
    background: #f8fafd;
    border: 1px dashed var(--ms-line-2);
}

.ms-qr-box img {
    width: 138px;
    height: 138px;
    object-fit: contain;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ms-line);
}

/* 分段选项卡（Android / iOS 切换） */
.ms-seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: #f3f6fb;
    border: 1px solid var(--ms-line);
}

.ms-seg button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ms-text-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ms-seg button:hover {
    color: var(--ms-primary);
}

.ms-seg button.is-active {
    color: #fff;
    background: var(--ms-primary);
    box-shadow: 0 10px 22px -12px rgba(0, 93, 255, 0.7);
}

/* 复制按钮的已复制状态 */
.ms-copy-btn.is-copied {
    background: var(--ms-success) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 26px -12px rgba(22, 163, 74, 0.6) !important;
}

/* 回到顶部 */
#backToTop {
    position: fixed;
    right: 28px;
    bottom: 30px;
    z-index: 60;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: var(--ms-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 34px -16px rgba(0, 93, 255, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#backToTop:hover {
    background: var(--ms-primary-3);
    box-shadow: 0 20px 42px -16px rgba(0, 93, 255, 0.9);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    #backToTop {
        right: 16px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }
}

/* 图片加载完成的淡入（由 mscms-common.js 添加 is-loaded 类） */
img.is-loaded {
    animation: ms-img-fade 0.6s ease both;
}

/* ================= 11. 图片灯箱与指示圆点（全站通用） ================= */
[data-lightbox] {
    cursor: zoom-in;
}

#modalImage {
    transition: opacity 0.25s ease;
}

#imageLoader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

#imageModal.is-loading #imageLoader {
    opacity: 1;
    visibility: visible;
}

#imageModal {
    background: rgba(10, 16, 28, 0.82);
}

.ms-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(15, 42, 96, 0.22);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease, transform 0.25s ease;
}

.ms-dot:hover {
    background: rgba(15, 42, 96, 0.4);
}

.ms-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: var(--ms-primary);
}

@keyframes ms-img-fade {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 1;
    }
}

/* ================= 12. 通用正文排版（文章 / 单页 / 产品 / 下载共用） ================= */
.article-content {
    color: #374151;
    word-break: break-word;
}

.article-content img {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 42, 96, 0.12);
}

.article-content p {
    text-align: justify;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 2rem 0 1rem 0;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.article-content a {
    color: #005dff;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1rem 1.5rem;
    line-height: 1.9;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid #005dff;
    border-radius: 0 8px 8px 0;
    background: #ebf2ff;
    color: #374151;
}

.article-content code {
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
    color: #0047cc;
    background: #eef3fa;
    border: 1px solid #e4ebf6;
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    background: #f5f8fd;
    border: 1px solid #e4ebf6;
}

.article-content pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: #374151;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e4ebf6;
    text-align: left;
}

.article-content th {
    background: #f5f8fd;
    color: #111827;
    font-weight: 600;
}

/* ================= 13. 分页（YzmCMS {$pages} 输出，全站通用） ================= */
#page {
    margin: 24px 0 0;
    font-size: 13px;
    text-align: center;
}

#page .pageinfo {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    color: #6b7280;
    border: 1px solid #e9eef6;
    background: #fff;
}

#page .pageinfo strong {
    font-weight: 600;
    color: #005dff;
}

#page a {
    display: inline-block;
    padding: 6px 16px;
    margin: 4px 3px 0;
    border-radius: 8px;
    border: 1px solid #e9eef6;
    background: #fff;
    color: #4b5563;
    transition: all 0.2s ease;
}

#page a:hover,
#page .curpage {
    border-radius: 8px;
    background: #005dff;
    color: #fff;
    border: 1px solid #005dff;
    text-decoration: none;
}

#page .nopage {
    cursor: not-allowed;
}

#page .nopage:hover {
    background: #fff;
    color: #9ca3af;
    border: 1px solid #e9eef6;
}

/* ================= 14. 表单系统（留言 / 友链 / 自定义表单，兼容系统生成的 yzm-* 类名） ================= */
.yzm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.yzm-table tr {
    vertical-align: top;
}

.yzm-table td {
    padding: 7px 0;
}

.yzm-table td:first-child {
    width: 130px;
    padding-right: 16px;
    text-align: right;
}

.yzm-table-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #30343e;
    line-height: 40px;
    white-space: nowrap;
}

.yzm-table-title .required,
.yzm-table-title .red {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 600;
}

.yzm-input-text,
.yzm-textarea,
.yzm-select,
.input-text {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #111827;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yzm-input-text:focus,
.yzm-textarea:focus,
.yzm-select:focus,
.input-text:focus {
    border-color: #005dff;
    box-shadow: 0 0 0 3px rgba(0, 93, 255, 0.12);
}

.yzm-textarea {
    min-height: 140px;
    resize: vertical;
}

.yzm-input-text.uploadfile {
    width: auto;
    min-width: 260px;
    display: inline-block;
    margin-right: 8px;
}

.yzm-code {
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
}

.yzm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #005dff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 12px 26px -14px rgba(0, 93, 255, 0.8);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.yzm-submit:hover {
    background: #0257fd;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -14px rgba(0, 93, 255, 0.9);
}

.yzm-checkbox,
.yzm-radio {
    margin-right: 6px;
    accent-color: #005dff;
    vertical-align: middle;
}

.option_label {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    font-size: 0.9rem;
    color: #5d6470;
    cursor: pointer;
}

.fieldset_list {
    border: 1px solid #e5ebf5;
    border-radius: 10px;
    margin: 10px 0;
    padding: 0 14px 14px;
}

.fieldset_list legend {
    font-size: 0.8rem;
    color: #5d6470;
    background: #f5f8fd;
    border: 1px solid #e5ebf5;
    border-radius: 6px;
    padding: 2px 12px;
    width: auto;
    height: auto;
    line-height: 1.6;
    margin-bottom: 0;
}

.fieldset_tip {
    font-size: 0.75rem;
    color: #9aa3b2;
    margin: 6px 0;
}

.file_ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.file_ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #e5ebf5;
    font-size: 0.85rem;
    color: #5d6470;
}

.file_ul .yzm-input-url,
.file_ul .yzm-input-alt {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin: 4px 8px 4px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #005dff;
    color: #fff;
}

.btn-primary:hover {
    background: #0257fd;
    color: #fff;
}

.btn-secondary {
    background: #ebf2ff;
    color: #005dff;
}

.btn-secondary:hover {
    background: #dbe7ff;
    color: #005dff;
}

.secondary {
    color: #005dff;
    margin-right: 6px;
    font-size: 0.8rem;
}

.danger {
    color: #ef4444;
    font-size: 0.8rem;
}

.laydate-icon {
    background: #fff;
    cursor: pointer;
}

.none {
    display: none;
}

/* ================= 15. 产品图集（配合 yzm-product-img.js，兼容 yzm-* 类名） ================= */
.yzm-image {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fd;
    border: 1px solid #e5ebf5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.yzm-image img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.yzm-image .loading {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 93, 255, 0.15);
    border-top-color: #005dff;
    border-radius: 50%;
    animation: ms-spin 0.8s linear infinite;
}

@keyframes ms-spin {
    to {
        transform: rotate(360deg);
    }
}

.yzm-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.yzm-switch-center {
    flex: 1;
    overflow: hidden;
}

.yzm-switch-center ul {
    white-space: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yzm-switch-center li {
    float: left;
    width: 90px;
    box-sizing: border-box;
    padding: 4px;
    list-style: none;
}

.yzm-switch-center li a {
    display: block;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.yzm-switch-center li a img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: cover;
}

.yzm-switch-center li a.on,
.yzm-switch-center li a:hover {
    border-color: #005dff;
}

.yzm-icon1 a,
.yzm-icon2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5ebf5;
    color: #005dff;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yzm-icon1 a:hover,
.yzm-icon2 a:hover {
    background: #005dff;
    border-color: #005dff;
    color: #fff;
}

/* ================= 16. 评论组件（兼容 yzm-front.js 交互所需的 yzm-* 类名） ================= */
.yzm-comment-form form {
    background: #f5f8fd;
    border: 1px solid #e5ebf5;
    border-radius: 10px;
    padding: 16px;
}

.yzm-comment-form .textarea {
    width: 100%;
    min-height: 96px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yzm-comment-form .textarea:focus {
    border-color: #005dff;
    box-shadow: 0 0 0 3px rgba(0, 93, 255, 0.12);
}

.yzm-comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: #005dff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.yzm-comment-submit:hover {
    background: #0257fd;
}

.emotion {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    font-size: 0.85rem;
    color: #5d6470;
    cursor: pointer;
}

.yzm-comment-code,
.yzm-comment-reply-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
}

.yzm-comment-code img,
.yzm-comment-reply-code img {
    border-radius: 6px;
    border: 1px solid #dbe3ef;
    cursor: pointer;
}

.yzm-comment-code input,
.yzm-comment-reply-code input {
    width: 110px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    outline: none;
}

.yzm-comment-code input:focus,
.yzm-comment-reply-code input:focus {
    border-color: #005dff;
    box-shadow: 0 0 0 3px rgba(0, 93, 255, 0.12);
}

.yzm-comment-list-top {
    font-size: 0.85rem;
    color: #5d6470;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f9;
}

.yzm-comment-list-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yzm-comment-list-body li {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f9;
}

.yzm-comment-list-body .user_pic img {
    border-radius: 50%;
    border: 1px solid #e5ebf5;
}

.yzm-comm-right {
    flex: 1;
    min-width: 0;
}

.yzm-comm-right .user_name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #005dff;
    text-decoration: none;
}

.yzm-comm-right p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 6px 0 0;
}

.yzm-comm-right .comm_time {
    font-size: 0.75rem;
    color: #9aa3b2;
}

.yzm-comm-right .comm_a {
    font-size: 0.8rem;
    color: #005dff;
    text-decoration: none;
}

.yzm-comm-right #rep_ .textarea2 {
    min-height: 80px;
    margin-top: 10px;
}

.yzm-content-read-tips {
    font-size: 0.9rem;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
}

.yzm-content-read-tips span {
    color: #dc2626;
    font-weight: 700;
}

.yzm-content-read-tips a {
    color: #005dff;
    font-weight: 600;
}
