/*
Theme Name: HHGYS
Theme URI: https://hhgys.com/
Author: HHGYS
Author URI: https://hhgys.com/
Description: 哈哈观影社的响应式影评主题，提供浅色日间与深色夜间模式。
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hhgys
Tags: blog, news, photography, one-column, two-columns, custom-logo, featured-images, responsive-layout
*/

:root {
    --hhgys-bg: #f2f5f1;
    --hhgys-surface: #ffffff;
    --hhgys-surface-muted: #e8efe9;
    --hhgys-ink: #1c2922;
    --hhgys-ink-soft: #53635a;
    --hhgys-line: #dce6de;
    --hhgys-accent: #18794c;
    --hhgys-accent-strong: #0d5e39;
    --hhgys-accent-soft: #d9f0e1;
    --hhgys-shadow: 0 20px 55px rgba(27, 58, 39, 0.1);
    --hhgys-shadow-small: 0 8px 22px rgba(27, 58, 39, 0.08);
    --hhgys-radius-xl: 28px;
    --hhgys-radius-lg: 20px;
    --hhgys-radius-md: 14px;
    --hhgys-content-width: 1180px;
    color-scheme: light;
}

html[data-hhgys-color-mode="dark"] {
    --hhgys-bg: #0d1317;
    --hhgys-surface: #151e23;
    --hhgys-surface-muted: #1b292e;
    --hhgys-ink: #f2f6f1;
    --hhgys-ink-soft: #a8b6b0;
    --hhgys-line: #2a3a3e;
    --hhgys-accent: #b4e76b;
    --hhgys-accent-strong: #d1f394;
    --hhgys-accent-soft: #263c2c;
    --hhgys-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
    --hhgys-shadow-small: 0 10px 28px rgba(0, 0, 0, 0.22);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    padding-bottom: 0;
    background: var(--hhgys-bg);
    color: var(--hhgys-ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    transition: background-color 200ms ease, color 200ms ease;
}

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

a:hover {
    color: var(--hhgys-accent-strong);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--hhgys-accent);
    color: var(--hhgys-bg);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--hhgys-accent);
    outline-offset: 3px;
}

/* Header */
.hhgys-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--hhgys-line);
    background: rgba(242, 245, 241, 0.9);
    backdrop-filter: blur(18px);
}

html[data-hhgys-color-mode="dark"] .hhgys-site-header {
    background: rgba(13, 19, 23, 0.9);
}

.hhgys-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(var(--hhgys-content-width), calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
}

.hhgys-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 11px;
    color: var(--hhgys-ink);
}

.hhgys-brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--hhgys-accent);
    color: var(--hhgys-bg);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    transform: rotate(-4deg);
}

.hhgys-brand__text {
    display: grid;
    gap: 0;
    line-height: 1.1;
}

.hhgys-brand__name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.hhgys-brand__sub {
    color: var(--hhgys-ink-soft);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hhgys-primary-nav {
    margin-left: 12px;
}

.hhgys-primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hhgys-primary-nav .menu-item a {
    display: block;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--hhgys-ink-soft);
    font-size: 13px;
    font-weight: 700;
    transition: color 160ms ease, background-color 160ms ease;
}

.hhgys-primary-nav .menu-item a:hover,
.hhgys-primary-nav .current-menu-item a,
.hhgys-primary-nav .current_page_item a {
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
}

.hhgys-header-tools {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.hhgys-site-header .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.hhgys-site-header .search-form label {
    display: block;
}

.hhgys-site-header .search-field {
    width: 220px;
    height: 40px;
    padding: 0 40px 0 38px;
    border: 1px solid var(--hhgys-line);
    border-radius: 999px;
    outline: 0;
    background: var(--hhgys-surface);
    color: var(--hhgys-ink);
    transition: width 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hhgys-site-header .search-field::placeholder {
    color: var(--hhgys-ink-soft);
    opacity: 0.8;
}

.hhgys-site-header .search-field:focus {
    width: 260px;
    border-color: var(--hhgys-accent);
    box-shadow: 0 0 0 4px var(--hhgys-accent-soft);
}

.hhgys-site-header .search-submit {
    position: absolute;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hhgys-ink-soft);
    font-size: 16px;
}

.hhgys-site-header .search-submit:hover {
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
}

.hhgys-theme-toggle,
.hhgys-menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--hhgys-line);
    border-radius: 12px;
    background: var(--hhgys-surface);
    color: var(--hhgys-ink);
    line-height: 1;
}

