/* 玩家社区站点公共样式 — 与 index.html 蓝白简约配色同步 */
:root {
    --bg-light: #fcfdfe;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #d1e3f8;
    --text-main: #333333;
    --text-sub: #6b7280;
    --panel-radius: 12px;
    --header-h: 4.25rem;
    --logo-h: 6.5rem;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.site-body,
body.bg-light {
    overflow-x: hidden;
}

@font-face {
    font-family: '优设标题黑';
    src: url('https://cdn.fonts.net.cn/font-287574/优设标题黑-常规.woff2') format('woff2');
    font-display: swap;
}

body.site-body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    top: 0 !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent);
    overflow: visible;
}

.site-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: visible;
}

@media (min-width: 640px) {
    .site-header-inner {
        padding: 0.75rem 1.5rem;
    }
}

.site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: auto;
    margin: calc((var(--header-h) - var(--logo-h)) / 2) 0;
    position: relative;
    z-index: 2;
}

.site-brand img {
    width: auto;
    height: var(--logo-h);
    max-height: var(--logo-h);
    max-width: min(20rem, 48vw);
    border-radius: 0.375rem;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.site-brand h2 {
    display: none;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
        gap: 0.65rem;
    }
}

@media (min-width: 1280px) {
    .site-nav {
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav a {
        font-size: 0.8125rem;
    }
}

.site-nav a {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.is-active,
.site-nav a.nav-active {
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: var(--primary);
}

.site-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    z-index: 3;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.site-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

@media (min-width: 1024px) {
    .site-menu-btn { display: none; }
}

/* 非全屏 / 未最大化提示 */
.site-fs-hint {
    position: fixed;
    top: calc((var(--header-h) + var(--logo-h)) / 2 + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(36rem, calc(100vw - 1.5rem));
    padding: 0.55rem 0.55rem 0.55rem 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border: 1px solid #93c5fd;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.18);
    color: #1e3a8a;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.site-fs-hint[hidden] {
    display: none;
}

.site-fs-hint__text {
    flex: 1;
    min-width: 0;
}

.site-fs-hint__text strong {
    font-weight: 700;
}

.site-fs-hint__close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.site-fs-hint__close:hover {
    background: rgba(59, 130, 246, 0.2);
}

.site-mobile-nav {
    display: none;
    position: fixed;
    top: calc((var(--header-h) + var(--logo-h)) / 2 + 0.35rem);
    left: 0;
    right: 0;
    max-height: calc(100vh - ((var(--header-h) + var(--logo-h)) / 2 + 0.35rem));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--accent);
    padding: 0.75rem 1rem 1rem;
    z-index: 52;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.site-mobile-nav.open { display: flex; }

.site-mobile-nav a {
    font-size: 0.875rem;
    color: var(--text-sub);
    text-decoration: none;
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.site-mobile-nav a:last-child {
    border-bottom: none;
}

.site-mobile-nav a.is-active { color: var(--primary); font-weight: 700; }

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

.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }

.site-footer {
    background: #fff;
    border-top: 1px solid var(--accent);
    padding: 3rem 1.5rem;
    text-align: center;
}

.site-footer-tags {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.site-footer-tags span.sep { color: #e5e7eb; font-weight: 400; }

.site-footer p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.25rem 0;
}

.site-footer .uppercase {
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

/* 工具页顶部条 */
.site-tool-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.site-tool-bar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.site-tool-bar a:hover { text-decoration: underline; }

.site-tool-bar .brand-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.site-tool-bar .brand-mini img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
}

/* 教程外链视频卡片 */
.guide-video-card {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}

.guide-video-card.guide-video-pending {
    border-style: dashed;
    background: #fafcff;
}

.guide-video-card.guide-video-card--embed {
    align-items: stretch;
}

.guide-video-embed-wrap {
    position: relative;
    flex: 1 1 16rem;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.guide-video-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.guide-video-embed-wrap .guide-video-badge {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 1;
    pointer-events: none;
}

.guide-video-thumb {
    position: relative;
    flex-shrink: 0;
    width: 8.5rem;
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #2563eb, #3b82f6);
    color: #fff;
}

.guide-video-thumb--pending {
    background: linear-gradient(145deg, #94a3b8, #cbd5e1);
}

.guide-video-thumb-icon {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.guide-video-badge {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.guide-video-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-video-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.guide-video-desc,
.guide-video-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-sub);
    line-height: 1.5;
}

.guide-video-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.guide-video-hint code {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
}

.guide-video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.guide-video-btn {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.guide-video-btn:hover {
    background: var(--primary-hover);
}

.guide-video-ext {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.guide-video-ext:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .guide-video-card {
        flex-direction: column;
    }

    .guide-video-embed-wrap {
        flex-basis: auto;
        width: 100%;
    }

    .guide-video-thumb {
        width: 100%;
        min-height: 4.5rem;
    }
}

/* 教程视频弹窗 */
.guide-video-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.guide-video-modal[hidden] {
    display: none;
}

.guide-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.guide-video-modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--panel-radius);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.guide-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--accent);
}

.guide-video-modal-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.guide-video-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.guide-video-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.guide-video-modal-body {
    background: #0f172a;
    min-height: 12rem;
}

.guide-video-modal-body iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.guide-video-fallback {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #e2e8f0;
}

.guide-video-fallback p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.guide-video-fallback .guide-video-btn {
    display: inline-block;
    text-decoration: none;
}

.guide-video-modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--accent);
    text-align: right;
}

.guide-video-modal-ext {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.guide-video-modal-ext:hover {
    text-decoration: underline;
}

/* ========== 教程双协议切换（8K 等双协议产品） ========== */
.guide-protocol-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.25rem 0 2rem;
}

@media (min-width: 640px) {
    .guide-protocol-switch {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.guide-protocol-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.guide-protocol-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.16);
    transform: translateY(-2px);
}

.guide-protocol-btn.is-active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.guide-protocol-btn__badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-protocol-btn--serial .guide-protocol-btn__badge {
    background: #ede9fe;
    color: #6d28d9;
}

.guide-protocol-btn--net .guide-protocol-btn__badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.guide-protocol-btn__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

.guide-protocol-btn__desc {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.45;
}

.guide-protocol-btn__arrow {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.guide-protocol-panel {
    margin-top: 0.5rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fafbfc;
}

.guide-protocol-panel--serial {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 55%);
    box-shadow: 0 4px 18px rgba(109, 40, 217, 0.06);
}

.guide-protocol-panel--net {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%);
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.06);
}

