    body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: var(--bg); color: var(--text); }
    html { scroll-behavior: smooth; scrollbar-gutter: stable; }
    .topbar { position:fixed; top:0; left:0; right:0; z-index:1000; display:flex; align-items:center; justify-content:space-between; background: var(--surface); border-bottom:1px solid var(--border); padding: 12px 16px; }
    .brand { width:220px; min-width:220px; display:flex; align-items:center; justify-content:flex-start; gap:10px; font-size: 18px; font-weight:700; color: var(--text); }
    .brand img { width:64px; height:64px; border-radius:8px; }
    .brand-link { display:flex; align-items:center; gap:8px; color: var(--text); text-decoration:none; }
    .brand .site-name { display:inline-flex; align-items:baseline; gap:0; font-size: 20px; font-weight:800; letter-spacing: 0; text-decoration: none; }
    .brand .site-name .name-group, .brand .site-name .name-sep {
      background: linear-gradient(90deg, #1877f2 0%, #42a5f5 55%, #ffc107 85%, #fb8c00 100%);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent; color: transparent;
      -webkit-text-stroke: 0.25px rgba(0,0,0,0.06);
      line-height: 1;
    }
    .brand .site-name .name-sep { margin: 0 -2px; font-size: 0.85em; transform: translateY(1px); }
    .tagline { font-size:12px; color: var(--text-muted); display:flex; align-items:center; gap:8px; }
    .tagline .motto { color: var(--text-muted); }
    .theme-toggle { border:1px solid var(--border); background: var(--surface); border-radius:999px; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; font-size:16px; color: var(--text-muted); cursor:pointer; }
    .search { flex:1; display:flex; justify-content:center; }
    .search .input-with-icon { position:relative; display:inline-block; width:60%; max-width:480px; overflow: visible; }
    .search .input-with-icon input { width:100%; height:32px; border:1px solid var(--border); border-radius:999px; padding:0 28px 0 30px; background: var(--surface); color: var(--text); outline:none; }
    .search .input-with-icon::before { content:''; position:absolute; left:10px; top:50%; transform:translateY(-50%); width:12px; height:12px; border:2px solid #cbd5e1; border-radius:50%; opacity:0.85; pointer-events:none; transition: all .2s ease; }
    .search .input-with-icon::after { content:''; position:absolute; left:18px; top:calc(50% + 3px); width:8px; height:2px; background:#cbd5e1; transform:rotate(45deg); border-radius:1px; opacity:0.85; pointer-events:none; transition: all .2s ease; }
    .search .input-with-icon:hover::before { border-color: var(--primary); }
    .search .input-with-icon:hover::after { background: var(--primary); transform:rotate(45deg) scaleX(1.1); }
    .search input::placeholder { color: var(--text-muted); }
    .sidebar { position:fixed; top:60px; left:0; width:220px; height:calc(100vh - 64px); background: var(--surface); border-right:1px solid var(--border); padding: 12px; box-sizing:border-box; box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cbd5e1 #f3f4f6; }
    .sidebar::-webkit-scrollbar { width: 8px; }
    .sidebar::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 8px; }
    .sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
    .sidebar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .logo { position:relative; display:flex; align-items:center; justify-content:flex-start; font-size:16px; font-weight:700; color: var(--text); margin-bottom:8px; }
    .logo img { width:64px; height:64px; border-radius:8px; margin-right:6px; }
    .sidebar-toggle-fab { position: fixed; left: 224px; top: 76px; z-index: 999; border:1px solid var(--border); background: var(--surface); border-radius:999px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow); color:#a8afb9; cursor:pointer; font-size:15px; font-weight:700; font-family:'Arial Rounded MT Bold','Nunito','Quicksand','Segoe UI','system-ui',sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
    .collapsed .sidebar-toggle-fab { display:none; }
    .nav a { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; color: var(--text); text-decoration:none; font-size:15px; margin-left:10px;}
    .nav a:hover { background:#F3F6FB; }
    .nav .ico { width:20px; height:20px; border-radius:999px; background:#f3f4f6; border:1px solid var(--border); color: var(--text-muted); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
    .nav .label { flex:1; }
    :root { --content-pad: 24px; }
    .content { margin-left:220px; padding: 16px var(--content-pad); margin-top:64px; padding-bottom: 56px; }
    .section { margin-top: 8px; margin-bottom: 12px; display:flex; align-items:center; gap:8px; color: var(--text); scroll-margin-top: 72px; }
    .dot { width:8px; height:8px; border-radius:50%; background: var(--primary); }
    .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    @media (max-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (max-width: 1024px) {
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .content { margin-left:0; }
      .brand { width:auto; min-width:0; font-size:16px; }
      .tagline { display:none; }
      .search .input-with-icon { width:80%; max-width:360px; }
    }
    @media (max-width: 640px)  {
      .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
      .topbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
      .brand { width: auto; min-width: 0; font-size: 16px; }
      .search { width: 100%; justify-content: center; }
      .search .input-with-icon { display: block; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
      .search .input-with-icon input { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
      .back-top { bottom: 80px; }
    }
    .card { background: var(--surface); border:1px solid var(--border); border-radius: 12px; padding: 12px; display:flex; align-items:flex-start; gap:12px; text-decoration:none; position: relative; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .2s ease; opacity: 0; transform: translateY(4px); }
    .card.visible { opacity: 1; transform: translateY(0); }
    .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d1d5db; }
    .icon { width:40px; height:40px; min-width:40px; min-height:40px; aspect-ratio:1/1; flex:0 0 40px; border-radius:50%; background:#f0f6ff; border:1px solid #dbeafe; display:flex; align-items:center; justify-content:center; font-weight:700; color:#1d4ed8; }
    .meta { display:flex; flex-direction:column; gap:6px; flex:1; min-width:0; }
    .title { font-size: 14px; font-weight: 600; color: var(--text); }
    .desc { font-size: 12px; color: var(--text-muted); }
    .collapsed .sidebar { transform: translateX(-100%); }
    .collapsed .content { margin-left:0; }
    .edge-toggle { position: fixed; left: 12px; bottom: 64px; z-index: 999; border:1px solid var(--border); background: var(--surface); border-radius:999px; width:36px; height:36px; display:none; align-items:center; justify-content:center; box-shadow: var(--shadow); color:#a8afb9; cursor:pointer; user-select: none; touch-action: none; font-size:15px; font-weight:700; font-family:'Arial Rounded MT Bold','Nunito','Quicksand','Segoe UI','system-ui',sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
    .back-top { position: fixed; right: 12px; bottom: 64px; z-index: 999; border:1px solid var(--border); background: var(--surface); border-radius:999px; width:36px; height:36px; display:none; align-items:center; justify-content:center; box-shadow: var(--shadow); color:#a8afb9; cursor:pointer; font-size:15px; font-weight:700; font-family:'Arial Rounded MT Bold','Nunito','Quicksand','Segoe UI','system-ui',sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height:1; }
    .back-top .arrow-top { display:inline-block; font-size:17px; line-height:1; transform: translateY(-1px); }
    .back-top.show { display:flex; }
    .collapsed .edge-toggle { display:flex; }
    body.theme-dark { background: #0f172a; color: #e2e8f0; }
    body.theme-dark .topbar { background:#0b1220; border-bottom:1px solid #1f2937; }
    body.theme-dark .brand-link { color:#e2e8f0; }
    body.theme-dark .brand .site-name .name-group, body.theme-dark .brand .site-name .name-sep {
      -webkit-text-stroke: 0.25px rgba(255,255,255,0.06);
    }
    body.theme-dark .tagline .tag-link { color:#94a3b8; }
    body.theme-dark .theme-toggle { background:#0b1220; border-color:#1f2937; color:#cbd5e1; }
    body.theme-dark .search input { background:#0b1220; border-color:#1f2937; color:#e2e8f0; }
    body.theme-dark .search input::placeholder { color:#94a3b8; }
    body.theme-dark .sidebar { background: linear-gradient(#0b1220, #0b1220); border-right:1px solid #1f2937; scrollbar-color: #475569 #0f172a; }
    body.theme-dark .sidebar::-webkit-scrollbar-track { background: #0f172a; }
    body.theme-dark .sidebar::-webkit-scrollbar-thumb { background: #475569; }
    body.theme-dark .nav a { color:#e2e8f0; }
    body.theme-dark .nav a:hover { background:#111827; }
    body.theme-dark .nav .ico { background:#111827; border-color:#1f2937; color:#94a3b8; }
    body.theme-dark .card { background:#111827; border-color:#1f2937; }
    body.theme-dark .card:hover { border-color:#334155; box-shadow: 0 6px 18px rgba(255,255,255,.04); transform: translateY(-2px); }
    body.theme-dark .icon { background:#0b1220; border-color:#1f2937; color:#60a5fa; }
    body.theme-dark .title { color:#e2e8f0; }
    body.theme-dark .desc { color:#94a3b8; }
    body.theme-dark .edge-toggle { background:#111827; border-color:#1f2937; color:#a8afb9; }
    body.theme-dark .back-top { background:#111827; border-color:#1f2937; color:#a8afb9; }
    body.theme-dark .sidebar-toggle-fab { background:#111827; border-color:#1f2937; color:#a8afb9; }
    .page-footer { position: fixed; left:0; right:0; bottom:0; z-index:1000; background: var(--surface); border-top:1px solid var(--border); padding:8px 16px; text-align:center; font-size:12px; color: var(--text-muted); }
    .page-footer p { margin: 0; }
    body.theme-dark .page-footer { background:#0b1220; border-top-color:#1f2937; color:#e2e8f0; }
    .fav-toggle { position:absolute; right:8px; top:8px; font-size:22px; color:#d1d5db; cursor:pointer; user-select:none; }
    .fav-toggle.on { color:#f59e0b; }
    body.theme-dark .fav-toggle { color:#6b7280; }
    body.theme-dark .fav-toggle.on { color:#f59e0b; }
    .popup-box.loading { display:flex; align-items:center; justify-content:center; }
    #loadingText { margin:0; }
    .section#sec-fav + .grid { position:relative; padding-bottom:12px; margin-bottom:16px; }
    .section#sec-fav + .grid::after {
      content:'';
      position:absolute;
      left:0; right:0; bottom:-1px; width:100%; height:1px;
      background: linear-gradient(90deg, #1877f2 0%, #42a5f5 50%, #ffb74d 100%);
      opacity: 0.75;
    }
    #navFormSection { margin-left: calc(220px + var(--content-pad)); margin-right: var(--content-pad); padding: 0; }
    .collapsed #navFormSection { margin-left: var(--content-pad); }
    .popup-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.15); display: none; align-items: center; justify-content: center; z-index: 9999; }
    .popup-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; box-shadow: var(--shadow); text-align: center; color: var(--primary); min-width: 220px; }
    .popup-box p { margin: 0 0 8px 0; }
    .popup-box .modal-input { width: 220px; padding: 8px 10px; border: 1px solid #dddfe2; border-radius: 6px; font-size: 14px; }
    .popup-box .modal-actions { display:flex; gap:8px; margin-top:10px; justify-content:center; align-items:center; }
    .msg-tip { font-size:12px; color:#ef4444; margin-top:6px; }
    .btn { padding: 10px 20px; background: linear-gradient(90deg, #e3f2fd 0%, #fff3e0 100%); color: var(--primary); border: 1px solid #ffd180; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); text-align: center; }
    .btn:hover { background: linear-gradient(90deg, #e1f0fb 0%, #ffe7cc 100%); border-color: #ffe0b2; }
    .btn:active { background: linear-gradient(90deg, #d3e8fa 0%, #ffd8a6 100%); transform: scale(0.98); border-color: #ffd59a; }
    .msg-form { background: #f0f2f5; padding: var(--content-pad); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 20px; }
    .msg-row { margin-bottom: 10px; }
    .msg-form input { width: 100%; padding: 10px 12px; font-size: 15px; border: 1px solid #dddfe2; border-radius: 6px; outline: none; transition: all 0.2s; background: #ffffff; color: #050505; display: block; box-sizing: border-box; }
    .msg-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.1); }
    .form-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--content-pad); }
    .form-field { width: 520px; margin: 0 auto; }
    #navSectionWrap{margin-top: 12px;}
    .input-with-icon { position: relative; display: block; width: 100%; box-sizing: border-box;  }
    .input-with-icon input { padding-left: 30px !important; padding-right: 28px !important; width: 100% !important; }
    .input-with-icon::before { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid #bcc2cc; border-radius: 50%; opacity: 0.85; pointer-events: none; transition: all 0.2s ease; }
    .input-with-icon::after { content: ''; position: absolute; left: 18px; top: calc(50% + 3px); width: 8px; height: 2px; background: #bcc2cc; transform: rotate(45deg); border-radius: 1px; opacity: 0.85; pointer-events: none; transition: all 0.2s ease; }
    .input-with-icon:hover::before { border-color: var(--primary); }
    .input-with-icon:hover::after { background: var(--primary); }
    .clear-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 1px solid #dddfe2; background: #ffffff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
    .clear-btn::before, .clear-btn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: #bcc2cc; transform-origin: center; }
    .clear-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
    .clear-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }
    .input-with-icon.has-text:hover .clear-btn, .input-with-icon.has-text .clear-btn:hover { opacity: 0.85; pointer-events: auto; }
    .clear-btn:hover { border-color: #1877f2; }
    .clear-btn:hover::before, .clear-btn:hover::after { background: #1877f2; }
    #navSectionWrap.input-with-icon input { padding-right: 76px !important; }
    #navSectionWrap .clear-btn { right: 36px; left: auto; z-index: 2; }
    
    .form-actions { width: 520px; margin: 8px auto 0; display:flex; gap:8px; align-items:center; justify-content:center; }
    @media (max-width: 640px) {
      .form-inner { max-width: 100%; }
      .form-field { width: 100%; }
      .form-actions { width: 100%; }
    }
 
    .search .input-with-icon .clear-btn { right: auto; left: auto; width: 18px; height: 18px; z-index: 2; }
    .nav a:focus-visible { outline: 2px solid rgba(24, 119, 242, 0.35); outline-offset: 2px; }
    .card:focus-visible { outline: 2px solid rgba(24, 119, 242, 0.35); outline-offset: 2px; }
    .kw-highlight { background: transparent; color: var(--secondary); font-weight: 700; }