.hhgys-theme-toggle {
    font-size: 17px;
}

.hhgys-theme-toggle:hover,
.hhgys-menu-toggle:hover {
    border-color: var(--hhgys-accent);
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
}

.hhgys-theme-toggle__dark {
    display: none;
}

html[data-hhgys-color-mode="dark"] .hhgys-theme-toggle__light {
    display: none;
}

html[data-hhgys-color-mode="dark"] .hhgys-theme-toggle__dark {
    display: inline;
}

.hhgys-menu-toggle {
    display: none;
    font-size: 19px;
}

.hhgys-mobile-search {
    display: none;
}

/* Shared layout */
.hhgys-main {
    width: min(var(--hhgys-content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 74px;
}

.hhgys-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hhgys-accent-strong);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hhgys-eyebrow::before {
    width: 20px;
    height: 2px;
    background: var(--hhgys-accent);
    content: "";
}

.hhgys-display-title {
    max-width: 680px;
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.hhgys-lede {
    max-width: 590px;
    margin: 0;
    color: var(--hhgys-ink-soft);
    font-size: 16px;
}

.hhgys-button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.hhgys-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--hhgys-accent);
    color: var(--hhgys-bg);
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hhgys-button:hover {
    background: var(--hhgys-accent-strong);
    color: var(--hhgys-bg);
    transform: translateY(-2px);
}

.hhgys-button--ghost {
    border-color: var(--hhgys-line);
    background: transparent;
    color: var(--hhgys-ink);
}

.hhgys-button--ghost:hover {
    background: var(--hhgys-surface);
    color: var(--hhgys-accent-strong);
}

.hhgys-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hhgys-cover--placeholder {
    position: relative;
    display: grid;
    min-height: 130px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, var(--hhgys-accent-soft), var(--hhgys-surface-muted));
}

.hhgys-cover--placeholder::after {
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    content: "";
}

.hhgys-cover--placeholder span {
    position: relative;
    z-index: 1;
    color: var(--hhgys-accent-strong);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.hhgys-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
    font-size: 11px;
    font-weight: 900;
}

.hhgys-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.hhgys-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hhgys-section-heading h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.hhgys-section-heading p {
    margin: 3px 0 0;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hhgys-accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.hhgys-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hhgys-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.hhgys-filter-tab {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid var(--hhgys-line);
    border-radius: 999px;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
    font-weight: 800;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.hhgys-filter-tab:hover,
.hhgys-filter-tab.is-active {
    border-color: var(--hhgys-accent);
    background: var(--hhgys-accent);
    color: var(--hhgys-bg);
}

.hhgys-empty {
    padding: 42px 22px;
    border: 1px dashed var(--hhgys-line);
    border-radius: var(--hhgys-radius-md);
    color: var(--hhgys-ink-soft);
    text-align: center;
}

.hhgys-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hhgys-ink);
}

/* Homepage */
.hhgys-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 30px;
    align-items: stretch;
    min-height: 390px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-xl);
    background: var(--hhgys-surface);
    box-shadow: var(--hhgys-shadow);
}

.hhgys-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hhgys-hero__note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 34px;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-hero__note-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
    font-weight: 900;
}

.hhgys-hero__feature {
    position: relative;
    display: grid;
    min-height: 300px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--hhgys-surface-muted);
}

.hhgys-hero__feature .hhgys-cover {
    position: absolute;
    inset: 0;
}

.hhgys-hero__feature::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 22%, rgba(5, 20, 12, 0.86) 100%);
    content: "";
}

.hhgys-hero__feature-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: end;
    min-height: 100%;
    padding: 26px;
    color: #ffffff;
}

.hhgys-hero__feature-content .hhgys-pill {
    background: rgba(222, 247, 228, 0.92);
    color: #125f39;
}

