/* 夜程 Yecheng 1.0.0 — 深黑 + 荧黄；直角、无阴影、系统中文字体。前缀 ych-，变量 --ych-* */
:root {
	--ych-bg: #09090b;
	--ych-card: #101013;
	--ych-fg: #fafafa;
	--ych-mute: #a1a1aa;
	--ych-line: #3f3f46;
	--ych-y: #dfe104;
	--ych-ghost: #27272a;
	--ych-side: 24px;
	--ych-gap: 96px;
	--ych-head: 72px;
	--ych-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.ych {
	margin: 0;
	background: var(--ych-bg);
	color: var(--ych-fg);
	font-family: var(--ych-font);
	font-size: 17px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}
.ych img { max-width: 100%; height: auto; display: block; }
.ych a { color: inherit; text-decoration-color: var(--ych-line); text-underline-offset: 4px; }
.ych a:hover { color: var(--ych-y); text-decoration-color: var(--ych-y); }
.ych :focus-visible { outline: 2px solid var(--ych-y); outline-offset: 3px; }
.ych :where(h1, h2, h3) { margin: 0; font-weight: 800; }
.ych :where(p) { margin: 0; }
.ych :where(ul) { margin: 0; padding: 0; list-style: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ych-skip { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--ych-y); color: #09090b; padding: 10px 16px; font-weight: 700; }
.ych-skip:focus { top: 8px; color: #09090b; }

.ych-wrap { width: 100%; max-width: 1216px; margin-inline: auto; padding-inline: var(--ych-side); }
.ych-wrap--narrow { max-width: 920px; }
.ych-main { min-height: 60vh; }

/* 按钮 */
.ych-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1; border: 2px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer; background: none; color: var(--ych-fg); }
.ych a.ych-btn--y, .ych button.ych-btn--y { background: var(--ych-y); border-color: var(--ych-y); color: #09090b; }
.ych a.ych-btn--y:hover, .ych button.ych-btn--y:hover { background: #fff; border-color: #fff; color: #09090b; }
.ych a.ych-btn--o { border-color: var(--ych-line); color: var(--ych-fg); }
.ych a.ych-btn--o:hover { border-color: var(--ych-y); color: var(--ych-y); }

/* 顶栏 */
.ych-header { position: sticky; top: 0; z-index: 100; background: rgba(9, 9, 11, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ych-line); }
.admin-bar .ych-header { top: 32px; }
.ych-header__in { position: relative; display: flex; align-items: center; gap: 24px; max-width: 1216px; margin-inline: auto; padding: 0 var(--ych-side); min-height: var(--ych-head); }
.ych-brand { font-size: 22px; font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.ych a.ych-brand:hover { color: var(--ych-y); }
.ych-nav { flex: 1; display: flex; justify-content: center; }
.ych-nav ul { display: flex; gap: 8px; }
.ych-nav a { display: block; padding: 10px 16px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ych-mute); }
.ych-nav a:hover, .ych-nav a[aria-current] { color: var(--ych-fg); }
.ych-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ych-y); }
.ych-nav__cta { display: none; }
.ych-header__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ych-header__cta { min-height: 44px; padding: 0 22px; }
.ych-menu-btn { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 2px solid var(--ych-line); border-radius: 0; color: var(--ych-fg); cursor: pointer; align-items: center; justify-content: center; }
.ych-menu-btn__bar, .ych-menu-btn__bar::before, .ych-menu-btn__bar::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; position: relative; }
.ych-menu-btn__bar::before { position: absolute; top: -6px; }
.ych-menu-btn__bar::after { position: absolute; top: 6px; }
.ych-menu-btn[aria-expanded="true"] { border-color: var(--ych-y); }

.ych-search > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer; color: var(--ych-mute); font-weight: 600; font-size: 15px; border: 2px solid transparent; }
.ych-search > summary::-webkit-details-marker { display: none; }
.ych-search > summary:hover, .ych-search[open] > summary { color: var(--ych-fg); }
.ych-search__ico { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.ych-search__ico::after { content: ""; position: absolute; width: 8px; height: 2px; background: currentColor; right: -7px; bottom: -3px; transform: rotate(45deg); }
.ych-search__form { position: absolute; right: var(--ych-side); top: calc(100% + 1px); width: min(440px, calc(100% - 2 * var(--ych-side))); display: flex; gap: 0; padding: 12px; background: var(--ych-bg); border: 1px solid var(--ych-line); }
.ych-search__form input, .ych-search-page input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ych-fg); background: var(--ych-card); border: 2px solid var(--ych-line); border-radius: 0; }
.ych-search__form input:focus, .ych-search-page input:focus { border-color: var(--ych-y); outline: 0; }
.ych-search__form button { min-height: 48px; padding: 0 20px; font: inherit; font-weight: 700; background: var(--ych-y); color: #09090b; border: 2px solid var(--ych-y); border-radius: 0; cursor: pointer; }

@media (max-width: 999px) {
	:root { --ych-head: 64px; }
	.ych-header__in { flex-wrap: wrap; gap: 0 12px; }
	.ych-header__cta { display: none; }
	.ych-search__txt { display: none; }
	.ych-nav { order: 3; flex-basis: 100%; justify-content: flex-start; padding-bottom: 8px; }
	.ych-nav ul { flex-wrap: wrap; gap: 0 4px; }
	.ych-nav__cta { display: block; }
	.ych-js .ych-menu-btn { display: inline-flex; }
	.ych-js .ych-nav { display: none; }
	.ych-js .ych-header.is-open .ych-nav { display: flex; }
	.ych-js .ych-nav ul { flex-direction: column; width: 100%; gap: 0; }
	.ych-js .ych-nav li { border-top: 1px solid var(--ych-line); }
	.ych-js .ych-nav a { padding: 14px 0; min-height: 48px; }
	.ych-js .ych-nav__cta a { color: var(--ych-y); }
	.ych-header__in .ych-header__tools { height: var(--ych-head); }
}
@media (max-width: 782px) { .admin-bar .ych-header { top: 46px; } }

/* 首屏 */
.ych-hero { position: relative; overflow: hidden; text-align: center; padding: 104px 0 64px; }
.ych-hero__bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: clamp(260px, 42vw, 640px); line-height: 1; font-weight: 800; color: var(--ych-ghost); pointer-events: none; user-select: none; z-index: 0; white-space: nowrap; }
.ych-hero__in { position: relative; z-index: 1; }
.ych-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--ych-y); text-transform: none; line-height: 1.6; }
.ych-hero .ych-eyebrow { margin-bottom: 24px; }
.ych-hero__title { font-size: 112px; line-height: 1.02; font-weight: 800; letter-spacing: -.01em; }
.ych-hero__title span { display: block; }
.ych-hero__l2 { color: var(--ych-y); }
.ych-hero__tag { margin-top: 36px; font-size: 24px; font-weight: 700; }
.ych-hero__intro { max-width: 640px; margin: 20px auto 0; color: var(--ych-mute); font-size: 17px; line-height: 1.9; }
.ych-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* 分区 */
.ych-sec { padding-top: var(--ych-gap); }
.ych-sec:last-child, .ych-main > .ych-sec:last-of-type { padding-bottom: var(--ych-gap); }
.ych-sec__head { margin-bottom: 40px; }
.ych-sec__title { font-size: 56px; line-height: 1.1; margin-top: 12px; }
.ych-empty { color: var(--ych-mute); padding: 24px 0; }

