:root {
    --bg: #f5efe6;
    --paper: rgba(255, 252, 247, 0.82);
    --paper-strong: #fffdf9;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(31, 41, 55, 0.12);
    --shadow: 0 24px 60px rgba(51, 65, 85, 0.12);
    --sunrise: #d97706;
    --forest: #2f6b53;
    --ocean: #1d4e89;
}

* {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.16), transparent 24%),
        radial-gradient(circle at right 20%, rgba(29, 78, 137, 0.18), transparent 22%),
        linear-gradient(180deg, #f8f2e9 0%, #efe7da 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 40px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.detail-main,
.detail-side,
.site-footer {
    backdrop-filter: blur(18px);
}

.hero-copy {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(255, 248, 240, 0.74));
    box-shadow: var(--shadow);
}

.eyebrow,
.section-heading span,
.comments-head span,
.info-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.hero-copy h1,
.detail-head h1,
.section-heading h2,
.article-card h3 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-copy h1 {
    max-width: 9em;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.hero-copy p {
    max-width: 42rem;
    margin-top: 18px;
    font-size: 1.08rem;
    color: var(--muted);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #526274;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.hero-tags-compact {
    margin-top: 18px;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.metric-card,
.article-card,
.info-card,
.comments-card,
.site-footer {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 24px;
    border-radius: 28px;
}

.metric-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
}

.metric-card span {
    color: var(--muted);
}

.content-grid {
    display: grid;
    gap: 22px;
}

.pagination-shell,
.pagination-info,
.error-card {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.pagination-shell {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
}

.pagination-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pagination-info strong {
    font-size: 1rem;
}

.pagination-info span {
    color: var(--muted);
}

.pagination-info-compact {
    margin-top: 14px;
    background: transparent;
    box-shadow: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pagination-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
}

.pagination-link.is-current {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}

.pagination-link-nav {
    padding: 0 18px;
}

.pagination-comments {
    margin-top: 18px;
}

.notice-strip {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 248, 239, 0.8));
    box-shadow: var(--shadow);
}

.notice-strip p {
    color: #475569;
    font-weight: 600;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 4px;
}

.section-heading>* {
    min-width: 0;
}

.section-heading p {
    color: var(--muted);
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.search-shell,
.search-empty-card,
.search-result-card {
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.search-brand-shell {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(249, 242, 231, 0.76));
    box-shadow: var(--shadow);
}

.search-brand-shell::after {
    content: "";
    position: absolute;
    inset: auto -8% -42% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 78, 137, 0.16), transparent 68%);
    pointer-events: none;
}

.comments-hero-shell {
    padding: 16px 18px;
    background:
        radial-gradient(circle at left top, rgba(217, 119, 6, 0.16), transparent 26%),
        radial-gradient(circle at right 20%, rgba(29, 78, 137, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(246, 238, 225, 0.82));
}

.comments-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: stretch;
}

.comments-hero-copy {
    align-content: start;
}

.comments-hero-copy p {
    max-width: 42rem;
}

.comments-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.comments-hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
}

.comments-hero-tools {
    display: grid;
    gap: 14px;
    align-items: center;
}

.comment-search-form-compact {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.comment-search-form-compact .comment-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.comments-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.comments-hero-stat,
.comments-hero-aside {
    padding: 16px 18px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 16px 38px rgba(51, 65, 85, 0.08);
}

.comments-hero-stat span,
.comments-hero-aside strong {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comments-hero-stat strong {
    display: block;
    margin-top: 8px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1;
}

.comments-hero-stat p,
.comments-hero-aside p {
    margin-top: 8px;
    color: #526071;
    font-size: 0.92rem;
    line-height: 1.65;
}

.comment-search-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 40px rgba(51, 65, 85, 0.08);
}

.comment-search-label {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.comment-search-input {
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
}

.comment-search-button {
    min-width: 96px;
    min-height: 52px;
    padding: 0 18px;
}

.comment-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    color: #475569;
    font-size: 0.92rem;
}

.comment-search-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-search-form,
.comments-hero-aside {
    backdrop-filter: blur(12px);
}

.search-brand-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.search-brand-copy span {
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
}

.search-brand-copy h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.search-brand-copy span a,
.search-brand-copy h1 a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.search-brand-copy span a:hover,
.search-brand-copy h1 a:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.08em;
}

.search-brand-copy p {
    color: #475569;
    font-size: 1rem;
}

/* ── Home header: compact brand + search merged ── */
.home-header {
    position: sticky;
    top: 14px;
    z-index: 40;
    display: grid;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-header-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.home-header-brand h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.home-header-brand h1 a {
    color: inherit;
    text-decoration: none;
}

.home-header-brand h1 a:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.08em;
}

.home-header-tagline {
    color: #6f7f90;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-header-domain {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.home-header-domain:hover {
    text-decoration: underline;
}

/* --- Comments page header (mirrors .home-header) --- */
.comments-header {
    display: grid;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.comments-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comments-header-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.comments-header-brand h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.comments-header-brand h1 a {
    color: inherit;
    text-decoration: none;
}

.comments-header-brand h1 a:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.08em;
}

.comments-header-tagline {
    color: #6f7f90;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comments-header-domain {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.comments-header-domain:hover {
    text-decoration: underline;
}

.home-search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.home-search-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.home-search-input-wrap .search-input {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.home-search-input-wrap .search-input:focus {
    box-shadow: none;
}

.home-search-input-wrap:focus-within {
    border-color: rgba(29, 78, 137, 0.34);
    box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.08);
}

.home-search-input-wrap .search-button {
    min-width: 68px;
    min-height: 36px;
    margin: 4px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.search-shell {
    display: grid;
    gap: 18px;
    padding: 16px;
    border-radius: 28px;
}

.search-shell-sticky {
    position: sticky;
    top: 14px;
    z-index: 40;
    background: rgba(255, 252, 247, 0.84);
    backdrop-filter: blur(18px);
}

.search-form {
    display: grid;
}

.search-form-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.search-scope {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 6px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.search-scope-option {
    position: relative;
    display: inline-flex;
}

.search-scope-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.search-scope-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-scope-option input:checked+span {
    background: #0f172a;
    color: #f8fafc;
}

.search-scope-option input:focus-visible+span {
    box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.12);
}

.search-input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: rgba(29, 78, 137, 0.34);
    box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.08);
}

.search-button {
    min-width: 112px;
    min-height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.search-results-shell {
    display: grid;
    gap: 20px;
}

.search-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 0 4px;
}

.search-results-info {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.search-results-heading-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.search-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.search-results-summary p {
    flex: 1 1 100%;
}

.search-results-summary span,
.search-results-summary p {
    color: var(--muted);
}

.search-results-summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.92rem;
}

.search-results-group {
    display: grid;
    gap: 16px;
}

.search-results-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    min-width: 132px;
    padding: 0 16px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-stat-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.88rem;
}

.search-stat-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
}

.search-stat-chip.is-current {
    background: #0f172a;
    border-color: #0f172a;
    color: #f8fafc;
}

.search-stat-chip.is-current strong {
    background: rgba(248, 250, 252, 0.16);
    color: #f8fafc;
}

.search-results-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 16px;
    padding: 0 4px;
}

.search-results-heading span {
    grid-column: 1 / -1;
}

.search-results-heading p {
    text-align: right;
    white-space: nowrap;
}

.search-result-list {
    display: grid;
    gap: 16px;
}

.search-result-card {
    display: grid;
    gap: 12px;
    padding: 22px 24px;
    border-radius: 24px;
}

.search-result-card h3 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.28rem;
    line-height: 1.4;
}

.search-result-card h3 a:hover {
    color: #0f4c81;
}

.search-result-card h3 a,
.article-card h3 a {
    word-break: break-word;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    color: #526274;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.search-result-meta span,
.article-meta span,
.comment-meta span {
    min-width: 0;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.14);
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.search-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
}

.search-result-link:hover {
    background: rgba(255, 255, 255, 0.96);
}

.search-result-link-accent {
    background: #0f172a;
    border-color: #0f172a;
    color: #f8fafc;
}

.search-result-link-accent:hover {
    background: #1e293b;
}

.search-result-snippet {
    color: #475569;
    word-break: break-word;
}

.search-result-snippet mark {
    padding: 0 3px;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.18);
    color: #7c2d12;
    font-weight: 700;
}

.search-empty-card {
    padding: 28px;
    border-radius: 28px;
}

.search-empty-card-global {
    gap: 14px;
    background: linear-gradient(135deg, rgba(255, 252, 247, 0.92), rgba(244, 237, 227, 0.82));
}

.search-empty-card h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.32rem;
}

.search-empty-card p {
    color: var(--muted);
}

.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.section-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-heading-list {
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.section-heading-list-compact {
    margin-top: 8px;
}

.home-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 4px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.home-list-heading-compact {
    margin-top: 8px;
}

.home-list-heading-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.home-list-heading-main span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.home-list-heading-main h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.home-list-heading-actions {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.home-list-heading-actions p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.home-list-heading-buttons {
    display: grid;
    gap: 8px;
}

.comments-list-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 16px;
    padding: 6px 4px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.comments-list-heading-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.comments-list-heading-main span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.comments-list-heading-main h2 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.comments-list-heading-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    min-width: max-content;
}

.comments-list-heading-actions p {
    margin: 0;
    white-space: nowrap;
    color: var(--muted);
    font-weight: 600;
}

/* home-list-heading margins handled in base rules above */

.home-list-heading-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
}

.home-list-heading-buttons .section-action-link,
.home-list-heading-buttons .section-toggle-button {
    flex: 0 0 auto;
    flex-shrink: 0;
    line-height: 1;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
}

.home-page .search-results-stats,
.home-page .pagination {
    scrollbar-width: none;
}

.home-page .search-results-stats::-webkit-scrollbar,
.home-page .pagination::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.section-toggle-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.section-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.section-toggle-button:hover,
.section-action-link:hover {
    background: rgba(255, 255, 255, 0.92);
}

.article-list.is-collapsed,
.pagination-shell.is-collapsed {
    display: none;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    min-height: 280px;
    padding: 26px;
    border-radius: 28px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.article-card::before,
.detail-layout::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%);
}

.article-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    opacity: 0.85;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(51, 65, 85, 0.18);
}

.article-meta,
.article-footer,
.comment-meta,
.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-meta,
.comment-meta,
.article-footer span,
.article-card p,
.detail-head p,
.info-card p,
.site-footer p {
    color: var(--muted);
}

.article-meta,
.article-footer span,
.comment-feed-article-meta {
    color: #526274;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.article-meta,
.article-footer,
.comment-feed-article-meta {
    line-height: 1.45;
}

.article-meta span,
.article-footer span,
.comment-feed-article-meta span {
    display: inline-flex;
    align-items: center;
}

.comment-feed-article-meta-side {
    margin-top: 0;
    justify-content: flex-end;
}

.comment-feed-article-meta-side span {
    color: #6f7f90;
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.site-footer {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 24px;
    text-align: center;
}

.site-footer-global {
    width: min(980px, calc(100% - 32px));
    margin: 32px auto 24px;
}

.site-footer-shell {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 244, 235, 0.88)),
        rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: left;
}

.site-footer-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.site-footer-brand-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #526274;
    font-size: 0.98rem;
}

.site-footer-home,
.site-footer-powered a {
    color: inherit;
}

.site-footer-powered {
    color: #607080;
}

.site-footer-brand-line strong {
    color: var(--text);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.05rem;
}

.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #687789;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.site-footer-meta a,
.site-footer-copy a,
.site-footer-support a,
.site-footer-records a {
    color: var(--ocean);
}

.site-footer-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(29, 78, 137, 0.1);
    font-weight: 700;
}

.site-footer-copy,
.site-footer-support,
.site-footer-records {
    margin: 0;
    color: #607080;
    font-size: 0.95rem;
    line-height: 1.9;
}

.site-footer-copy strong,
.site-footer-support strong {
    color: var(--text);
    margin-right: 0.1em;
}

.site-footer-copy a,
.site-footer-support a {
    font-weight: 600;
}

.site-footer-copy a+a,
.site-footer-support a+a {
    margin-left: 0.2em;
}

.site-footer-support span {
    color: #7a8795;
    margin: 0 0.45em 0 0.2em;
}