.hhgys-hero__feature-content h2 {
    max-width: 360px;
    margin: 9px 0 8px;
    font-size: clamp(22px, 3vw, 31px);
    letter-spacing: -0.045em;
    line-height: 1.2;
}

.hhgys-hero__feature-content .hhgys-meta-line {
    color: rgba(255, 255, 255, 0.78);
}

.hhgys-hero__score {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(10, 35, 21, 0.62);
    color: #d9fa9c;
    font-size: 17px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.hhgys-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    margin-top: 52px;
}

.hhgys-feed,
.hhgys-sidebar {
    min-width: 0;
}

.hhgys-card-list {
    display: grid;
    gap: 14px;
}

.hhgys-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 19px;
    padding: 14px;
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-lg);
    background: var(--hhgys-surface);
    box-shadow: var(--hhgys-shadow-small);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hhgys-card:hover {
    border-color: var(--hhgys-accent);
    box-shadow: var(--hhgys-shadow);
    transform: translateY(-3px);
}

.hhgys-card__image {
    display: block;
    min-height: 150px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--hhgys-surface-muted);
}

.hhgys-card__image .hhgys-cover {
    transition: transform 400ms ease;
}

.hhgys-card:hover .hhgys-card__image .hhgys-cover {
    transform: scale(1.035);
}

.hhgys-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 7px 4px 0;
}

.hhgys-card h3 {
    margin: 8px 0 7px;
    font-size: 20px;
    letter-spacing: -0.035em;
    line-height: 1.28;
}

.hhgys-card h3 a:hover {
    color: var(--hhgys-accent-strong);
}

.hhgys-card__excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--hhgys-ink-soft);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hhgys-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
}

.hhgys-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--hhgys-ink-soft);
    font-size: 11px;
}

.hhgys-side-card {
    padding: 20px;
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-lg);
    background: var(--hhgys-surface);
    box-shadow: var(--hhgys-shadow-small);
}

.hhgys-sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.hhgys-side-card h3 {
    margin: 0 0 13px;
    font-size: 16px;
    letter-spacing: -0.025em;
}

.hhgys-category-list,
.hhgys-rank-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hhgys-category-list {
    gap: 7px;
}

.hhgys-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--hhgys-ink-soft);
    transition: background-color 160ms ease, color 160ms ease;
}

.hhgys-category-list a:hover {
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
}

.hhgys-category-list__count {
    color: var(--hhgys-accent-strong);
    font-size: 11px;
    font-weight: 900;
}

.hhgys-rank-list {
    gap: 14px;
    counter-reset: hhgys-rank;
}

.hhgys-rank-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    counter-increment: hhgys-rank;
}

