:root {
    --tech-ink: #0c2f3a;
    --tech-text: #31505a;
    --tech-muted: #71858c;
    --tech-line: #e4ecee;
    --tech-soft: #f4f7f7;
    --tech-card: #ffffff;
    --tech-accent: #08a8c6;
    --tech-accent-dark: #07829b;
    --tech-green: #49bfa8;
    --tech-shadow: 0 18px 50px rgba(24, 62, 72, .08);
    --tech-header-height: 72px;
}

.tech-docs-page {
    margin: 0;
    color: var(--tech-text);
    background: #f5f7f7;
    font-family: "Source Han Sans CN", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tech-docs-page *, .tech-docs-page *::before, .tech-docs-page *::after { box-sizing: border-box; }
.tech-docs-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 2.0 文档中心：首页采用旧版的顶部导航、左侧分类和文章目录结构。 */
.tech-doc-header { position:sticky; z-index:100; top:0; display:flex; height:60px; align-items:center; gap:28px; padding:0 24px; border-bottom:1px solid #e3e8e9; background:rgba(255,255,255,.98); box-shadow:0 1px 5px rgba(12,47,58,.05); }
.tech-doc-header__brand { display:inline-flex; flex:0 0 auto; align-items:center; gap:12px; color:#093b48; font-size:20px; font-weight:700; text-decoration:none; white-space:nowrap; }
.tech-doc-header__brand img { width:36px; height:36px; object-fit:contain; }
.tech-doc-header__search { display:flex; width:min(230px,25vw); height:35px; align-items:center; gap:7px; margin-left:auto; padding:0 11px; border:1px solid #d7e0e2; border-radius:18px; background:#fff; }
.tech-doc-header__search svg { width:17px; color:#8a9ba0; }.tech-doc-header__search input { width:100%; min-width:0; border:0; outline:0; color:var(--tech-ink); background:transparent; font:13px inherit; }
.tech-doc-header__nav { display:flex; align-self:stretch; align-items:center; gap:24px; }.tech-doc-header__nav a { display:inline-flex; height:100%; align-items:center; border-bottom:2px solid transparent; color:#174653; font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; }.tech-doc-header__nav a:hover,.tech-doc-header__nav a.is-active { border-color:#10a9c2; color:#067f99; }
.tech-doc-home-layout { display:grid; grid-template-columns:286px minmax(0,1fr); min-height:calc(100vh - 60px); background:#f4f5f5; }.tech-doc-home-sidebar { border-right:1px solid #dce3e4; background:#fff; }.tech-doc-home-sidebar__title { padding:31px 24px 16px; color:#103f4b; font-size:18px; font-weight:700; }.tech-doc-home-sidebar nav { padding-bottom:24px; }.tech-doc-home-sidebar a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 24px; color:#174653; font-size:15px; font-weight:600; text-decoration:none; }.tech-doc-home-sidebar a span { color:#b1bec1; }.tech-doc-home-sidebar a:hover,.tech-doc-home-sidebar a.is-active { color:#058da8; background:#eef9fa; }
.tech-doc-home-main { min-width:0; padding:22px clamp(22px,6vw,88px) 64px; }.tech-doc-home-panel { width:min(940px,100%); min-height:640px; margin:0 auto; padding:38px 42px 48px; border:1px solid #e0e7e8; background:#fff; box-shadow:0 2px 12px rgba(20,58,67,.04); }.tech-doc-home-intro { display:flex; align-items:center; gap:18px; }.tech-doc-home-intro__icon { display:grid; width:58px; height:58px; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,#26b7d0,#4b8cf0); box-shadow:0 7px 18px rgba(38,146,208,.25); font-size:28px; }.tech-doc-home-intro h1 { margin:0 0 7px; color:#0b3e4a; font-size:25px; line-height:1.35; }.tech-doc-home-intro p { margin:0; color:#547078; font-size:14px; line-height:1.7; }.tech-doc-home-divider { height:1px; margin:28px 0 35px; background:#dde6e7; }.tech-doc-home-title { margin:0 0 16px; color:#0b3e4a; font-size:25px; }.tech-doc-home-search { width:100%; height:40px; margin:0 0 24px; padding:0 13px; border:1px solid #d8e4e6; border-radius:5px; outline:0; color:var(--tech-ink); font:14px inherit; }.tech-doc-home-search:focus { border-color:#4bc1d1; box-shadow:0 0 0 3px rgba(8,168,198,.1); }.tech-doc-home-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:34px 56px; }.tech-doc-home-group { min-width:0; }.tech-doc-home-group h3 { margin:0 0 11px; color:#0f4652; font-size:17px; }.tech-doc-home-group h3 a { color:inherit; text-decoration:none; }.tech-doc-home-group h3 a:hover,.tech-doc-home-group li a:hover { color:#049db9; }.tech-doc-home-group ul { margin:0; padding:0; list-style:none; }.tech-doc-home-group li { margin:7px 0; }.tech-doc-home-group li a { color:#168eb0; font-size:14px; line-height:1.65; text-decoration:none; }.tech-doc-home-group li a::before { content:"·"; margin-right:5px; color:#7bbdcc; }

@media (max-width: 760px) { .tech-doc-header { height:54px; gap:12px; padding:0 14px; }.tech-doc-header__brand { gap:8px; font-size:16px; }.tech-doc-header__brand img { width:30px; height:30px; }.tech-doc-header__search { display:none; }.tech-doc-header__nav { gap:14px; }.tech-doc-header__nav a { font-size:12px; }.tech-doc-header__nav a:nth-child(2) { display:none; }.tech-doc-home-layout { display:block; min-height:calc(100vh - 54px); }.tech-doc-home-sidebar { border-right:0; border-bottom:1px solid #dce3e4; overflow-x:auto; }.tech-doc-home-sidebar__title { display:none; }.tech-doc-home-sidebar nav { display:flex; width:max-content; min-width:100%; padding:0; }.tech-doc-home-sidebar a { padding:12px 14px; font-size:13px; }.tech-doc-home-sidebar a span { display:none; }.tech-doc-home-main { padding:14px 12px 40px; }.tech-doc-home-panel { min-height:0; padding:25px 20px 32px; }.tech-doc-home-intro { align-items:flex-start; }.tech-doc-home-intro__icon { width:42px; height:42px; flex:0 0 auto; font-size:21px; }.tech-doc-home-intro h1 { font-size:20px; }.tech-doc-home-divider { margin:23px 0; }.tech-doc-home-title { font-size:21px; }.tech-doc-home-catalog { grid-template-columns:1fr; gap:25px; } }

/* 首页 */
.tech-index-main { min-height: 70vh; overflow: hidden; }
.tech-index-hero { position: relative; min-height: 410px; display: grid; place-items: center; padding: 96px 24px 100px; color: #fff; background: linear-gradient(135deg, #092d38 0%, #0c4552 58%, #0a5e6d 100%); }
.tech-index-hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent); }
.tech-index-hero__inner { position: relative; z-index: 2; width: min(760px, 100%); text-align: center; }
.tech-index-hero__glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .2; }
.tech-index-hero__glow--one { width: 340px; height: 340px; left: 10%; top: -150px; background: #14c5dd; }
.tech-index-hero__glow--two { width: 280px; height: 280px; right: 6%; bottom: -170px; background: #70e2c7; }
.tech-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .18em; color: #b9e9ec; }
.tech-eyebrow span { width: 24px; height: 2px; background: #50d3c0; }
.tech-index-hero h1 { margin: 22px 0 14px; color: #fff; font-size: clamp(36px, 5vw, 58px); line-height: 1.15; font-weight: 700; letter-spacing: .04em; }
.tech-index-hero p { margin: 0 auto; max-width: 650px; color: #c7dadd; font-size: 17px; line-height: 1.8; }
.tech-index-search { display: flex; align-items: center; gap: 12px; width: min(610px, 100%); height: 58px; margin: 34px auto 0; padding: 0 16px 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.tech-index-search svg { width: 21px; color: #6f858a; }
.tech-index-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--tech-ink); background: transparent; font: inherit; }
.tech-index-search input::placeholder { color: #9aabad; }
.tech-index-search kbd { padding: 4px 8px; border: 1px solid #dfe7e8; border-radius: 5px; color: #809297; background: #f5f7f7; font: 11px/1.4 inherit; }
.tech-index-content { width: min(1180px, calc(100% - 40px)); margin: -45px auto 80px; position: relative; z-index: 3; }
.tech-index-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 42px 4px 28px; }
.tech-section-kicker { color: var(--tech-accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.tech-index-heading h2 { margin: 5px 0 0; color: var(--tech-ink); font-size: 30px; line-height: 1.3; }
.tech-index-heading p { max-width: 480px; margin: 0; color: var(--tech-muted); line-height: 1.8; text-align: right; }
.tech-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-category-card { display: flex; min-height: 390px; flex-direction: column; padding: 28px 28px 24px; border: 1px solid var(--tech-line); border-radius: 16px; background: var(--tech-card); box-shadow: 0 8px 30px rgba(30,69,79,.04); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tech-category-card:hover, .tech-category-card.is-current { transform: translateY(-5px); border-color: #b9dfe3; box-shadow: var(--tech-shadow); }
.tech-category-card__header { display: flex; align-items: center; justify-content: space-between; }
.tech-category-card__number { color: #a8b7ba; font-size: 12px; letter-spacing: .12em; }
.tech-category-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: var(--tech-accent-dark); background: #e9f7f7; }
.tech-category-card__icon svg { width: 21px; }
.tech-category-card h3 { margin: 20px 0 8px; font-size: 21px; line-height: 1.4; }
.tech-category-card h3 a { color: var(--tech-ink); text-decoration: none; }
.tech-category-card__description { min-height: 48px; margin: 0 0 18px; color: var(--tech-muted); font-size: 13px; line-height: 1.8; }
.tech-category-card__articles { flex: 1; margin: 0; padding: 0; list-style: none; }
.tech-category-card__articles li { border-top: 1px solid #edf1f2; }
.tech-category-card__articles a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; color: #405d65; font-size: 14px; line-height: 1.5; text-decoration: none; }
.tech-category-card__articles a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-category-card__articles svg { width: 15px; flex: 0 0 auto; color: #a1b0b3; transition: transform .2s ease, color .2s ease; }
.tech-category-card__articles a:hover { color: var(--tech-accent-dark); }
.tech-category-card__articles a:hover svg { color: var(--tech-accent); transform: translateX(3px); }
.tech-category-card__more { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 18px; color: var(--tech-accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.tech-category-card__more span { transition: transform .2s ease; }
.tech-category-card__more:hover span { transform: translateX(4px); }
.tech-search-empty { padding: 50px; border: 1px dashed #cddadc; border-radius: 14px; color: var(--tech-muted); text-align: center; background: #fff; }
.tech-search-empty button { margin-left: 12px; padding: 7px 13px; border: 0; border-radius: 6px; color: #fff; background: var(--tech-accent-dark); cursor: pointer; }

/* 文章页布局 */
.tech-mobile-bar { display: none; }
.tech-doc-layout { display: grid; grid-template-columns: 286px minmax(0, 1fr) 248px; min-height: calc(100vh - var(--tech-header-height)); }
.tech-sidebar { position: relative; border-right: 1px solid var(--tech-line); background: #fbfcfc; }
.tech-sidebar__inner { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 25px 18px 18px; overflow: hidden; }
.tech-sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 20px; }
.tech-sidebar__brand-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--tech-accent), var(--tech-green)); box-shadow: 0 8px 20px rgba(8,168,198,.22); }
.tech-sidebar__brand-icon svg { width: 20px; }
.tech-sidebar__brand div { display: flex; flex-direction: column; }
.tech-sidebar__brand strong { color: var(--tech-ink); font-size: 17px; line-height: 1.4; }
.tech-sidebar__brand small { margin-top: 2px; color: #8da0a5; font-size: 9px; letter-spacing: .13em; }
.tech-drawer-close { display: none; margin-left: auto; border: 0; color: var(--tech-muted); background: transparent; font-size: 28px; cursor: pointer; }
.tech-sidebar-search { display: flex; align-items: center; gap: 9px; height: 40px; margin: 0 4px 18px; padding: 0 12px; border: 1px solid #dfe8e9; border-radius: 8px; background: #fff; }
.tech-sidebar-search:focus-within { border-color: #86cbd4; box-shadow: 0 0 0 3px rgba(8,168,198,.08); }
.tech-sidebar-search svg { width: 17px; color: #90a2a6; }
.tech-sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--tech-ink); background: transparent; font: 13px inherit; }
.tech-sidebar-nav { flex: 1; padding: 0 4px 14px; overflow: auto; scrollbar-width: thin; scrollbar-color: #d8e2e3 transparent; }
.tech-nav-group { margin: 0 0 5px; }
.tech-nav-group__title { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 9px; border: 0; border-radius: 7px; color: var(--tech-ink); background: transparent; font: 600 14px/1.5 inherit; text-align: left; cursor: pointer; }
.tech-nav-group__title:hover { background: #f0f5f5; }
.tech-nav-group__title svg { width: 15px; color: #93a3a6; transition: transform .2s ease; }
.tech-nav-group.is-open .tech-nav-group__title svg { transform: rotate(90deg); }
.tech-nav-group ul { display: none; margin: 0; padding: 1px 0 7px; list-style: none; }
.tech-nav-group.is-open ul { display: block; }
.tech-nav-group li { margin: 1px 0; }
.tech-nav-group li a { position: relative; display: block; padding: 8px 10px 8px 19px; border-radius: 6px; color: #597179; font-size: 12.5px; line-height: 1.55; text-decoration: none; transition: color .18s ease, background .18s ease; }
.tech-nav-group li a::before { content: ""; position: absolute; left: 8px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #aebdc0; transform: translateY(-50%); }
.tech-nav-group li a:hover { color: var(--tech-accent-dark); background: #eef7f7; }
.tech-nav-group li a.is-active { color: #058ca7; font-weight: 600; background: #e5f6f7; }
.tech-nav-group li a.is-active::before { width: 3px; height: 16px; border-radius: 4px; background: var(--tech-accent); }
.tech-sidebar__back { display: flex; align-items: center; gap: 6px; margin: 8px 4px 0; padding: 10px; border-top: 1px solid var(--tech-line); color: #647a80; font-size: 12px; text-decoration: none; }
.tech-sidebar__back svg { width: 15px; }
.tech-sidebar__back:hover { color: var(--tech-accent-dark); }

.tech-article-column { min-width: 0; padding: 0 46px 80px; background: #f5f7f7; }
.tech-article { width: min(900px, 100%); margin: 24px auto 0; padding: 26px 40px 42px; border: 1px solid #e7eded; border-radius: 8px; background: #fff; box-shadow: 0 5px 24px rgba(32,65,73,.035); }
.tech-breadcrumb { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0 21px; border-bottom: 1px solid #edf1f2; color: #91a0a4; font-size: 12px; line-height: 1.5; overflow: hidden; }
.tech-breadcrumb a { color: #778c91; text-decoration: none; white-space: nowrap; }
.tech-breadcrumb a:hover { color: var(--tech-accent-dark); }
.tech-breadcrumb strong { min-width: 0; color: #9aabad; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-article-header { padding: 38px 0 34px; border-bottom: 1px solid #e8eeee; }
.tech-article-header__category { display: inline-flex; padding: 5px 10px; border-radius: 5px; color: #087f94; background: #e8f6f7; font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.tech-article-header h1 { margin: 16px 0 12px; color: var(--tech-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.35; letter-spacing: -.01em; }
.tech-article-header > p { max-width: 720px; margin: 0 0 18px; color: #6e8287; font-size: 15px; line-height: 1.8; }
.tech-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: #8b9ba0; font-size: 12px; }
.tech-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tech-article-meta svg { width: 15px; }

/* 富文本排版 */
.tech-article-content { padding: 34px 0 22px; color: #294850; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.tech-article-content > *:first-child { margin-top: 0; }
.tech-article-content h2, .tech-article-content h3, .tech-article-content h4 { position: relative; color: var(--tech-ink); scroll-margin-top: 24px; }
.tech-article-content h2 { margin: 45px 0 20px; padding: 0 0 11px 17px; border-bottom: 1px solid #dfe7e8; font-size: 25px; line-height: 1.45; }
.tech-article-content h2::before { content: ""; position: absolute; left: 0; top: .35em; width: 5px; height: .85em; border-radius: 4px; background: linear-gradient(to bottom, var(--tech-accent), var(--tech-green)); }
.tech-article-content h3 { margin: 34px 0 15px; padding-left: 14px; font-size: 20px; line-height: 1.5; }
.tech-article-content h3::before { content: "#"; position: absolute; left: 0; color: var(--tech-accent); font-size: .75em; font-weight: 600; }
.tech-article-content h4 { margin: 26px 0 12px; font-size: 17px; }
.tech-article-content p { margin: 0 0 17px; }
.tech-article-content a { color: #0498b5; text-decoration: none; border-bottom: 1px solid rgba(4,152,181,.25); }
.tech-article-content a:hover { color: #02768d; border-color: currentColor; }
.tech-article-content ul, .tech-article-content ol { margin: 14px 0 20px; padding-left: 1.65em; }
.tech-article-content li { margin: 7px 0; padding-left: 3px; }
.tech-article-content li::marker { color: var(--tech-accent); }
.tech-article-content blockquote { margin: 22px 0; padding: 15px 18px; border-left: 4px solid var(--tech-green); border-radius: 0 7px 7px 0; color: #49636a; background: #eff8f6; }
.tech-article-content blockquote p:last-child { margin-bottom: 0; }
.tech-article-content img { display: block; max-width: 100% !important; height: auto !important; margin: 24px auto; border: 1px solid #e3eaea; border-radius: 7px; box-shadow: 0 10px 30px rgba(26,55,63,.08); cursor: zoom-in; }
.tech-article-content table { display: block; width: 100% !important; margin: 22px 0; border-collapse: collapse; overflow-x: auto; }
.tech-article-content th, .tech-article-content td { min-width: 110px; padding: 10px 13px; border: 1px solid #dfe7e8; text-align: left; }
.tech-article-content th { color: var(--tech-ink); background: #f0f6f6; }
.tech-article-content code { padding: 2px 6px; border-radius: 4px; color: #087f94; background: #edf6f7; font: .88em/1.6 Consolas, Monaco, monospace; }
.tech-article-content pre { position: relative; margin: 22px 0; padding: 20px; border-radius: 8px; color: #d9e6e8; background: #102f38; line-height: 1.7; overflow-x: auto; }
.tech-article-content pre code { padding: 0; color: inherit; background: transparent; }
.tech-code-copy { position: absolute; top: 9px; right: 9px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #b9cacc; background: rgba(255,255,255,.07); font: 11px inherit; cursor: pointer; }
.tech-code-copy:hover { color: #fff; background: rgba(255,255,255,.13); }
.tech-article-content hr { margin: 34px 0; border: 0; border-top: 1px solid var(--tech-line); }

.tech-article-footer { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--tech-line); }
.tech-article-updated { color: #95a5a9; font-size: 11px; }
.tech-prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.tech-prev-next__item { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 16px 18px; border: 1px solid var(--tech-line); border-radius: 8px; color: var(--tech-ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.tech-prev-next__item small { color: #8a9ca0; }
.tech-prev-next__item span { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tech-prev-next__item--next { text-align: right; }
a.tech-prev-next__item:hover { border-color: #8dcbd3; transform: translateY(-2px); }
.tech-prev-next__item.is-disabled { opacity: .55; }

.tech-toc { position: relative; border-left: 1px solid var(--tech-line); background: #f8fafa; }
.tech-toc__inner { position: sticky; top: 0; padding: 38px 25px; }
.tech-toc__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #dce5e6; color: var(--tech-ink); font-size: 14px; }
.tech-toc nav { max-height: calc(100vh - 190px); padding: 13px 0; overflow: auto; }
.tech-toc a { position: relative; display: block; margin: 1px 0; padding: 6px 5px 6px 13px; color: #657a80; font-size: 12px; line-height: 1.55; text-decoration: none; }
.tech-toc a::before { content: ""; position: absolute; left: 0; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: #a9b8bb; }
.tech-toc a[data-level="3"] { padding-left: 25px; color: #7b8d92; font-size: 11.5px; }
.tech-toc a[data-level="3"]::before { left: 12px; }
.tech-toc a:hover, .tech-toc a.is-active { color: var(--tech-accent-dark); }
.tech-toc a.is-active { font-weight: 600; }
.tech-toc a.is-active::before { width: 3px; height: 14px; top: 8px; border-radius: 4px; background: var(--tech-accent); }
.tech-toc__progress { height: 2px; margin: 7px 0 18px; border-radius: 2px; background: #e1e9ea; overflow: hidden; }
.tech-toc__progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--tech-accent), var(--tech-green)); }
.tech-back-top { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: #84969a; background: transparent; font: 11px inherit; cursor: pointer; }
.tech-back-top svg { width: 14px; }
.tech-back-top:hover { color: var(--tech-accent-dark); }
.tech-drawer-mask { display: none; }

.tech-lightbox { position: fixed; z-index: 10000; inset: 0; display: none; align-items: center; justify-content: center; padding: 45px; background: rgba(4,18,22,.9); }
.tech-lightbox.is-open { display: flex; }
.tech-lightbox img { max-width: min(1400px, 96vw); max-height: 90vh; object-fit: contain; }
.tech-lightbox button { position: absolute; top: 18px; right: 25px; border: 0; color: #fff; background: transparent; font-size: 36px; cursor: pointer; }

@media (max-width: 1400px) {
    .tech-doc-layout { grid-template-columns: 250px minmax(0, 1fr) 220px; }
    .tech-sidebar__inner { padding-inline: 14px; }
    .tech-article-column { padding-inline: 28px; }
    .tech-toc__inner { padding-inline: 18px; }
    .tech-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .tech-doc-layout { grid-template-columns: 260px minmax(0, 1fr); }
    .tech-toc { display: none; }
    .tech-article-column { padding-inline: 30px; }
}

@media (max-width: 900px) {
    :root { --tech-mobile-bar-height: 48px; }
    .tech-index-hero { min-height: 360px; padding-top: 74px; }
    .tech-index-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .tech-index-heading p { text-align: left; }
    .tech-mobile-bar { position: sticky; z-index: 90; top: 0; display: flex; height: var(--tech-mobile-bar-height); align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid var(--tech-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
    .tech-mobile-bar > span { min-width: 0; color: var(--tech-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tech-mobile-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border: 0; color: var(--tech-ink); background: transparent; font: 12px inherit; }
    .tech-mobile-bar svg { width: 18px; }
    .tech-doc-layout { display: block; min-height: 0; }
    .tech-sidebar, .tech-toc { position: fixed; z-index: 102; top: 0; bottom: 0; display: block; width: min(340px, 88vw); border: 0; background: #fff; transition: transform .25s ease; }
    .tech-sidebar { left: 0; transform: translateX(-102%); }
    .tech-toc { right: 0; transform: translateX(102%); }
    .tech-sidebar.is-open, .tech-toc.is-open { transform: translateX(0); box-shadow: 0 0 45px rgba(10,38,45,.2); }
    .tech-sidebar__inner { position: static; height: 100%; }
    .tech-toc__inner { position: static; height: 100%; padding-top: 26px; }
    .tech-toc nav { max-height: calc(100vh - 130px); }
    .tech-drawer-close { display: block; }
    .tech-drawer-mask { position: fixed; z-index: 101; inset: 0; background: rgba(6,25,30,.42); }
    .tech-drawer-mask.is-open { display: block; }
    .tech-article-column { padding: 18px 18px 60px; }
    .tech-article { margin-top: 0; padding: 24px 28px 36px; }
}

@media (max-width: 640px) {
    .tech-index-hero { min-height: 330px; padding: 58px 18px 75px; }
    .tech-index-hero h1 { font-size: 36px; }
    .tech-index-hero p { font-size: 14px; }
    .tech-index-search { height: 52px; }
    .tech-index-search kbd { display: none; }
    .tech-index-content { width: calc(100% - 28px); margin-bottom: 50px; }
    .tech-index-heading { padding-top: 32px; }
    .tech-index-heading h2 { font-size: 25px; }
    .tech-category-grid { grid-template-columns: 1fr; }
    .tech-category-card { min-height: 0; padding: 23px; }
    .tech-article-column { padding: 12px 0 45px; }
    .tech-article { padding: 21px 18px 30px; border-right: 0; border-left: 0; border-radius: 0; }
    .tech-breadcrumb { padding-bottom: 15px; }
    .tech-article-header { padding: 27px 0 25px; }
    .tech-article-header h1 { font-size: 27px; }
    .tech-article-content { padding-top: 25px; font-size: 15px; line-height: 1.85; }
    .tech-article-content h2 { margin-top: 36px; font-size: 22px; }
    .tech-article-content h3 { font-size: 18px; }
    .tech-prev-next { grid-template-columns: 1fr; }
    .tech-lightbox { padding: 20px; }
}

@media print {
    .tech-docs-detail > header, .tech-mobile-bar, .tech-sidebar, .tech-toc, .tech-prev-next { display: none !important; }
    .tech-doc-layout { display: block; }
    .tech-article-column { padding: 0; }
    .tech-article { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
}

/* 文档目录页：沿用文档中心的传统双栏目录布局。 */
@media (min-width: 761px) {
    .tech-doc-header { position:relative; height:58px; gap:20px; padding:0 24px; box-shadow:0 1px 4px rgba(0,0,0,.08); }
    .tech-doc-header__brand { gap:14px; font-size:20px; }.tech-doc-header__brand img { width:36px; height:36px; }
    .tech-doc-header__search { width:202px; height:36px; margin-left:auto; }.tech-doc-header__nav { gap:23px; }.tech-doc-header__nav a { font-size:14px; }
    .tech-doc-home-layout { grid-template-columns:286px minmax(0,1fr); min-height:calc(100vh - 58px); background:#f5f5f5; }
    .tech-doc-home-sidebar { padding:24px 0; border-right:1px solid #e1e4e5; }.tech-doc-home-sidebar__title { padding:7px 24px 12px; color:#063a46; font-size:18px; }
    .tech-doc-home-sidebar a { padding:9px 24px; color:#174653; font-size:15px; font-weight:500; }.tech-doc-home-sidebar a:hover,.tech-doc-home-sidebar a.is-active { color:#00a1d5; background:transparent; }
    .tech-doc-home-main { padding:24px 58px 80px; }.tech-doc-home-panel { width:min(942px,100%); min-height:760px; padding:36px 40px 58px; border:0; box-shadow:0 1px 6px rgba(0,0,0,.04); }
    .tech-doc-home-intro { gap:20px; }.tech-doc-home-intro__icon { width:64px; height:64px; font-size:31px; }.tech-doc-home-intro h1 { font-size:25px; }.tech-doc-home-divider { margin:34px 0 34px; }
    .tech-doc-home-title { margin-bottom:17px; font-size:25px; }.tech-doc-home-search { display:none; }
    .tech-doc-home-catalog { display:block; }.tech-doc-home-group { margin:0 0 37px; }.tech-doc-home-group h3 { margin-bottom:13px; font-size:17px; font-weight:500; }
    .tech-doc-home-group ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:80px; row-gap:6px; }.tech-doc-home-group li { margin:0; }.tech-doc-home-group li a { display:block; color:#00a0d7; font-size:15px; line-height:1.75; }.tech-doc-home-group li a::before { display:none; }
}
