/* 由 base.html 内联块抽离（L179-584，406 行），内容逐字节保留 */

        /* 全局图片响应式处理 */
        img {
            max-width: 100%;
            height: auto;
        }

        /* 原创图标默认尺寸兜底，避免弹窗/动态节点图标放大变形 */
        .dk-inline-icon {
            width: 1em;
            height: 1em;
            min-width: 1em;
            min-height: 1em;
            max-width: 1em;
            max-height: 1em;
            display: inline-block;
            vertical-align: -0.125em;
            object-fit: contain;
        }
        
        /* 确保所有容器不会因为内容而变形 */
        .container, .container-fluid {
            overflow-x: hidden;
        }
        
        /* 处理长文本和链接 */
        * {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        /* 表格响应式处理 */
        table {
            max-width: 100%;
            overflow-x: auto;
        }
        
        /* 代码块响应式处理 */
        pre, code {
            max-width: 100%;
            overflow-x: auto;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        
        /* 视频和iframe响应式处理 */
        video, iframe {
            max-width: 100%;
            height: auto;
        }
        
        /* 社交媒体链接样式（统一使用 footer 段落内的 .social-primary-link / .social-link 规则） */
        
        /* 底部导航优化样式 */
        footer {
            background: #000 !important;
            color: #ffffff !important;
        }
        
        .footer-section {
            margin-bottom: 1.5rem;
            text-align: left;
        }
        
        .footer-title {
            color: #ffffff !important;
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            border-bottom: 2px solid #28a745;
            padding-bottom: 0.5rem;
            display: inline-block;
        }
        
        .footer-subtitle {
            color: #ffffff !important;
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 0.75rem;
        }
        
        .footer-desc {
            color: #b0b0b0 !important;
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.3rem;
        }
        
        .footer-links a {
            color: #b0b0b0 !important;
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            display: inline-block;
            padding: 0.15rem 0;
        }
        
        .footer-links a:hover {
            color: #28a745 !important;
            transform: translateX(5px);
        }
        
        /* 底部菜单栏NEW标记样式 */
        .new-badge-footer {
            background-color: #dc3545 !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            text-shadow: none !important;
            border-radius: 3px !important;
        }
        
        .social-links {
            display: flex;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .social-primary-links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.55rem;
            margin-top: 0.35rem;
        }

        .social-primary-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.22rem 0.62rem;
            border-radius: 999px;
            border: 1px solid rgba(134, 239, 172, 0.3);
            background: rgba(15, 23, 42, 0.35);
            color: #d1d5db !important;
            text-decoration: none !important;
            font-size: 0.86rem;
            font-weight: 600;
            line-height: 1.25;
            transition: all 0.2s ease;
        }

        .social-primary-link:hover,
        .social-primary-link:focus,
        .social-primary-link:active {
            color: #ecfdf5 !important;
            border-color: rgba(52, 211, 153, 0.65);
            background: rgba(5, 150, 105, 0.2);
            text-decoration: none !important;
            box-shadow: none;
            outline: none;
        }
        
        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 1.9rem;
            padding: 0.22rem 0.62rem;
            border-radius: 999px;
            border: 1px solid rgba(134, 239, 172, 0.3);
            background: rgba(15, 23, 42, 0.35);
            color: #d1d5db !important;
            text-decoration: none !important;
            transition: all 0.2s ease;
            font-size: 0.86rem;
            font-weight: 600;
            line-height: 1.25;
        }

        .social-link-label {
            font-size: inherit;
            font-weight: inherit;
            letter-spacing: normal;
            line-height: inherit;
            white-space: nowrap;
        }
        
        .social-link:hover,
        .social-link:focus,
        .social-link:active {
            color: #ecfdf5 !important;
            border-color: rgba(52, 211, 153, 0.65);
            background: rgba(5, 150, 105, 0.2);
            text-decoration: none !important;
            transform: none;
            box-shadow: none;
            outline: none;
        }

        .social-link-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(156, 163, 175, 0.35);
            background: rgba(148, 163, 184, 0.12);
            color: #d1d5db !important;
            text-decoration: none !important;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            width: auto;
            min-height: 1.9rem;
            padding: 0.18rem 0.55rem;
            cursor: pointer;
            margin-top: 0.05rem;
            border-radius: 999px;
            transition: all 0.2s ease;
        }

        .social-link-more:hover,
        .social-link-more:focus,
        .social-link-more:active {
            color: #ecfdf5 !important;
            background: rgba(5, 150, 105, 0.22);
            border-color: rgba(52, 211, 153, 0.6);
            text-decoration: none !important;
            transform: none;
            box-shadow: none;
            outline: none;
        }

        .social-link-more .social-link-label {
            font-size: inherit;
            font-weight: inherit;
            letter-spacing: normal;
            line-height: 1.2;
        }

        .social-links {
            margin-top: 0.45rem;
            align-items: center;
        }

        /* 默认收起额外平台，避免被 .social-links a 规则覆盖 */
        .social-links .social-link-extra {
            display: none !important;
        }

        .social-links.social-expanded .social-link-extra {
            display: inline-flex !important;
        }
        
        .footer-divider {
            border-color: #333;
            margin: 2rem 0;
        }
        
        .footer-copyright {
            color: #b0b0b0 !important;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .footer-credit {
            color: #808080 !important;
            font-size: 0.8rem;
        }
        
        .footer-credit a {
            color: #28a745 !important;
            text-decoration: none;
        }
        
        .footer-credit a:hover {
            color: #20c997 !important;
            text-decoration: underline;
        }

        .footer-bottom-bar {
            row-gap: 1rem;
        }

        .footer-bottom-cta {
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: center;
            gap: 0.6rem;
        }

        .footer-cta-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.45rem 0.95rem;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid transparent;
            transition: all 0.2s ease;
            white-space: nowrap;
            cursor: pointer;
            background: transparent;
            line-height: 1.2;
        }

        /* 需高于 dashboard.css 中 a / a:visited / a:hover 的全局绿链规则 */
        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-primary,
        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-primary:visited,
        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-primary:hover {
            background: #28a745;
            color: #ffffff !important;
            border-color: #28a745;
            text-decoration: none;
        }

        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-primary:hover {
            background: #20c997;
            border-color: #20c997;
        }

        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-outline,
        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-outline:visited,
        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-outline:hover,
        footer .footer-bottom-cta button.footer-cta-btn.footer-cta-btn-outline,
        footer .footer-bottom-cta button.footer-cta-btn.footer-cta-btn-outline:hover {
            color: #ffffff !important;
            border-color: rgba(255, 255, 255, 0.35);
            text-decoration: none;
        }

        footer .footer-bottom-cta a.footer-cta-btn.footer-cta-btn-outline:hover,
        footer .footer-bottom-cta button.footer-cta-btn.footer-cta-btn-outline:hover {
            border-color: #28a745;
            background: rgba(40, 167, 69, 0.15);
        }

        .footer-mobile-extra {
            margin-top: 0.75rem;
        }

        .footer-back-top {
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: transparent;
            color: #b0b0b0;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .footer-back-top:hover {
            border-color: #28a745;
            color: #28a745;
        }
        
        .language-selector .btn {
            border-color: #666;
            color: #ffffff;
        }
        
        .language-selector .btn:hover {
            border-color: #28a745;
            background-color: #28a745;
        }
        
        .language-selector .dropdown-menu {
            background: #1a1a1a;
            border: 1px solid #333;
        }
        
        .language-selector .dropdown-item {
            color: #b0b0b0;
        }
        
        .language-selector .dropdown-item:hover {
            background: #28a745;
            color: #ffffff;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .footer-title {
                font-size: 1rem;
            }
            
            .footer-desc {
                font-size: 0.85rem;
            }
            
            .footer-links a {
                font-size: 0.85rem;
            }
            
            .social-link,
            .social-primary-link,
            .social-link-more {
                min-height: 1.75rem;
                padding: 0.16rem 0.5rem;
                font-size: 0.8rem;
            }
        }
    