.site-footer-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75em;
    height: 1.75em;
    margin-right: 0.35em;
    padding: 0 0.45em;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(29, 78, 137, 0.12));
    color: #274156;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.site-footer-records {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 4px;
}

.site-footer-records a {
    display: inline-flex;
    align-items: center;
}

.article-card h3 {
    font-size: 1.55rem;
    line-height: 1.35;
}

.article-footer span {
    min-width: 0;
}

.article-footer a,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fffdf9;
    font-weight: 700;
}

.accent-sunrise .article-footer a,
.accent-sunrise .back-link,
.accent-sunrise .comments-head strong,
.accent-sunrise .info-card strong {
    background: var(--sunrise);
}

.accent-sunrise.article-card::after,
.accent-sunrise.detail-layout::after {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.18), var(--sunrise), rgba(217, 119, 6, 0.18));
}

.accent-forest .article-footer a,
.accent-forest .back-link,
.accent-forest .comments-head strong,
.accent-forest .info-card strong {
    background: var(--forest);
}

.accent-forest.article-card::after,
.accent-forest.detail-layout::after {
    background: linear-gradient(90deg, rgba(47, 107, 83, 0.18), var(--forest), rgba(47, 107, 83, 0.18));
}

.accent-ocean .article-footer a,
.accent-ocean .back-link,
.accent-ocean .comments-head strong,
.accent-ocean .info-card strong {
    background: var(--ocean);
}

.accent-ocean.article-card::after,
.accent-ocean.detail-layout::after {
    background: linear-gradient(90deg, rgba(29, 78, 137, 0.18), var(--ocean), rgba(29, 78, 137, 0.18));
}

.page-detail {
    width: min(980px, calc(100% - 32px));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 20px;
}

.detail-main {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(255, 249, 241, 0.76));
    box-shadow: var(--shadow);
}

.detail-head p {
    margin-top: 16px;
    font-size: 1.05rem;
}

.detail-head h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.18;
}

.detail-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.detail-title-link:hover {
    color: #0f4c81;
}

.article-body {
    display: grid;
    gap: 18px;
    font-size: 1.04rem;
}

.article-body .rich-content-title {
    scroll-margin-top: 28px;
}

.article-body a,
.comment-content a {
    color: #0f4c81;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    word-break: break-word;
}

.article-body p,
.comment-content p {
    margin: 0;
}

.article-body img,
.comment-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 50vh;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rich-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
    cursor: zoom-in;
}

.rich-image.is-pending {
    aspect-ratio: var(--rich-image-ratio, 16 / 10);
}

.rich-image-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background:
        radial-gradient(circle at 76% 24%, rgba(196, 186, 167, 0.28) 0, rgba(196, 186, 167, 0.28) 7px, transparent 8px),
        linear-gradient(135deg, rgba(244, 241, 236, 0.72), rgba(250, 248, 244, 0.58));
    pointer-events: none;
    opacity: 0.86;
    transform: scale(1);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.rich-image-placeholder::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(180deg, transparent 0%, rgba(215, 208, 195, 0.08) 12%, rgba(223, 217, 208, 0.42) 100%);
    clip-path: polygon(0 100%, 0 72%, 24% 46%, 42% 64%, 60% 28%, 100% 78%, 100% 100%);
}

.rich-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 40%, transparent 80%);
    transform: translateX(-100%);
    opacity: 0;
    animation: rich-image-shimmer 2.2s ease-in-out infinite;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.rich-image.is-pending::before {
    opacity: 1;
}

.rich-lazy-image {
    min-height: 180px;
    width: 100%;
    max-height: 50vh;
    opacity: 0.08;
    transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease;
    filter: saturate(0.86) blur(0.6px);
    object-fit: contain;
}

.rich-lazy-image.is-loaded {
    opacity: 1;
    filter: none;
}

.rich-image.is-loaded .rich-image-placeholder {
    opacity: 0;
    transform: scale(1.02);
}

.rich-image.is-loaded::before {
    display: none;
}

.rich-lazy-image.is-error {
    opacity: 0;
    filter: grayscale(0.25);
}

.article-body video,
.comment-content video {
    width: 100%;
    max-height: 50vh;
    border-radius: 18px;
    background: #0f172a;
}

.article-body pre,
.comment-content pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.article-body pre code,
.comment-content pre code {
    display: block;
    font-size: 0.92rem;
    line-height: 1.75;
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.rich-code-shell {
    display: grid;
    gap: 0;
}

.rich-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-body .rich-media.rich-image,
.comment-content .rich-media.rich-image,
.rich-image {
    width: auto !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rich-image::before,
.rich-image.is-loaded::before {
    display: none !important;
    background: transparent !important;
    animation: none !important;
}

.article-body img,
.comment-content img,
.article-body .rich-image img,
.article-body .rich-lazy-image,
.article-body .rich-lazy-image.is-loaded,
.comment-content .rich-image img,
.comment-content .rich-lazy-image,
.comment-content .rich-lazy-image.is-loaded {
    width: auto !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.article-body video,
.comment-content video,
.rich-media.rich-video video {
    width: auto !important;
    max-width: 50% !important;
    height: auto !important;
}

.rich-code-meta,
.rich-code-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rich-code-lang {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 14px 14px 0 0;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rich-code-lines {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 14px 14px 0 0;
    background: #1f2937;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
}

.rich-code-toggle,
.rich-code-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px 14px 0 0;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rich-code-toggle {
    background: #0f766e;
}

.rich-code-toggle:hover {
    background: #0d9488;
}

.rich-code-copy {
    background: #334155;
}

.rich-code-copy:hover {
    background: #475569;
}

.rich-code-copy.is-copied {
    background: #166534;
    color: #dcfce7;
}

.rich-code-copy.is-error {
    background: #991b1b;
    color: #fee2e2;
}

.rich-code-shell pre {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.article-body .chroma,
.comment-content .chroma {
    margin: 0;
    overflow-x: auto;
    border-radius: 0 20px 20px 20px;
}

.article-body .chroma code,
.comment-content .chroma code,
.rich-code-shell pre code {
    font-family: "Consolas", "SFMono-Regular", monospace;
    counter-reset: rich-code-line;
}

.article-body .chroma code>span,
.comment-content .chroma code>span,
.rich-code-shell pre code>span {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    counter-increment: rich-code-line;
}

.article-body .chroma code>span::before,
.comment-content .chroma code>span::before,
.rich-code-shell pre code>span::before {
    content: counter(rich-code-line);
    display: flex;
    justify-content: flex-end;
    color: #94a3b8;
    user-select: none;
}

.article-body .chroma code>span>span,
.comment-content .chroma code>span>span,
.rich-code-shell pre code>span>span {
    min-width: 0;
}

.rich-code-shell.is-collapsible .chroma,
.rich-code-shell.is-collapsible pre {
    transition: max-height 0.28s ease;
}

.rich-code-shell.is-collapsed .chroma,
.rich-code-shell.is-collapsed pre {
    max-height: 23rem;
    overflow: hidden;
    position: relative;
}

.rich-code-shell.is-collapsed .chroma::after,
.rich-code-shell.is-collapsed pre::after {
    content: "";
    position: sticky;
    left: 0;
    bottom: 0;
    display: block;
    height: 72px;
    margin-top: -72px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.98));
    pointer-events: none;
}

.article-body :not(pre)>code,
.comment-content :not(pre)>code {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 0.92em;
}

.rich-media {
    display: grid;
    gap: 10px;
}

.rich-media a {
    font-weight: 700;
}

.rich-bq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7em;
    height: 1.7em;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7cc, #ffd978);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18);
    font-size: 1.05em;
    vertical-align: text-bottom;
}

.rich-floor-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 0.92rem;
    font-weight: 700;
}

.rich-floor-tag sup {
    top: -0.25em;
    font-size: 0.76em;
}

.rich-floor-tag:hover {
    color: #0b3a62;
}

.rich-rehh {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 8px 0 0 14px;
    border-left: 2px solid rgba(15, 76, 129, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rich-rehh.is-collapsed .rich-rehh-body {
    max-height: 220px;
    overflow: hidden;
    position: relative;
}

.rich-rehh.is-collapsed .rich-rehh-body::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0), rgba(255, 250, 244, 1));
}

.rich-rehh-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #7c8a9a;
    font-size: 0.78rem;
    font-weight: 600;
}

.rich-rehh-place {
    color: #475569;
    font-weight: 700;
}

.rich-rehh-body {
    display: grid;
    gap: 6px;
}

.rich-rehh-toggle {
    justify-self: start;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.rich-rehh-toggle:hover {
    color: #0b3a62;
}

@keyframes rich-image-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.comment-content {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-item,
.comment-feed-item,
.comment-feed-body,
.comment-content>*,
.comment-content p,
.comment-content div,
.comment-content blockquote,
.comment-content ul,
.comment-content ol,
.comment-content li,
.comment-content figure,
.comment-content table,
.rich-rehh,
.rich-rehh-body,
.rich-quote-inline {
    min-width: 0;
    max-width: 100%;
}

.comment-content a,
.comment-content span,
.comment-content strong,
.comment-content em,
.comment-content del {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-content pre,
.comment-content .chroma,
.rich-code-shell,
.rich-code-shell pre {
    min-width: 0;
    max-width: 100%;
}

.comment-content pre code,
.comment-content .chroma code,
.rich-code-shell pre code,
.comment-content pre code>span,
.comment-content .chroma code>span,
.rich-code-shell pre code>span {
    word-break: normal;
    overflow-wrap: normal;
}

.comment-meta-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-floor-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 0.9rem;
    font-weight: 700;
}

.comment-floor-link sup {
    top: -0.25em;
    font-size: 0.76em;
}

.comment-floor-link:hover {
    color: #0b3a62;
}

.article-body blockquote {
    margin: 0;
    padding: 18px 22px;
    border-left: 4px solid rgba(31, 41, 55, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    color: #374151;
}

.rich-quote-inline {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 4px;
    padding: 0 0 0 10px;
    border-left: 2px solid rgba(15, 76, 129, 0.18);
    border-radius: 0;
    background: transparent;
    color: #526274;
    font-size: 0.92rem;
}

.rich-quote-inline p {
    margin: 0;
}

.rich-content-title {
    margin: 0;
    padding: 18px 20px 14px;
    border-left: 4px solid rgba(217, 119, 6, 0.72);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 244, 214, 0.9));
    color: #7c2d12;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    font-weight: 700;
    line-height: 1.45;
}

.rich-color-tag {
    font-weight: 700;
}

.rich-inline-strong {
    font-weight: 700;
}

.rich-inline-em {
    font-style: italic;
}

.rich-inline-underline {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.rich-inline-strike {
    color: #64748b;
}

.rich-align-block {
    display: grid;
    gap: 12px;
}

.rich-align-left {
    justify-items: start;
    text-align: left;
}

.rich-align-center {
    justify-items: center;
    text-align: center;
}

.rich-align-right {
    justify-items: end;
    text-align: right;
}

.rich-divider {
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0));
}

.rich-attachment,
.rich-legacy-media {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.rich-attachment-label,
.rich-legacy-media strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
}

.rich-attachment-link,
.rich-legacy-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.rich-attachment-link:hover,
.rich-legacy-media a:hover {
    background: rgba(15, 23, 42, 0.14);
}

.info-card,
.comments-card {
    padding: 24px;
    border-radius: 28px;
}

.detail-toc-card {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 272px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    z-index: 1000;
    overflow: hidden;
    padding: 16px 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(248, 242, 232, 0.92));
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.2);
}

.detail-toc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-toc-head span {
    margin-bottom: 6px;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
}

.detail-toc-head strong {
    display: block;
    font-size: 1.02rem;
    font-family: "Noto Serif SC", "Songti SC", serif;
    line-height: 1.2;
    color: #1f2937;
}

.detail-toc-toggle {
    min-height: 32px;
    width: 32px;
    min-width: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.detail-toc-toggle:disabled {
    opacity: 0.45;
    cursor: default;
}

.detail-toc-nav {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding-right: 2px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
}

.detail-toc-link {
    position: relative;
    display: block;
    padding: 8px 10px 8px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.42;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-toc-link::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(124, 45, 18, 0.28);
    transform: translateY(-50%);
}

.detail-toc-link:hover,
.detail-toc-link.is-active {
    background: rgba(255, 244, 214, 0.94);
    color: #7c2d12;
    transform: translateX(-2px);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.14);
}

