/* Shared visual system for the Vue shell and the locally served tool documents. */
body.product-theme {
  --brand: #0052d9;
  --brand-hover: #003cab;
  --brand-light: #ecf2fe;
  --ink: #1d2129;
  --muted: #707a8a;
  --line: #e7ebf1;
  --canvas: #f5f7fa;
  --surface: #fff;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--brand);
}
body.product-theme a { color: var(--brand); }
body.product-theme a:hover { color: var(--brand-hover); text-decoration: none; }
body.product-theme :is(h1, h2, h3, h4, button, input, select) { font-family: inherit; }
body.product-theme :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #4389f5; outline-offset: 3px; }
body.product-theme .w { width: calc(100% - 80px); max-width: 1240px; margin-right: auto; margin-left: auto; }
body.product-theme .g-nav { background: #f1f4f8; padding: 0 max(24px, calc((100% - 1240px) / 2)); font-family: inherit; font-size: 12px; border: 0; }
body.product-theme .g-nav a { height: 30px; line-height: 30px; color: #697386; padding: 0 12px; }
body.product-theme .g-nav a:hover { color: var(--brand); background: #e7edf6; }
body.product-theme .language-options { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px #1b407014; overflow: hidden; }
body.product-theme #hdr { background: white; }
body.product-theme #hdr .w { height: 90px; }
body.product-theme #hdr a.logo { left: 0; top: 27px; gap: 10px; color: #1d2e50; font: 600 24px/36px 'PingFang SC', 'Microsoft YaHei', sans-serif; letter-spacing: .5px; }
body.product-theme #hdr a.logo img { width: 36px; height: 36px; }
body.product-theme #srch { width: 500px; margin-left: -260px; margin-top: -22px; }
body.product-theme .srch .srch-input { height: 44px; }
body.product-theme .srch .srch-input input { height: 44px; border: 1px solid #dce3ed; border-radius: 8px; background: #f7f9fc; color: var(--ink); padding-left: 16px; padding-right: 248px; font-family: inherit; }
/* Hot keywords need space only while the input is empty. */
body.product-theme .srch .srch-input input:not(:placeholder-shown) { padding-right: 96px; }
body.product-theme .srch .srch-input input:not(:placeholder-shown) ~ .hot-keywords { display: none; }
body.product-theme .srch .srch-input input::placeholder { color: #8a94a4; }
body.product-theme .srch .srch-input input:focus { background: white; border-color: #5994ed; box-shadow: 0 0 0 3px #0052d90b; outline: none; }
body.product-theme .srch .srch-input button { background: var(--brand); color: white; border-radius: 5px; height: 34px; top: 1px; right: 1px; }
body.product-theme .srch .srch-input button:hover { background: var(--brand-hover); }
body.product-theme .srch .srch-input .hot-keywords { top: 5px; }
body.product-theme .srch .srch-input .hot-keywords a { background: #edf1f7; color: #758198; font-size: 11px; margin-right: 4px; border-radius: 3px; }
body.product-theme .srch .srch-input .hot-keywords a:hover { color: var(--brand); background: #e3edff; }
body.product-theme .srch .srch-panel { border-color: var(--line); border-radius: 9px; padding: 5px; box-shadow: 0 8px 30px #1b407014; }
body.product-theme .history-list li:hover { background: #f1f5fe; }
body.product-theme .site-search-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 250; padding: 12px; background: white; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 30px #1b407014; text-align: left; }
body.product-theme .site-search-panel[hidden], body.product-theme .standalone-search form[hidden] { display: none !important; }
body.product-theme .site-search-header { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 7px; font-size: 13px; }
body.product-theme .site-search-panel button { border: 0; border-radius: 5px; background: transparent; color: #7c858c; padding: 5px; cursor: pointer; font: inherit; text-align: left; }
body.product-theme .site-search-panel button:hover { background: #edf3ff; color: var(--brand); }
body.product-theme .site-search-history-list { list-style: none; padding: 0; margin: 0; }
body.product-theme .site-search-history-list li { display: flex; align-items: center; gap: 8px; }
body.product-theme .site-search-history-list [data-search-term] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.product-theme .site-search-history-list [data-remove-search-history] { flex: none; padding: 5px 9px; }
body.product-theme #mob-hdr .search-form { position: relative; }
body.product-theme .global-search-tabs { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
body.product-theme .global-search-tabs li { flex: none; float: none; }
body.product-theme .global-search-tabs a span { font-size: 11px; opacity: .65; margin-left: 4px; }
body.product-theme .global-search-results .search-result { margin-bottom: 14px; }
body.product-theme .search-result-heading { display: flex; align-items: baseline; gap: 10px; }
body.product-theme .search-result-heading h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
body.product-theme .search-kind { flex: none; border-radius: 4px; padding: 2px 7px; color: #5378ac; background: #eef4ff; font-size: 11px; }
body.product-theme .global-search-results .search-result p { overflow-wrap: anywhere; }
body.product-theme .search-result-actions { display: flex; gap: 20px; font-size: 12px; margin-top: 10px; }
body.product-theme .search-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 25px 0; color: var(--muted); }
body.product-theme .search-pagination button { padding: 7px 13px; background: white; border: 1px solid var(--line); border-radius: 6px; color: var(--brand); cursor: pointer; }
body.product-theme .search-pagination button:disabled { color: #a5aebc; cursor: default; }
body.product-theme .standalone-search { position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 1000; font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif; }
body.product-theme .standalone-search-toggle { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; background: white; color: var(--brand); border: 1px solid #dce6f6; border-radius: 22px; box-shadow: 0 4px 18px #1b407019; cursor: pointer; font: inherit; }
body.product-theme .standalone-search .srch { position: absolute; top: auto; bottom: 54px; left: auto; right: 0; width: min(440px, calc(100vw - 40px)); margin: 0; }
body.product-theme .standalone-search .srch-input { position: relative; height: 44px; }
body.product-theme .standalone-search .srch-input input { box-sizing: border-box; width: 100%; padding-right: 96px; font-size: 14px; }
body.product-theme .standalone-search .srch-input button { position: absolute; width: 68px; height: 34px; top: 5px; right: 5px; border: 0; border-radius: 5px; font-size: 14px; cursor: pointer; }
body.product-theme .standalone-search .site-search-panel { top: auto; bottom: calc(100% + 8px); max-height: 55vh; overflow-y: auto; }
body.product-theme [id^="site-link-"] { scroll-margin-top: 180px; }
body.product-theme #eles { top: 25px; }
body.product-theme #eles li a { color: #667286; }
body.product-theme #eles li i { color: var(--brand); font-size: 17px; animation: none; }
body.product-theme #eles li span { font-size: 11px; margin-top: 3px; }
body.product-theme #nav { background: #fff; border-top: 1px solid #f4f5f7; border-bottom: 1px solid var(--line); z-index: 99; }
body.product-theme #nav .nav-inner { padding: 0; background: transparent; }
body.product-theme #nav .nav-inner ul { height: 52px; display: flex; gap: 12px; margin-right: 70px; }
body.product-theme #nav li { font-size: 15px; float: none; }
body.product-theme #nav li a { position: relative; padding: 0 22px; line-height: 52px; height: 52px; color: #4c5669; border: 0; border-radius: 0; background: transparent; }
body.product-theme #nav li.active a { color: var(--brand); font-weight: 600; }
body.product-theme #nav li.active a::after { content: ''; height: 3px; position: absolute; bottom: 0; left: 22px; right: 22px; background: var(--brand); border-radius: 2px 2px 0 0; }
body.product-theme #nav li a:hover { color: var(--brand); background: #f8faff; }
body.product-theme #nav .nav-mine { color: #4c5669 !important; }
body.product-theme #nav .active .nav-mine { color: var(--brand) !important; }
body.product-theme #nav .feedback { top: 15px; right: 0; border-radius: 5px; box-shadow: none; background-color: var(--brand); }
body.product-theme #bdy > .w { display: flow-root; }
body.product-theme .main > .inner { margin-top: 24px; margin-right: 300px; margin-left: 0; }
body.product-theme .main.no-side > .inner, body.product-theme #page > .inner { margin-right: 0; }
body.product-theme .aside { margin-top: 24px; width: 276px; margin-left: -276px; }
body.product-theme .aside > .inner { margin: 0 0 20px; }
body.product-theme .aside .panel, body.product-theme .sidebar-card { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
body.product-theme .aside .panel .panel-heading { background: #fafbfd; border-color: var(--line); color: #3e4a60; }
body.product-theme .aside ul.box-list li a { color: #58647a; line-height: 2.6; }
body.product-theme .aside ul.box-list li:hover { background: var(--brand-light); }
body.product-theme .product-hero { position: relative; min-height: 224px; box-sizing: border-box; display: flex; align-items: center; margin-bottom: 24px; padding: 30px 38px; border: 1px solid #dde8f9; border-radius: 12px; overflow: hidden; background: linear-gradient(110deg, #eef4ff 0%, #f4f8ff 48%, #e7f0fe 100%); }
body.product-theme .hero-copy { position: relative; z-index: 1; }
body.product-theme .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #5375a9; letter-spacing: 1px; margin-bottom: 8px; }
body.product-theme .hero-eyebrow > span { width: 6px; height: 6px; background: #347de8; border-radius: 50%; box-shadow: 0 0 0 4px #0052d90b; }
body.product-theme .product-hero h1 { margin: 0 0 8px; color: #163869; font-size: 30px; font-weight: 600; letter-spacing: .5px; line-height: 1.5; }
body.product-theme .product-hero p { margin: 0 0 22px; color: #71839d; font-size: 14px; }
body.product-theme .hero-actions { display: flex; align-items: center; gap: 14px; }
body.product-theme .product-primary, body.product-theme .product-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 18px; border-radius: 6px; font-size: 13px; text-decoration: none; border: 1px solid transparent; transition: background .18s, box-shadow .18s; }
body.product-theme .product-primary { color: white; background: var(--brand); box-shadow: 0 4px 10px #0052d91a; }
body.product-theme .product-primary:hover { background: var(--brand-hover); }
body.product-theme .product-secondary { color: #4e6a94; background: #ffffffa8; border-color: #dce6f5; }
body.product-theme .product-secondary:hover { background: white; border-color: #b5cdf3; }
body.product-theme .hero-illustration { position: absolute; right: 40px; top: 0; width: 380px; height: 230px; pointer-events: none; }
body.product-theme .portal-bento { gap: 20px; }
body.product-theme .bento-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 2px 8px #20365c03; }
body.product-theme .bento-card-header { padding: 0 0 17px; margin-bottom: 16px; border-color: #edf0f5; }
body.product-theme .bento-card-title { position: relative; font-size: 17px; color: #202d44; font-weight: 600; padding-left: 12px; }
body.product-theme .bento-card-title::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--brand); border-radius: 2px; }
body.product-theme .bento-card-more { font-size: 12px; color: #8893a4; }
body.product-theme .bento-card-more:hover { color: var(--brand); }
body.product-theme .tool-grid { gap: 12px; }
body.product-theme .tool-grid-item { background: #f7f9fc; border: 1px solid #f0f3f7; border-radius: 8px; padding: 14px 8px; min-width: 0; color: #3b4b65; }
body.product-theme .tool-grid-item.tool-pinned { background: #f0f5ff; border-color: #e5edfc; }
body.product-theme .tool-grid-item:hover { color: var(--brand); background: #edf3fe; border-color: #c3d7fc; transform: translateY(-2px); box-shadow: 0 5px 14px #254d8c0b; }
body.product-theme .tool-grid-item .tool-name { font-size: 13px; margin-top: 10px; }
body.product-theme .tool-grid-item .item-icon { display: block; line-height: 1; }
body.product-theme .skill-compact-item { padding: 11px 0; gap: 12px; border-color: #edf0f5; }
body.product-theme .skill-compact-item:last-child { border-bottom: 0; }
body.product-theme .skill-compact-item:hover { background: #f7faff; }
body.product-theme .skill-compact-icon { margin-top: 2px; }
body.product-theme .skill-compact-icon img { border-radius: 6px; }
body.product-theme .skill-compact-title { color: #344765; font-size: 13px; font-weight: 500; line-height: 1.5; }
body.product-theme .skill-compact-desc { color: #7b8596; font-size: 12px; line-height: 1.6; }
body.product-theme .skill-compact-meta { color: #9aa4b3; font-size: 11px; }
body.product-theme .software-grid-compact { gap: 14px; }
body.product-theme .software-item-compact { border: 1px solid #edf0f5; background: #fafbfd; padding: 18px 10px 14px; border-radius: 8px; }
body.product-theme .software-item-compact:hover { border-color: #c3d7fc; background: #f3f7ff; box-shadow: none; transform: translateY(-2px); }
body.product-theme .software-title { color: #35465f; font-weight: 500; margin-top: 10px; }
body.product-theme .software-subtitle { color: #8791a2; }
body.product-theme .software-tag { color: #7f93b3; background: #edf2fa; border-radius: 3px; font-size: 10px; }
body.product-theme .links-grid { gap: 26px; }
body.product-theme .links-grid .link-item { color: #78859a; }
body.product-theme .product-page-heading { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 26px; gap: 20px; }
body.product-theme .page-eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; color: #7e98be; margin-bottom: 6px; }
body.product-theme .product-page-heading h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.4; color: #233958; font-weight: 600; letter-spacing: .5px; }
body.product-theme .product-page-heading p { margin: 0; color: #8590a1; font-size: 13px; }
body.product-theme .product-count { display: flex; align-items: baseline; gap: 7px; font-size: 30px; font-weight: 500; color: var(--brand); padding-right: 4px; white-space: nowrap; }
body.product-theme .product-count small { color: #8a97aa; font-size: 12px; font-weight: 400; }
body.product-theme ul.tabs { margin: 0 0 22px; padding: 8px; gap: 4px; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
body.product-theme ul.tabs li a { padding: 6px 15px; border-radius: 5px; color: #667286; line-height: 23px; }
body.product-theme ul.tabs li a:hover { color: var(--brand); background: #f5f8ff; }
body.product-theme ul.tabs li a.active { color: var(--brand); background: var(--brand-light); font-weight: 500; }
body.product-theme ul.tabs li a.active::after { display: none; }
body.product-theme #page .item-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.product-theme #page .item { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
body.product-theme #page .item:hover { border-color: #c2d6fa; box-shadow: 0 6px 20px #294b7a0d; }
body.product-theme #page .item-inner { padding: 20px; }
body.product-theme #page .item-hd { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; align-items: center; }
body.product-theme #page .item-hd > a { grid-row: 1 / 3; align-self: start; }
body.product-theme #page .item-hd > .collectable { grid-column: 2; justify-self: start; }
body.product-theme #page .item .item-hd .item-icon { margin: 0; float: none; }
body.product-theme .tool-icon-fallback { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: #edf3ff; border-radius: 12px; color: #5a8ddf; }
body.product-theme .custom-tool-icon img { display: block; -webkit-mask-image: none !important; mask-image: none !important; }
body.product-theme .utility-tool-title { display: flex; align-items: center; gap: 12px; }
body.product-theme .utility-tool-title .item-icon { display: block; flex: 0 0 40px; width: 40px; height: 40px; }
body.product-theme .utility-tool-title .item-icon img, body.product-theme .product-tool-icon { display: block; width: 40px; height: 40px; flex-shrink: 0; }
body.product-theme #page .item .item-icon { margin-right: 14px; }
body.product-theme #page .item .item-title { display: block; margin: 0 0 5px; padding-top: 1px; }
body.product-theme #page .item h3 { width: auto; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
body.product-theme #page .item h3 a { color: #293d5b; }
body.product-theme #page .item .item-category { color: #929cab; font-size: 11px; margin: 0; }
body.product-theme #page .item .collectable { color: #a0a9b7; font-size: 11px; }
body.product-theme #page .item .item-desc { color: #8490a1; padding: 8px 0 16px; font-size: 12px; }
body.product-theme #page .item .item-ft { border-top: 1px solid #f0f3f8; padding-top: 12px; align-items: center; gap: 12px; }
body.product-theme #page .item .item-link { color: #a2adbd; font-size: 11px; margin-top: 0; min-width: 0; }
body.product-theme #page .item a.item-btn { flex-shrink: 0; color: var(--brand); padding: 3px 13px; background: #edf3ff; border-radius: 4px; font-size: 12px; }
body.product-theme #page .item a.item-btn::before { display: none; }
body.product-theme #page .item a.item-btn:hover { background: #dce9ff; }
body.product-theme .collected { color: var(--brand) !important; }
body.product-theme .search-result { padding: 22px 24px; background: white; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 14px; }
body.product-theme .search-result h3 { font-size: 17px; margin: 0 0 10px; }
body.product-theme .search-result p { margin: 0; color: #7a879b; line-height: 1.9; }
body.product-theme .search-result + hr { display: none; }
body.product-theme .collect-action { color: #8591a3; font-style: normal; }
body.product-theme .empty-state { background: white; border: 1px dashed #dce4f1; border-radius: 10px; padding: 70px 20px; }
body.product-theme .favorite-empty > i { color: #a8bee1; }
body.product-theme .green-button { background: var(--brand) !important; border-color: var(--brand) !important; color: white !important; border-radius: 5px; padding: 7px 17px; }
body.product-theme .green-button:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; }
body.product-theme .breadcrumbs { color: #939eaf; font-size: 12px; margin: 0 0 20px; }
body.product-theme .utility-layout { gap: 24px; grid-template-columns: minmax(0, 1fr) 260px; }
body.product-theme .utility-content h1 { color: #233958; font-size: 26px; font-weight: 600; padding-bottom: 20px; }
body.product-theme .utility-box { border: 1px solid var(--line); padding: 24px; border-radius: 10px; box-shadow: 0 3px 14px #243f6a03; }
body.product-theme .utility-box button:not(.plain-button) { background: white; border: 1px solid #dbe1ea; border-radius: 5px; color: #52627b; padding: 6px 13px; min-height: 32px; }
body.product-theme .utility-box button:not(.plain-button):hover { border-color: #9cbeef; color: var(--brand); background: #f7faff; }
body.product-theme .utility-box .selected { border-color: #bed3fa !important; color: var(--brand) !important; background: #edf3ff !important; }
body.product-theme .editor-header { color: #758299; padding-bottom: 16px; }
body.product-theme .code-editor { border-color: #dfe5ee; border-radius: 6px; overflow: hidden; }
body.product-theme .line-numbers { color: #a2aec0; background: #f7f9fc; border-right: 1px solid #edf0f5; }
body.product-theme .code-editor textarea { color: #344a6a; }
body.product-theme .json-tree { background: #f7faff; color: #3a5378; border-radius: 6px; }
body.product-theme .utility-text { border-color: #dce3ed; border-radius: 6px; outline-color: var(--brand); }
body.product-theme :is(input.text, input.number, .form-row input, .form-row select, select) { border: 1px solid #d6dfec; border-radius: 5px; color: #475871; background-color: white; }
body.product-theme .main input.text:focus { border-color: #4389f5; box-shadow: 0 0 0 3px #0052d90b; }
body.product-theme .form-row input, body.product-theme .form-row select { min-height: 34px; }
/* 新旧工具均带有控件内边距，不能沿用固定29像素高度，否则选项文字会被上下裁切。 */
body.product-theme .main select { height: auto; min-height: 44px; line-height: 1.5; }
body.product-theme .output-area { border-color: #dce7f8; background: #f7faff; border-radius: 6px; overflow: hidden; }
body.product-theme .output-heading { color: #5877a5; border-color: #e1eaf7; }
body.product-theme .output-area pre { color: #36547c; }
body.product-theme .intro-title { border-color: #e1e7ef; color: #445877; font-size: 17px; font-weight: 500; padding-top: 24px; }
body.product-theme .utility-content > p { color: #8190a4; font-size: 13px; }
body.product-theme .sidebar-card { padding: 20px; margin-top: 57px; }
body.product-theme .sidebar-card h3 { color: #52647e; font-weight: 500; border-color: #edf0f5; }
body.product-theme .sidebar-card a { color: #7a8aa1; font-size: 13px; }
body.product-theme .sidebar-card a:hover { color: var(--brand); }
body.product-theme .word-statistics { border-color: #e0e8f5; background: #f6f9ff; border-radius: 6px; }
body.product-theme .word-statistics div { border-color: #e0e8f5; }
body.product-theme .word-statistics strong, body.product-theme .conversion-result strong { color: var(--brand); }
body.product-theme .conversion-result { background: #f3f7ff; border-color: #d9e5fa; border-radius: 6px; color: #4c678e; }
body.product-theme .paper-table { background: white; }
body.product-theme .paper-table th, body.product-theme .paper-table td { border-color: #e5eaf1; }
body.product-theme .paper-table th { background: #f5f8fc; color: #52647e; }
body.product-theme .paper-table .highlight { color: var(--brand); background: #eff5ff; }
body.product-theme .notification { color: #435978; border: 1px solid #dee8f9; box-shadow: 0 8px 30px #29456e18; border-radius: 8px; }
body.product-theme .notification i { color: var(--brand); }
body.product-theme .site-page-loading { color: #627b9e; border-color: #dce6f5; border-radius: 7px; box-shadow: 0 5px 20px #29456e14; font-family: inherit; }
body.product-theme .site-page-loading span { border-color: #e0eafa; border-top-color: var(--brand); }
body.product-theme .modal-backdrop { background: #16243c55; backdrop-filter: blur(3px); }
body.product-theme .simple-modal { padding: 28px 42px 28px 28px; border-radius: 12px; color: #52647e; box-shadow: 0 20px 70px #10284d33; }
body.product-theme .modal-close { top: 10px; right: 16px; }
body.product-theme #ftr { background: transparent; border: 0; padding: 26px 0 30px; }
body.product-theme #ftr .declare { color: #a1abba; font-size: 11px; line-height: 1.9; }
body.product-theme #ftr a, body.product-theme #ftr a[style] { color: #8b9ab1 !important; }
body.product-theme #t_fixed { right: 18px; bottom: 25px; display: flex; flex-direction: column; gap: 6px; }
body.product-theme #t_fixed .btn { background: white; border: 1px solid var(--line); border-radius: 8px; color: #8c9bb0; box-shadow: 0 3px 10px #29456e08; }
body.product-theme #t_fixed .btn:hover { color: var(--brand); background: #edf3ff; }
/* Resource directory: keep the existing category and in-page navigation behavior. */
body.product-theme.product-directory #bdy > .w > .product-page-heading { padding-top: 32px; padding-bottom: 24px; }
body.product-theme .directory-symbol { color: #a8c7f3; font-size: 50px; margin-right: 16px; }
body.product-theme.product-directory .main > .inner { margin-top: 0; margin-right: 248px; }
body.product-theme.product-directory .aside { width: 226px; margin-left: -226px; margin-top: 0; }
body.product-theme.product-directory .node-list { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: white; }
body.product-theme.product-directory .node-list::before { content: '本页导航'; display: block; color: #32496a; font-size: 14px; font-weight: 600; padding: 4px 10px 14px; border-bottom: 1px solid #edf0f5; margin-bottom: 6px; }
body.product-theme.product-directory .node-list ul { border: 0; margin: 0; padding: 0; }
body.product-theme.product-directory .node-list li { list-style: none; margin: 0; }
body.product-theme.product-directory .node-list a { display: block; color: #7d8ca3; font-size: 12px; padding: 8px 10px; line-height: 1.5; border-radius: 5px; }
body.product-theme.product-directory .node-list a:hover { background: #edf3ff; color: var(--brand); }
body.product-theme.product-directory .link-node { font-size: 17px; font-weight: 600; color: #354968; margin: 26px 0 16px; padding-left: 12px; position: relative; scroll-margin-top: 80px; }
body.product-theme.product-directory .link-node::before { content: ''; position: absolute; width: 3px; height: 16px; background: var(--brand); left: 0; top: 5px; border-radius: 2px; }
body.product-theme.product-directory .link-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
body.product-theme.product-directory .link-list .link-item { position: relative; float: none; width: auto; margin: 0; padding: 16px; background: white; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; min-width: 0; transition: border-color .18s, box-shadow .18s; }
body.product-theme.product-directory .link-list .link-item:hover { border-color: #b8d1f9; box-shadow: 0 5px 16px #29456e0a; }
body.product-theme.product-directory .link-list .link-name { display: flex; align-items: center; gap: 10px; padding: 0; color: #344a6a; background: transparent; min-width: 0; height: auto; line-height: 30px; font-size: 13px; font-weight: 500; }
body.product-theme.product-directory .link-list .link-name > span { flex-shrink: 0; width: 28px; height: 28px; margin: 0; background-position: center; background-repeat: no-repeat; background-size: contain; border-radius: 5px; }
body.product-theme.product-directory .link-list .link-name > div { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
body.product-theme.product-directory .link-list .link-body { color: #78869c; background: transparent; padding: 10px 0 0; margin: 0; font-size: 12px; line-height: 1.7; height: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.product-theme.product-directory .link-list .link-body::after { display: none; }
/* Existing editor widgets keep their layout; their brand accents share the new palette. */
body.product-theme.product-legacy :is(.breadcrumb, .crumb) { color: #92a0b4; font-size: 12px; margin-bottom: 18px; }
body.product-theme.product-legacy #bdy .main > .inner > h2 { font-size: 25px; font-weight: 600; color: #263e60; margin: 0 0 20px; }
body.product-theme.product-legacy .main .tip { color: #7c90ad; background: #edf3ff; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; font-size: 12px; }
body.product-theme.product-legacy :is(.btn, .button) { border-radius: 5px; box-shadow: none; }
body.product-theme.product-legacy .btn-success, body.product-theme.product-legacy .btn-primary { background: var(--brand); border-color: var(--brand); color: white; }
body.product-theme.product-legacy .bg-primary { background-color: var(--brand); }
body.product-theme.product-legacy .timestamp-app { --ts-primary: #0052d9; --ts-primary-hover: #003cab; --ts-primary-soft: #edf3ff; --ts-muted: #f5f7fa; --ts-border: #dfe6f1; }
body.product-theme.product-legacy #app input.grow-1[type="number"] { min-width: 0; width: 0; flex: 1; box-sizing: border-box; background: white; border: 1px solid #d6dfec; border-radius: 5px; }
body.product-theme.product-legacy #app .h-8:has(> input.grow-1[type="number"]) { height: auto; min-height: 36px; }
body.product-theme.product-legacy #app .text-primary { color: var(--brand); }
body.product-theme.product-legacy #app .border-primary { border-color: var(--brand); }
body.product-theme.product-legacy [class*="text-[#009a61]"] { color: var(--brand) !important; }
body.product-theme.product-legacy [class*="border-[#009a61]"] { border-color: #b5cdf4 !important; border-width: 1px; border-radius: 5px; background: #f6f9ff; }
body.product-theme.product-legacy [class*="border-[#009a61]"]:hover { background: #e9f1ff; border-color: #80a9e9 !important; }
body.product-theme.product-legacy [class*="bg-[#009a61]"] { background-color: var(--brand) !important; }
body.product-theme.product-legacy #eles .token-relay-link i { color: var(--brand); }
body.product-theme.product-legacy .cm-editor, body.product-theme.product-legacy .CodeMirror { border-color: #dbe3ef; border-radius: 7px; overflow: hidden; }
body.product-theme.product-legacy .cm-gutters, body.product-theme.product-legacy .CodeMirror-gutters { background: #f5f8fd; color: #99aac4; border-color: #e7edf6; }
body.product-theme.product-legacy .aside .note, body.product-theme.product-legacy .aside .note-container, body.product-theme.product-legacy .aside .note-bottom { background: none; }
body.product-theme.product-legacy .aside .note { padding: 26px 0 0; border: 1px solid #e0e8f5; border-radius: 9px; background: #f1f6ff; color: #6a80a0; }
body.product-theme.product-legacy .aside .note-container { padding: 0 18px; }
body.product-theme.product-legacy .aside .note-bottom { padding-bottom: 14px; }
body.product-theme.product-legacy .aside .note-add-btn { color: #7992b7; }
body.product-theme.product-legacy .aside .share { color: #8195b2; }
body.product-theme.product-legacy .aside .share input { background: #eaf0f8; color: #6b83a6; border-radius: 5px; }
body.product-theme.product-legacy #nprogress .bar { background: var(--brand); }
body.product-theme.product-legacy #nprogress .spinner-icon { border-top-color: var(--brand); border-left-color: var(--brand); }
body.product-theme.product-legacy #nprogress .spinner { display: none; }
/* Software recommendations use the same card and filter system. */
body.product-theme.product-software #bdy > .w > .product-page-heading { padding-top: 30px; padding-bottom: 10px; }
body.product-theme.product-software .main > .inner { margin-top: 12px; }
body.product-theme.product-software .main > .inner > h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px; color: #3a506f; }
body.product-theme .latest-app-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.product-theme .latest-app-item { border: 1px solid var(--line); box-shadow: none; border-radius: 8px; background: white; padding: 14px; }
body.product-theme .latest-app-item .meta { background: transparent; padding: 0; }
body.product-theme .latest-app-item .meta p { color: #909caf; font-size: 11px; }
body.product-theme .latest-app-item .meta .app-name { color: #385172; font-size: 13px; }
body.product-theme .app-filter-bar { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 24px 0 18px; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; }
body.product-theme .software-navi { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
body.product-theme .software-navi a { border: 0; padding: 5px 12px; border-radius: 5px; color: #7a899f; font-size: 12px; }
body.product-theme .software-navi a.active { color: var(--brand); background: #edf3ff; border-color: transparent; }
body.product-theme .app-filter-bar input.search-input { margin: 0; border-radius: 5px; padding: 7px 12px; font-size: 12px; background: #f7f9fd; box-sizing: border-box; }
body.product-theme .app-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
body.product-theme .app-list .app-item { width: auto; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 24px 16px 18px; margin: 0; box-shadow: none; }
body.product-theme .app-list .app-item:hover { border-color: #bad2f7; box-shadow: 0 6px 18px #29456e0a; }
body.product-theme .app-list .light-window { display: none; }
body.product-theme .app-list .app-name { color: #3e5576; font-size: 13px; font-weight: 500; }
body.product-theme .app-list .app-description { color: #78869c; font-size: 12px; margin: 12px 0 10px; }
body.product-theme .app-list .app-icons { opacity: .65; filter: grayscale(1); }
@media (min-width: 1600px) { body.product-theme .w { max-width: 1360px; } }
@media (max-width: 1199px) {
  body.product-theme .w { width: calc(100% - 48px); }
  body.product-theme #srch { width: 420px; margin-left: -215px; }
  body.product-theme #eles li { margin-left: 12px; }
  body.product-theme .hero-illustration { right: 0; width: 330px; opacity: .85; }
  body.product-theme .product-hero h1 { font-size: 27px; }
  body.product-theme .bento-card { padding: 18px; }
  body.product-theme.product-directory .link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  body.product-theme .app-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  body.product-theme .app-filter-bar { flex-wrap: wrap; }
  body.product-theme .w { width: calc(100% - 36px); }
  body.product-theme .g-nav { display: none; }
  body.product-theme #mob-hdr { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: white; }
  body.product-theme #mob-hdr .w { width: 100%; height: 62px; }
  body.product-theme #mob-hdr .w .inner { padding: 12px 14px; gap: 12px; align-items: center; }
  body.product-theme #mob-hdr a.logo { background-image: url('/assets/logo.svg'); background-size: 32px; width: 32px; height: 32px; margin: 0; padding: 0; flex-shrink: 0; }
  body.product-theme #mob-hdr .search-form { min-width: 0; }
  body.product-theme #mob-hdr .search-form input { height: 36px; color: #526681; background-color: #f3f6fa; border: 1px solid #e9edf4; border-radius: 7px; }
  body.product-theme #mob-hdr .icon-btn { color: #6b7e99; font-size: 18px; padding: 4px; margin: 0; flex-shrink: 0; }
  body.product-theme #mob-nav { background: #fffffff5; border-top: 1px solid #e8edf5; box-shadow: 0 -4px 16px #29456e04; padding-right: 8px; padding-left: 8px; backdrop-filter: blur(14px); }
  body.product-theme #mob-nav .opts { height: 64px; }
  body.product-theme #mob-nav .opts-group { color: #929fb3; min-width: 48px; gap: 3px; }
  body.product-theme #mob-nav .opts-group i { font-size: 18px; }
  body.product-theme #mob-nav .opts-group span { font-size: 10px; }
  body.product-theme #mob-nav .opts-group.active { color: var(--brand); }
  body.product-theme:has(#nav li.active > a[href="/tool/"]) #mob-nav a[href="/tool/"],
  body.product-theme.product-directory #mob-nav a[href="/nav/"],
  body.product-theme.product-software #mob-nav a[href="/software/"] { color: var(--brand); }
  body.product-theme #mob-nav .opts-group.active::before { content: ''; position: absolute; width: 34px; height: 26px; border-radius: 8px; top: 8px; background: #0052d90a; z-index: -1; }
  body.product-theme .mobile-more { border-radius: 9px; border-color: var(--line); box-shadow: 0 8px 30px #29456e1c; bottom: 74px; }
  body.product-theme .mobile-more a { color: #576e8f; border-color: #f0f3f7; }
  body.product-theme .main > .inner, body.product-theme.product-directory .main > .inner { margin: 20px 0 0; }
  body.product-theme .utility-layout { grid-template-columns: minmax(0, 1fr); }
  body.product-theme .hero-illustration { right: -30px; width: 300px; opacity: .65; }
  body.product-theme .hero-copy { max-width: 70%; }
  body.product-theme .product-hero { padding: 26px; }
  body.product-theme .portal-focused .bento-tools { grid-column: span 12; }
  body.product-theme .portal-focused .bento-skills { grid-column: span 5; }
  body.product-theme .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.product-theme #page .item-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  body.product-theme #t_fixed { bottom: 84px; right: 9px; }
  body.product-theme #t_fixed .btn:not(.gotop) { display: none; }
  body.product-theme #ftr { padding-bottom: 92px; }
  body.product-theme.product-directory .link-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.product-theme .app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.product-theme .app-list .app-item { padding: 20px 12px 14px; }
  body.product-theme .latest-app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.product-theme .latest-app-item { padding: 12px; }
  body.product-theme .latest-app-item .cover { width: 26px; flex-shrink: 0; }
  body.product-theme .latest-app-item .cover img { width: 26px; height: 26px; }
  body.product-theme .latest-app-item .meta p { font-size: 10px; }
  body.product-theme .latest-app-item .meta { min-width: 0; }
  body.product-theme .latest-app-item .meta p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.product-theme .latest-app-item .meta .app-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.product-theme .app-filter-bar { padding: 10px; margin-top: 20px; }
  body.product-theme .software-navi { gap: 3px; }
  body.product-theme .software-navi a { padding: 4px 7px; font-size: 10px; }
  body.product-theme .app-filter-bar form { width: 100%; }
  body.product-theme .app-filter-bar input.search-input { width: 100%; }
  body.product-theme.product-software #bdy > .w > .product-page-heading { padding-top: 22px; }
  body.product-theme { font-size: 13px; }
  body.product-theme .w { width: calc(100% - 28px); }
  body.product-theme .main > .inner { margin-top: 16px; }
  body.product-theme .product-hero { min-height: 204px; padding: 24px 20px; margin-bottom: 16px; border-radius: 10px; }
  body.product-theme .hero-copy { max-width: none; }
  body.product-theme .hero-eyebrow { font-size: 10px; }
  body.product-theme .product-hero h1 { font-size: 22px; margin: 4px 0 10px; letter-spacing: 0; }
  body.product-theme .product-hero p { font-size: 11px; margin-bottom: 20px; }
  body.product-theme .hero-illustration { display: none; }
  body.product-theme .product-primary, body.product-theme .product-secondary { font-size: 12px; padding: 8px 13px; gap: 8px; }
  body.product-theme .hero-actions { gap: 10px; }
  body.product-theme .portal-bento { grid-template-columns: 1fr; gap: 16px; }
  body.product-theme .portal-focused .bento-tools, body.product-theme .portal-focused .bento-skills { grid-column: span 1; }
  body.product-theme .bento-card { padding: 17px; border-radius: 10px; }
  body.product-theme .bento-card-header { padding-bottom: 14px; margin-bottom: 14px; }
  body.product-theme .bento-card-title { font-size: 15px; }
  body.product-theme .tool-grid { gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.product-theme .tool-grid-item { padding: 14px 4px; border-radius: 6px; }
  body.product-theme .tool-grid-item .item-icon { transform: scale(.83); margin: -4px 0; }
  body.product-theme .tool-grid-item .tool-name { font-size: 11px; white-space: nowrap; margin-top: 10px; }
  body.product-theme .portal-focused .bento-softwares .software-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.product-theme .links-grid { gap: 20px; font-size: 12px; }
  body.product-theme .product-page-heading { padding: 4px 0 20px; gap: 12px; }
  body.product-theme .product-page-heading h1 { font-size: 23px; }
  body.product-theme .product-page-heading p { font-size: 11px; }
  body.product-theme .page-eyebrow { font-size: 9px; }
  body.product-theme .product-count { font-size: 24px; gap: 4px; }
  body.product-theme .product-count small { font-size: 10px; }
  body.product-theme ul.tabs { margin-bottom: 16px; padding: 6px; font-size: 12px; }
  body.product-theme ul.tabs li a { padding: 5px 12px; line-height: 23px; }
  body.product-theme #page .item-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.product-theme #page .item-inner { padding: 17px; }
  body.product-theme #page .item .item-desc { font-size: 12px; }
  body.product-theme .utility-box { padding: 16px; }
  body.product-theme .utility-content h1 { font-size: 23px; padding-bottom: 16px; }
  body.product-theme .editor-header { gap: 10px; flex-wrap: wrap; }
  body.product-theme .code-editor textarea { padding: 10px; font-size: 12px; }
  body.product-theme .line-numbers { padding: 10px 7px; min-width: 16px; }
  body.product-theme .search-result { padding: 18px; }
  body.product-theme.product-directory #bdy > .w > .product-page-heading { padding-top: 24px; padding-bottom: 4px; }
  body.product-theme.product-directory .product-page-heading h1 { font-size: 22px; }
  body.product-theme .directory-symbol { display: none; }
  body.product-theme.product-directory .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.product-theme.product-directory .link-list .link-item { padding: 14px 12px; }
  body.product-theme.product-directory .link-list .link-name { gap: 8px; font-size: 12px; }
  body.product-theme.product-directory .link-list .link-name > span { width: 25px; height: 25px; }
  body.product-theme.product-directory .link-node { margin-top: 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.product-theme *, body.product-theme *::before, body.product-theme *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Skills 列表中的长安装命令在手机上自动换行。 */
#library_list > [data-game-skill] .skill-command { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