.guide-protocol-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.75rem 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.guide-protocol-divider::before,
.guide-protocol-divider::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #cbd5e1 15%,
        var(--primary) 50%,
        #cbd5e1 85%,
        transparent 100%
    );
}

.guide-protocol-divider span {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.guide-protocol-panel + .guide-protocol-panel {
    margin-top: 0;
    padding-top: 1.35rem;
    border-top: 1px solid transparent;
}

.guide-protocol-nav-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.75rem 0 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--accent);
}

.guide-protocol-nav-link {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-sub);
    text-decoration: none;
    padding: 0.35rem 0 0.35rem 0.5rem;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.guide-protocol-nav-link:hover {
    color: var(--primary);
    border-left-color: rgba(59, 130, 246, 0.35);
}

.guide-note {
    margin: 0.25rem 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
}

.guide-note p {
    margin: 0 0 0.4rem;
}

.guide-note p:last-child {
    margin-bottom: 0;
}

.guide-note__label {
    display: inline-block;
    margin-right: 0.25rem;
    font-weight: 600;
    color: #475569;
}

.guide-note code {
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background: #eef2f7;
    font-size: 0.72rem;
    color: #334155;
}

.guide-note a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.guide-note a:hover {
    text-decoration: underline;
}

.guide-config-cta {
    margin-top: 2.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
}

.guide-config-cta__title {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.guide-config-cta__desc {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-sub);
}

.guide-config-cta__list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    font-size: 0.78rem;
    line-height: 1.7;
    color: #64748b;
}

.guide-config-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.guide-config-cta__btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