/* 卡片（阅读区） */
.ych-reading { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.ych-card { position: relative; background: var(--ych-card); display: flex; flex-direction: column; min-width: 0; }
.ych-card::after, .ych-dir::after, .ych-aud__item::after, .ych-exp > div::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ych-line); pointer-events: none; }
.ych-card:hover::after { border-color: var(--ych-y); }
.ych-card__media, .ych-item__media { display: block; aspect-ratio: 4 / 3; background: var(--ych-ghost); overflow: hidden; }
.ych-card__media .ych-img, .ych-item__media .ych-img, .ych-figure .ych-img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ych-ph { display: flex; width: 100%; height: 100%; aspect-ratio: 4 / 3; align-items: center; justify-content: center; background: var(--ych-ghost); color: #3a3a40; font-size: 96px; font-weight: 800; line-height: 1; }
.ych-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ych-card__meta, .ych-item__meta, .ych-single__meta { font-size: 14px; line-height: 1.6; color: var(--ych-mute); }
.ych-card__meta a, .ych-item__meta a, .ych-single__meta a { color: var(--ych-y); text-decoration: none; font-weight: 700; }
.ych-card__title { font-size: 22px; line-height: 1.4; }
.ych-card--main .ych-card__title { font-size: 28px; line-height: 1.25; }
.ych-card__title a { text-decoration: none; }
.ych-card__excerpt { font-size: 15px; line-height: 1.7; color: var(--ych-mute); }

@media (min-width: 1200px) {
	.ych-reading { grid-template-columns: minmax(0, 2fr) minmax(368px, 1fr); grid-template-rows: auto auto; }
	.ych-card--main { grid-row: 1 / span 2; }
}

/* 方向卡 A–D */
.ych-dirs { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.ych-dir { position: relative; background: var(--ych-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ych-dir__key { font-size: 64px; line-height: 1; font-weight: 800; color: var(--ych-y); }
.ych-dir__name { font-size: 32px; line-height: 1.25; }
.ych-dir__intro { color: var(--ych-mute); font-size: 16px; line-height: 1.8; }
.ych-dir__list { margin-top: 8px; }
.ych-dir__list li { border-top: 1px solid var(--ych-line); }
.ych-dir__list a { display: block; padding: 14px 0; font-size: 17px; line-height: 1.6; font-weight: 600; text-decoration: none; }
.ych-dir__none { margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--ych-line); color: var(--ych-mute); }
.ych-dir__more { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ych-line); font-weight: 700; }
.ych-dir__more a { color: var(--ych-y); text-decoration: none; }
.ych-dir__more a:hover { color: var(--ych-fg); }
.ych-dir__count { font-size: 14px; font-weight: 400; color: var(--ych-mute); }
@media (min-width: 768px) { .ych-dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
	.ych-dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ych-dir--a, .ych-dir--d { grid-column: span 2; }
}

/* FAQ */
.ych-faq { border-top: 1px solid var(--ych-line); }
.ych-faq__item { border-bottom: 1px solid var(--ych-line); }
.ych-faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; min-height: 48px; font-size: 20px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.ych-faq__item summary::-webkit-details-marker { display: none; }
.ych-faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--ych-y); font-size: 28px; font-weight: 400; line-height: 1; }
.ych-faq__item[open] summary::after { content: "−"; }
.ych-faq__item summary:hover { color: var(--ych-y); }
.ych-faq__item p { padding: 0 48px 24px 0; color: var(--ych-mute); }
.ych-faq__item p a { color: var(--ych-y); }

