/* 专题库专属样式：保持手绘纸张感，同时提升列表浏览效率。 */
.topics-stage {
    width: min(1504px, calc(100% - 96px));
    margin: 0 auto;
    padding: 58px 0 96px;
}

.topics-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
    gap: 54px;
    align-items: center;
    margin-bottom: 58px;
}

.topics-hero-copy {
    min-width: 0;
}

.topics-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--sketch-ink);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.16;
}

.topics-hero p,
.topics-toolbar p,
.poster-topic-card p,
.topics-conversion p {
    margin: 0;
    color: var(--sketch-ink-muted);
    font-weight: 600;
    line-height: 1.7;
}

.topics-hero p {
    max-width: 680px;
    font-size: 18px;
}

.topics-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.topics-primary-btn,
.topics-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    border: 3px solid var(--sketch-ink);
    border-radius: 14px 22px 16px 20px / 16px 18px 14px 22px;
    box-shadow: 5px 6px 0 var(--sketch-ink);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.topics-primary-btn {
    color: #fff;
    background: var(--sketch-accent);
}

.topics-outline-btn {
    color: var(--sketch-ink);
    background: #fff;
}

.topics-primary-btn:hover,
.topics-outline-btn:hover {
    transform: translate(-2px, -2px) rotate(-0.4deg);
    box-shadow: 7px 8px 0 var(--sketch-ink);
}

.topics-outline-btn:hover {
    background: var(--sketch-accent-soft);
}

.topics-hero-board {
    position: relative;
    min-height: 390px;
    isolation: isolate;
}

.topics-hero-board::before {
    content: '';
    position: absolute;
    inset: 54px 40px 44px 58px;
    z-index: -1;
    background: rgba(255, 255, 255, 0.54);
    border: 3px solid rgba(61, 57, 53, 0.22);
    border-radius: 26px 34px 24px 32px / 30px 24px 34px 26px;
    transform: rotate(1.5deg);
}

.topics-hero-board::after {
    content: '';
    position: absolute;
    left: 96px;
    right: 72px;
    bottom: 40px;
    height: 12px;
    z-index: -2;
    background: rgba(61, 57, 53, 0.12);
    border-radius: 50%;
    filter: blur(1px);
}

.board-paper {
    position: absolute;
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--sketch-ink);
    border-radius: 16px 22px 18px 20px / 18px 16px 22px 20px;
    box-shadow: 8px 8px 0 rgba(61, 57, 53, 0.16);
}

.board-paper img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: cover;
    background: #fff;
}

.board-paper-1 {
    inset: 54px 72px auto 32px;
    height: 268px;
    z-index: 1;
    transform: rotate(-1.2deg);
}

.board-paper-2 {
    right: 12px;
    top: 24px;
    width: 226px;
    height: 158px;
    transform: rotate(4deg);
    z-index: 2;
}

.board-paper-3 {
    left: 0;
    bottom: 34px;
    width: 228px;
    height: 164px;
    transform: rotate(-4deg);
    z-index: 3;
}

.topics-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.topics-toolbar h2 {
    margin: 0;
    color: var(--sketch-ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
}

.topics-toolbar a {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--sketch-ink);
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.48);
    border-radius: 12px 18px 13px 16px / 14px 12px 18px 13px;
    box-shadow: 3px 4px 0 rgba(61, 57, 53, 0.13);
    font-weight: 900;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.poster-topic-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 14px 14px 24px;
    background: #fff;
    border: 3px solid var(--sketch-ink);
    border-radius: 16px 22px 18px 20px / 18px 16px 22px 20px;
    box-shadow: 8px 8px 0 rgba(61, 57, 53, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.poster-topic-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.poster-topic-card:nth-child(3n) {
    transform: rotate(-0.6deg);
}

.poster-topic-card:hover {
    transform: translate(-4px, -4px) rotate(0deg);
    box-shadow: 12px 12px 0 rgba(61, 57, 53, 0.2);
}

.poster-topic-card::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 16px;
    width: 42px;
    height: 7px;
    background: rgba(242, 138, 54, 0.15);
    border-radius: 100% 20% 100% 18% / 38% 100% 42% 100%;
    transform: rotate(-2deg);
}

.poster-topic-card figure {
    margin: 0 0 16px;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.18);
    border-radius: 10px;
    aspect-ratio: 1024 / 765;
}