/* ========== 无 CDN 备用：组件与布局（国内服务器 Tailwind CDN 不可用时生效） ========== */
.nav-link {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover { color: var(--primary); }

.nav-active {
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: var(--primary);
}

.soft-blue-card {
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.soft-blue-card:hover {
    border-color: var(--primary);
    background: #f8fbff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.product-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

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

.download-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.2);
    transition: background 0.2s, transform 0.12s;
}

.download-btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.download-btn-main.download-btn-outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.download-btn-main.download-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

@media (min-width: 640px) {
    .download-btn-main {
        width: auto;
        padding: 1rem 3rem;
        font-size: 1.125rem;
    }
}

.version-tag {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: -0.02em;
}

.product-category { margin-bottom: 3.5rem; }
.product-category:last-child { margin-bottom: 0; }
.product-category-head { margin-bottom: 1.5rem; }

@media (min-width: 768px) {
    .product-category-head { margin-bottom: 2rem; }
}

.product-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 768px) {
    .product-category-title { font-size: 1.5rem; }
}

.product-category-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid var(--accent);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

@media (min-width: 768px) {
    .product-category-badge { font-size: 0.75rem; }
}

.product-category-desc {
    margin-top: 0.5rem;
    max-width: 48rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: #6b7280;
}

.product-category .grid {
    align-items: stretch;
}

.product-category .grid > * {
    min-width: 0;
}

.product-category .soft-blue-card[itemscope] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.product-category .soft-blue-card [itemprop="name"] {
    min-height: 3.375rem;
    line-height: 1.375;
}

.product-category .soft-blue-card [itemprop="description"] {
    flex: 1 1 auto;
    min-height: 5.5rem;
}

@media (min-width: 1280px) {
    .product-category .soft-blue-card [itemprop="description"] {
        min-height: 6.5rem;
    }
}