/* 适合谁 */
.ych-aud { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.ych-aud__item { position: relative; background: var(--ych-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ych-aud__item h3 { font-size: 24px; line-height: 1.3; color: var(--ych-y); }
.ych-aud__item p { color: var(--ych-mute); font-size: 16px; line-height: 1.8; }
.ych-aud__link { margin-top: auto; padding-top: 8px; font-weight: 700; }
.ych-aud__link a { color: var(--ych-fg); }
@media (min-width: 768px) { .ych-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ych-aud { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 阅读说明 */
.ych-exp { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.ych-exp > div { position: relative; padding: 36px; background: var(--ych-card); display: flex; flex-direction: column; gap: 16px; }
.ych-exp__b { background: var(--ych-y) !important; color: #09090b; }
.ych-exp__b::after { border-color: var(--ych-y) !important; }
.ych-exp h3 { font-size: 28px; line-height: 1.3; }
.ych-exp p { color: var(--ych-mute); }
.ych-exp__b p { color: #27272a; }
.ych-exp__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; font-weight: 700; }
.ych-exp__links a { color: #09090b !important; text-decoration-color: #09090b; }
@media (min-width: 1000px) { .ych-exp { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* 内页版心 */
.ych-col { width: 100%; max-width: 920px; margin-inline: auto; padding: 48px var(--ych-side) 96px; }
.ych-crumb { font-size: 14px; color: var(--ych-mute); line-height: 1.6; margin-bottom: 32px; }
.ych-crumb a { color: var(--ych-mute); text-decoration: none; }
.ych-crumb a:hover { color: var(--ych-y); }
.ych-pagehead { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--ych-line); }
.ych-pagehead__title { font-size: 56px; line-height: 1.1; margin-top: 12px; }
.ych-pagehead__intro { margin-top: 20px; color: var(--ych-mute); font-size: 18px; line-height: 1.8; max-width: 680px; }
.ych-list { display: block; }
.ych-item { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--ych-line); }
.ych-item:last-child { margin-bottom: 0; }
.ych-item__meta { margin: 20px 0 8px; }
.ych-item__title { font-size: 32px; line-height: 1.35; }
.ych-item__title a { text-decoration: none; }
.ych-item__excerpt { margin-top: 12px; color: var(--ych-mute); font-size: 16px; line-height: 1.8; }
.ych-search-page { display: flex; gap: 0; margin: -8px 0 40px; }
.ych-search-page .ych-btn { min-height: 48px; }

/* 分页 */
.ych .navigation.pagination { margin-top: 48px; }
.ych .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ych .nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ych-line); text-decoration: none; font-weight: 600; }
.ych .nav-links a.page-numbers:hover { border-color: var(--ych-y); color: var(--ych-y); }
.ych .nav-links .current { background: var(--ych-y); border-color: var(--ych-y); color: #09090b; }
.ych .nav-links .dots { border-color: transparent; }

/* 文章页 */
.ych-single__head { margin-bottom: 32px; }
.ych-single__title { font-size: 46px; line-height: 1.35; }
.ych-single__meta { margin-top: 16px; }
.ych-single__lead { margin-top: 20px; font-size: 17px; line-height: 1.9; color: var(--ych-mute); }
.ych-prose { font-size: 17px; line-height: 2; }
.ych-prose > * + * { margin-top: 1.1em; }
.ych-prose h2 { font-size: 24px; line-height: 1.5; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--ych-line); }
.ych-prose h3 { font-size: 20px; line-height: 1.6; margin-top: 1.8em; }
.ych-prose a { color: var(--ych-y); }
.ych-prose ul, .ych-prose ol { padding-left: 1.4em; list-style: revert; }
.ych-prose li + li { margin-top: .4em; }
.ych-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ych-y); color: var(--ych-mute); }
.ych-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.ych-prose th, .ych-prose td { border: 1px solid var(--ych-line); padding: 10px 14px; text-align: left; }
.ych-prose img { height: auto; }
.ych-figure { margin: 2em 0; }
.ych-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ych-mute); }
.ych-verify { margin-top: 48px; padding: 24px 28px; border: 1px solid var(--ych-line); border-left: 4px solid var(--ych-y); background: var(--ych-card); }
.ych-verify h2 { font-size: 18px; line-height: 1.5; }
.ych-verify ul { margin-top: 10px; }
.ych-verify li { font-size: 15px; line-height: 1.8; color: var(--ych-mute); }
.ych-verify li + li { margin-top: 6px; }
.ych-related { margin-top: 56px; }
.ych-related h2 { font-size: 24px; line-height: 1.5; }
.ych-related ul { margin-top: 16px; border-top: 1px solid var(--ych-line); }
.ych-related li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--ych-line); }
.ych-related__cat { flex: none; font-size: 13px; font-weight: 700; color: #09090b; background: var(--ych-y); padding: 1px 8px; line-height: 1.7; }
.ych-related a { font-size: 18px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.ych-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.ych-postnav a { display: block; padding: 20px 24px; border: 1px solid var(--ych-line); text-decoration: none; font-weight: 600; line-height: 1.6; }
.ych-postnav a:hover { border-color: var(--ych-y); }
.ych-postnav span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ych-y); }
.ych-postnav__next { text-align: right; grid-column: 2; }
.ych-404__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ych-404__list a { display: flex; align-items: center; min-height: 56px; padding: 0 20px; border: 1px solid var(--ych-line); font-weight: 700; text-decoration: none; }
.ych-404__list a:hover { border-color: var(--ych-y); }