.poster-topic-card figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.poster-topic-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.poster-topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--sketch-ink-muted);
    font-size: 12px;
    font-weight: 800;
}

.poster-topic-meta span {
    max-width: 60%;
    color: var(--sketch-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-topic-card h3 {
    margin: 0 0 8px;
    color: var(--sketch-ink);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.poster-topic-card p {
    overflow-wrap: anywhere;
}

.topics-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.topics-pagination a,
.topics-pagination span {
    min-width: 40px;
    padding: 7px 12px;
    text-align: center;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.32);
    border-radius: 10px 14px 9px 12px / 12px 9px 14px 10px;
    font-weight: 900;
}

.topics-pagination span.active {
    color: #fff;
    background: var(--sketch-accent);
    border-color: var(--sketch-ink);
}

.topics-pagination span.gap {
    color: var(--sketch-ink-muted);
    background: transparent;
    border-color: transparent;
}

.topics-empty {
    padding: 32px;
    color: var(--sketch-ink-muted);
    background: #fff;
    border: 3px solid var(--sketch-ink);
    border-radius: 18px 24px 16px 22px / 18px 20px 22px 16px;
    font-weight: 800;
}

.topic-categories-page {
    width: min(1504px, calc(100% - 96px));
    margin: 0 auto;
    padding: 58px 0 96px;
}

.category-index-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    overflow: hidden;
    margin-bottom: 36px;
    min-height: 0;
    padding: clamp(34px, 3.6vw, 48px) clamp(30px, 4vw, 56px);
    background:
        linear-gradient(112deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 255, 255, 0.94) 62%, rgba(255, 246, 238, 0.72) 100%);
    border: 2px solid rgba(61, 57, 53, 0.74);
    border-radius: 22px 30px 20px 26px / 26px 20px 30px 22px;
    box-shadow: 0 14px 26px rgba(61, 57, 53, 0.045), 5px 6px 0 rgba(61, 57, 53, 0.08);
}

.category-index-hero::before {
    display: none;
}

.category-index-hero::after {
    display: none;
}

.category-index-copy,
.category-index-art {
    position: relative;
    z-index: 1;
}

.category-index-copy {
    max-width: 760px;
}

.category-index-hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    color: var(--sketch-ink);
    font-size: 44px;
    font-weight: 900;
    line-height: 1.14;
}

.category-index-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--sketch-ink-muted);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.72;
}

.category-index-hero .topics-hero-actions {
    margin-top: 26px;
}

.category-index-art {
    justify-self: end;
    width: min(100%, 350px);
    min-height: 220px;
}

.category-art-photo {
    position: absolute;
    inset: 18px 8px 6px 18px;
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--sketch-ink);
    border-radius: 18px 26px 16px 22px / 20px 16px 26px 18px;
    box-shadow: 8px 9px 0 rgba(61, 57, 53, 0.13);
    transform: rotate(2deg);
}

.category-art-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 50%;
}

.category-art-photo::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 16px;
    height: 8px;
    background: rgba(242, 138, 54, 0.16);
    border-radius: 999px;
    transform: rotate(-1deg);
}

.category-art-line {
    position: absolute;
    display: block;
    z-index: 3;
    pointer-events: none;
}

.category-art-line.line-a {
    top: 12px;
    right: 14px;
    width: 92px;
    height: 8px;
    background: rgba(242, 138, 54, 0.16);
    border-radius: 999px;
    transform: rotate(2deg);
}

.category-art-line.line-b {
    left: 6px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border: 3px solid rgba(242, 138, 54, 0.18);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.category-index-panel {
    position: relative;
}

.category-index-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.category-index-heading h2 {
    margin: 0;
    color: var(--sketch-ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
}

.category-index-heading p {
    max-width: 560px;
    margin: 0;
    color: var(--sketch-ink-muted);
    font-weight: 700;
}

.topic-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.topic-category-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title mark"
        "count mark"
        "action mark";
    column-gap: 18px;
    row-gap: 8px;
    min-height: 138px;
    padding: 24px 24px 20px;
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--sketch-ink);
    border-radius: 18px 26px 16px 22px / 20px 16px 26px 18px;
    box-shadow: 7px 8px 0 rgba(61, 57, 53, 0.14);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.topic-category-card:nth-child(3n + 1) {
    transform: rotate(-0.4deg);
}

.topic-category-card:nth-child(3n + 2) {
    transform: rotate(0.35deg);
}

.topic-category-card:hover {
    background: #fffaf4;
    transform: translate(-3px, -3px) rotate(0deg);
    box-shadow: 10px 11px 0 rgba(61, 57, 53, 0.18);
}

.topic-category-card::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 44px;
    height: 7px;
    background: rgba(242, 138, 54, 0.16);
    border-radius: 50%;
    transform: rotate(-3deg);
}