.product-category .product-card-foot,
.product-category .soft-blue-card .mt-auto {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-card-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(239, 246, 255, 0.8);
    border: 1px solid var(--accent);
    border-radius: 0.25rem;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.flex-grow { flex-grow: 1; }
.mt-auto { margin-top: auto; }
.rounded-full { border-radius: 9999px; }
.rounded-panel { border-radius: var(--panel-radius); }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-1 { height: 0.25rem; }
.w-12 { width: 3rem; }
.bg-primary { background-color: var(--primary); }
.object-cover { object-fit: cover; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-16 { margin-top: 4rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

.grid { display: grid; }
.items-stretch { align-items: stretch; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 1024px) {
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-9 { grid-column: span 9 / span 9; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:order-none { order: 0; }
}

.p-4 { padding: 1rem; }

@media (min-width: 640px) {
    .sm\:p-6 { padding: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
}

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:p-8 { padding: 2rem; }
    .md\:mb-16 { margin-bottom: 4rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:mt-20 { margin-top: 5rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:p-12 { padding: 3rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:mb-8 { margin-bottom: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.transition-transform { transition-property: transform; }
.duration-500 { transition-duration: 500ms; }

.soft-blue-card .hover\:scale-105:hover,
.hover\:scale-105:hover { transform: scale(1.05); }

/* ========== 全站响应式布局 ========== */
.site-page-main {
    padding-top: calc((var(--header-h) + var(--logo-h)) / 2 + 0.5rem);
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .site-page-main {
        padding-top: calc((var(--header-h) + var(--logo-h)) / 2 + 0.75rem);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.page-hero,
.home-hero,
.guide-hero {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .page-hero,
    .home-hero,
    .guide-hero {
        margin-bottom: 2rem;
    }
}

.page-hero h1,
.home-hero h1,
.guide-hero h1 {
    margin-bottom: 0.75rem;
}

.page-hero .page-hero-label,
.page-hero .guide-hero-label,
.home-hero .page-hero-label {
    margin-top: 0.75rem;
}

.page-hero .page-hero-sub,
.page-hero .guide-hero-sub,
.home-hero .page-hero-sub {
    font-size: 0.875rem;
    color: var(--text-sub);
}

.page-hero .page-hero-divider,
.page-hero .w-12,
.home-hero .w-12,
.guide-hero .w-12 {
    margin-top: 0.75rem;
}

.page-intro {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-intro {
        margin-bottom: 2rem;
    }
}

.page-intro h1 {
    margin-bottom: 0.5rem;
}

.site-footer {
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 3rem 1.5rem;
    }
}

.site-footer-tags {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

/* ========== 教程页组件（不依赖 Tailwind CDN） ========== */
.manual-card { padding: 1.5rem; }

@media (min-width: 768px) {
    .manual-card { padding: 2rem; }
}

.manual-h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.manual-h3::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--primary);
    flex-shrink: 0;
}

.manual-h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(59, 130, 246, 0.4);
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

.risk-box {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #ef4444;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #fef2f2;
    color: #b91c1c;
}

.tip-box {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(239, 246, 255, 0.7);
}

.manual-sidebar { height: fit-content; }

@media (min-width: 1024px) {
    .manual-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.manual-nav-link {
    display: block;
    padding: 0.375rem 0 0.375rem 0.5rem;
    border-left: 2px solid transparent;
    font-size: 0.875rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.manual-nav-link:hover {
    color: var(--primary);
    border-left-color: rgba(59, 130, 246, 0.4);
}

.manual-nav-link.is-active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.manual-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #f8fbff;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    outline: none;
}

.manual-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.manual-details {
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    overflow: hidden;
}

.manual-summary {
    padding: 0.75rem 1rem;
    background: rgba(239, 246, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.manual-summary:hover { background: #eff6ff; }

.manual-details-body {
    padding: 1rem;
    border-top: 1px solid var(--accent);
    background: #fff;
}

.text-textSub { color: var(--text-sub); }

.scroll-mt-28 { scroll-margin-top: 7rem; }

/* 教程页 */
@media (max-width: 1023px) {
    .manual-sidebar {
        position: static !important;
    }
}

.manual-sidebar-quick {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent);
}

.manual-sidebar-quick-link {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.45;
    padding: 0.2rem 0;
}

.manual-sidebar-quick-link:hover {
    text-decoration: underline;
}

.manual-sidebar-quick-link.is-current {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .manual-sidebar-quick-link {
        font-size: 1.0625rem;
    }
}

.guide-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-sub);
}

.guide-content p:not(.text-xs),
.guide-content li,
.guide-content .tip-box p,
.guide-content .risk-box p,
.guide-content .manual-details-body p:not(.text-xs) {
    font-size: 1rem;
    line-height: 1.75;
}

.guide-content .manual-h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
}

.guide-content .manual-h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.guide-content .manual-summary {
    font-size: 1rem;
}

.guide-content a.inline-flex {
    font-size: 0.9375rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.guide-content img,
.guide-content figure img {
    max-width: 100%;
    height: auto;
}

/* 教程页统一排版（所有 guide/*.html，不依赖 Tailwind CDN） */
body.guide-page {
    font-size: 16px;
    line-height: 1.625;
}

body.guide-page .guide-hero h1 {
    font-size: 1.875rem;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 768px) {
    body.guide-page .guide-hero h1 {
        font-size: 2.25rem;
    }
}

body.guide-page .guide-hero .guide-hero-label {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

body.guide-page .guide-hero .guide-hero-sub {
    font-size: 1rem;
    color: var(--text-sub);
}

body.guide-page .manual-card,
body.guide-page .guide-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-sub);
}

body.guide-page .manual-card p,
body.guide-page .guide-content p,
body.guide-page .manual-card li,
body.guide-page .guide-content li,
body.guide-page .manual-card .tip-box p,
body.guide-page .guide-content .tip-box p,
body.guide-page .manual-card .risk-box p,
body.guide-page .guide-content .risk-box p,
body.guide-page .manual-details-body p {
    font-size: 1rem;
    line-height: 1.75;
}

body.guide-page .manual-card p.text-xs,
body.guide-page .guide-content p.text-xs {
    font-size: 0.8125rem;
    line-height: 1.5;
}

body.guide-page .manual-h3,
body.guide-page .guide-content .manual-h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

body.guide-page .manual-h4,
body.guide-page .guide-content .manual-h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

body.guide-page .manual-summary,
body.guide-page .guide-content .manual-summary {
    font-size: 1rem;
}

body.guide-page .manual-nav-link {
    font-size: 0.9375rem;
}

body.guide-page .manual-card a.inline-flex,
body.guide-page .guide-content a.inline-flex {
    font-size: 0.9375rem;
}

body.guide-page .manual-sidebar-quick-link {
    font-size: 1rem;
}

@media (min-width: 1024px) {
    body.guide-page .manual-sidebar-quick-link {
        font-size: 1.0625rem;
    }
}

/* 疑难杂症 / FAQ 页 */
.guide-faq-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.guide-faq-section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.guide-faq-section-title:not(:first-child) {
    margin-top: 2rem;
}

.guide-faq-meta {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-sub);
}

.guide-faq-meta strong {
    color: #374151;
    font-weight: 600;
}

.guide-faq-steps {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-sub);
}

.guide-faq-steps li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.guide-faq-steps--plain {
    list-style: disc;
    padding-left: 1.25rem;
}

.guide-faq-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px dashed var(--accent);
}

.guide-faq-links {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-sub);
}

.guide-faq-nav-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.75rem 0 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--accent);
}

.guide-faq-nav-label:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 配置修改页 net.html */
.page-wrap {
    padding: 5.5rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .page-wrap {
        padding: 6.5rem 1.25rem 3rem;
    }
}

.net-container {
    width: 100%;
    max-width: 560px;
}

.net-container h1 {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.net-card {
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .net-card {
        padding: 1.75rem;
    }
}

.net-field-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .net-field-row {
        flex-direction: row;
        align-items: center;
        gap: 0.625rem;
    }
}

.net-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .net-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .net-actions .btn-outline,
    .net-actions .btn-success,
    .net-actions .btn-danger {
        flex: 1 1 auto;
        min-width: 7rem;
    }
}

.net-id-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 工具页顶栏 */
.site-tool-bar {
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
}

.site-tool-bar .tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: flex-end;
}

/* 错误页 */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
}

