.forum-category-shell { padding-bottom: 26px; }
.forum-breadcrumb { min-height: 52px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.forum-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; }
.forum-breadcrumb a:hover { color: var(--blue); }
.forum-breadcrumb .sv-icon { width: 15px; height: 15px; color: var(--blue); }
.forum-breadcrumb strong { color: var(--ink); }
.forum-category-grid { display: grid; grid-template-columns: minmax(0, 3.35fr) minmax(300px, 1fr); align-items: start; gap: 16px; }
.forum-category-main, .forum-category-sidebar { display: grid; gap: 14px; }
.forum-white-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }

.ai-category-hero { position: relative; min-height: 210px; overflow: hidden; border: 1px solid #dceaff; border-radius: 10px; background: radial-gradient(circle at 69% -25%, rgba(255,255,255,.92), transparent 31%), linear-gradient(120deg, #edf8ff 0%, #e6f2ff 49%, #a9d1ff 100%); }
.ai-category-hero::before, .ai-category-hero::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.ai-category-hero::before { width: 300px; height: 300px; right: 19%; top: -220px; }
.ai-category-hero::after { width: 230px; height: 230px; left: 46%; bottom: -190px; }
.ai-hero-copy { position: relative; z-index: 4; width: 66%; min-height: 210px; display: grid; grid-template-columns: 79px minmax(0,1fr); grid-template-rows: 1fr auto; align-items: center; column-gap: 18px; padding: 28px 20px 22px 26px; }
.ai-category-icon { width: 72px; height: 72px; align-self: start; display: grid; place-items: center; border-radius: 16px; color: #09a75c; background: #d7f9e7; }
.ai-category-icon .sv-icon { width: 40px; height: 40px; stroke-width: 2.1; }
.ai-hero-copy h1 { margin: 3px 0 5px; color: #071532; font-size: 32px; line-height: 1.1; letter-spacing: -1.1px; }
.ai-hero-copy p { margin: 0; color: #536887; font-size: 13px; line-height: 1.55; }
.ai-hero-stats { grid-column: 1 / 3; display: flex; gap: 36px; }
.ai-hero-stats > span { min-width: 94px; display: grid; grid-template-columns: 26px auto; grid-template-rows: 19px 18px; align-items: center; padding-right: 26px; border-right: 1px solid rgba(83,117,158,.18); }
.ai-hero-stats > span:last-child { border: 0; }
.ai-hero-stats .sv-icon { grid-row: 1 / 3; width: 22px; height: 22px; color: #6683a9; }
.ai-hero-stats b { color: #13213b; font-size: 14px; }
.ai-hero-stats small { color: #5f728e; font-size: 10px; }
.ai-new-topic { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #0878ff, #0063ee); box-shadow: 0 7px 15px rgba(0,102,240,.2); font-weight: 700; cursor: pointer; }
.ai-new-topic .sv-icon { width: 19px; height: 19px; }
.ai-hero-copy > .ai-new-topic { position: absolute; right: -40px; bottom: 20px; min-width: 145px; padding: 0 17px; }

.ai-hero-art { position: absolute; z-index: 3; inset: 0 0 0 62%; }
.ai-hero-art::before { content: ''; position: absolute; width: 240px; height: 155px; right: 28px; bottom: -42px; border-radius: 50%; background: rgba(255,255,255,.45); transform: rotate(-8deg); }
.ai-robot { position: absolute; width: 140px; height: 167px; right: 70px; bottom: -17px; filter: drop-shadow(0 12px 12px rgba(13,76,168,.23)); }
.robot-head { position: absolute; z-index: 4; top: 14px; left: 22px; width: 100px; height: 79px; overflow: hidden; border: 8px solid rgba(255,255,255,.92); border-radius: 42% 42% 38% 38%; background: linear-gradient(145deg, #14266d, #06133d); box-shadow: inset 0 -9px 18px rgba(36,50,130,.7), 0 0 0 2px #76b7ff; }
.robot-head::before { content: ''; position: absolute; inset: 3px 8px 30px; border-radius: 50%; background: rgba(45,143,255,.13); filter: blur(5px); }
.robot-head b { position: absolute; top: 27px; width: 12px; height: 21px; border-radius: 50%; background: #19c8ff; box-shadow: 0 0 11px #18c5ff; }
.robot-head b:first-child { left: 21px; }
.robot-head b:nth-child(2) { right: 21px; }
.robot-head em { position: absolute; width: 19px; height: 9px; left: 33px; bottom: 13px; border-bottom: 3px solid #22c4ff; border-radius: 50%; }
.antenna { position: absolute; z-index: 2; width: 4px; height: 22px; top: 0; left: 70px; border-radius: 5px; background: #d7ebff; }
.antenna::after { content: ''; position: absolute; width: 10px; height: 10px; left: -3px; top: -3px; border-radius: 50%; background: #158bff; box-shadow: 0 0 8px #158bff; }
.robot-neck { position: absolute; z-index: 2; width: 28px; height: 20px; top: 84px; left: 58px; border-radius: 6px; background: linear-gradient(90deg, #72b3ff, #eef8ff, #3e93f3); }
.robot-body { position: absolute; z-index: 3; width: 91px; height: 81px; left: 26px; top: 97px; border: 5px solid #fff; border-radius: 38px 38px 22px 22px; background: linear-gradient(145deg, #eff9ff, #78baff); }
.robot-body span { position: absolute; left: 32px; top: 23px; width: 22px; height: 27px; display: grid; place-items: center; border: 2px solid #2387f8; border-radius: 50%; color: #1681f9; font-size: 17px; font-style: normal; font-weight: 800; }
.robot-arm { position: absolute; z-index: 1; width: 30px; height: 73px; top: 102px; border: 5px solid #fff; border-radius: 20px; background: linear-gradient(#dff3ff, #52a4ff); }
.robot-arm.left { left: 5px; transform: rotate(28deg); }
.robot-arm.right { right: 6px; transform: rotate(-27deg); }
.ai-float-card { position: absolute; z-index: 6; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 10px; color: #fff; background: linear-gradient(145deg, rgba(56,150,255,.9), rgba(20,106,230,.72)); box-shadow: 0 10px 18px rgba(27,91,182,.18); font-style: normal; font-weight: 800; transform: rotate(7deg); }
.ai-float-card .sv-icon { width: 27px; height: 27px; }
.ai-card-chat { left: 8px; top: 43px; transform: rotate(8deg); }
.ai-card-chip { right: 12px; top: 56px; transform: rotate(8deg); }
.ai-card-code { right: 5px; bottom: 18px; transform: rotate(-8deg); }

.ai-subforums > header { height: 36px; display: flex; align-items: center; padding: 0 18px; }
.ai-subforums h2, .forum-category-sidebar h2 { margin: 0; font-size: 15px; }
.ai-subforum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 9px 10px; }
.ai-subforum-card { min-width: 0; min-height: 86px; display: grid; grid-template-columns: 49px minmax(0,1fr); align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ai-subforum-card:hover { transform: translateY(-1px); border-color: #b9d7ff; box-shadow: 0 8px 18px rgba(21,81,150,.08); }
.ai-subforum-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; }
.ai-subforum-icon .sv-icon { width: 27px; height: 27px; stroke-width: 2.1; }
.ai-subforum-card > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.ai-subforum-card strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ai-subforum-card small { overflow: hidden; margin: 2px 0 4px; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.ai-subforum-card em { color: var(--muted); font-size: 9px; font-style: normal; }
.ai-subforum-card em b { margin-right: 2px; color: #567090; font-weight: 600; }
.ai-subforum-card em b:nth-child(2) { margin-left: 9px; }
.ai-subforum-card .ai-subforum-viewers { margin-top: 5px; }
.ai-subforum-card .ai-subforum-viewers b { color: inherit; }

.ai-topic-toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ai-topic-tabs, .ai-topic-filters { display: flex; gap: 10px; }
.ai-topic-tabs h2 { margin: 0; padding: 0 7px; font-size: 13px; }
.ai-topic-toolbar button { height: 37px; padding: 0 17px; border: 1px solid #d8e1ed; border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 11px; cursor: pointer; }
.ai-topic-toolbar button.active { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(0,104,247,.18); }
.ai-topic-filters button { padding-inline: 13px; }
.ai-topic-head { height: 34px; display: grid; grid-template-columns: 22px 35px minmax(0,1fr) 80px 100px 146px; align-items: center; column-gap: 8px; padding: 0 12px; color: #617490; background: #f6f9fc; font-size: 10px; }
.ai-topic-head > span:first-child { grid-column: 3; }
[data-theme='dark'] .ai-topic-head { background: var(--soft); }
.ai-topic-head span:not(:first-child) { text-align: center; }
.ai-topic-row { min-height: 62px; display: grid; grid-template-columns: 22px 35px minmax(0,1fr) 80px 100px 146px; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.ai-topic-row:first-child { border-top: 0; }
.topic-group-heading { min-height: 31px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #64758e; background: #f6f9fc; font-size: 9px; letter-spacing: .15px; }
.topic-group-heading:first-child { border-top: 0; }
.topic-group-heading.is-pinned { color: #c5243d; background: #fff1f3; }
.topic-group-heading .sv-icon { width: 12px; height: 12px; }
.ai-topic-row.is-pinned { background: #fffafb; }
[data-theme='dark'] .topic-group-heading { background: var(--soft); }
[data-theme='dark'] .topic-group-heading.is-pinned { color: #ff8798; background: color-mix(in srgb, #d93750 14%, var(--surface)); }
[data-theme='dark'] .ai-topic-row.is-pinned { background: color-mix(in srgb, #d93750 6%, var(--surface)); }
.ai-empty-topics { min-height: 130px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--muted); }
.ai-empty-topics strong { color: var(--ink); }
.ai-topic-row:hover { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.topic-state { color: #8fa7c6; }
.topic-state .sv-icon { width: 14px; height: 14px; }
.ai-topic-row.is-pinned .topic-state { color: #f22b29; }
.ai-topic-row > .sv-avatar, .topic-last .sv-avatar { width: 31px; height: 31px; font-size: 8px; }
.topic-main { min-width: 0; display: flex; flex-direction: column; }
.topic-main > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.topic-main a { overflow: hidden; font-size: 11px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.topic-main a:hover { color: var(--blue); }
.topic-main small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.topic-label { flex: 0 0 auto; padding: 3px 7px; border-radius: 5px; font-size: 9px; }
.topic-locked { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 5px; color: #c9253d; background: #ffe9ed; font-size: 9px; font-weight: 700; }
.topic-locked .sv-icon { width: 10px; height: 10px; }
.label-blue { color: #0068e9; background: #dceeff; }
.label-green { color: #098e50; background: #d9f8e9; }
.label-purple { color: #7531d7; background: #eee2ff; }
.label-orange { color: #e57000; background: #ffedca; }
.label-red { color: #e92937; background: #ffe1e5; }
.topic-number { display: flex; flex-direction: column; align-items: center; }
.topic-number b { font-size: 11px; }
.topic-number small { color: var(--muted); font-size: 9px; }
.topic-last { min-width: 0; display: flex; align-items: center; gap: 8px; }
.topic-last > span { min-width: 0; display: flex; flex-direction: column; }
.topic-last b { overflow: hidden; color: var(--blue); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.topic-last small { color: var(--blue-2); font-size: 9px; }

.category-new-topic { padding: 9px; }
.category-new-topic .ai-new-topic { width: 100%; }
.category-search { padding: 14px; }
.category-search h2 { margin-bottom: 10px; }
.category-search form { height: 38px; display: flex; overflow: hidden; border: 1px solid #ccd9e8; border-radius: 6px; }
.category-search input { min-width: 0; flex: 1; padding: 0 10px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.category-search button { width: 38px; border: 0; color: #fff; background: var(--blue); cursor: pointer; }
.category-search button .sv-icon { width: 16px; }
.category-search > a { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 9px; font-weight: 600; }
.ai-side-list, .ai-tags { padding: 14px; }
.ai-side-list header, .ai-tags header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.ai-side-list header a, .ai-tags header a { display: flex; align-items: center; gap: 4px; color: var(--blue); font-size: 9px; }
.ai-side-list header .sv-icon, .ai-tags header .sv-icon { width: 13px; height: 13px; }
.ai-side-list header button { padding: 6px 9px; border: 0; border-radius: 6px; color: var(--ink); background: var(--soft); font-size: 9px; }
.ai-side-list ol { margin: 0; padding: 0; list-style: none; }
.ai-side-list li { min-height: 48px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 8px; }
.ai-side-list li .sv-avatar { width: 31px; height: 31px; font-size: 8px; }
.ai-side-list li > span { min-width: 0; display: flex; flex-direction: column; }
.ai-side-list li a { overflow: hidden; font-size: 10px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ai-side-list li small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.ai-popular li { grid-template-columns: 25px 32px minmax(0,1fr); }
.ai-popular li > b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #263954; background: #f0f4f9; font-size: 9px; }
.ai-popular li:nth-child(-n+3) > b { color: #fc5e21; background: #fff0e6; }
.ai-tags > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-tags > div a { padding: 6px 7px; border-radius: 6px; color: #728197; background: #f2f6fb; font-size: 8px; }
[data-theme='dark'] .ai-tags > div a { background: var(--soft); }
.ai-tags > div strong { color: var(--blue); }
.sv-wpforo-form { position: relative; z-index: 50; }

@media (max-width: 1180px) {
  .forum-category-grid { grid-template-columns: minmax(0, 2.6fr) minmax(270px, 1fr); }
  .ai-hero-copy { width: 72%; }
  .ai-hero-art { left: 68%; }
  .ai-subforum-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-topic-toolbar { align-items: flex-start; flex-direction: column; }
  .ai-topic-tabs, .ai-topic-filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ai-topic-row { grid-template-columns: 20px 33px minmax(0,1fr) 64px 82px 130px; }
  .ai-topic-head { grid-template-columns: 20px 33px minmax(0,1fr) 64px 82px 130px; }
}

@media (max-width: 900px) {
  .forum-category-grid { grid-template-columns: 1fr; }
  .forum-category-sidebar { grid-template-columns: 1fr 1fr; }
  .category-new-topic, .category-search { grid-column: span 1; }
  .ai-tags { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .forum-breadcrumb { min-height: 43px; }
  .ai-category-hero { min-height: 360px; }
  .ai-hero-copy { width: 100%; min-height: 225px; grid-template-columns: 60px minmax(0,1fr); padding: 22px 18px; }
  .ai-category-icon { width: 56px; height: 56px; }
  .ai-category-icon .sv-icon { width: 31px; height: 31px; }
  .ai-hero-copy h1 { font-size: 27px; }
  .ai-hero-copy p { font-size: 11px; }
  .ai-hero-stats { gap: 6px; justify-content: space-between; }
  .ai-hero-stats > span { min-width: 0; flex: 1; padding-right: 8px; }
  .ai-hero-copy > .ai-new-topic { right: 18px; bottom: -50px; }
  .ai-hero-art { inset: auto 0 0 35%; height: 160px; }
  .ai-robot { right: 48px; transform: scale(.8); transform-origin: bottom right; }
  .ai-card-chat { left: 5px; top: 30px; }
  .ai-subforum-grid { grid-template-columns: 1fr; }
  .ai-topic-toolbar { overflow: hidden; }
  .ai-topic-tabs, .ai-topic-filters { flex: 0 0 auto; }
  .ai-topic-toolbar button { flex: 0 0 auto; }
  .ai-topic-head { display: none; }
  .ai-topic-row { grid-template-columns: 18px 32px minmax(0,1fr) 45px; padding: 10px 8px; }
  .ai-topic-row .topic-number:nth-of-type(2), .topic-last { display: none; }
  .topic-main > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .topic-main a { max-width: 100%; white-space: normal; line-height: 1.35; }
  .forum-category-sidebar { grid-template-columns: 1fr; }
  .ai-tags { grid-column: auto; }
}
