﻿:root {
      --primary: #0F4C81;
      --accent-blue: #60A5FA;
      --bg-dark: #050B16;
      --bg-card: #07111F;
      --bg-light: #F3F7FB;
      --text-dark: #0F172A;
      --text-light: #E5EEFC;
      --warning: #C2410C;
      --success: #16A34A;
      --border: rgba(182, 197, 216, 0.2);
      --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: var(--font-stack); background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }
    a { color: var(--accent-blue); text-decoration: none; transition: color 0.25s ease; }
    a:hover { color: #ffffff; }

    
    .site-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: rgba(7, 17, 31, 0.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(6, 182, 212, 0.18); }
    .header-inner { width: min(1200px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; text-decoration: none; flex-shrink: 0; }
    .logo img { display: block; height: 40px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
    .logo span { display: inline-block; font-size: 18px; font-weight: 800; line-height: 1.2; color: #e5eefc; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
    .desktop-nav-wrap { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; }
    .desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; }
    .desktop-nav::-webkit-scrollbar { display: none; }
    .desktop-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border-radius: 999px; color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; flex: 0 0 auto; }
    .desktop-nav a:hover { background: rgba(60, 165, 250, 0.15); color: #fff; }
    .mobile-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(6, 182, 212, 0.14); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; flex: 0 0 auto; }
    .mobile-menu-btn span { display: block; width: 20px; height: 2px; border-radius: 99px; background: #e5eefc; }
    .mobile-nav-mask { position: fixed; inset: 0; z-index: 1100; background: rgba(2, 6, 23, 0.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
    .mobile-drawer { position: fixed; top: 0; left: 0; z-index: 1110; width: min(86vw, 360px); height: 100vh; height: 100dvh; max-width: 90vw; background: #07111F; color: #E5EEFC; transform: translateX(-105%); transition: transform .28s ease; box-shadow: 24px 0 60px rgba(15,23,42,.24); display: flex; flex-direction: column; overflow: hidden; }
    .drawer-head { min-height: 76px; padding: 16px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(6, 182, 212, 0.18); flex: 0 0 auto; }
    .drawer-logo { min-width: 0; }
    .drawer-logo img { height: 34px; max-width: 120px; }
    .drawer-logo span { font-size: 16px; max-width: 145px; }
    .drawer-close { width: 40px; height: 40px; border: 0; border-radius: 14px; background: rgba(6, 182, 212, 0.14); color: #E5EEFC; font-size: 26px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
    .drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px; }
    .drawer-nav { display: flex; flex-direction: column; gap: 8px; }
    .drawer-nav a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 13px 14px; border-radius: 14px; background: rgba(148,163,184,.10); color: #F8FAFC; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.35; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
    body.drawer-open { overflow: hidden; touch-action: none; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; pointer-events: auto; }
    body.drawer-open .mobile-drawer { transform: translateX(0); }

    
    .article-page { width: 100%; max-width: 100%; overflow-x: hidden; padding: 40px 0; }
    .article-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 28px; align-items: start; }
    .article-main, .article-sidebar { min-width: 0; max-width: 100%; }
    .article-head { margin-bottom: 24px; }
    .article-title-text { font-size: clamp(22px, 4vw, 36px); font-weight: 800; color: #ffffff; line-height: 1.25; margin-bottom: 16px; }
    .article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(229, 238, 252, 0.6); border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; }
    .article-meta span { display: inline-flex; align-items: center; gap: 6px; }
    
    .article-cover { width: 100%; max-width: 100%; overflow: hidden; border-radius: 20px; margin-bottom: 32px; background: #0b1a30; border: 1px solid var(--border); }
    .article-cover img { width: 100%; max-width: 100%; height: auto; display: block; object-fit: cover; }

    
    .article-content { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; word-break: break-word; overflow-wrap: anywhere; line-height: 1.8; font-size: 16px; color: rgba(229, 238, 252, 0.85); }
    .article-content * { box-sizing: border-box; max-width: 100%; }
    .article-content p, .article-content div, .article-content section, .article-content blockquote, .article-content li, .article-content span { max-width: 100%; word-break: break-word; overflow-wrap: anywhere; margin-bottom: 18px; }
    .article-content img, .article-content video { max-width: 100% !important; height: auto !important; display: block; margin: 24px auto; border-radius: 12px; }
    .article-content h2 { font-size: 22px; font-weight: 800; color: #ffffff; margin: 32px 0 16px; }
    .article-content h3 { font-size: 18px; font-weight: 700; color: #ffffff; margin: 24px 0 12px; }
    
    
    .article-content table { display: block; width: 100% !important; max-width: 100% !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin-bottom: 24px; border: 1px solid var(--border); }
    .article-content th, .article-content td { padding: 12px 16px; border: 1px solid var(--border); font-size: 14px; text-align: left; word-break: break-word; overflow-wrap: anywhere; white-space: normal; }
    .article-content th { background: rgba(15, 76, 129, 0.2); color: #ffffff; font-weight: 700; }
    .article-content td { background: rgba(255, 255, 255, 0.02); }

    .article-content pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; -webkit-overflow-scrolling: touch; background: #010409; padding: 16px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 24px; }
    .article-content code { font-family: monospace; font-size: 13px; color: var(--accent-blue); background: rgba(96, 165, 250, 0.08); padding: 2px 6px; border-radius: 4px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
    .article-content a { color: var(--accent-blue); text-decoration: underline; word-break: break-word; overflow-wrap: anywhere; }
    .article-content [style*="width"], .article-content [width] { max-width: 100% !important; }
    .article-content [style*="min-width"] { min-width: 0 !important; }
    .article-content [style*="margin-left"] { margin-left: 0 !important; }
    .article-content [style*="left"] { max-width: 100% !important; }

    
    .article-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 40px; }
    .article-nav a { display: flex; flex-direction: column; max-width: 48%; font-size: 13px; color: rgba(229, 238, 252, 0.6); }
    .article-nav a:hover { color: var(--accent-blue); }
    .article-nav span { font-weight: 800; font-size: 15px; color: #ffffff; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    
    .related-section { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 40px; }
    .related-title { font-size: 18px; font-weight: 800; color: #ffffff; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.05em; }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color 0.2s ease; }
    .related-card:hover { border-color: var(--accent-blue); }
    .related-card h4 { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .related-card a { color: inherit; }
    .related-card a:hover { color: var(--accent-blue); }
    .related-meta { font-size: 11px; color: rgba(229, 238, 252, 0.5); }

    
    .article-sidebar { display: flex; flex-direction: column; gap: 24px; }
    .side-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
    .side-title { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); text-transform: uppercase; letter-spacing: 0.05em; }
    .side-compliance-box { font-size: 13px; color: rgba(229, 238, 252, 0.75); line-height: 1.6; }
    .side-compliance-box ul { list-style: none; margin-top: 12px; }
    .side-compliance-box li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .side-compliance-box li::before { content: "✓"; color: var(--success); font-weight: 900; }
    
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-cloud a { font-size: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: rgba(229, 238, 252, 0.8); }
    .tag-cloud a:hover { background: rgba(96, 165, 250, 0.15); border-color: var(--accent-blue); color: #ffffff; }

    
    .site-footer { position: relative; z-index: 1; width: 100%; background: #050B16; color: #e5e7eb; padding: 56px 0 24px; overflow: hidden; border-top: 1px solid var(--border); margin-top: 56px; }
    .footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: minmax(260px,1.35fr) repeat(3, minmax(150px,1fr)); gap: 28px; align-items: start; }
    .footer-brand { min-width: 0; }
    .footer-brand p { margin: 16px 0 0; color: rgba(229,231,235,.74); line-height: 1.8; font-size: 14px; word-break: break-word; overflow-wrap: anywhere; }
    .footer-logo span { color: #ffffff; }
    .footer-column { min-width: 0; }
    .footer-column h3 { margin: 0 0 14px; font-size: 15px; color: #ffffff; }
    .footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .footer-column li { min-width: 0; }
    .footer-column a, .footer-column span { display: inline; color: rgba(229,231,235,.74); text-decoration: none; font-size: 14px; line-height: 1.55; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
    .footer-column a:hover { color: #ffffff; }
    .footer-bottom { width: min(1200px, calc(100% - 32px)); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(229,231,235,.62); font-size: 13px; }
    .footer-bottom p { margin: 0; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
    .footer-bottom a { color: rgba(229,231,235,.74); text-decoration: none; word-break: break-word; overflow-wrap: anywhere; }

    @media (max-width: 900px) {
      .header-inner { width: min(100% - 24px, 1200px); min-height: 64px; gap: 12px; }
      .desktop-nav-wrap, .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .logo img { height: 34px; max-width: 118px; }
      .logo span { font-size: 16px; max-width: 145px; }
      .article-shell { grid-template-columns: 1fr; width: min(100% - 24px, 1200px); gap: 22px; }
      .article-sidebar { order: 2; }
      .related-grid { grid-template-columns: 1fr; }
      .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    }
    @media (max-width: 640px) {
      .footer-inner { grid-template-columns: 1fr; }
    }
    @media (max-width: 420px) {
      .mobile-drawer { width: 88vw; }
      .logo span { max-width: 112px; }
      .drawer-logo span { max-width: 118px; }
      .footer-inner, .footer-bottom { width: min(100% - 24px, 1200px); }
    }