.error-page .error-code {
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-top: 1.5rem;
}

.error-page .error-desc {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--text-sub);
    line-height: 1.6;
    max-width: 24rem;
}

.error-page .error-home {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.error-page .error-home:hover {
    background: var(--primary-hover);
}

/* ========== 免责声明弹窗 / 正文 ========== */
.disclaimer-card {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .disclaimer-card {
        padding: 2rem;
    }
}

.disclaimer-body,
.disclaimer-modal-body {
    font-size: 1rem;
    line-height: 1.625;
    color: var(--text-sub);
}

.disclaimer-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.disclaimer-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.disclaimer-section-bar {
    width: 0.5rem;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 9999px;
    flex-shrink: 0;
}

.disclaimer-section-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.disclaimer-paragraph {
    padding-left: 1rem;
    margin: 0;
    line-height: 1.75;
    color: var(--text-sub);
}

.disclaimer-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.disclaimer-list li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    line-height: 1.75;
    color: var(--text-sub);
}

.disclaimer-list .bullet {
    color: var(--primary);
    flex-shrink: 0;
    font-weight: 700;
}

.disclaimer-body .risk-box,
.disclaimer-modal-body .risk-box {
    margin: 1rem 0 0;
    padding: 1rem;
    border-left: 4px solid #ef4444;
    border-radius: 0 0.5rem 0.5rem 0;
    background: #fef2f2;
    color: #b91c1c;
}

.disclaimer-body .risk-highlight,
.disclaimer-modal-body .risk-highlight {
    margin: 0 0 0.5rem;
    color: #dc2626;
    font-weight: 700;
    font-style: italic;
}

.disclaimer-body .risk-box-text,
.disclaimer-modal-body .risk-box-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.625;
}

.disclaimer-footer-note {
    padding-top: 1.5rem;
    border-top: 1px dashed var(--accent);
    text-align: center;
}

.disclaimer-footer-note p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--text-sub);
}

.disclaimer-footer-note strong {
    color: #4b5563;
    font-weight: 700;
}