.category-mark {
    grid-area: mark;
    position: relative;
    align-self: start;
    width: 48px;
    height: 48px;
    background: #fff7ef;
    border: 2px solid rgba(61, 57, 53, 0.26);
    border-radius: 16px 22px 14px 20px / 18px 14px 22px 16px;
    transform: rotate(2deg);
}

.category-mark::before,
.category-mark::after {
    content: '';
    position: absolute;
    display: block;
}

.category-mark::before {
    left: 14px;
    top: 24px;
    width: 10px;
    height: 5px;
    border-left: 4px solid var(--sketch-accent);
    border-bottom: 4px solid var(--sketch-accent);
    transform: rotate(-45deg);
}

.category-mark::after {
    right: 11px;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--sketch-accent);
    border-radius: 999px;
}

.topic-category-card:nth-child(4n + 2) .category-mark {
    border-radius: 999px 44% 999px 52% / 52% 999px 44% 999px;
    transform: rotate(-4deg);
}

.topic-category-card:nth-child(4n + 2) .category-mark::before {
    left: 12px;
    top: 13px;
    width: 8px;
    height: 8px;
    border: 0;
    background: var(--sketch-accent);
    border-radius: 999px;
    box-shadow: 14px 0 0 rgba(242, 138, 54, 0.55), 7px 14px 0 rgba(242, 138, 54, 0.78);
    transform: rotate(-8deg);
}

.topic-category-card:nth-child(4n + 2) .category-mark::after {
    display: none;
}

.topic-category-card:nth-child(4n + 3) .category-mark {
    border-radius: 16px 13px 21px 14px / 13px 19px 14px 21px;
    transform: rotate(5deg);
}

.topic-category-card:nth-child(4n + 3) .category-mark::before {
    left: 13px;
    top: 13px;
    width: 20px;
    height: 20px;
    border: 0;
    background:
        linear-gradient(var(--sketch-accent), var(--sketch-accent)) center / 20px 4px no-repeat,
        linear-gradient(var(--sketch-accent), var(--sketch-accent)) center / 4px 20px no-repeat;
    transform: rotate(42deg);
}

.topic-category-card:nth-child(4n + 3) .category-mark::after {
    display: none;
}

.topic-category-card:nth-child(4n + 4) .category-mark {
    border-radius: 13px 21px 16px 18px / 20px 14px 19px 13px;
    transform: rotate(-2deg);
}

.topic-category-card:nth-child(4n + 4) .category-mark::before {
    left: 11px;
    top: 18px;
    width: 25px;
    height: 10px;
    border: 0;
    background:
        radial-gradient(circle at 4px 5px, var(--sketch-accent) 0 3px, transparent 3px),
        radial-gradient(circle at 13px 5px, var(--sketch-accent) 0 3px, transparent 3px),
        radial-gradient(circle at 22px 5px, var(--sketch-accent) 0 3px, transparent 3px);
    transform: rotate(-8deg);
}

.topic-category-card:nth-child(4n + 4) .category-mark::after {
    display: none;
}