/* 页脚 */
.ych-footer { border-top: 1px solid var(--ych-line); padding: 48px 0 56px; background: var(--ych-bg); }
.ych-footer__row { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.ych-footer__name { font-size: 18px; font-weight: 800; }
.ych-footer__copy { margin-top: 8px; font-size: 14px; color: var(--ych-mute); }
.ych-footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ych-footer__nav a { display: inline-block; padding: 10px 0; font-size: 15px; color: var(--ych-mute); text-decoration: none; }
.ych-footer__nav a:hover { color: var(--ych-y); }

/* 中屏 */
@media (max-width: 1199px) {
	.ych-hero__title { font-size: 80px; }
	.ych-sec { padding-top: 64px; }
	.ych-sec:last-child, .ych-main > .ych-sec:last-of-type { padding-bottom: 64px; }
	.ych-sec__title, .ych-pagehead__title { font-size: 44px; }
}
/* 手机 */
@media (max-width: 767px) {
	:root { --ych-side: 12px; --ych-gap: 48px; }
	html { scroll-padding-top: 76px; }
	.ych-brand { font-size: 20px; }
	.ych-hero { padding: 64px 0 40px; }
	.ych-hero__title { font-size: 48px; }
	.ych-hero__tag { margin-top: 24px; font-size: 20px; }
	.ych-hero__intro { font-size: 16px; }
	.ych-hero__actions .ych-btn { flex: 1 1 100%; }
	.ych-sec { padding-top: 48px; }
	.ych-sec:last-child, .ych-main > .ych-sec:last-of-type { padding-bottom: 48px; }
	.ych-sec__head { margin-bottom: 28px; }
	.ych-sec__title, .ych-pagehead__title { font-size: 32px; line-height: 1.2; }
	.ych-card--main .ych-card__title { font-size: 24px; }
	.ych-card__body { padding: 20px; }
	.ych-dir, .ych-aud__item, .ych-exp > div { padding: 20px; }
	.ych-dir__key { font-size: 48px; }
	.ych-dir__name { font-size: 26px; }
	.ych-exp h3 { font-size: 24px; }
	.ych-faq__item summary { font-size: 18px; }
	.ych-faq__item p { padding-right: 0; }
	.ych-col { padding: 32px var(--ych-side) 64px; }
	.ych-single__title { font-size: 32px; line-height: 1.4; }
	.ych-item__title { font-size: 24px; }
	.ych-postnav { grid-template-columns: minmax(0, 1fr); }
	.ych-postnav__next { grid-column: 1; text-align: left; }
	.ych-footer__row { flex-direction: column; gap: 24px; }
}
/* 390–767：配图宽度 ≥ 368（容器 366 + 两侧各 1px） */
@media (min-width: 390px) and (max-width: 767px) {
	.ych-card__media, .ych-item__media, .ych-figure .ych-img { margin-inline: -1px; width: calc(100% + 2px); max-width: none; }
	.ych-figure { margin-inline: 0; }
	.ych-figure .ych-img { margin-inline: -1px; }
}