.hhgys-rank-list li::before {
    color: var(--hhgys-accent);
    content: counter(hhgys-rank, decimal-leading-zero);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.hhgys-rank-list__title {
    display: block;
    color: var(--hhgys-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.hhgys-rank-list__meta {
    display: block;
    margin-top: 2px;
    color: var(--hhgys-ink-soft);
    font-size: 10px;
}

.hhgys-side-note {
    padding: 17px;
    border-radius: var(--hhgys-radius-md);
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
    font-size: 12px;
}

.hhgys-side-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Archive, search, and generic page layouts */
.hhgys-list-page {
    min-height: 480px;
}

.hhgys-archive-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--hhgys-line);
}

.hhgys-archive-header h1 {
    max-width: 780px;
    margin: 12px 0 8px;
    font-size: clamp(32px, 5vw, 55px);
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.hhgys-archive-header p {
    max-width: 620px;
    margin: 0;
    color: var(--hhgys-ink-soft);
}

.hhgys-list-page .hhgys-layout {
    margin-top: 0;
}

.hhgys-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.hhgys-page-content h1 {
    margin: 0 0 25px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

/* Single article */
.hhgys-article {
    max-width: 1020px;
    margin: 0 auto;
}

.hhgys-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-breadcrumb a:hover {
    color: var(--hhgys-accent-strong);
}

.hhgys-article-header {
    max-width: 840px;
}

.hhgys-article-header h1 {
    margin: 13px 0 14px;
    font-size: clamp(34px, 5vw, 59px);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.hhgys-article-header__summary {
    max-width: 760px;
    margin: 0;
    color: var(--hhgys-ink-soft);
    font-size: 16px;
}

.hhgys-article-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-article-cover {
    width: 100%;
    height: min(52vw, 520px);
    min-height: 260px;
    margin: 34px 0 30px;
    overflow: hidden;
    border-radius: 25px;
    background: var(--hhgys-surface-muted);
    box-shadow: var(--hhgys-shadow);
}

.hhgys-article-cover .hhgys-cover {
    object-position: center;
}

.hhgys-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 230px;
    gap: 58px;
    align-items: start;
    margin: 0 auto;
}

.hhgys-entry-content {
    min-width: 0;
    color: var(--hhgys-ink);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 17px;
    line-height: 1.95;
}

.hhgys-entry-content p {
    margin: 0 0 1.35em;
}

.hhgys-entry-content h2,
.hhgys-entry-content h3,
.hhgys-entry-content h4 {
    margin: 1.7em 0 0.55em;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.35;
}

.hhgys-entry-content h2 {
    font-size: 22px;
}

.hhgys-entry-content h3 {
    font-size: 19px;
}

.hhgys-entry-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--hhgys-accent);
    border-radius: 0 14px 14px 0;
    background: var(--hhgys-accent-soft);
    color: var(--hhgys-accent-strong);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.65;
}

.hhgys-entry-content img,
.hhgys-entry-content figure {
    max-width: 100%;
}

.hhgys-entry-content a {
    color: var(--hhgys-accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hhgys-intro-card {
    margin: 0 0 30px;
    padding: 21px 23px;
    border: 1px solid var(--hhgys-line);
    border-left: 4px solid var(--hhgys-accent);
    border-radius: 0 var(--hhgys-radius-md) var(--hhgys-radius-md) 0;
    background: var(--hhgys-accent-soft);
}

.hhgys-intro-card__label {
    display: block;
    margin-bottom: 6px;
    color: var(--hhgys-accent-strong);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hhgys-intro-card p {
    margin: 0;
    color: var(--hhgys-ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.hhgys-entry-aside {
    position: sticky;
    top: 104px;
}

.hhgys-entry-aside__card {
    padding: 18px;
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-md);
    background: var(--hhgys-surface);
}

.hhgys-entry-aside__card + .hhgys-entry-aside__card {
    margin-top: 13px;
}

.hhgys-entry-aside__card h3 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hhgys-entry-aside__card p {
    margin: 0;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
    line-height: 1.65;
}

.hhgys-entry-aside__actions {
    display: grid;
    gap: 8px;
}

.hhgys-entry-aside__actions .hhgys-button {
    width: 100%;
    border: 1px solid var(--hhgys-line);
}

.hhgys-related {
    margin-top: 66px;
    padding-top: 28px;
    border-top: 1px solid var(--hhgys-line);
}

.hhgys-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hhgys-related-card {
    overflow: hidden;
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-md);
    background: var(--hhgys-surface);
}

.hhgys-related-card__image {
    display: block;
    height: 150px;
    overflow: hidden;
}

.hhgys-related-card__body {
    padding: 14px;
}

.hhgys-related-card h3 {
    margin: 7px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.hhgys-comments {
    max-width: 720px;
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--hhgys-line);
}

.hhgys-comments h2 {
    font-size: 20px;
}

.hhgys-comments ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hhgys-comments li {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--hhgys-line);
    border-radius: var(--hhgys-radius-md);
    background: var(--hhgys-surface);
}

/* Footer */
.hhgys-site-footer {
    border-top: 1px solid var(--hhgys-line);
    background: var(--hhgys-surface);
}

.hhgys-footer-inner {
    width: min(var(--hhgys-content-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 28px;
}

.hhgys-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 30px;
    padding-bottom: 28px;
}

.hhgys-footer-brand {
    max-width: 270px;
}

.hhgys-footer-brand h2 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.hhgys-footer-brand p,
.hhgys-footer-column p {
    margin: 0;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-footer-column h3 {
    margin: 0 0 10px;
    color: var(--hhgys-ink);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hhgys-footer-links {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hhgys-footer-links a {
    width: max-content;
    color: var(--hhgys-ink-soft);
    font-size: 12px;
}

.hhgys-footer-links a:hover {
    color: var(--hhgys-accent-strong);
}

.hhgys-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--hhgys-line);
    color: var(--hhgys-ink-soft);
    font-size: 11px;
}

.hhgys-footer-record {
    color: var(--hhgys-accent-strong);
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* Responsive behavior */
@media (max-width: 960px) {
    .hhgys-header-inner {
        gap: 14px;
    }

    .hhgys-primary-nav {
        margin-left: 4px;
    }

    .hhgys-primary-nav .menu-item a {
        padding-inline: 9px;
    }

    .hhgys-site-header .search-field {
        width: 180px;
    }

    .hhgys-site-header .search-field:focus {
        width: 205px;
    }

    .hhgys-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 18px;
    }

    .hhgys-article-layout {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .hhgys-header-inner,
    .hhgys-main,
    .hhgys-footer-inner {
        width: min(100% - 32px, var(--hhgys-content-width));
    }

    .hhgys-header-inner {
        min-height: 68px;
    }

    .hhgys-primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding: 9px;
        border: 1px solid var(--hhgys-line);
        border-radius: 16px;
        background: var(--hhgys-surface);
        box-shadow: var(--hhgys-shadow);
    }

    .hhgys-theme-menu-open .hhgys-primary-nav {
        display: flex;
    }

    .hhgys-primary-nav .menu {
        display: grid;
        gap: 2px;
    }

    .hhgys-primary-nav .menu-item a {
        padding: 11px 12px;
    }

    .hhgys-header-tools {
        gap: 7px;
    }

    .hhgys-site-header .search-form {
        display: none;
    }

    .hhgys-mobile-search {
        display: block;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--hhgys-line);
    }

    .hhgys-mobile-search__input {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border: 1px solid var(--hhgys-line);
        border-radius: 999px;
        background: var(--hhgys-bg);
        color: var(--hhgys-ink);
    }

    .hhgys-menu-toggle {
        display: grid;
    }

    .hhgys-main {
        padding-top: 28px;
    }

    .hhgys-display-title {
        font-size: clamp(34px, 11vw, 50px);
    }

    .hhgys-lede {
        font-size: 14px;
    }

    .hhgys-hero {
        grid-template-columns: 1fr;
        gap: 23px;
        min-height: auto;
        padding: 25px;
        border-radius: 22px;
    }

    .hhgys-hero__note {
        margin-top: 22px;
        padding-top: 0;
    }

    .hhgys-hero__feature {
        min-height: 300px;
    }

    .hhgys-layout,
    .hhgys-article-layout {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-top: 36px;
    }

    .hhgys-sidebar,
    .hhgys-entry-aside {
        order: 2;
    }

    .hhgys-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 13px;
        padding: 10px;
        border-radius: 16px;
    }

    .hhgys-card__image {
        min-height: 126px;
    }

    .hhgys-card__content {
        padding: 2px 4px 2px 0;
    }

    .hhgys-card h3 {
        margin-top: 6px;
        font-size: 16px;
    }

    .hhgys-card__excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .hhgys-card__footer {
        margin-top: 8px;
    }

    .hhgys-card__stats {
        display: none;
    }

    .hhgys-article-header h1 {
        font-size: clamp(32px, 10vw, 47px);
    }

    .hhgys-article-header__summary {
        font-size: 14px;
    }

    .hhgys-article-cover {
        height: 54vw;
        min-height: 210px;
        margin-top: 25px;
        border-radius: 18px;
    }

    .hhgys-entry-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .hhgys-entry-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hhgys-entry-aside__card + .hhgys-entry-aside__card {
        margin-top: 0;
    }

    .hhgys-related-grid {
        grid-template-columns: 1fr;
    }

    .hhgys-related-card {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .hhgys-related-card__image {
        height: 100%;
        min-height: 105px;
    }

    .hhgys-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .hhgys-footer-brand {
        grid-column: 1 / -1;
    }

    .hhgys-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