.topic-category-card strong {
    grid-area: title;
    align-self: start;
    color: var(--sketch-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.category-count {
    grid-area: count;
    color: var(--sketch-ink-muted);
    font-size: 14px;
    font-weight: 800;
}

.topic-category-card em {
    grid-area: action;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--sketch-accent);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.topic-category-card em::after {
    content: '→';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--sketch-accent);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.18s, color 0.18s;
}

.topic-category-card:hover em::after {
    color: var(--sketch-accent-hover);
    transform: translate(4px, -1px);
}

.topics-conversion {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 36px;
    overflow: hidden;
    margin-top: 72px;
    padding: 34px 38px 34px 42px;
    background: #fffaf4;
    border: 3px solid var(--sketch-ink);
    border-radius: 20px 28px 18px 24px / 18px 22px 20px 26px;
    box-shadow: 8px 9px 0 rgba(61, 57, 53, 0.14);
}

.topics-conversion::before {
    content: '';
    position: absolute;
    left: 32px;
    right: 320px;
    bottom: 28px;
    height: 10px;
    background: rgba(242, 138, 54, 0.16);
    border-radius: 50%;
    transform: rotate(-0.8deg);
}

.topics-conversion::after {
    content: '';
    position: absolute;
    right: 316px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: rgba(61, 57, 53, 0.14);
    transform: rotate(0.6deg);
}

.topics-conversion-copy {
    position: relative;
    z-index: 1;
}

.topics-conversion h2 {
    max-width: 760px;
    margin: 0 0 10px;
    color: var(--sketch-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
}

.topics-conversion p {
    max-width: 780px;
}

.topics-conversion button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 8px 20px;
    color: #fff;
    background: var(--sketch-accent);
    border: 3px solid var(--sketch-ink);
    border-radius: 13px 19px 14px 17px / 16px 13px 19px 14px;
    box-shadow: 4px 5px 0 var(--sketch-ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.topics-conversion button:hover {
    background: var(--sketch-accent-hover);
    transform: translate(-2px, -2px) rotate(-0.4deg);
    box-shadow: 6px 7px 0 var(--sketch-ink);
}

.topics-conversion-qr {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    background: #fff;
    border: 3px solid rgba(61, 57, 53, 0.68);
    border-radius: 18px 24px 17px 22px / 20px 17px 24px 18px;
    box-shadow: 6px 7px 0 rgba(61, 57, 53, 0.15);
    transform: rotate(0.8deg);
}

.topics-conversion-qr::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    width: 74px;
    height: 20px;
    background: rgba(242, 138, 54, 0.18);
    border: 1px solid rgba(61, 57, 53, 0.08);
    border-radius: 5px;
    transform: translateX(-50%) rotate(-2deg);
}

.topics-conversion-qr img {
    width: 198px;
    height: 198px;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.18);
    border-radius: 12px 16px 11px 14px / 14px 11px 16px 12px;
}

.topics-conversion-qr strong {
    color: var(--sketch-ink);
    font-size: 14px;
    font-weight: 900;
}

.topic-category-page,
.topic-detail-page {
    width: min(1504px, calc(100% - 96px));
    margin: 0 auto;
    padding: 44px 0 96px;
}

.topic-category-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 38px;
    margin-bottom: 40px;
    padding: 34px 40px;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 255, 255, 0.82) 56%, rgba(255, 241, 228, 0.64) 100%);
    border: 2px solid rgba(61, 57, 53, 0.72);
    border-radius: 22px 30px 20px 26px / 26px 20px 30px 22px;
    box-shadow: 0 18px 36px rgba(61, 57, 53, 0.055), 5px 6px 0 rgba(61, 57, 53, 0.08);
}

.topic-category-hero::before {
    content: '';
    position: absolute;
    top: -72px;
    right: 108px;
    width: 260px;
    height: 260px;
    background:
        radial-gradient(circle at center, rgba(242, 138, 54, 0.11), rgba(242, 138, 54, 0) 66%);
    pointer-events: none;
}

.topic-category-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--sketch-ink-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    min-height: 24px;
}

.category-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    color: var(--sketch-ink-muted);
    border-radius: 0;
    transition: color 0.18s, opacity 0.18s;
}

.category-breadcrumb a:hover {
    color: var(--sketch-accent-hover);
    background: transparent;
}

.category-breadcrumb a:last-of-type {
    color: var(--sketch-accent-hover);
    background: transparent;
    box-shadow: none;
    font-weight: 900;
}

.category-breadcrumb span {
    color: rgba(61, 57, 53, 0.24);
    font-size: 14px;
    font-weight: 900;
}

.topic-category-page > .category-breadcrumb,
.topic-detail-page > .category-breadcrumb {
    margin-bottom: 24px;
}

.topic-category-hero h1,
.topic-detail-header h1 {
    margin: 0 0 14px;
    color: var(--sketch-ink);
    font-weight: 900;
    line-height: 1.16;
}

.topic-category-hero h1 {
    max-width: 840px;
    font-size: 40px;
}

.topic-category-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--sketch-ink-muted);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.topic-category-hero .topics-hero-actions {
    margin-top: 24px;
}

.topic-category-cover-fan {
    position: relative;
    z-index: 1;
    height: 210px;
    min-width: 0;
}

