/* 外贸知识库（v5：玻璃苹果风，搜索 + 分类筛选 + 术语卡） */
.ic-tile.t-orange { background: linear-gradient(145deg, #ffb45c, #ec5528); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 18px -10px rgba(200, 80, 20, .6); }

/* 首页 */
.l-hero { padding-bottom: 24px; }
.l-search { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 34px auto 0; height: 56px; padding: 0 12px 0 20px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(0, 0, 0, .06); box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); cursor: text; transition: box-shadow .3s, border-color .3s; }
.l-search:focus-within { border-color: rgba(0, 113, 227, .45); box-shadow: 0 0 0 4px rgba(0, 113, 227, .12), var(--shadow); }
.l-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.l-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.l-search input::-webkit-search-cancel-button { cursor: pointer; }
.l-search kbd { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 7px; padding: 2px 8px; }
.l-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.l-chips button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(0, 0, 0, .07); background: rgba(255, 255, 255, .7); font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.l-chips button i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.l-chips button:hover { background: #fff; color: var(--ink); }
.l-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.l-chips button.on i { color: rgba(255, 255, 255, .6); }
.l-chips button:active { transform: scale(.96); }

.l-sec { padding: 56px 0 8px; scroll-margin-top: 80px; }
.l-sec-h { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.l-sec-h .ic-tile { width: 44px; height: 44px; border-radius: 12px; }
.l-sec-h .ic-tile svg { width: 22px; height: 22px; }
.l-sec-h h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.l-sec-h p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lc { position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); min-height: 230px; }
.lc .ic-tile { display: none; }
.lc .cat { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.lc h3 { margin-top: 10px; font-size: 18.5px; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; }
.lc p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc .go { margin-top: auto; padding-top: 16px; font-size: 14px; }
.lc.hide, .l-sec.hide { display: none; }
.lc mark { background: linear-gradient(transparent 55%, rgba(122, 92, 255, .25) 55%); color: inherit; }
.l-empty { display: grid; justify-items: center; gap: 8px; padding: 70px 0 20px; text-align: center; }
.l-empty[hidden] { display: none; }
.l-empty b { font-size: 20px; margin-top: 8px; }
.l-empty span { color: var(--muted); font-size: 15px; }
.l-empty .btn { margin-top: 10px; }

/* 文章页 */
.l-wrap { padding: 36px 0 40px; }
.crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.l-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; margin-top: 30px; }
.l-article { max-width: 760px; }
.l-article h1 { margin-top: 18px; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.l-desc { margin-top: 14px; font-size: 19px; color: var(--ink-2); line-height: 1.55; }
.l-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--line-2); }
.l-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.l-hint::before { content: ""; width: 16px; height: 0; border-bottom: 1.5px dashed currentColor; }
.prose { font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.prose h2 { margin: 48px 0 12px; font-size: 25px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { margin: 30px 0 8px; font-size: 19px; font-weight: 700; color: var(--ink); }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg); padding: 1px 6px; border-radius: 5px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-radius: 18px; background: linear-gradient(160deg, #f1f6ff, #f6f1ff); color: var(--ink-2); }
.prose .tbl { margin: 22px 0; overflow-x: auto; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.prose th { text-align: left; font-weight: 600; color: var(--ink); background: var(--bg); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.l-side { position: relative; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 13.5px; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .05); }
.toc b { font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 12px 8px; }
.toc a { padding: 7px 12px; border-radius: 10px; color: var(--muted); line-height: 1.45; transition: background .2s, color .2s; }
.toc a:hover, .toc a.on { background: #fff; color: var(--ink); }
.toc a.on { box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }

/* 术语卡 */
.gl { position: relative; cursor: help; color: var(--ink); text-decoration: underline dashed rgba(0, 113, 227, .55); text-decoration-thickness: 1.5px; text-underline-offset: 4px; border-radius: 4px; transition: background .2s; }
.gl:hover, .gl:focus-visible, .gl.open { background: rgba(0, 113, 227, .08); outline: 0; }
.gl-card { position: absolute; z-index: 70; width: 300px; padding: 16px 18px 14px; border-radius: 18px; background: rgba(255, 255, 255, .98); box-shadow: 0 24px 60px -20px rgba(20, 30, 80, .35), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 14px; line-height: 1.65; color: var(--ink-2); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .2s, transform .2s; pointer-events: none; }
.gl-card.on { opacity: 1; transform: none; pointer-events: auto; }
.gl-card b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.gl-card b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #0071e3, #a35cff 60%, #ff5fa2); }
.gl-card a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }

.l-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 60px 0 10px; padding: 26px 28px; border-radius: 24px; background: #0b0c12; color: #fff; isolation: isolate; }
.l-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 100%, rgba(122, 92, 255, .5), transparent 70%), radial-gradient(50% 120% at 0% 0%, rgba(0, 113, 227, .45), transparent 70%); }
.l-cta div { flex: 1; min-width: 220px; }
.l-cta b { display: block; font-size: 18px; }
.l-cta span { display: block; margin-top: 4px; color: #c7c7cc; font-size: 14px; }
.l-related { margin-top: 64px; }
.l-related h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }

@media (max-width: 960px) {
  .learn-grid { grid-template-columns: 1fr; gap: 12px; }
  .lc { min-height: 0; padding: 22px 20px; }
  .l-layout { grid-template-columns: 1fr; gap: 0; }
  .l-side { display: none; }
  .l-search { height: 50px; margin-top: 26px; }
  .l-search kbd { display: none; }
  .l-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .l-chips button { flex: none; }
  .prose { font-size: 16px; }
  .gl-card { width: min(300px, calc(100vw - 32px)); }
}