.detail-toc-link.is-active::before,
.detail-toc-link:hover::before {
    background: #d97706;
}

.detail-toc-card.is-collapsed .detail-toc-nav {
    display: none;
}

.detail-toc-card.is-collapsed {
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
}

.detail-toc-card.is-collapsed .detail-toc-head {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-toc-card.is-collapsed .detail-toc-head>div {
    display: none;
}

.detail-toc-card.is-collapsed .detail-toc-toggle {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
}

.comments-card {
    padding: 30px;
    scroll-margin-top: 24px;
}

.detail-action-dock {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483000;
    display: grid;
    --detail-action-gap: 10px;
    gap: var(--detail-action-gap);
    transition: gap 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-action-dock.is-compact {
    --detail-action-gap: 7px;
}

.detail-action-dock.is-minimal {
    --detail-action-gap: 4px;
}

.detail-action-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    transform: translateY(0) scale(1);
    will-change: transform, opacity;
    max-height: 44px;
    overflow: hidden;
    transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s cubic-bezier(0.22, 1, 0.36, 1), transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.26s ease;
}

.detail-action-dock .detail-action-button {
    animation: detail-action-button-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.detail-action-dock .detail-action-button:nth-child(2) {
    animation-delay: 0.04s;
}

.detail-action-dock .detail-action-button:nth-child(3) {
    animation-delay: 0.08s;
}

.detail-action-dock .detail-action-button:nth-child(4) {
    animation-delay: 0.12s;
}

.detail-action-button-icon {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 1.1rem;
}

.detail-action-button:hover {
    background: #0f172a;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.22);
}

.detail-action-button[disabled] {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.detail-action-button:focus-visible,
.search-button:focus-visible,
.search-result-link:focus-visible,
.pagination-link:focus-visible,
.section-toggle-button:focus-visible,
.section-action-link:focus-visible,
.comment-feed-toggle:focus-visible,
.comment-feed-floating-collapse:focus-visible,
.error-action-primary:focus-visible,
.error-action-secondary:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.16), 0 18px 38px rgba(15, 23, 42, 0.18);
}

.detail-action-button-top.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
    transform: translateY(12px) scale(0.9);
}

.detail-action-button-bottom.is-hidden,
.detail-action-button-quick-comment.is-hidden-by-compose,
.detail-action-button.is-hidden-in-comments {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
    transform: translateY(12px) scale(0.9);
}

.detail-action-button-bottom {
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.96), rgba(21, 128, 61, 0.92));
}

.detail-action-button-bottom:hover {
    background: linear-gradient(180deg, rgba(21, 128, 61, 0.98), rgba(22, 163, 74, 0.94));
}

@keyframes detail-action-button-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.info-card strong,
.comments-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fffdf9;
    font-size: 0.96rem;
}

.detail-toc-card .detail-toc-head strong {
    min-width: 0;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
    justify-content: flex-start;
}

.info-card p {
    margin-top: 14px;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.comment-item {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 20px;
    background: var(--paper-strong);
    scroll-margin-top: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-item.is-targeted {
    border-color: rgba(217, 119, 6, 0.38);
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 236, 0.92));
    box-shadow: 0 18px 42px rgba(217, 119, 6, 0.14);
}

.comment-item.is-reply-targeted {
    border-color: rgba(15, 76, 129, 0.26);
    background: linear-gradient(180deg, rgba(243, 249, 255, 0.96), rgba(236, 246, 255, 0.92));
    box-shadow: 0 18px 42px rgba(15, 76, 129, 0.12);
}

.comment-item.is-targeted.is-reply-targeted {
    border-color: rgba(14, 116, 144, 0.34);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 249, 255, 0.94));
    box-shadow: 0 20px 44px rgba(14, 116, 144, 0.14);
}

.comment-item p {
    margin-top: 12px;
}

.comment-empty {
    background: rgba(255, 252, 247, 0.82);
}

.comment-feed-shell {
    padding: 20px;
    border-radius: 26px;
}

.comment-feed-list {
    margin-top: 14px;
}

.comment-links-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.comment-tag-shell {
    gap: 14px;
}

.comment-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    min-width: 0;
}

.comment-tag-pagination {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.comment-tag-pagination-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.comment-tag-pagination-nav.pagination,
.comment-tag-pagination-nav.pagination-comments {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
}

.comment-tag-pagination-nav::-webkit-scrollbar {
    display: none;
}

.comment-tag-pagination-nav .pagination-link,
.comment-tag-pagination-nav .pagination-link-nav {
    width: auto;
    min-width: 40px;
    flex: 0 0 auto;
    grid-column: auto;
    scroll-snap-align: start;
}

.comment-tag-link {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0f4c81;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.comment-tag-link span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-tag-link em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    flex-shrink: 0;
    min-width: 22px;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.12);
    color: #0f4c81;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.comment-tag-link:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 76, 129, 0.28);
}

.comment-feed-item {
    gap: 12px;
    padding: 16px;
}

.comment-link-item {
    gap: 12px;
    padding: 16px;
}

.comment-link-url {
    display: grid;
    gap: 6px;
}

.comment-link-url a {
    color: #0f4c81;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

.comment-link-url span {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-all;
}

.comment-link-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.comment-link-meta a {
    color: #0f4c81;
    font-weight: 600;
}

.comment-feed-body {
    position: relative;
    --comment-feed-collapsed-height: 14rem;
}

.comment-feed-body.is-collapsed {
    max-height: var(--comment-feed-collapsed-height);
    overflow: hidden;
}

.comment-feed-body.is-collapsed::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0), rgba(255, 253, 249, 0.96));
    pointer-events: none;
}

.comment-feed-title {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.08rem;
    line-height: 1.42;
}

.comment-feed-title a:hover {
    color: #0f4c81;
}

.comment-feed-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -2px;
    line-height: 1.4;
}

.comment-feed-article-meta span {
    display: inline-flex;
    align-items: center;
}

.comment-search-hit {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(255, 253, 248, 0.92));
}

.comment-search-hit-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 700;
}

.comment-search-hit-snippet {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.7;
}

.comment-search-hit-snippet mark {
    padding: 0 0.24em;
    border-radius: 0.35em;
    background: rgba(217, 119, 6, 0.18);
    color: #7c2d12;
    font-weight: 700;
}

.comment-feed-controls {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 4px;
}

.comment-feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-feed-toggle {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.comment-feed-toggle:hover {
    background: rgba(255, 255, 255, 0.94);
}

.comment-feed-toggle.is-hidden {
    display: none;
}

.comment-feed-floating-collapse {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    cursor: pointer;
    z-index: 2147483100;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.comment-feed-floating-collapse.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(14px);
}

.comments-page .search-brand-shell {
    padding: 22px 24px;
}

.comments-page .search-brand-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.comments-page .search-brand-copy p {
    font-size: 0.96rem;
}

.comments-page .comment-meta {
    align-items: start;
}

.comments-page .comment-meta-main {
    gap: 8px;
}

.comments-page .comment-content {
    gap: 10px;
    margin-top: 0;
}

.comments-page .comment-content p {
    margin-top: 0;
}

.comments-page .comment-feed-item {
    padding: 15px;
}

.comments-page .comment-feed-actions {
    gap: 10px;
}

.comments-back-top {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 2147483640;
}

.comments-page .comments-action-dock {
    right: 22px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 2147483640;
}

.comments-page .comments-action-dock .comments-back-top {
    position: static;
    right: auto;
    bottom: auto;
}

.comments-page .comments-action-dock .comments-go-bottom {
    position: static;
    right: auto;
    bottom: auto;
}

.home-page .home-action-dock {
    z-index: 2147483200;
}

.error-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.error-card {
    width: min(720px, 100%);
    padding: 38px;
    border-radius: 32px;
    text-align: center;
}

.error-card h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.error-card p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.error-action-primary,
.error-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.error-action-primary {
    background: #0f172a;
    color: #f8fafc;
}

.error-action-secondary {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.rich-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2147483646;
    isolation: isolate;
}

.rich-lightbox.is-open {
    display: flex;
}

.rich-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
}

.rich-lightbox-dialog {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    pointer-events: none;
    z-index: 2147483647;
}

.rich-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.rich-lightbox-zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 68px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: auto;
}

.rich-lightbox-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    pointer-events: none;
}

.rich-lightbox-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

.rich-lightbox-reset:hover {
    background: rgba(248, 250, 252, 0.24);
}

.rich-lightbox-reset:disabled {
    opacity: 0.45;
    cursor: default;
}

.rich-lightbox-image {
    display: block;
    justify-self: center;
    align-self: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
    object-fit: contain;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    transform-origin: 50% 50%;
    transition: transform 0.12s ease;
    will-change: transform;
}

.rich-lightbox-image.is-zoomed {
    cursor: pointer;
}

.rich-lightbox-image.is-dragging {
    cursor: pointer;
    transition: none;
}

.rich-lightbox-close {
    justify-self: end;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.18);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

.rich-lightbox-close:hover {
    background: rgba(248, 250, 252, 0.3);
}

body.is-lightbox-open,
body.is-gallery-open {
    overflow: hidden;
}

.article-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2147483645;
}

.article-gallery-modal.is-open {
    display: flex;
}

.article-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(5px);
}

.article-gallery-dialog {
    position: relative;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(255, 252, 247, 0.98), rgba(244, 237, 227, 0.95));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    z-index: 1;
}

.article-gallery-head,
.article-gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.article-gallery-head span {
    display: block;
    color: #8a5a1f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-gallery-head strong {
    display: block;
    margin-top: 4px;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: #0f172a;
}

.article-gallery-count,
.article-gallery-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 52px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.article-gallery-count {
    background: rgba(148, 163, 184, 0.16);
    color: #334155;
}

.article-gallery-close {
    border: 0;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    cursor: pointer;
}

.article-gallery-summary {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.article-gallery-grid {
    overflow: auto;
    display: grid;
    gap: 14px;
    padding-right: 4px;
    align-content: start;
    min-width: 0;
    max-width: 100%;
}

.article-gallery-tile {
    display: block;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14), 0 16px 34px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-gallery-tile:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18), 0 22px 38px rgba(15, 23, 42, 0.12);
}

.article-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(226, 232, 240, 0.72);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-gallery-image[data-src] {
    opacity: 0;
    transform: scale(0.985);
}

.article-gallery-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.article-gallery-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    color: #64748b;
    font-weight: 700;
}

.article-gallery-empty.is-hidden {
    display: none;
}

.article-gallery-pagination {
    display: grid;
    gap: 10px;
}

.article-gallery-pagination.is-hidden {
    display: none;
}

.article-gallery-pagination-summary {
    color: #64748b;
    font-size: 0.88rem;
    text-align: center;
}