.topic-category-cover-fan::after {
    content: '';
    position: absolute;
    left: 42px;
    right: 34px;
    bottom: 9px;
    height: 12px;
    background: rgba(61, 57, 53, 0.11);
    border-radius: 50%;
    filter: blur(2px);
}

.fan-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 178px;
    height: 128px;
    padding: 7px;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.46);
    border-radius: 14px 20px 13px 18px / 18px 13px 20px 14px;
    box-shadow: 7px 9px 0 rgba(61, 57, 53, 0.12);
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px 13px 8px 12px / 12px 8px 13px 9px;
}

.fan-card-1 {
    z-index: 2;
    transform: translate(-92%, -45%) rotate(-12deg);
}

.fan-card-2 {
    z-index: 4;
    transform: translate(-50%, -58%) rotate(-2deg);
}

.fan-card-3 {
    z-index: 3;
    transform: translate(-12%, -42%) rotate(10deg);
}

.fan-card-4 {
    z-index: 1;
    transform: translate(-42%, -18%) rotate(4deg);
    opacity: 0.86;
}

.category-topic-section {
    margin-top: 34px;
}

.category-topic-heading {
    margin-bottom: 24px;
}

.category-topic-heading h2,
.topic-related-section h2,
.topic-faq-section h2,
.topic-answer-card h2 {
    margin: 0;
    color: var(--sketch-ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
}

.category-topic-grid {
    margin-bottom: 42px;
}

.category-conversion {
    margin-top: 70px;
}

.topic-detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    column-gap: 34px;
    row-gap: 0;
    align-items: start;
}

.topic-detail-main {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    padding: 42px 32px 36px;
    background:
        linear-gradient(180deg, rgba(255, 250, 244, 0.58) 0%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(61, 57, 53, 0.1);
    border-radius: 24px 30px 22px 28px / 28px 22px 30px 24px;
    box-shadow: 0 18px 42px rgba(61, 57, 53, 0.035);
}

.topic-detail-main::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 390px;
    background:
        linear-gradient(90deg, rgba(255, 250, 244, 0.96) 0%, rgba(255, 250, 244, 0.9) 42%, rgba(255, 250, 244, 0.22) 72%, rgba(255, 250, 244, 0) 100%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.7) 0%, rgba(255, 250, 244, 0.42) 48%, rgba(255, 250, 244, 0) 100%);
    pointer-events: none;
}

.topic-detail-bg {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: min(64%, 620px);
    height: 430px;
    overflow: hidden;
    pointer-events: none;
}

.topic-detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    opacity: 0.72;
    filter: saturate(1.02) contrast(0.98);
    -webkit-mask-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.52) 58%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 22%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.52) 58%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 22%, rgba(0, 0, 0, 1) 100%);
    mask-composite: intersect;
}

.topic-detail-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    max-width: 790px;
    margin-bottom: 20px;
    padding: 10px 12px 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.topic-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.topic-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 12px;
    color: var(--sketch-accent-hover);
    background: #fff;
    border: 1px solid rgba(242, 138, 54, 0.26);
    border-radius: 999px;
    box-shadow: 0 7px 16px rgba(242, 138, 54, 0.08);
    font-size: 13px;
    font-weight: 900;
}

.topic-category::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--sketch-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 138, 54, 0.12);
}

.topic-date {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: var(--sketch-ink-muted);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(61, 57, 53, 0.11);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.topic-detail-header h1 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: clamp(34px, 2.75vw, 44px);
    line-height: 1.16;
}

.topic-detail-header p {
    max-width: 760px;
    margin: 0;
    color: var(--sketch-ink-muted);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.8;
}

.topic-answer-card,
.topic-faq-section,
.topic-related-section {
    position: relative;
    z-index: 2;
    margin: 30px 0;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid rgba(61, 57, 53, 0.2);
    border-radius: 18px 24px 18px 22px / 22px 18px 24px 18px;
    box-shadow: 0 16px 34px rgba(61, 57, 53, 0.055), 4px 5px 0 rgba(61, 57, 53, 0.055);
}