.disclaimer-risk-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #b91c1c;
}

.disclaimer-risk-highlight {
    color: #dc2626;
    font-weight: 700;
}

body.disclaimer-modal-open {
    overflow: hidden;
}

.disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.disclaimer-modal.is-open {
    display: flex;
}

.disclaimer-modal[hidden] {
    display: none !important;
}

.disclaimer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.disclaimer-modal-panel {
    position: relative;
    width: 100%;
    max-width: 42rem;
    max-height: min(88vh, 720px);
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.disclaimer-modal-head {
    padding: 1.25rem 1.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--accent);
    flex-shrink: 0;
}

.disclaimer-modal-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0.35rem 0 0;
}

.disclaimer-modal-head p {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin: 0.5rem 0 0;
}

.disclaimer-modal-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.disclaimer-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.92rem;
}

.disclaimer-modal-foot {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--accent);
    background: #f8fbff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.disclaimer-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .disclaimer-modal-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .disclaimer-modal-agree,
    .disclaimer-modal-community {
        flex: 1;
    }
}

.disclaimer-modal-agree {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.disclaimer-modal-agree:hover {
    background: var(--primary-hover);
}

.disclaimer-modal-community {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.disclaimer-modal-community:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.disclaimer-modal-link {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-sub);
}

.disclaimer-modal-link a {
    color: var(--primary);
    text-decoration: none;
}

.disclaimer-modal-link a:hover {
    text-decoration: underline;
}

/* ========== 使用说明总页 ========== */
.guides-firmware-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 45%, #fff 100%);
    border: 2px solid #93c5fd;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

@media (min-width: 768px) {
    .guides-firmware-hero {
        padding: 2rem 2.25rem;
    }
}

.guides-firmware-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    pointer-events: none;
}

.guides-firmware-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.guides-firmware-hero h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .guides-firmware-hero h2 {
        font-size: 1.85rem;
    }
}

.guides-firmware-hero p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 40rem;
    margin-bottom: 1.25rem;
}

.guides-firmware-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guides-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.65rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
    transition: transform 0.12s, background 0.15s;
}

.guides-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.guides-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.guides-btn-outline:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.guides-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guides-section-title::before {
    content: '';
    width: 4px;
    height: 1.1rem;
    background: var(--primary);
    border-radius: 2px;
}

.guides-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.guides-card-grid > * {
    min-width: 0;
}

@media (min-width: 640px) {
    .guides-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .guides-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.guides-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 100%;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guides-card:hover {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.guides-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    width: fit-content;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.guides-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.4rem;
    flex-shrink: 0;
}

.guides-card p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.55;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.guides-card-cta {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.guides-product-section {
    margin-bottom: 2rem;
}

.guides-tools-strip {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8fbff;
    border: 1px dashed var(--accent);
    border-radius: var(--panel-radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.guides-tools-strip p {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin: 0;
}

/* 开发者文档页 — 与 docs.html 内 Tailwind 定义一致，CDN 失败时备用 */
.docs-page .doc-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

.docs-page .soft-blue-card {
    display: block;
    height: auto;
    flex-direction: unset;
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--panel-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: none;
}

.docs-page .soft-blue-card:hover {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: none;
}

.docs-page aside .soft-blue-card {
    padding: 1rem;
    margin-bottom: 0;
}

.docs-page .badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-page .badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.docs-page .sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

@media (max-width: 1023px) {
    .docs-page .sidebar {
        display: none;
    }
}

.docs-page pre.code-block,
.docs-page .code-block {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 1rem 0;
    padding: 1.25rem;
    max-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    word-wrap: normal;
    word-break: normal;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.625;
    color: #bfdbfe;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.docs-page pre.code-block::-webkit-scrollbar,
.docs-page .code-block::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.docs-page pre.code-block::-webkit-scrollbar-track,
.docs-page .code-block::-webkit-scrollbar-track {
    background: #0f172a;
}

.docs-page pre.code-block::-webkit-scrollbar-thumb,
.docs-page .code-block::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

.docs-page pre.code-block {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

