/**
 * 忍者群发器 - 基础样式
 * 组件、布局、动画（深色默认）
 */

/* ---- 背景网格 ---- */
.bg-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ---- 文字渐变 ---- */
.gradient-text {
    background: linear-gradient(135deg, #38d4f5 0%, #8b5cf6 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    border: 1px solid transparent;
    background-image: linear-gradient(#0c0e14, #0c0e14), linear-gradient(135deg, #38d4f5, #f472b6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ---- 玻璃卡片 ---- */
.glass-card {
    background: rgba(12, 14, 20, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(56, 212, 245, 0.28);
    box-shadow: 0 10px 30px -10px rgba(56, 212, 245, 0.14);
    transform: translateY(-2px);
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #080a10; }
::-webkit-scrollbar-thumb { background: #1e2430; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #38d4f5; }

/* ---- 回到顶部 ---- */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---- 浮动侧栏 ---- */
.float-sidebar {
    transform: translateX(80px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-sidebar.show {
    transform: translateX(0);
}

.float-item {
    position: relative;
    transition: all 0.3s ease;
}

.float-item:hover {
    transform: translateX(-6px);
}

.float-item:hover .float-label {
    opacity: 1;
    visibility: visible;
}

.float-label {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

/* ---- 功能页日志框 ---- */
.feature-log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.feature-log-header::before {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background-color: rgba(239, 68, 68, 0.8);
    box-shadow: 1.25rem 0 0 rgba(234, 179, 8, 0.8), 2.5rem 0 0 rgba(34, 197, 94, 0.8);
}

.feature-log-header span {
    margin-left: 2.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: #94a3b8;
}

.feature-log-panel {
    align-self: start;
    display: flex;
    flex-direction: column;
}

.feature-log-body {
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.55;
    flex: 0 0 auto;
}

.feature-log-body p + p {
    margin-top: 0.375rem;
}

html.light .feature-log-header {
    background-color: #dde4ee;
    border-bottom-color: rgba(26, 35, 50, 0.1);
}

html.light .feature-log-header span {
    color: #64748b;
}

html.light .feature-log-body {
    background-color: #f4f7fb;
    color: #334155;
}

/* ---- 区块 CTA 按钮（比纯文字链接更醒目）---- */
.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.section-cta--neon {
    color: #38d4f5;
    background: rgba(56, 212, 245, 0.12);
    border: 1px solid rgba(56, 212, 245, 0.4);
}

.section-cta--neon:hover {
    color: #061014;
    background: #38d4f5;
    border-color: #38d4f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 212, 245, 0.3);
}

.section-cta--purple {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.section-cta--purple:hover {
    color: #ffffff;
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* ---- 页脚导航链接 ---- */
.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-link::before {
    content: '›';
    color: rgba(56, 212, 245, 0.5);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-link:hover {
    color: #38d4f5;
    transform: translateX(2px);
}

.footer-nav-link:hover::before {
    color: #38d4f5;
}

/* ---- 页脚主栏：品牌 | 导航 | 资讯 | 联系 ---- */
.footer-main-grid {
    display: grid;
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

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

@media (min-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
        gap: 2rem 1.75rem;
        align-items: start;
    }
}

.footer-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-brand-intro {
    max-width: 15rem;
}

.footer-col--contact .footer-contact-pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col--contact .footer-contact-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    width: 100%;
    justify-content: flex-start;
}

.footer-news-link {
    display: block;
    padding: 0.35rem 0;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-news-link::before {
    content: '›';
    display: inline-block;
    margin-right: 0.375rem;
    color: rgba(139, 92, 246, 0.55);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-news-link:hover {
    color: #c4b5fd;
}

.footer-news-link:hover::before {
    color: #c4b5fd;
    transform: translateX(2px);
}

/* ---- 页脚联系方式卡片 ---- */
.footer-contact-bar {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .footer-contact-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.footer-contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 212, 245, 0.35);
    background: rgba(56, 212, 245, 0.08);
}

.footer-contact-card--purple:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
}

.footer-contact-card--pink:hover {
    border-color: rgba(244, 114, 182, 0.4);
    background: rgba(244, 114, 182, 0.1);
}

.footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.footer-contact-pill:hover {
    transform: translateY(-1px);
}

.footer-contact-pill--neon {
    color: #38d4f5;
    border-color: rgba(56, 212, 245, 0.35);
}

.footer-contact-pill--neon:hover {
    background: rgba(56, 212, 245, 0.12);
    border-color: rgba(56, 212, 245, 0.55);
}

.footer-contact-pill--purple {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.35);
}

.footer-contact-pill--purple:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.55);
}

.footer-contact-pill--pink {
    color: #f9a8d4;
    border-color: rgba(244, 114, 182, 0.35);
}

.footer-contact-pill--pink:hover {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.55);
}

.footer-contact-pill--emerald {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
}

.footer-contact-pill--emerald:hover {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.55);
}

/* ---- SEO 可见关键词区（静态 HTML，便于抓取） ---- */
.seo-keywords-block {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.seo-keywords-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.seo-keywords-desc {
    font-size: 0.75rem;
    line-height: 1.75;
    color: #64748b;
    margin-bottom: 0.875rem;
}

.seo-keywords-desc strong {
    color: #94a3b8;
    font-weight: 600;
}

.seo-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.seo-keyword-tag {
    font-size: 0.6875rem;
    line-height: 1.4;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(56, 212, 245, 0.06);
    border: 1px solid rgba(56, 212, 245, 0.12);
    color: #64748b;
}

html.light .seo-keywords-block {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

html.light .seo-keywords-title {
    color: #475569;
}

html.light .seo-keywords-desc {
    color: #64748b;
}

html.light .seo-keywords-desc strong {
    color: #334155;
}

html.light .seo-keyword-tag {
    background: rgba(8, 145, 178, 0.06);
    border-color: rgba(8, 145, 178, 0.15);
    color: #64748b;
}

.seo-hidden-keywords {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.seo-hidden-keywords a {
    display: inline;
    font-size: 1px;
    color: transparent;
}

/* 隐含 SEO 图片：仅用于 alt，不占视觉空间 */
.seo-hidden-img {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- 页脚服务保障 ---- */
.site-footer {
    background: rgba(0, 0, 0, 0.72);
}

.footer-service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-service-grid--bar {
    width: 100%;
}

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

    .footer-service-grid--bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .footer-service-grid--bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-service-grid--bar .footer-service-item {
        align-items: center;
    }
}

.footer-service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.footer-service-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 212, 245, 0.2);
}

.footer-service-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-service-icon--cyan {
    background: rgba(56, 212, 245, 0.12);
    border: 1px solid rgba(56, 212, 245, 0.28);
    color: #38d4f5;
}

.footer-service-icon--purple {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: #a78bfa;
}

.footer-service-icon--pink {
    background: rgba(244, 114, 182, 0.14);
    border: 1px solid rgba(244, 114, 182, 0.28);
    color: #f472b6;
}

.footer-service-icon--emerald {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #34d399;
}

.footer-service-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.125rem;
}

.footer-service-desc {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: #94a3b8;
}

.footer-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.footer-info-item > i {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar--dual,
.footer-bottom-bar--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar--dual .footer-copyright,
.footer-bottom-bar--split .footer-copyright {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 768px) {
    .footer-bottom-bar--dual,
    .footer-bottom-bar--split {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .footer-bottom-bar--dual .footer-quick-contact,
    .footer-bottom-bar--split .footer-quick-contact {
        margin-left: auto;
        justify-content: flex-end;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

.footer-bottom-bar:not(.footer-bottom-bar--dual):not(.footer-bottom-bar--split) {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-bar:not(.footer-bottom-bar--dual):not(.footer-bottom-bar--split) {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        text-align: left;
    }

    .footer-bottom-bar:not(.footer-bottom-bar--dual):not(.footer-bottom-bar--split) > .footer-quick-contact {
        justify-self: center;
    }

    .footer-bottom-bar:not(.footer-bottom-bar--dual):not(.footer-bottom-bar--split) > p:last-child,
    .footer-bottom-bar:not(.footer-bottom-bar--dual):not(.footer-bottom-bar--split) > .text-xs {
        justify-self: end;
        text-align: right;
    }
}

.footer-quick-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.footer-quick-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.footer-quick-contact a:hover {
    color: #38d4f5;
}

.footer-quick-contact a:hover {
    color: #38d4f5;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content a.seo-internal-link {
    color: #38d4f5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a.seo-internal-link:hover {
    color: #5ce0f7;
}

/* ---- 顶部导航 ---- */
.site-header {
    background: rgba(6, 8, 14, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 212, 245, 0.18);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.site-header .site-nav {
    flex-shrink: 0;
}

.site-header .hidden.md\:flex.items-center.gap-4 a.bg-brand-neon {
    white-space: nowrap;
    flex-shrink: 0;
}

.site-nav {
    gap: 0.25rem;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem !important;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0 !important;
    white-space: nowrap;
    border-bottom: none !important;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
    color: #38d4f5 !important;
    background: rgba(56, 212, 245, 0.12);
}

.site-nav a.text-brand-neon {
    color: #061014 !important;
    background: linear-gradient(135deg, #38d4f5 0%, #22d3ee 100%);
    box-shadow: 0 2px 14px rgba(56, 212, 245, 0.4);
}

.site-nav a.text-brand-neon:hover {
    color: #061014 !important;
    background: linear-gradient(135deg, #5ce0f7 0%, #38d4f5 100%);
}

.site-menu-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-menu-btn:hover {
    color: #38d4f5;
    background: rgba(56, 212, 245, 0.12);
    border-color: rgba(56, 212, 245, 0.35);
}

#mobile-menu .mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    border: 1px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#mobile-menu .mobile-link:hover {
    color: #38d4f5;
    background: rgba(56, 212, 245, 0.1);
    border-color: rgba(56, 212, 245, 0.25);
}

#mobile-menu .mobile-link.text-brand-neon {
    color: #38d4f5;
    background: rgba(56, 212, 245, 0.14);
    border-color: rgba(56, 212, 245, 0.35);
}

.brand-studio-tag {
    display: block;
    font-size: 0.625rem;
    line-height: 1.2;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.brand-domain-tag {
    display: inline-block;
    font-size: 0.6875rem;
    line-height: 1.2;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #38d4f5;
    letter-spacing: 0.06em;
    opacity: 0.95;
    transition: color 0.2s ease, opacity 0.2s ease, text-shadow 0.2s ease;
}

.brand-domain-tag:hover {
    color: #7ee8ff;
    opacity: 1;
    text-shadow: 0 0 12px rgba(56, 212, 245, 0.45);
}

.footer-domain-link {
    color: #38d4f5;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-domain-link:hover {
    color: #7ee8ff;
    text-shadow: 0 0 10px rgba(56, 212, 245, 0.35);
}

html.light .brand-studio-tag {
    color: #94a3b8 !important;
    opacity: 0.9;
}

html.light .brand-domain-tag {
    color: #0891b2 !important;
}

html.light .brand-domain-tag:hover {
    color: #0e7490 !important;
    text-shadow: none;
}

/* ---- 顶部 LOGO：无外框 ---- */
header a > img[alt="忍者群发器"] {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    outline: none;
}

/* ---- 品牌名：忍者高亮 ---- */
.brand-name-accent {
    color: #38d4f5;
}

.brand-name-main {
    color: #ffffff;
}

html.light .brand-name-accent {
    color: #0891b2 !important;
}

html.light .brand-name-main {
    color: #1a2332 !important;
}

/* ---- Hero 标题：控制换行，避免单字断行、点号落单 ---- */
.hero-dot-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 0.375rem;
    row-gap: 0.125rem;
}

.hero-dot-line > span:not(.hero-dot) {
    white-space: nowrap;
}

.hero-dot {
    white-space: nowrap;
    opacity: 0.85;
}

/* ---- 面包屑导航 ---- */
.site-breadcrumb {
    margin-bottom: 1rem;
}

.site-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.site-breadcrumb-list a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.site-breadcrumb-list a:hover {
    color: #38d4f5;
}

.site-breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #475569;
    opacity: 0.6;
}

html.light .site-breadcrumb-list {
    color: #64748b;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .hero-title-line {
        white-space: normal;
    }

    .hero-title-line:last-child {
        white-space: nowrap;
    }
}

/* ---- 移动端适配 ---- */
#mobile-menu:not(.hidden) {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.faq-item > .flex.justify-between.items-center {
    gap: 0.75rem;
}

.faq-item > .flex.justify-between.items-center > span {
    min-width: 0;
    flex: 1;
    line-height: 1.5;
}

.faq-item > .flex.justify-between.items-center > i {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    #back-to-top {
        bottom: max(1.25rem, env(safe-area-inset-bottom));
        right: max(1rem, env(safe-area-inset-right));
    }
}

/* 平板 / 小屏桌面：导航项较多时收紧间距 */
@media (min-width: 768px) and (max-width: 1279px) {
    .site-nav a {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.8125rem;
    }
}

/* ---- 资讯列表 / 标签页布局 ---- */
.news-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        gap: 2rem;
    }
}

.news-layout-main {
    min-width: 0;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-sidebar-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-sidebar-link {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.news-sidebar-link:hover {
    color: #38d4f5;
}

.news-sidebar-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    color: #64748b;
}

.news-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #94a3b8;
    background: rgba(56, 212, 245, 0.08);
    border: 1px solid rgba(56, 212, 245, 0.18);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.news-tag-pill:hover {
    color: #38d4f5;
    border-color: rgba(56, 212, 245, 0.45);
    background: rgba(56, 212, 245, 0.14);
}

.news-tag-count {
    font-size: 0.625rem;
    padding: 0.05rem 0.35rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

.news-article-tags,
.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bae6fd;
    background: rgba(56, 212, 245, 0.1);
    border: 1px solid rgba(56, 212, 245, 0.22);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.article-tag-link:hover {
    color: #38d4f5;
    border-color: rgba(56, 212, 245, 0.5);
    background: rgba(56, 212, 245, 0.16);
}

.article-adjacent-nav {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .article-adjacent-nav {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.article-adjacent-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-height: 4.5rem;
}

.article-adjacent-link--next {
    text-align: right;
}

.article-adjacent-link:hover {
    border-color: rgba(56, 212, 245, 0.35);
    background: rgba(56, 212, 245, 0.06);
}

.article-adjacent-link--empty {
    display: none;
}

@media (min-width: 640px) {
    .article-adjacent-link--empty {
        display: block;
        visibility: hidden;
    }
}

.article-adjacent-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #38d4f5;
    letter-spacing: 0.04em;
}

.article-adjacent-title {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #cbd5e1;
}

html.light .news-sidebar-title,
html.light .article-adjacent-title {
    color: #334155;
}

html.light .news-sidebar-link {
    color: #475569;
}

html.light .news-sidebar-link:hover,
html.light .article-tag-link:hover {
    color: #0891b2;
}

html.light .article-tag-link {
    color: #0e7490;
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
}

html.light .news-tag-pill {
    color: #475569;
    background: rgba(8, 145, 178, 0.06);
    border-color: rgba(8, 145, 178, 0.15);
}

html.light .news-tag-pill:hover {
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.35);
}