.topic-answer-card {
    background: linear-gradient(135deg, #fffaf4 0%, #fff 72%);
}

.topic-faq-section {
    background: #fff;
}

.topic-related-section {
    background: #fffaf4;
}

.topic-answer-card p {
    margin: 12px 0 0;
    color: var(--sketch-ink-muted);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}

.article-content {
    position: relative;
    z-index: 2;
    margin: 0 0 30px;
    padding: 30px 36px;
    color: var(--sketch-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(61, 57, 53, 0.12);
    border-radius: 18px 26px 16px 22px / 20px 16px 26px 18px;
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.88;
}

.article-content h2,
.article-content h3 {
    margin: 34px 0 14px;
    color: var(--sketch-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.32;
}

.article-content h2:first-child,
.article-content h3:first-child {
    margin-top: 0;
}

.article-content p {
    margin: 14px 0;
}

.article-content img {
    width: auto;
    max-width: 100%;
    margin: 20px auto;
    padding: 8px;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.22);
    border-radius: 12px;
}

.topic-faq-section details {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid rgba(61, 57, 53, 0.13);
    border-radius: 12px 16px 12px 14px / 14px 12px 16px 12px;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.topic-faq-section details:first-of-type {
    margin-top: 14px;
}

.topic-faq-section details[open] {
    background: #fff;
    border-color: rgba(242, 138, 54, 0.28);
    box-shadow: 0 10px 22px rgba(61, 57, 53, 0.045);
}

.topic-faq-section summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--sketch-ink);
    font-weight: 900;
    list-style: none;
}

.topic-faq-section summary::-webkit-details-marker {
    display: none;
}

.topic-faq-section summary::before {
    content: 'Q';
    flex: 0 0 auto;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--sketch-accent);
    border-radius: 9px 12px 9px 11px / 11px 9px 12px 9px;
    box-shadow: 2px 2px 0 rgba(61, 57, 53, 0.12);
    font-size: 13px;
    line-height: 1;
}

.topic-faq-section summary::after {
    content: '';
    flex: 0 0 auto;
    display: block;
    width: 9px;
    height: 9px;
    margin-left: auto;
    border: 0;
    border-right: 2px solid var(--sketch-accent);
    border-bottom: 2px solid var(--sketch-accent);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s, border-color 0.18s;
}

.topic-faq-section details[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
    border-color: var(--sketch-accent-hover);
}

.topic-faq-section p {
    margin: 0;
    padding: 0 58px 18px 54px;
    color: var(--sketch-ink-muted);
    font-weight: 700;
    line-height: 1.75;
}

.topic-detail-aside {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.detail-qr-card,
.detail-side-box {
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.78);
    border-radius: 18px 26px 16px 22px / 20px 16px 26px 18px;
    box-shadow: 0 14px 30px rgba(61, 57, 53, 0.06), 5px 6px 0 rgba(61, 57, 53, 0.08);
}

