.topics-page { --topic-ink: #102840; --topic-copy: #354c61; --topic-blue: #006bc5; --topic-link: #0057a8; --topic-rule: #d5e3ef; --topic-tint: #f2f7fb; }
.topics-page .topic-header, .topic-shell, .topics-page .footerwrap .commonwrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.topics-page .footerwrap { min-width: 0; }
.topics-page .topic-header { display: flex; align-items: center; gap: 24px; height: 88px; }
.topic-header > a:first-child { display: block; flex: 0 0 180px; }
.topic-header .logo { display: block; position: static; width: 100%; height: 52px; background-size: contain; }
.topic-header .mainmenu { position: static; display: flex; justify-content: space-between; flex: 1; gap: 9px; width: auto; height: auto; margin: 0; overflow: visible; }
.topic-header .mainmenu a { display: inline-flex; align-items: center; justify-content: center; float: none; width: auto; min-height: 44px; line-height: 1.45; white-space: nowrap; }
.topic-header .toptel a { position: static; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 0 0 21px; color: var(--topic-link); background-position: left center; }
.topic-header a:focus-visible, .topics-main :is(a, summary, [tabindex]):focus-visible { outline: 3px solid #0086b8; outline-offset: 3px; }

.topics-main { color: var(--topic-ink); font: 16px/1.68 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
.topics-main *, .topics-main *::before, .topics-main *::after { box-sizing: border-box; }
.topics-main :is(h1, h2, h3, p, figure) { margin: 0; }
.topics-main [id] { scroll-margin-top: 20px; }
.topics-main a { color: var(--topic-link); }
.topics-main a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topics-main p { color: var(--topic-copy); }
.topics-main h2 { font-size: clamp(23px, 2.4vw, 32px); line-height: 1.32; }
.topics-main h3 { font-size: 19px; line-height: 1.42; }

.topic-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 348px; color: #fff; background: #172f44; }
.topic-hero-inner { padding-block: 28px 48px; }
.topic-breadcrumb { display: flex; gap: 10px; align-items: center; color: #e6f1fb; font-size: 13px; }
.topics-main .topic-breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.topic-hero h1 { margin-block: 14px 13px; font-size: clamp(30px, 4.1vw, 56px); font-weight: 750; line-height: 1.18; letter-spacing: -.02em; }
.topic-hero p { max-width: 34em; color: #fff; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.72; }
.topic-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.topic-hero-media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 52%; }
.topic-hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5, 23, 39, .82), rgba(6, 25, 42, .54) 48%, transparent 82%); }
.topic-hero-media figcaption { position: absolute; z-index: 1; right: max(18px, calc((100% - 1180px) / 2)); bottom: 14px; padding: 3px 8px; border-radius: 4px; background: rgba(11, 33, 52, .86); color: #fff; font-size: 12px; }

.topics-main .topic-jump { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; padding-block: 15px; margin: 0; }
.topics-main .topic-jump a { justify-content: center; color: var(--topic-ink); background: #f7fbfe; padding: 6px 4px; font-weight: 650; line-height: 1.35; text-align: center; }
.topics-main .topic-jump a:hover { border-color: #91b8d5; background: var(--topic-tint); color: var(--topic-link); }
.topics-main .topic-jump .topic-jump-accent, .topics-main .topic-button { border-color: var(--topic-blue); background: var(--topic-blue); color: #fff; }
.topics-main .topic-jump .topic-jump-accent:hover, .topics-main .topic-button:hover { background: #00569f; color: #fff; }
.topics-main .topic-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 7px 15px; border: 1px solid var(--topic-blue); border-radius: 6px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
.topic-ai-entry, .topic-consult { align-items: center; gap: 18px 32px; padding: clamp(15px, 2vw, 25px); border-radius: 8px; background: var(--topic-tint); }
.topic-ai-entry {
    display: grid;
    grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
    border: 1px solid var(--topic-rule);
    background: linear-gradient(106deg, #f7fbfe, #eaf3fa);
}
.topic-ai-entry h2, .topic-consult h2 { margin-bottom: 5px; font-size: clamp(20px, 1.85vw, 25px); }
.topic-ai-entry p, .topic-consult p { font-size: 15px; }
.topic-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 17px; margin-top: 4px; }
.topic-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.topic-ai-routes { padding: 0; margin: 0; border: 1px solid #cfdfec; border-radius: 7px; background: #fff; }
.topic-ai-routes li { margin: 0; list-style: none !important; }
.topic-ai-routes li + li { border-top: 1px solid var(--topic-rule); }
.topic-ai-routes a {
    display: grid;
    grid-template-columns: minmax(6em, .55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 4px 12px;
    min-height: 45px;
    padding: 7px 13px;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}
.topics-main .topic-ai-routes a:hover, .topic-ai-routes a:focus-visible { background: #edf6fd; text-decoration: none; }
.topic-ai-routes a:focus-visible { outline-offset: -3px; }
.topic-ai-routes strong { text-decoration: underline; text-underline-offset: 3px; }
.topic-ai-routes span { color: var(--topic-copy); font-size: 14px; }

.topic-band { margin-block: clamp(27px, 3.7vw, 53px); }
.topic-band > h2 { margin-bottom: 13px; }
.topic-band .topic-note { margin-bottom: 15px; font-size: 15px; }
.topic-grid, .topic-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.topic-card, .topic-case { min-width: 0; padding: 17px; border: 1px solid var(--topic-rule); border-radius: 8px; }
.topic-card:target, .topic-case:target { border-color: #4f9bd4; background: #f6fbff; }
.topic-card h3, .topic-case h3 { margin-bottom: 6px; }
.topic-card p, .topic-case p { margin-bottom: 7px; font-size: 15px; }
.topic-links { display: grid; }
.topic-links a { min-height: 44px; padding-block: 5px; line-height: 1.45; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.topic-card-details { margin-top: 5px; border-top: 1px solid var(--topic-rule); }
.topic-card-details summary { min-height: 44px; padding-block: 10px 5px; color: var(--topic-link); cursor: pointer; font-size: 14px; font-weight: 650; }
.topic-card-details a { font-size: 14px; }
.topic-case ul { margin: 0; padding-left: 18px; }
.topic-case li { margin: 3px 0; font-size: 14px; }
.topic-case a, .topic-table a { text-decoration: underline; text-underline-offset: 3px; }
.topic-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.topic-table th, .topic-table td { border: 1px solid var(--topic-rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.topic-table th { background: var(--topic-tint); }
.topics-main .topic-table-hint { display: none; margin-bottom: 8px; font-size: 13px; }
.topic-consult { display: flex; justify-content: space-between; margin-bottom: 38px; background: #eaf4fc; }
.topic-consult .topic-button { flex: 0 0 auto; }

@media (max-width: 1060px) {
    .topics-page .topic-header { gap: 8px; height: 74px; }
    .topic-header > a:first-child { flex-basis: 145px; }
    .topic-header .logo { height: 46px; }
    .topics-page .topic-header .menu-btn { order: 3; display: grid; place-items: center; position: static; width: 44px; height: 44px; padding: 0; border: 1px solid var(--topic-rule); border-radius: 5px; font-size: 21px; line-height: 1; }
    .topic-header .toptel { margin-left: auto; }
    .topic-header .toptel a { width: 44px; height: 44px; padding: 0; border: 1px solid var(--topic-rule); border-radius: 5px; color: transparent; background-size: 18px auto; background-position: center; font-size: 0; }
    .topic-header .mainmenu { display: none; position: absolute; z-index: 5; inset: 100% 0 auto; padding: 5px; background: #fff; border: 1px solid var(--topic-rule); border-radius: 5px; box-shadow: 0 8px 22px rgba(16, 40, 64, .12); }
    .topic-header[data-menu-open] .mainmenu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-header .mainmenu a { height: auto; padding: 7px 4px; margin: 0; }
    .topics-main .topic-jump { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .topic-grid, .topic-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .topics-page .topic-header, .topic-shell, .topics-page .footerwrap .commonwrap { width: calc(100% - 30px) !important; }
    .topic-hero { min-height: 266px; }
    .topic-hero-inner { padding-block: 24px 46px; }
    .topic-hero h1 { margin-block: 8px 10px; font-size: clamp(24px, 7.5vw, 35px); }
    .topic-hero-media img { object-position: 66% center; }
    .topic-hero-media::after { background: linear-gradient(90deg, rgba(5, 23, 39, .86), rgba(6, 24, 42, .58)); }
    .topic-hero-media figcaption { right: 14px; bottom: 11px; }
    .topics-main .topic-jump { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.16fr); gap: 5px; padding-block: 11px; }
    .topics-main .topic-jump a { padding-inline: 1px; font-size: 12px; }
    .topic-ai-entry { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .topic-ai-routes a { padding-inline: 9px; gap: 7px; font-size: 14px; }
    .topic-ai-routes span { font-size: 13px; }
    .topic-consult { flex-direction: column; align-items: start; gap: 9px; }
}

@media (max-width: 620px) {
    .topic-grid, .topic-case-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .topic-card, .topic-case { padding: 14px; }
    .topics-main .topic-table-hint { display: block; }
}

@media (max-width: 379px) {
    .topics-main .topic-jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .topics-main .topic-jump .topic-jump-accent { grid-column: span 3; }
}