.article-gallery-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 8px 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.article-gallery-pagination-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.article-gallery-pagination-nav .pagination-link,
.article-gallery-pagination-nav .pagination-link-nav {
    min-width: 40px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.article-gallery-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 40px;
    padding: 0 4px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1024px) {

    .comments-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .comments-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-list,
    .detail-layout,
    .hero {
        grid-template-columns: 1fr;
    }

    .page-detail {
        width: min(100% - 24px, 100% - 24px);
    }

    .site-footer-global {
        width: min(100% - 24px, 100% - 24px);
    }

    .search-shell-sticky {
        top: 10px;
    }

    .article-gallery-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 18px;
        border-radius: 24px;
    }

    .article-gallery-grid {
        gap: 10px;
    }

    .article-gallery-pagination-nav {
        justify-content: flex-start;
    }

    .detail-toc-card {
        top: 12px;
        right: 12px;
        width: min(248px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .detail-toc-nav {
        max-height: calc(100vh - 180px);
    }

    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 900px) {

    .home-header {
        top: 10px;
        padding: 14px 18px;
        gap: 12px;
    }

    .comments-header {
        padding: 14px 18px;
        gap: 12px;
    }

    .search-form-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .search-scope {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: space-between;
    }

    .comments-page .comment-content .chroma,
    .comments-page .rich-code-shell pre {
        overflow-x: auto !important;
    }

    .comments-page .comment-content .chroma code,
    .comments-page .rich-code-shell pre code {
        counter-reset: none !important;
    }

    .comments-page .comment-content .chroma code>span,
    .comments-page .rich-code-shell pre code>span {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        counter-increment: none !important;
    }

    .comments-page .comment-content .chroma code>span::before,
    .comments-page .rich-code-shell pre code>span::before {
        content: none !important;
        display: none !important;
    }

    .comments-page .comment-content .chroma code>span>span,
    .comments-page .rich-code-shell pre code>span>span {
        display: inline !important;
        min-width: auto !important;
    }

    .comments-page .rich-code-toolbar {
        align-items: center !important;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        line-height: 1.2 !important;
    }

    .comments-page .rich-code-shell,
    .comments-page .comment-content .rich-code-shell {
        gap: 0 !important;
        margin: 0 !important;
    }

    .comments-page .rich-code-toolbar,
    .comments-page .comment-content .rich-code-toolbar {
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .comments-page .comment-content pre,
    .comments-page .comment-content .chroma,
    .comments-page .rich-code-shell pre,
    .comments-page .rich-code-shell .chroma {
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        border-radius: 0 !important;
    }

    .search-scope-option {
        flex: 1;
    }

    .search-scope-option span {
        width: 100%;
        min-width: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading-actions {
        width: 100%;
    }
}

@media (max-width: 720px) {

    .home-header {
        position: static;
        top: auto;
        padding: 14px 18px;
        gap: 12px;
        border-radius: 22px;
    }

    .home-header-tagline {
        display: none;
    }

    .comments-header {
        padding: 14px 18px;
        gap: 12px;
        border-radius: 22px;
    }

    .comments-header-tagline {
        display: none;
    }

    .page-shell,
    .page-detail {
        width: min(100% - 20px, 100% - 20px);
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .site-footer-global {
        width: min(100% - 20px, 100% - 20px);
    }

    .hero-copy,
    .metric-card,
    .article-card,
    .detail-main,
    .info-card,
    .comments-card,
    .site-footer,
    .site-footer-shell {
        padding-left: 18px;
        padding-right: 18px;
        border-radius: 22px;
    }

    .site-footer-shell {
        gap: 14px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .site-footer-brand-row {
        align-items: flex-start;
    }

    .site-footer-copy,
    .site-footer-support,
    .site-footer-records {
        font-size: 0.92rem;
        line-height: 1.82;
    }

    .search-shell {
        padding: 14px;
    }

    .search-shell-sticky {
        position: static;
        top: auto;
    }

    .search-brand-shell {
        padding: 22px 20px;
        border-radius: 24px;
    }

    .comments-hero-shell {
        padding: 14px;
    }

    .comments-hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .comment-search-meta {
        align-items: flex-start;
    }

    .search-form-row,
    .comment-search-row,
    .section-heading-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .home-list-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 14px;
    }

    .home-page .home-list-heading-main,
    .home-page .home-list-heading-actions {
        min-width: 0;
    }

    .home-page .home-list-heading-actions {
        width: auto;
        justify-items: end;
        text-align: right;
    }

    .home-page .home-list-heading-buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
        justify-items: end;
    }

    .home-page .home-list-latest-comments {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .home-page .home-list-toggle-button {
        width: auto;
        justify-self: end;
    }

    .search-scope {
        width: 100%;
        justify-content: stretch;
    }

    .search-scope-option {
        flex: 1;
    }

    .search-scope-option span {
        width: 100%;
        min-width: 0;
    }

    .search-results-stats,
    .search-empty-actions,
    .search-results-summary,
    .search-result-meta,
    .search-result-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .search-results-summary {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        gap: 10px 12px;
        padding: 2px 2px 0;
    }

    .home-page .search-results-summary p {
        grid-column: 1 / -1;
    }

    .home-page .search-results-stats {
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .home-page .search-stat-chip {
        width: auto;
        min-width: 128px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .home-page .search-results-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 6px 12px;
    }

    .home-page .search-results-shell {
        gap: 20px;
    }

    .home-page .search-results-group {
        gap: 12px;
    }

    .home-page .search-result-list {
        gap: 12px;
    }

    .home-page .search-results-heading p {
        text-align: right;
    }

    .home-page .search-result-meta {
        flex-direction: row;
        align-items: center;
        gap: 8px 10px;
    }

    .home-page .search-result-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-page .search-result-card {
        gap: 10px;
    }

    .home-page .search-result-card-article {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .home-page .search-result-card-comment {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .home-page .search-empty-card {
        gap: 10px;
    }

    .home-page .pagination-shell {
        gap: 12px;
    }

    .home-page .pagination-info {
        padding: 12px 14px;
    }

    .search-stat-chip,
    .search-empty-actions .search-result-link,
    .search-result-actions .search-result-link {
        width: 100%;
        justify-content: space-between;
    }

    .home-page .search-result-actions .search-result-link {
        width: 100%;
        justify-content: center;
    }

    .search-results-summary strong {
        width: fit-content;
    }

    .search-result-card,
    .search-empty-card,
    .pagination-shell {
        padding: 18px;
        border-radius: 22px;
    }

    .search-result-card h3,
    .article-card h3 {
        font-size: 1.2rem;
    }

    .search-button,
    .comment-search-button {
        width: 100%;
    }

    .home-page .home-list-heading-buttons .section-toggle-button {
        width: auto;
    }

    .comment-feed-controls,
    .comment-feed-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-feed-actions .search-result-link,
    .comment-feed-toggle,
    .comment-feed-floating-collapse {
        width: 100%;
        justify-content: center;
    }

    .comment-feed-floating-collapse {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        transform: none;
    }

    .comment-feed-floating-collapse.is-hidden {
        transform: translateY(14px);
    }

    .detail-toc-card {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        width: min(236px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        max-height: min(calc(100vh - 108px), 420px);
        margin-top: 0;
        padding: 16px;
        z-index: 2147482940;
        box-shadow: var(--shadow);
    }

    .detail-toc-nav {
        max-height: calc(100vh - 176px);
    }

    .hero-copy,
    .detail-main {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .article-card {
        min-height: auto;
    }

    .detail-head h1,
    .hero-copy h1 {
        font-size: 2.1rem;
    }

    .article-footer,
    .comment-meta,
    .comments-head,
    .hero-tags,
    .pagination-info,
    .error-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-meta,
    .search-results-summary,
    .search-result-meta {
        align-items: flex-start;
    }

    .home-page .article-footer {
        flex-direction: row;
        align-items: center;
    }

    .home-page .article-footer a {
        width: auto;
        min-width: 100px;
        flex: 0 0 auto;
    }

    .home-page .article-footer span {
        flex: 1 1 auto;
    }

    .pagination,
    .pagination-comments {
        width: 100%;
    }

    .pagination {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pagination-link,
    .pagination-link-nav,
    .error-action-primary,
    .error-action-secondary {
        width: 100%;
    }

    .pagination-link-nav {
        grid-column: span 2;
    }

    .home-page .pagination {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .home-page .pagination-link,
    .home-page .pagination-link-nav {
        width: auto;
        min-width: 42px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .home-page .pagination-link-nav {
        grid-column: auto;
    }

    .rich-code-toolbar {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .rich-code-meta,
    .rich-code-actions,
    .rich-code-lang,
    .rich-code-lines,
    .rich-code-toggle,
    .rich-code-copy {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
    }

    .rich-code-shell pre {
        border-radius: 20px;
    }

    .rich-rehh-meta {
        align-items: flex-start;
    }

    .rich-lightbox {
        padding: 16px;
    }

    .article-footer a,
    .detail-action-button {
        width: 100%;
    }

    .detail-action-dock {
        left: 10px;
        right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --detail-action-gap: 8px;
        transition-duration: 0.22s;
    }

    .detail-page-action-dock {
        left: auto;
        right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: 1fr;
        justify-items: end;
        width: auto;
    }

    .detail-action-dock.is-compact {
        --detail-action-gap: 6px;
    }

    .detail-action-dock.is-minimal {
        --detail-action-gap: 4px;
    }

    .detail-action-dock .detail-action-button {
        animation: none;
        transition-duration: 0.2s;
    }

    .detail-page-action-dock .detail-action-button {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
    }

    .detail-action-button:hover {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    }

    .comments-page .comments-action-dock {
        left: auto;
        right: 10px;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: 1fr;
        justify-items: end;
        width: auto;
    }

    .comments-page .comments-action-dock .detail-action-button {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
    }

    .comments-page .page-shell {
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    .home-page .home-action-dock,
    .navigation-page .home-action-dock {
        left: auto;
        right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: 1fr;
        justify-items: end;
        width: auto;
    }

    .home-page .home-action-dock .detail-action-button,
    .navigation-page .home-action-dock .detail-action-button {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        padding: 0;
    }

    .comments-back-top {
        right: auto;
        bottom: auto;
    }

    .detail-layout {
        gap: 18px;
    }

    .detail-main {
        gap: 18px;
    }

    .detail-head {
        display: grid;
        gap: 12px;
    }

    .detail-head p {
        max-width: none;
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .detail-head .hero-tags,
    .detail-head .hero-tags-compact {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .detail-head .hero-tags span,
    .detail-head .hero-tags-compact span {
        width: auto;
    }

    .article-body {
        gap: 16px;
        font-size: 1rem;
    }

    .article-body blockquote,
    .rich-content-title,
    .rich-quote-inline,
    .rich-rehh {
        padding: 16px;
    }

    .detail-layout .comments-card,
    .comments-page .comments-card {
        gap: 16px;
    }

    .detail-layout .comment-list,
    .comments-page .comment-feed-list {
        display: grid;
        gap: 12px;
    }

    .detail-layout .comment-item,
    .comments-page .comment-feed-item {
        padding: 14px;
        border-radius: 18px;
    }

    .detail-layout .comment-meta,
    .comments-page .comment-meta,
    .comments-page .comments-head,
    .comments-page .section-heading-actions {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .detail-layout .comments-head,
    .comments-page .comments-head,
    .comments-page .section-heading-list-compact {
        gap: 10px 12px;
    }

    .detail-layout .comments-head span,
    .comments-page .comments-head span,
    .comments-page .section-heading-list-compact>span {
        margin-bottom: 0;
    }

    .detail-layout .comments-head strong,
    .comments-page .comments-head strong {
        min-width: 0;
        flex: 0 0 auto;
    }

    .detail-layout .comment-meta-main,
    .comments-page .comment-meta-main {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .detail-layout .comment-meta-main strong,
    .comments-page .comment-meta-main strong {
        line-height: 1.32;
    }

    .detail-layout .comment-meta-main span,
    .comments-page .comment-meta-main span {
        font-size: 0.84rem;
    }

    .detail-layout .comment-floor-link,
    .comments-page .comment-floor-link {
        flex: 0 0 auto;
        align-self: flex-start;
    }

    .detail-layout .comment-content,
    .comments-page .comment-content {
        gap: 10px;
    }

    .comments-page .section-heading-list-compact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 4px 16px;
    }

    .comments-page .section-heading-list-compact>span,
    .comments-page .section-heading-list-compact>h2 {
        grid-column: 1;
        text-align: left;
    }

    .comments-page .section-heading-list-compact h2,
    .comments-page .section-heading-list-compact p {
        margin: 0;
    }

    .comments-page .section-heading-list-compact .section-heading-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: auto;
        align-self: end;
        justify-self: end;
        align-items: flex-end;
        justify-content: flex-end;
        text-align: right;
        white-space: nowrap;
    }

    .comments-page .comment-feed-item .comment-feed-article-meta-side {
        justify-content: flex-end;
    }

    .comments-page .comment-feed-item .comment-feed-article-meta-side span {
        font-size: 0.82rem;
        font-weight: 400;
    }

    .comments-page .comment-search-hit {
        gap: 6px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .comments-page .comment-search-hit-snippet {
        font-size: 0.9rem;
        line-height: 1.62;
        display: -webkit-box;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    .comments-page .comment-feed-controls {
        gap: 10px;
        margin-top: 0;
    }

    .comments-page .comment-feed-body {
        --comment-feed-collapsed-height: 12rem;
    }

    .comments-page .comment-feed-toggle {
        width: 100%;
        justify-content: center;
    }

    .comments-page .comment-feed-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .comments-page .comment-feed-actions .search-result-link {
        width: 100%;
        justify-content: center;
    }

    .comments-page .comments-pagination-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        justify-content: flex-start;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .comments-page .comments-pagination-nav::-webkit-scrollbar {
        display: none;
    }

    .comments-page .comments-pagination-nav .pagination-link,
    .comments-page .comments-pagination-nav .pagination-link-nav {
        width: auto;
        min-width: 42px;
        flex: 0 0 auto;
        grid-column: auto;
        scroll-snap-align: start;
    }

    .pagination-comments {
        gap: 10px;
    }

    .pagination-comments .pagination {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .pagination-comments .pagination-link,
    .pagination-comments .pagination-link-nav {
        width: auto;
        min-width: 42px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .pagination-comments .pagination-link-nav {
        grid-column: auto;
    }

    .pagination-comments .pagination-info {
        padding: 14px 16px;
    }

    .detail-layout .pagination-info span,
    .comments-page .pagination-info span {
        font-size: 0.92rem;
        line-height: 1.58;
    }
}

@media (max-width: 520px) {

    .home-header {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 18px;
    }

    .home-header-brand h1 {
        font-size: 1.15rem;
    }

    .comments-header {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 18px;
    }

    .comments-header-brand h1 {
        font-size: 1.15rem;
    }

    .page-shell,
    .page-detail {
        width: min(100% - 16px, 100% - 16px);
        padding-top: 14px;
        padding-bottom: 22px;
    }

    .site-footer-global {
        width: min(100% - 16px, 100% - 16px);
    }

    .search-brand-shell,
    .comments-hero-shell,
    .search-shell,
    .hero-copy,
    .article-card,
    .detail-main,
    .comments-card,
    .site-footer,
    .site-footer-shell,
    .error-card {
        padding-left: 14px;
        padding-right: 14px;
        border-radius: 18px;
    }

    .site-footer-shell {
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-footer-brand-line,
    .site-footer-meta {
        width: 100%;
    }

    .site-footer-brand-line {
        font-size: 0.92rem;
    }

    .site-footer-brand-line strong {
        font-size: 1rem;
    }

    .site-footer-meta a {
        min-height: 28px;
        padding: 0 9px;
    }

    .site-footer-copy,
    .site-footer-support,
    .site-footer-records {
        font-size: 0.88rem;
    }

    .site-footer-support span {
        margin-right: 0.3em;
    }

    .site-footer-service-icon {
        min-width: 1.7em;
        height: 1.7em;
        margin-right: 0.32em;
        padding: 0 0.38em;
        font-size: 0.68rem;
    }

    .search-brand-shell,
    .comments-hero-shell {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .search-brand-copy h1,
    .detail-head h1,
    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .section-heading h2 {
        font-size: 1.45rem;
    }

    .home-page .home-list-heading {
        gap: 12px;
    }

    .detail-layout {
        gap: 16px;
    }

    .detail-main,
    .detail-layout .comments-card,
    .comments-page .comments-card,
    .comments-page .comment-feed-shell,
    .comments-page .pagination-shell {
        gap: 14px;
    }

    .detail-head {
        gap: 10px;
    }

    .detail-head .hero-tags,
    .detail-head .hero-tags-compact {
        gap: 6px;
    }

    .detail-head .hero-tags span,
    .detail-head .hero-tags-compact span,
    .comments-page .comments-head span,
    .comments-page .comments-head strong {
        width: fit-content;
    }

    .article-body {
        gap: 14px;
        font-size: 0.98rem;
    }

    .article-body pre,
    .comment-content pre {
        padding: 16px;
    }

    .article-body .chroma code>span,
    .comment-content .chroma code>span,
    .rich-code-shell pre code>span {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .detail-layout .comment-item,
    .comments-page .comment-feed-item {
        padding: 12px;
    }

    .detail-layout .comment-meta,
    .comments-page .comment-meta,
    .comments-page .comments-head,
    .comments-page .section-heading-list-compact,
    .comments-page .section-heading-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .comments-page .comment-search-hit {
        padding: 9px 10px;
    }

    .detail-layout .comments-head,
    .comments-page .comments-head,
    .comments-page .section-heading-list-compact {
        gap: 8px;
    }

    .detail-layout .comments-head strong,
    .comments-page .comments-head strong {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.84rem;
    }

    .detail-layout .comment-meta-main strong,
    .comments-page .comment-meta-main strong {
        font-size: 0.96rem;
    }

    .detail-layout .comment-floor-link,
    .comments-page .comment-floor-link {
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .comments-page .comment-search-hit-snippet {
        line-clamp: 3;
        -webkit-line-clamp: 3;
        font-size: 0.88rem;
    }

    .comments-page .comment-feed-controls {
        margin-top: 12px;
        gap: 12px 8px;
    }

    .comments-page .comment-feed-actions {
        margin-top: 4px;
        gap: 8px;
    }

    .pagination-comments .pagination,
    .comments-page .pagination {
        scrollbar-width: none;
    }

    .pagination-comments .pagination::-webkit-scrollbar,
    .comments-page .pagination::-webkit-scrollbar {
        display: none;
    }

    .pagination-comments .pagination-link,
    .pagination-comments .pagination-link-nav {
        min-width: 40px;
    }

    .pagination-comments .pagination-info {
        padding: 12px 14px;
    }

    .detail-layout .pagination-info,
    .comments-page .pagination-info {
        gap: 6px;
    }

    .detail-layout .pagination-info span,
    .comments-page .pagination-info span {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .comments-page .comment-feed-body {
        --comment-feed-collapsed-height: 11rem;
    }

    .home-page .search-results-shell {
        gap: 18px;
    }

    .home-page .search-results-summary {
        gap: 8px 10px;
    }

    .home-page .search-stat-chip {
        min-width: 118px;
    }

    .home-page .search-result-card {
        gap: 10px;
    }

    .home-page .pagination-info {
        padding: 10px 12px;
    }

    .home-page .home-list-heading-actions p {
        font-size: 0.92rem;
    }

    .home-page .home-list-heading-buttons .section-action-link,
    .home-page .home-list-heading-buttons .section-toggle-button {
        min-height: 36px;
        padding-left: 12px;
        padding-right: 12px;
        width: auto;
        max-width: 100%;
    }

    .search-input,
    .search-button,
    .comment-search-input,
    .comment-search-button,
    .search-scope {
        min-height: 48px;
    }

    .search-scope {
        padding: 4px;
        gap: 4px;
    }

    .search-scope-option span {
        min-width: 0;
        min-height: 38px;
        padding: 0 8px;
        font-size: 0.86rem;
    }

    .comment-item,
    .search-result-card,
    .search-empty-card,
    .pagination-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .detail-action-dock,
    .comments-page .comments-action-dock {
        gap: 8px;
    }

    .detail-page-action-dock {
        left: auto;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .home-page .home-action-dock,
    .navigation-page .home-action-dock {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .detail-action-button {
        min-height: 42px;
    }

    .comment-feed-floating-collapse {
        min-height: 42px;
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {

    .home-header {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 16px;
    }

    .home-header-brand h1 {
        font-size: 1.05rem;
    }

    .home-header-domain {
        font-size: 0.65rem;
    }

    .comments-header {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 16px;
    }

    .comments-header-brand h1 {
        font-size: 1.05rem;
    }

    .comments-header-domain {
        font-size: 0.65rem;
    }

    .page-shell,
    .page-detail {
        width: min(100% - 12px, 100% - 12px);
        padding-top: 10px;
        padding-bottom: 18px;
    }

    .site-footer-global {
        width: min(100% - 12px, 100% - 12px);
    }

    .search-brand-shell,
    .comments-hero-shell,
    .search-shell,
    .hero-copy,
    .article-card,
    .detail-main,
    .comments-card,
    .site-footer,
    .site-footer-shell,
    .error-card,
    .search-result-card,
    .search-empty-card,
    .pagination-shell,
    .comment-item {
        padding-left: 12px;
        padding-right: 12px;
        border-radius: 16px;
    }

    .search-brand-copy h1,
    .detail-head h1,
    .hero-copy h1 {
        font-size: 1.56rem;
        line-height: 1.18;
    }

    .site-footer-brand-row {
        gap: 10px;
        padding-bottom: 12px;
    }

    .site-footer-copy,
    .site-footer-support,
    .site-footer-records {
        font-size: 0.84rem;
        line-height: 1.76;
    }

    .site-footer-support a,
    .site-footer-support span {
        display: inline;
    }

    .site-footer-service-icon {
        min-width: 1.6em;
        height: 1.6em;
        margin-right: 0.28em;
        padding: 0 0.3em;
        font-size: 0.66rem;
    }

    .section-heading h2,
    .search-result-card h3,
    .article-card h3,
    .comment-feed-title {
        font-size: 1.08rem;
        line-height: 1.42;
    }

    .search-brand-copy p,
    .detail-head p,
    .search-result-snippet,
    .comment-search-hit-snippet,
    .article-card p,
    .comment-content,
    .error-card p {
        font-size: 0.92rem;
        line-height: 1.68;
    }

    .search-form-row,
    .comment-search-row {
        gap: 8px;
    }

    .search-scope {
        min-height: 44px;
        padding: 3px;
        gap: 3px;
        border-radius: 14px;
    }

    .search-scope-option span {
        min-height: 34px;
        padding: 0 6px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .search-input,
    .search-button,
    .comment-search-input,
    .comment-search-button,
    .section-toggle-button,
    .section-action-link,
    .search-result-link,
    .pagination-link,
    .pagination-link-nav,
    .error-action-primary,
    .error-action-secondary {
        min-height: 40px;
        font-size: 0.86rem;
    }

    .search-button,
    .comment-search-button {
        padding-left: 14px;
        padding-right: 14px;
    }

    .search-result-meta,
    .article-meta,
    .comment-meta,
    .section-heading-actions,
    .pagination-info {
        gap: 8px;
    }

    .home-page .home-list-heading {
        gap: 10px;
    }

    .home-page .search-results-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-page .search-results-stats {
        gap: 8px;
    }

    .home-page .search-results-group,
    .home-page .search-result-list {
        gap: 10px;
    }

    .home-page .search-stat-chip {
        min-width: 108px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-page .search-result-meta {
        gap: 6px 8px;
        font-size: 0.8rem;
    }

    .home-page .search-result-actions {
        gap: 8px;
    }

    .home-page .search-result-card,
    .home-page .search-empty-card,
    .home-page .pagination-shell {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .home-page .pagination-info {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-page .search-result-actions .search-result-link {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-page .home-list-heading-actions p {
        font-size: 0.84rem;
    }

    .home-page .article-footer {
        gap: 10px;
    }

    .home-page .article-footer a {
        min-width: 88px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .search-result-badge,
    .comment-search-hit-label,
    .hero-tags span,
    .rich-device {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .pagination {
        grid-template-columns: 1fr;
    }

    .pagination-link-nav {
        grid-column: auto;
    }

    .detail-action-button {
        min-height: 40px;
    }

    .detail-action-button-icon,
    .home-page .home-action-dock .detail-action-button {
        width: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .comment-feed-floating-collapse {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .detail-head .hero-tags,
    .detail-head .hero-tags-compact {
        gap: 5px;
    }

    .detail-layout .comment-item,
    .comments-page .comment-feed-item,
    .detail-layout .pagination-shell,
    .comments-page .pagination-shell {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .comments-page .comment-search-hit {
        padding: 8px 9px;
        gap: 5px;
        border-radius: 14px;
    }

    .comments-page .comment-search-hit-snippet {
        line-clamp: 2;
        -webkit-line-clamp: 2;
        font-size: 0.86rem;
    }

    .detail-layout .comments-head,
    .comments-page .comments-head,
    .comments-page .section-heading-list-compact {
        gap: 6px;
    }

    .detail-layout .comments-head strong,
    .comments-page .comments-head strong {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .detail-layout .comment-meta-main strong,
    .comments-page .comment-meta-main strong {
        font-size: 0.92rem;
    }

    .detail-layout .comment-floor-link,
    .comments-page .comment-floor-link {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .detail-layout .pagination-info span,
    .comments-page .pagination-info span {
        font-size: 0.84rem;
    }

    .pagination-comments .pagination {
        gap: 6px;
    }

    .pagination-comments .pagination-link,
    .pagination-comments .pagination-link-nav {
        min-width: 38px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.rich-device {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    vertical-align: middle;
}

.rich-device-mobile {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.rich-device-wechat {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.rich-device-ios {
    background: rgba(15, 23, 42, 0.09);
    color: #111827;
}

.comment-content .rich-device-ios,
.comments-page .rich-device-ios {
    display: none;
}

.rich-device-icon {
    line-height: 1;
}

.rich-device-label {
    line-height: 1;
}

.article-body img,
.comment-content img,
.article-body video,
.comment-content video,
.rich-image {
    border-radius: 22px;
}

.article-body pre,
.comment-content pre,
.article-body .chroma,
.comment-content .chroma {
    border-radius: 22px;
}

.article-body .chroma,
.comment-content .chroma {
    border-top-left-radius: 0;
}

.rich-code-shell {
    gap: 10px;
}

.rich-code-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.rich-code-meta {
    flex: 1 1 260px;
    min-width: 0;
}

.rich-code-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
}

.rich-code-lang,
.rich-code-lines,
.rich-code-toggle,
.rich-code-copy {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px 12px 0 0;
}

.rich-code-toggle,
.rich-code-copy,
.search-result-link,
.detail-action-button,
.comment-feed-toggle,
.rich-attachment-link,
.rich-legacy-media a,
.rich-rehh-toggle,
.detail-toc-toggle,
.rich-lightbox-close {
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.rich-code-toggle:active,
.rich-code-copy:active,
.search-result-link:active,
.detail-action-button:active,
.comment-feed-toggle:active,
.rich-attachment-link:active,
.rich-legacy-media a:active,
.rich-rehh-toggle:active,
.detail-toc-toggle:active,
.rich-lightbox-close:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {

    .rich-code-meta,
    .rich-code-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .rich-code-lang,
    .rich-code-lines,
    .rich-code-toggle,
    .rich-code-copy {
        width: 100%;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 12px;
    }

    .rich-code-shell pre,
    .article-body .chroma,
    .comment-content .chroma,
    .article-body img,
    .comment-content img,
    .article-body video,
    .comment-content video,
    .rich-image {
        border-radius: 20px;
    }

    .search-result-link,
    .comment-feed-toggle,
    .detail-action-button,
    .rich-attachment-link,
    .rich-legacy-media a,
    .rich-rehh-toggle {
        min-height: 40px;
    }
}

@media (max-width: 520px) {

    .rich-code-meta,
    .rich-code-actions {
        gap: 6px;
    }

    .rich-code-shell pre,
    .article-body .chroma,
    .comment-content .chroma,
    .article-body img,
    .comment-content img,
    .article-body video,
    .comment-content video,
    .rich-image {
        border-radius: 18px;
    }
}

@media (max-width: 380px) {

    .rich-code-meta,
    .rich-code-actions {
        grid-template-columns: 1fr;
    }

    .rich-code-shell pre,
    .article-body .chroma,
    .comment-content .chroma,
    .article-body img,
    .comment-content img,
    .article-body video,
    .comment-content video,
    .rich-image {
        border-radius: 16px;
    }
}

@media (max-width: 720px) {

    .comments-page .comments-list-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 2px 12px;
    }

    .comments-page .comments-list-heading-actions p {
        margin: 0;
        white-space: nowrap;
    }

    .comments-page .comments-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .comments-page .rich-code-toolbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        display: flex;
        width: auto;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .comments-page .rich-code-meta {
        flex: 1 1 auto;
        min-width: 0;
    }

    .comments-page .rich-code-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        width: auto;
        min-width: 0;
        padding: 0 12px;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .comments-page .comment-search-row {
        gap: 8px;
    }

    .comments-page .comment-search-button {
        min-width: 78px;
    }

    .comments-page .comments-list-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 10px;
    }

    .comments-page .comments-list-heading-actions p {
        font-size: 0.84rem;
    }

    .comments-page .rich-code-toolbar,
    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 6px;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .comments-page .comment-search-row {
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 6px;
    }

    .comments-page .comments-list-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 8px;
    }

    .comments-page .comments-list-heading-actions p {
        font-size: 0.8rem;
    }

    .comments-page .rich-code-toolbar,
    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 5px;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        min-height: 32px;
        padding: 0 9px;
        font-size: 0.72rem;
    }
}

.comments-page .comment-content img,
.comments-page .comment-content .rich-image img,
.comments-page .comment-content .rich-lazy-image,
.comments-page .comment-content .rich-lazy-image.is-loaded,
.comments-page .comment-content .rich-lazy-image.is-error {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: initial !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
}

.comments-page .comment-content .rich-media.rich-image,
.comments-page .comment-content .rich-media.rich-image.is-pending,
.comments-page .comment-content .rich-media.rich-image.is-loaded {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 200px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    aspect-ratio: auto !important;
    cursor: default !important;
    line-height: 0;
}

.comments-page .comment-content .rich-image-placeholder {
    display: none !important;
}

.comments-page .comment-content .rich-media.rich-image::before {
    display: none !important;
    content: none !important;
}

.comments-page .comment-content .rich-media.rich-video {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 250px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.comments-page .comment-content .rich-media.rich-video video {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0f172a !important;
    object-fit: contain !important;
}

.comments-page .rich-quote-inline {
    display: block;
    margin: 3px 1px;
    padding: 5px 8px;
    border-left: 1px solid #ddd;
    border-radius: 6px;
    background: #eee;
    color: #999;
    font-size: 12px;
    line-height: 1.65;
}

.comments-page .rich-quote-inline>*+* {
    margin-top: 6px;
}

.comments-page .rich-quote-inline p {
    margin: 0;
}

.comments-page .rich-rehh {
    display: none !important;
}

.comments-page .rich-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.comments-page .rich-code-meta,
.comments-page .rich-code-actions {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.comments-page .rich-code-actions {
    margin-left: auto;
}

.comments-page .rich-code-lang,
.comments-page .rich-code-lines,
.comments-page .rich-code-toggle,
.comments-page .rich-code-copy {
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .comments-page .rich-code-toolbar {
        gap: 10px;
    }

    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .comments-page .rich-code-toolbar {
        gap: 8px;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {

    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 6px;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        padding: 0 9px;
        font-size: 0.74rem;
    }
}

.comments-page .rich-code-shell {
    display: grid !important;
    gap: 0 !important;
}

.article-body .rich-media.rich-image,
.comment-content .rich-media.rich-image {
    width: auto;
    max-width: 100%;
}

.article-body .rich-image img,
.article-body .rich-lazy-image,
.article-body .rich-lazy-image.is-loaded,
.comment-content .rich-image img,
.comment-content .rich-lazy-image,
.comment-content .rich-lazy-image.is-loaded {
    width: auto !important;
    max-width: 100% !important;
    max-height: 50vh !important;
    height: auto !important;
    object-fit: contain !important;
}

.article-body pre code,
.comment-content pre code,
.rich-code-shell pre code {
    counter-reset: none !important;
}

.article-body pre code>span,
.comment-content pre code>span,
.rich-code-shell pre code>span {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    counter-increment: none !important;
}

.article-body pre code>span::before,
.comment-content pre code>span::before,
.rich-code-shell pre code>span::before {
    content: none !important;
    display: none !important;
}

.article-body pre code>span>span,
.comment-content pre code>span>span,
.rich-code-shell pre code>span>span {
    display: inline !important;
    min-width: auto !important;
}

.comments-page .rich-code-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.comments-page .rich-code-meta,
.comments-page .rich-code-actions {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.comments-page .rich-code-actions {
    margin-left: auto !important;
    justify-content: flex-end !important;
}

.comments-page .rich-code-lang,
.comments-page .rich-code-lines,
.comments-page .rich-code-toggle,
.comments-page .rich-code-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 14px 14px 0 0 !important;
}

@media (max-width: 520px) {
    .comments-page .rich-code-toolbar {
        gap: 8px !important;
    }

    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 8px !important;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        padding: 0 10px !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 380px) {

    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions {
        gap: 6px !important;
    }

    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        padding: 0 9px !important;
        font-size: 0.74rem !important;
    }
}

.rich-code-shell,
.article-body .rich-code-shell,
.comment-content .rich-code-shell {
    gap: 0 !important;
    margin: 0 !important;
}

.rich-code-toolbar,
.article-body .rich-code-toolbar,
.comment-content .rich-code-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rich-code-meta,
.rich-code-actions,
.article-body .rich-code-meta,
.article-body .rich-code-actions,
.comment-content .rich-code-meta,
.comment-content .rich-code-actions {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.rich-code-actions,
.article-body .rich-code-actions,
.comment-content .rich-code-actions {
    margin-left: auto !important;
    justify-content: flex-end !important;
}

.article-body pre,
.comment-content pre,
.article-body .chroma,
.comment-content .chroma,
.rich-code-shell pre,
.rich-code-shell .chroma {
    margin: 0 !important;
    border-radius: 0 !important;
}

.rich-code-lang,
.rich-code-lines,
.rich-code-toggle,
.rich-code-copy,
.article-body .rich-code-lang,
.article-body .rich-code-lines,
.article-body .rich-code-toggle,
.article-body .rich-code-copy,
.comment-content .rich-code-lang,
.comment-content .rich-code-lines,
.comment-content .rich-code-toggle,
.comment-content .rich-code-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    border-radius: 12px 12px 0 0 !important;
}

.comment-content .rich-code-toolbar,
.comments-page .comment-content .rich-code-toolbar {
    justify-content: flex-start !important;
}

.comment-content .rich-code-actions,
.comments-page .comment-content .rich-code-actions {
    margin-left: 0 !important;
    justify-content: flex-start !important;
}

@media (max-width: 520px) {

    .rich-code-toolbar,
    .article-body .rich-code-toolbar,
    .comment-content .rich-code-toolbar,
    .comments-page .rich-code-toolbar,
    .comments-page .comment-content .rich-code-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        justify-items: start !important;
        gap: 6px !important;
    }

    .rich-code-meta,
    .rich-code-actions,
    .article-body .rich-code-meta,
    .article-body .rich-code-actions,
    .comment-content .rich-code-meta,
    .comment-content .rich-code-actions,
    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions,
    .comments-page .comment-content .rich-code-meta,
    .comments-page .comment-content .rich-code-actions {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .rich-code-lang,
    .rich-code-lines,
    .rich-code-toggle,
    .rich-code-copy,
    .article-body .rich-code-lang,
    .article-body .rich-code-lines,
    .article-body .rich-code-toggle,
    .article-body .rich-code-copy,
    .comment-content .rich-code-lang,
    .comment-content .rich-code-lines,
    .comment-content .rich-code-toggle,
    .comment-content .rich-code-copy,
    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 0.76rem !important;
    }
}

@media (max-width: 380px) {

    .rich-code-toolbar,
    .article-body .rich-code-toolbar,
    .comment-content .rich-code-toolbar,
    .comments-page .rich-code-toolbar,
    .comments-page .comment-content .rich-code-toolbar,
    .rich-code-meta,
    .rich-code-actions,
    .article-body .rich-code-meta,
    .article-body .rich-code-actions,
    .comment-content .rich-code-meta,
    .comment-content .rich-code-actions,
    .comments-page .rich-code-meta,
    .comments-page .rich-code-actions,
    .comments-page .comment-content .rich-code-meta,
    .comments-page .comment-content .rich-code-actions {
        gap: 5px !important;
    }

    .rich-code-lang,
    .rich-code-lines,
    .rich-code-toggle,
    .rich-code-copy,
    .article-body .rich-code-lang,
    .article-body .rich-code-lines,
    .article-body .rich-code-toggle,
    .article-body .rich-code-copy,
    .comment-content .rich-code-lang,
    .comment-content .rich-code-lines,
    .comment-content .rich-code-toggle,
    .comment-content .rich-code-copy,
    .comments-page .rich-code-lang,
    .comments-page .rich-code-lines,
    .comments-page .rich-code-toggle,
    .comments-page .rich-code-copy {
        padding: 0 9px !important;
        font-size: 0.72rem !important;
    }
}

.article-body figure.rich-media.rich-image,
.comment-content figure.rich-media.rich-image,
.article-body .rich-media.rich-image,
.comment-content .rich-media.rich-image,
.article-body .rich-image,
.comment-content .rich-image,
.rich-image {
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.article-body .rich-image::before,
.comment-content .rich-image::before,
.rich-image::before,
.article-body .rich-image.is-loaded::before,
.comment-content .rich-image.is-loaded::before,
.rich-image.is-loaded::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
    animation: none !important;
}

.article-body img,
.comment-content img,
.article-body .rich-image img,
.comment-content .rich-image img,
.article-body .rich-lazy-image,
.article-body .rich-lazy-image.is-loaded,
.comment-content .rich-lazy-image,
.comment-content .rich-lazy-image.is-loaded {
    width: auto !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.article-body .rich-image .rich-image-placeholder,
.comment-content .rich-image .rich-image-placeholder,
.rich-image .rich-image-placeholder {
    border-radius: inherit !important;
}

.site-footer,
.site-footer-global {
    width: auto !important;
    margin: 22px auto 14px !important;
    padding: 6px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.site-footer p {
    margin: 0 !important;
    color: #7b8794 !important;
    font-size: 0.84rem !important;
    letter-spacing: 0.04em;
}

.rich-code-shell,
.article-body .rich-code-shell,
.comment-content .rich-code-shell {
    gap: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #1e1e1e !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.rich-code-toolbar,
.article-body .rich-code-toolbar,
.comment-content .rich-code-toolbar {
    min-height: 44px;
    padding: 10px 12px !important;
    background: linear-gradient(180deg, #252526, #1f1f1f) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.rich-code-meta,
.rich-code-actions,
.article-body .rich-code-meta,
.article-body .rich-code-actions,
.comment-content .rich-code-meta,
.comment-content .rich-code-actions {
    gap: 8px !important;
}

.rich-code-lang,
.rich-code-lines,
.rich-code-toggle,
.rich-code-copy,
.article-body .rich-code-lang,
.article-body .rich-code-lines,
.article-body .rich-code-toggle,
.article-body .rich-code-copy,
.comment-content .rich-code-lang,
.comment-content .rich-code-lines,
.comment-content .rich-code-toggle,
.comment-content .rich-code-copy {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.03em;
}

.rich-code-lang,
.article-body .rich-code-lang,
.comment-content .rich-code-lang {
    background: #2d2d30 !important;
    color: #d4d4d4 !important;
}

.rich-code-lines,
.article-body .rich-code-lines,
.comment-content .rich-code-lines {
    background: #252526 !important;
    color: #9cdcfe !important;
}

.rich-code-toggle,
.article-body .rich-code-toggle,
.comment-content .rich-code-toggle {
    background: #264f78 !important;
    color: #d6ecff !important;
}

.rich-code-toggle:hover,
.article-body .rich-code-toggle:hover,
.comment-content .rich-code-toggle:hover {
    background: #2f6ea5 !important;
}

.rich-code-copy,
.article-body .rich-code-copy,
.comment-content .rich-code-copy {
    background: #37373d !important;
    color: #d4d4d4 !important;
}

.rich-code-copy:hover,
.article-body .rich-code-copy:hover,
.comment-content .rich-code-copy:hover {
    background: #44444a !important;
}

.rich-code-copy.is-copied,
.article-body .rich-code-copy.is-copied,
.comment-content .rich-code-copy.is-copied {
    background: #1b6f4b !important;
    color: #d9ffef !important;
}

.rich-code-copy.is-error,
.article-body .rich-code-copy.is-error,
.comment-content .rich-code-copy.is-error {
    background: #7f1d1d !important;
    color: #ffe3e3 !important;
}

.article-body pre,
.comment-content pre,
.article-body .chroma,
.comment-content .chroma,
.rich-code-shell pre,
.rich-code-shell .chroma {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 0 !important;
    background: #1e1e1e !important;
    box-shadow: none !important;
}

.article-body pre code,
.comment-content pre code,
.article-body .chroma code,
.comment-content .chroma code,
.rich-code-shell pre code {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: #d4d4d4 !important;
}

.article-body pre code>span::before,
.comment-content pre code>span::before,
.rich-code-shell pre code>span::before {
    color: #6b7280 !important;
}

.comment-meta-side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.comments-page .comment-feed-item .comment-meta-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.comment-pin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.1);
    color: #0f4c81;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.comment-item.is-pinned {
    border-color: rgba(15, 76, 129, 0.16);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(244, 249, 255, 0.94));
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: #7c8a9a;
    font-size: 0.82rem;
}

.comment-action-divider {
    color: rgba(100, 116, 139, 0.72);
    font-size: 0.78rem;
}

.comment-reply-button,
.comment-reply-cancel-link,
.comment-submit-button,
.comment-reply-cancel-link,
.comment-tool-button {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    text-transform: lowercase;
}

.comment-reply-button:hover,
.comment-reply-cancel-link:hover,
.comment-submit-button:hover {
    background: transparent;
    border-color: transparent;
    color: #0b3a62;
}

.comment-submit-button {
    padding: 0 18px;
    min-height: 38px;
    border: 1px solid rgba(15, 76, 129, 0.22);
    border-radius: 999px;
    border-color: rgba(15, 76, 129, 0.22);
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.96), rgba(29, 78, 137, 0.92));
    color: #f8fbff;
    font-size: 0.88rem;
    text-transform: none;
}

.comment-submit-button:hover {
    color: #ffffff;
    border-color: rgba(15, 76, 129, 0.28);
    background: linear-gradient(135deg, rgba(15, 76, 129, 1), rgba(29, 78, 137, 0.96));
}

.comment-reply-button:disabled,
.comment-reply-cancel-link:disabled,
.comment-submit-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.comment-reply-cancel-link {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    font-size: 0.88rem;
    text-transform: none;
}

.comment-reply-cancel-link:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 76, 129, 0.22);
    color: #0f4c81;
}

.comment-compose-shell {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 247, 241, 0.94));
}

.comment-compose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-compose-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.comment-compose-head span,
.comment-form-field span,
.comment-form-actions p,
.comment-reply-banner span {
    color: var(--muted);
}

.comment-compose-head strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.05rem;
}

.comment-form {
    display: grid;
    gap: 14px;
}

.comment-form-field {
    display: grid;
    gap: 8px;
}

.comment-toolbox {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
}

.comment-toolbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-tool-button,
.comment-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comment-tool-button:hover,
.comment-emoji-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.24);
    background: #ffffff;
    color: #0f4c81;
}

.comment-tool-button:disabled,
.comment-emoji-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

/* ===== Navigation Page ===== */

.nav-header {
    display: grid;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.nav-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-header-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.nav-header-brand h1 {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-header-brand h1 a {
    color: inherit;
    text-decoration: none;
}

.nav-header-brand h1 a:hover {
    opacity: 0.82;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.08em;
}

.nav-header-tagline {
    color: #6f7f90;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-header-domain {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav-header-domain:hover {
    text-decoration: underline;
}

.nav-section {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.88);
    box-shadow: var(--shadow);
    padding: 16px 20px;
}

.nav-section-title {
    margin: 0 0 12px 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.nav-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.nav-link-list li a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--link);
    font-size: 0.88rem;
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s ease, gap 0.18s ease;
}

.nav-link-list li a.has-favicon,
.nav-link-list li a.favicon-pending,
.nav-link-list li a.favicon-unavailable,
.nav-link-grid li a.has-favicon,
.nav-link-grid li a.favicon-pending,
.nav-link-grid li a.favicon-unavailable {
    gap: 8px;
}

.nav-link-favicon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.88);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, width 0.18s ease, flex-basis 0.18s ease;
}

.nav-link-list li a.has-favicon .nav-link-favicon,
.nav-link-grid li a.has-favicon .nav-link-favicon {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.nav-link-list li a.favicon-unavailable .nav-link-favicon,
.nav-link-grid li a.favicon-unavailable .nav-link-favicon {
    width: 0;
    flex-basis: 0;
    opacity: 0;
    visibility: hidden;
}

.nav-link-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 16px;
    flex: 0 0 0;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--nav-fallback-start, #0f172a), var(--nav-fallback-end, #334155));
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.88);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease, width 0.18s ease, flex-basis 0.18s ease;
}

.nav-link-list li a.favicon-unavailable .nav-link-fallback,
.nav-link-grid li a.favicon-unavailable .nav-link-fallback {
    width: 16px;
    min-width: 16px;
    flex-basis: 16px;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.nav-link-list li a.favicon-unavailable .nav-link-fallback.is-wide,
.nav-link-grid li a.favicon-unavailable .nav-link-fallback.is-wide {
    width: 20px;
    min-width: 20px;
    flex-basis: 20px;
    padding: 0 2px;
    font-size: 0.58rem;
    letter-spacing: 0.01em;
}

.nav-link-text {
    min-width: 0;
}

.nav-link-list li a:hover {
    color: var(--link-hover, #0f4c81);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.nav-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.nav-link-grid li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-link-grid li a:hover {
    background: #ffffff;
    border-color: rgba(15, 76, 129, 0.24);
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav-header {
        padding: 14px 18px;
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .nav-header {
        border-radius: 20px;
    }

    .nav-header-tagline {
        display: none;
    }

    .nav-section {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .nav-link-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

@media (max-width: 520px) {
    .nav-header {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .nav-header-brand h1 {
        font-size: 1.15rem;
    }

    .nav-section {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-section-title {
        font-size: 0.92rem;
    }

    .nav-link-list li a {
        font-size: 0.82rem;
    }

    .nav-link-list li a.has-favicon,
    .nav-link-list li a.favicon-pending,
    .nav-link-list li a.favicon-unavailable,
    .nav-link-grid li a.has-favicon,
    .nav-link-grid li a.favicon-pending,
    .nav-link-grid li a.favicon-unavailable {
        gap: 6px;
    }

    .nav-link-favicon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .nav-link-list li a.favicon-unavailable .nav-link-fallback,
    .nav-link-grid li a.favicon-unavailable .nav-link-fallback {
        width: 14px;
        height: 14px;
        min-width: 14px;
        flex-basis: 14px;
        font-size: 0.62rem;
    }

    .nav-link-list li a.favicon-unavailable .nav-link-fallback.is-wide,
    .nav-link-grid li a.favicon-unavailable .nav-link-fallback.is-wide {
        width: 18px;
        min-width: 18px;
        flex-basis: 18px;
        font-size: 0.54rem;
    }
}

@media (max-width: 380px) {
    .nav-header {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .nav-header-brand h1 {
        font-size: 1.05rem;
    }

    .nav-header-domain {
        display: none;
    }
}

.comment-emoji-button {
    min-width: 42px;
    padding: 0 10px;
    font-size: 1rem;
}

.comment-upload-panel {
    display: grid;
    gap: 10px;
}

.comment-upload-dropzone {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px dashed rgba(15, 76, 129, 0.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(242, 247, 251, 0.94));
}

.comment-upload-dropzone strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.comment-upload-dropzone span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.comment-upload-dropzone.is-dragover {
    border-color: rgba(15, 76, 129, 0.48);
    background: linear-gradient(180deg, rgba(235, 245, 252, 0.98), rgba(228, 241, 251, 0.96));
}

.comment-upload-status {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.comment-upload-status.is-success {
    border-color: rgba(22, 101, 52, 0.16);
    background: rgba(22, 101, 52, 0.06);
}

.comment-upload-status.is-error {
    border-color: rgba(153, 27, 27, 0.14);
    background: rgba(153, 27, 27, 0.06);
}

.comment-upload-status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-upload-status-line span {
    color: #334155;
    font-size: 0.9rem;
}

.comment-upload-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.comment-upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(15, 76, 129, 0.92), rgba(60, 145, 196, 0.92));
    transition: width 0.2s ease;
}

.comment-form-field-inline {
    max-width: 280px;
}

.comment-form-input,
.comment-form-textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font: inherit;
}

.comment-form-input {
    min-height: 44px;
    padding: 0 14px;
}

.comment-form-textarea {
    min-height: 156px;
    padding: 14px;
    resize: vertical;
    line-height: 1.7;
}

.comment-captcha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.comment-captcha-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.comment-captcha-hint {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.comment-captcha-trigger {
    min-width: 124px;
}

.comment-captcha-trigger,
.comment-quick-submit {
    border-color: rgba(22, 163, 74, 0.24);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(34, 197, 94, 0.92));
    color: #f7fff9;
}

.comment-captcha-trigger:hover,
.comment-quick-submit:hover {
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(135deg, rgba(21, 128, 61, 1), rgba(22, 163, 74, 0.96));
    color: #ffffff;
}

.comment-captcha-trigger:disabled,
.comment-quick-submit:disabled {
    border-color: rgba(22, 163, 74, 0.18);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.72), rgba(34, 197, 94, 0.68));
    color: rgba(247, 255, 249, 0.92);
}

.comment-form-input:focus,
.comment-form-textarea:focus {
    outline: none;
    border-color: rgba(15, 76, 129, 0.38);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.comment-form-alert,
.comment-reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
}

.comment-form-alert {
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.92rem;
}

.comment-form-alert-success {
    background: rgba(22, 101, 52, 0.08);
    border-color: rgba(22, 101, 52, 0.16);
    color: #166534;
}

.comment-form-alert-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 76, 129, 0.08);
    border-color: rgba(15, 76, 129, 0.16);
    color: #0f4c81;
}

.comment-form-alert-reply-target.is-on-page {
    background: rgba(15, 76, 129, 0.06);
}

.comment-form-alert-reply-target strong {
    color: #0f172a;
}

.comment-alert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(15, 76, 129, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f4c81;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.comment-alert-link:hover {
    background: #ffffff;
    color: #0b3a62;
}

.comment-form-alert-error {
    background: rgba(153, 27, 27, 0.08);
    border-color: rgba(153, 27, 27, 0.14);
    color: #991b1b;
}

.comment-form-alert-muted,
.comment-reply-banner {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
}

.comment-reply-banner strong {
    color: #0f172a;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.comment-form-actions p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.detail-action-button-quick-comment {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.comment-quick-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 2147483500;
}

.comment-quick-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.comment-quick-modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    width: min(640px, 100%);
    height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100vh - 48px));
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 244, 238, 0.96));
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    min-height: 0;
}

.comment-quick-modal-head,
.comment-quick-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-quick-modal-actions {
    position: relative;
    z-index: 4;
    flex-shrink: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(247, 244, 238, 0), rgba(247, 244, 238, 0.96) 26%, rgba(247, 244, 238, 1));
}

.comment-quick-modal-head span,
.comment-quick-modal-hint {
    color: var(--muted);
}

.comment-quick-modal-head strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.08rem;
}

.comment-quick-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.comment-quick-modal-close:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #0f4c81;
}

.comment-quick-modal-body {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 84px;
}

.comment-quick-upload-status {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    gap: 8px;
    padding: 10px 12px;
    border-style: dashed;
    border-color: rgba(15, 76, 129, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
}

.comment-quick-upload-status .comment-upload-status-line span {
    font-size: 0.84rem;
}

.comment-quick-upload-status .comment-reply-cancel-link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.comment-quick-upload-status .comment-upload-progress {
    height: 6px;
}

.comment-quick-toolbox {
    padding: 12px;
    gap: 8px;
}

.comment-quick-modal-hint {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.comment-quick-textarea {
    min-height: 160px;
    height: 100%;
    max-height: none;
}

.comment-quick-submit {
    min-width: 124px;
}

.comment-toast-shell {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 2147483610;
    width: min(420px, calc(100vw - 20px));
    pointer-events: none;
}

.comment-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.comment-toast::before {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.comment-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: comment-toast-enter 0.24s ease;
}

.comment-toast.is-success {
    border-color: rgba(22, 101, 52, 0.16);
    background: rgba(248, 255, 250, 0.98);
}

.comment-toast.is-success::before {
    content: "✓";
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.comment-toast.is-error {
    border-color: rgba(153, 27, 27, 0.16);
    background: rgba(255, 249, 249, 0.98);
}

.comment-toast.is-error::before {
    content: "!";
    background: rgba(153, 27, 27, 0.12);
    color: #991b1b;
}

.comment-toast-body {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1px;
}

.comment-toast-body strong {
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.3;
}

.comment-toast-body span {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.35;
}

.comment-toast.is-success .comment-toast-body span {
    color: #166534;
}

.comment-toast.is-error .comment-toast-body span {
    color: #991b1b;
}

.comment-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.comment-toast-close:hover {
    background: #ffffff;
    color: #0f4c81;
}

@keyframes comment-toast-enter {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.is-quick-comment-open {
    overflow: hidden;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 720px) {

    .article-gallery-dialog {
        width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100vh - 20px);
        grid-template-rows: auto auto auto auto;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .article-gallery-head {
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .article-gallery-head>div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }

    .article-gallery-meta {
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .article-gallery-count,
    .article-gallery-close {
        height: 40px;
        padding: 0 16px;
        font-size: 0.82rem;
        line-height: 40px;
    }

    .article-gallery-summary {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .article-gallery-pagination-nav,
    .article-gallery-pagination-nav.pagination {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    .article-gallery-pagination-nav .pagination-link,
    .article-gallery-pagination-nav .pagination-link-nav {
        width: auto !important;
    }

    .article-gallery-grid {
        gap: 10px;
        padding-right: 0;
        overflow: visible;
    }

    .article-gallery-tile,
    .article-gallery-image {
        border-radius: 18px;
    }

    .article-gallery-pagination {
        gap: 8px;
    }

    .article-gallery-pagination-summary {
        font-size: 0.82rem;
    }

    .article-gallery-pagination-nav {
        justify-content: flex-start;
    }

    .article-gallery-pagination-nav .pagination-link,
    .article-gallery-pagination-nav .pagination-link-nav {
        width: auto;
        min-width: 44px;
        flex: 0 0 auto;
        padding-left: 14px;
        padding-right: 14px;
    }

    .article-gallery-pagination-ellipsis {
        min-height: 40px;
        min-width: 24px;
    }

    .article-gallery-pagination-nav .pagination-link-nav {
        grid-column: auto;
    }

    .comment-meta-side,
    .comment-compose-head,
    .comment-compose-head-actions,
    .comment-form-alert,
    .comment-reply-banner,
    .comment-form-actions,
    .comment-upload-status-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .comment-actions {
        justify-content: flex-start;
    }

    .comment-toast-shell {
        top: 10px;
        right: 10px;
        width: calc(100vw - 16px);
    }

    .comment-toast {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding: 9px 10px;
    }

    .comment-toast-body strong {
        font-size: 0.8rem;
    }

    .comment-toast-body span {
        font-size: 0.76rem;
    }

    .comment-toast-close {
        min-height: 26px;
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .comment-form-field-inline {
        max-width: none;
    }

    .comment-captcha-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .comment-submit-button,
    .comment-reply-button,
    .comment-reply-cancel-link,
    .comment-quick-modal-close {
        width: 100%;
    }

    .comment-toolbox-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        position: relative;
        padding-inline: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    }

    .comment-toolbox-row::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .comment-tool-button,
    .comment-emoji-button {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .comment-toolbox-row-emoji {
        justify-content: flex-start;
    }

    .comment-quick-modal-head,
    .comment-quick-modal-actions {
        align-items: center;
        flex-direction: row;
    }

    .comment-quick-modal-head {
        flex-wrap: nowrap;
    }

    .comment-quick-modal-close {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .comment-quick-modal-actions .comment-reply-cancel-link,
    .comment-quick-submit {
        width: auto;
        flex: 1 1 0;
        white-space: nowrap;
    }

    .detail-action-button-quick-comment {
        width: 44px;
        min-width: 44px;
        padding: 0;
    }

    .comment-quick-modal {
        padding: 14px;
    }

    .comment-quick-modal-dialog {
        width: 100%;
        height: calc(100vh - 28px);
        max-height: calc(100vh - 28px);
        padding: 18px;
        border-radius: 20px;
    }

    .comment-quick-textarea {
        min-height: 180px;
        height: 100%;
    }

    .comment-quick-modal-body {
        padding-bottom: 90px;
    }

    .comment-quick-upload-status {
        left: 0;
        right: 0;
        bottom: 0;
    }

    .comment-toast-shell {
        top: 12px;
        right: 8px;
        width: min(520px, calc(100vw - 16px));
    }

    .comment-emoji-button {
        flex: 1 1 calc(20% - 8px);
    }
}

.detail-layout #article-comments .comments-head {
    gap: 10px;
}

.detail-layout #article-comments .comments-head strong {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
}

.detail-layout #article-comments .comment-list {
    gap: 10px;
}

.detail-layout #article-comments .comment-item {
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    background: #f7f7f7;
    box-shadow: none;
}

.detail-layout #article-comments .comment-item.is-pinned {
    border-color: #dbe7f1;
    background: #f7fbff;
}

.detail-layout #article-comments .comment-item.is-targeted {
    border-color: #d7b98d;
    background: #fffaf2;
    box-shadow: none;
}

.detail-layout #article-comments .comment-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 0;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.5;
}

.detail-layout #article-comments .comment-author {
    color: #222;
    font-size: 0.92rem;
}

.detail-layout #article-comments .comment-date {
    color: #7b7b7b;
}

.detail-layout #article-comments .comment-pin-badge {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.detail-layout #article-comments .comment-content {
    display: block;
    margin-top: 0;
    padding: 6px 12px 8px;
    gap: 0;
}

.detail-layout #article-comments .comment-content>*+* {
    margin-top: 6px;
}

.detail-layout #article-comments .comment-content p,
.detail-layout #article-comments .comment-empty .comment-info {
    margin: 0;
}

.detail-layout #article-comments .comment-actions {
    padding: 0 12px 10px;
    margin-top: 0;
    gap: 6px;
    color: #a3a3a3;
    font-size: 0.8rem;
}

.detail-layout #article-comments .comment-reply-button,
.detail-layout #article-comments .comment-floor-link {
    color: #0f4c81;
}

.detail-layout #article-comments .comment-floor-link {
    color: #9a9a9a;
}

.detail-layout #article-comments .comment-floor-link:hover {
    color: #6f6f6f;
}

.detail-layout #article-comments .comment-empty {
    padding: 12px;
}

.detail-layout #article-comments .rich-quote-inline {
    display: block;
    margin: 3px 1px;
    padding: 5px 8px;
    border-left: 1px solid #ddd;
    border-radius: 6px;
    background: #eee;
    color: #999;
    font-size: 12px;
    line-height: 1.65;
}

.detail-layout #article-comments .rich-quote-inline>*+* {
    margin-top: 6px;
}

.detail-layout #article-comments .rich-quote-inline p {
    margin: 0;
}

.detail-layout #article-comments .rich-quote-inline a,
.detail-layout #article-comments .rich-floor-tag,
.detail-layout #article-comments .rich-floor-tag * {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.detail-layout #article-comments .rich-quote-inline a {
    display: inline-flex;
    align-items: center;
    color: #0f4c81;
    font-weight: 600;
}

.detail-layout #article-comments .comment-content .comment-reply-ref-link {
    display: inline-flex;
    align-items: center;
    margin: 0 10px 6px 0;
    padding: 4px 12px;
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: 999px;
    background: rgba(240, 249, 255, 0.95);
    color: #0f4c81;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.detail-layout #article-comments .comment-content .comment-reply-ref-link:hover {
    background: #ffffff;
    border-color: rgba(15, 76, 129, 0.22);
    color: #0b3a62;
}

.detail-layout #article-comments .rich-media.rich-image,
.detail-layout #article-comments .rich-media.rich-image.is-pending,
.detail-layout #article-comments .rich-media.rich-image.is-loaded {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 200px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    aspect-ratio: auto !important;
    cursor: default !important;
    line-height: 0;
}

.detail-layout #article-comments .rich-image-placeholder {
    display: none !important;
}

.detail-layout #article-comments .rich-media.rich-image::before {
    display: none !important;
    content: none !important;
}

.detail-layout #article-comments img,
.detail-layout #article-comments .rich-image img,
.detail-layout #article-comments .rich-lazy-image,
.detail-layout #article-comments .rich-lazy-image.is-loaded,
.detail-layout #article-comments .rich-lazy-image.is-error {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: initial !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
}

.detail-layout #article-comments .rich-media.rich-video {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 250px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.detail-layout #article-comments .rich-media.rich-video video {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0f172a !important;
    object-fit: contain !important;
}

.detail-layout #article-comments .rich-media.rich-video a {
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

.detail-layout #article-comments .rich-rehh {
    display: none !important;
}

@media (max-width: 720px) {
    .detail-layout #article-comments .comment-info {
        padding: 10px 10px 0;
    }

    .detail-layout #article-comments .comment-content,
    .detail-layout #article-comments .comment-actions,
    .detail-layout #article-comments .comment-empty {
        padding-left: 10px;
        padding-right: 10px;
    }

    .detail-layout #article-comments .comment-actions {
        flex-wrap: wrap;
    }

    .detail-layout #article-comments .comment-actions .comment-reply-button,
    .detail-layout #article-comments .comment-actions .comment-floor-link {
        width: auto;
    }
}

@media (max-width: 520px) {

    .article-gallery-grid {
        gap: 4px 8px;
    }
}