.detail-qr-card {
    display: grid;
    justify-items: center;
    padding: 20px 18px 22px;
    background: linear-gradient(180deg, #fff 0%, #fffaf4 100%);
    text-align: center;
}

.detail-qr-card img {
    width: 174px;
    height: 174px;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(61, 57, 53, 0.2);
    border-radius: 14px;
}

.detail-qr-card h2 {
    margin: 14px 0 6px;
    color: var(--sketch-ink);
    font-size: 20px;
    font-weight: 900;
}

.detail-qr-card p {
    margin: 0;
    color: var(--sketch-ink-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.detail-qr-card button {
    margin-top: 16px;
    padding: 8px 18px;
    color: #fff;
    background: var(--sketch-accent);
    border: 3px solid var(--sketch-ink);
    border-radius: 13px 19px 14px 17px / 16px 13px 19px 14px;
    box-shadow: 4px 5px 0 var(--sketch-ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.detail-qr-card button:hover {
    background: var(--sketch-accent-hover);
    transform: translate(-1px, -1px);
    box-shadow: 5px 6px 0 var(--sketch-ink);
}

.detail-side-box {
    padding: 18px 18px 16px;
}

.detail-side-box h2 {
    margin: 0 0 12px;
    color: var(--sketch-ink);
    font-size: 18px;
    font-weight: 900;
}

.detail-side-list {
    display: grid;
    gap: 0;
}

.detail-side-list a {
    display: block;
    padding: 8px 0;
    color: var(--sketch-ink-muted);
    border-top: 1px dashed rgba(61, 57, 53, 0.14);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.detail-side-list a:hover {
    color: var(--sketch-accent);
}

.topic-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.topic-related-grid .poster-topic-card {
    flex-direction: row;
    align-items: center;
    min-height: 128px;
    padding: 12px 16px 12px 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(61, 57, 53, 0.2);
    box-shadow: 0 10px 22px rgba(61, 57, 53, 0.045);
    transform: none;
}

.topic-related-grid .poster-topic-card:nth-child(even),
.topic-related-grid .poster-topic-card:nth-child(3n) {
    transform: none;
}

.topic-related-grid .poster-topic-card:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 0 16px 30px rgba(61, 57, 53, 0.07);
}

.topic-related-grid .poster-topic-card figure {
    flex: 0 0 124px;
    width: 124px;
    margin: 0 18px 0 0;
    border: 1px solid rgba(61, 57, 53, 0.14);
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.topic-related-grid .poster-topic-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.topic-related-grid .poster-topic-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
    .topic-detail-page {
        grid-template-columns: 1fr;
    }

    .topic-detail-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topics-hero {
        grid-template-columns: 1fr;
    }

    .topics-hero-board {
        max-width: 680px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .topic-category-page,
    .topic-detail-page {
        width: min(100% - 32px, 1504px);
        padding-top: 36px;
        padding-bottom: 78px;
    }

    .topic-category-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 30px 28px;
    }

    .topic-category-cover-fan {
        height: 188px;
        max-width: 420px;
    }

    .fan-card {
        width: 158px;
        height: 112px;
    }

    .topic-detail-main {
        padding: 34px 22px 28px;
    }

    .topic-detail-header {
        min-height: 250px;
        padding: 4px 4px 10px;
    }

    .topic-category-hero h1,
    .topic-detail-header h1 {
        font-size: 30px;
    }

    .topic-detail-header p {
        font-size: 15px;
    }

    .topic-detail-main::before {
        height: 340px;
    }

    .topic-detail-bg {
        height: 440px;
    }

    .topic-categories-page {
        width: min(100% - 32px, 1504px);
        padding-top: 36px;
        padding-bottom: 78px;
    }

    .category-index-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 30px;
    }

    .category-index-art {
        justify-self: stretch;
        width: 100%;
        min-height: 190px;
    }

    .category-index-hero h1 {
        font-size: 38px;
    }

    .category-index-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .topics-stage {
        width: min(100% - 32px, 1504px);
        padding-top: 36px;
        padding-bottom: 78px;
    }

    .topics-hero h1 {
        font-size: 36px;
    }

    .topics-toolbar,
    .topics-conversion {
        align-items: flex-start;
    }

    .topics-conversion {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .topics-conversion::before,
    .topics-conversion::after {
        display: none;
    }

    .topics-conversion-qr {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .topic-detail-aside {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 24px 20px;
    }

    .topic-detail-main::before {
        height: 360px;
    }

    .topic-detail-bg {
        height: 420px;
    }

    .topic-answer-card,
    .topic-faq-section,
    .topic-related-section {
        padding: 20px;
    }

    .topic-related-grid .poster-topic-card {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 14px 14px 22px;
    }

    .topic-related-grid .poster-topic-card figure {
        flex: 0 0 auto;
        width: 100%;
        margin: 0 0 14px;
    }

    .detail-qr-card img {
        width: 180px;
        height: 180px;
    }

    .category-index-hero {
        padding: 28px 22px;
    }

    .category-index-hero h1 {
        font-size: 31px;
    }

    .category-index-hero p {
        font-size: 15px;
    }

    .category-art-photo {
        inset: 12px 10px 8px 10px;
    }

    .category-art-line.line-b {
        display: none;
    }

    .topic-category-grid {
        grid-template-columns: 1fr;
    }

    .topic-category-card {
        min-height: 132px;
        padding: 20px;
    }

    .category-mark {
        width: 38px;
        height: 38px;
    }

    .category-mark::after {
        margin: 15px 0 0 11px;
    }

    .topics-hero-board {
        min-height: 270px;
    }

    .topics-hero-board::before {
        inset: 30px 8px 34px 8px;
    }

    .board-paper-1 {
        inset: 28px 20px auto 8px;
        height: 198px;
    }

    .board-paper-2,
    .board-paper-3 {
        display: none;
    }

    .topics-primary-btn,
    .topics-outline-btn {
        width: 100%;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .poster-topic-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .poster-topic-meta span {
        max-width: 100%;
    }

    .topics-conversion {
        padding: 24px 22px;
    }

    .topics-conversion button {
        width: 100%;
    }

    .topics-conversion-qr {
        justify-self: stretch;
    }

    .topics-conversion-qr img {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
}
