/*
Theme Name: Nuoyun Travel News
Theme URI: https://travelstudy-global.com.xfds123.icu/
Author: Nuoyun
Author URI: https://travelstudy-global.com.xfds123.icu/
Description: A clean WordPress travel news portal theme inspired by modern technology magazine layouts.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
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: nuoyun-travel-news
Tags: news, blog, magazine, travel, custom-logo, featured-images
*/

:root {
	--ny-blue: #2563eb;
	--ny-blue-2: #0ea5e9;
	--ny-orange: #f97316;
	--ny-green: #10b981;
	--ny-ink: #0f172a;
	--ny-text: #1f2937;
	--ny-muted: #64748b;
	--ny-soft: #f6f8fc;
	--ny-line: #e5eaf2;
	--ny-card: #ffffff;
	--ny-dark: #0b1628;
	--ny-radius: 8px;
	--ny-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
	--ny-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ny-soft);
	color: var(--ny-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body.menu-open {
	overflow: hidden;
}

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

a:hover,
a:focus {
	color: var(--ny-blue);
}

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

button,
input {
	font: inherit;
}

button,
a {
	cursor: pointer;
}

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

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: #fff;
	border: 1px solid var(--ny-blue);
	border-radius: var(--ny-radius);
}

.ny-container {
	width: min(1500px, calc(100% - 64px));
	margin: 0 auto;
}

.ny-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: 0 0 auto;
}

.ny-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	backdrop-filter: blur(18px);
}

.ny-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 76px;
	gap: 28px;
}

.ny-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--ny-ink);
}

.ny-custom-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.ny-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.ny-brand .custom-logo {
	width: auto;
	max-height: 48px;
}

.ny-brand-mark {
	position: relative;
	display: inline-grid;
	width: 42px;
	height: 42px;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.ny-brand-mark span {
	display: block;
	border-radius: 16px 16px 16px 6px;
	background: linear-gradient(135deg, #6d5dfc, #14b8a6);
	transform: rotate(-24deg);
}

.ny-brand-mark span + span {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	transform: rotate(24deg);
}

.ny-brand-text {
	display: grid;
	line-height: 1.05;
}

.ny-brand-text strong {
	font-size: 20px;
	font-weight: 800;
	color: var(--ny-ink);
	white-space: nowrap;
}

.ny-brand-text small {
	margin-top: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #475569;
}

.ny-primary-nav {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	height: 76px;
}

.ny-primary-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 82px;
	padding: 0 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ny-ink);
	transition: color 180ms ease, background-color 180ms ease;
}

.ny-primary-nav a:hover,
.ny-primary-nav a:focus,
.ny-primary-nav a.is-active {
	background: var(--ny-blue);
	color: #fff;
}

.ny-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ny-search {
	display: flex;
	align-items: center;
	width: 270px;
	height: 38px;
	padding: 0 8px 0 16px;
	border: 1px solid var(--ny-line);
	border-radius: 999px;
	background: #fff;
}

.ny-search input {
	min-width: 0;
	width: 100%;
	border: 0;
	outline: 0;
	color: var(--ny-ink);
	background: transparent;
	font-size: 14px;
}

.ny-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	color: #64748b;
	background: transparent;
	border-radius: 50%;
	transition: color 180ms ease, background-color 180ms ease;
}

.ny-search button:hover,
.ny-search button:focus {
	background: #eff6ff;
	color: var(--ny-blue);
}

.ny-header-link,
.ny-submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--ny-ink);
}

.ny-submit {
	padding: 0 18px;
	color: #fff;
	border-radius: 999px;
	background: var(--ny-blue);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
	transition: background-color 180ms ease, box-shadow 180ms ease;
}

.ny-submit:hover,
.ny-submit:focus {
	color: #fff;
	background: #1d4ed8;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.ny-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ny-line);
	border-radius: var(--ny-radius);
	background: #fff;
	color: var(--ny-ink);
}

.ny-mobile-panel {
	display: none;
	border-top: 1px solid var(--ny-line);
	background: #fff;
}

.ny-mobile-panel .ny-container {
	display: grid;
	gap: 2px;
	padding: 12px 0 18px;
}

.ny-mobile-panel a {
	padding: 12px 4px;
	font-weight: 700;
	color: var(--ny-ink);
}

.ny-home-main,
.ny-page-main {
	padding: 24px 0 48px;
}

.ny-hero {
	position: relative;
	min-height: 488px;
	overflow: hidden;
	border-radius: 14px;
	background: #111827;
	box-shadow: var(--ny-shadow);
}

.ny-hero-slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 260ms ease, visibility 260ms ease;
}

.ny-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ny-hero-media,
.ny-hero-img,
.ny-hero .ny-image-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ny-hero-img,
.ny-cover-img,
.ny-topic-img {
	object-fit: cover;
}

.ny-hero-media::after,
.ny-featured-large::after,
.ny-topic-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.62) 36%, rgba(2, 6, 23, 0.18) 100%);
	pointer-events: none;
}

.ny-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(690px, calc(100% - 180px));
	min-height: 488px;
	padding: 74px 80px;
	color: #fff;
}

.ny-kicker {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	margin-bottom: 18px;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.ny-kicker:hover,
.ny-kicker:focus {
	color: #fff;
	background: #1d4ed8;
}

.ny-hero h1 {
	max-width: 680px;
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 3.3vw, 48px);
	line-height: 1.24;
	font-weight: 850;
}

.ny-hero h1 a:hover,
.ny-hero h1 a:focus {
	color: #dbeafe;
}

.ny-hero p {
	max-width: 620px;
	margin: 24px 0 24px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 17px;
	line-height: 1.8;
}

.ny-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	color: var(--ny-muted);
	font-size: 13px;
}

.ny-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ny-meta-light {
	color: rgba(255, 255, 255, 0.78);
}

.ny-hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.56);
	color: #fff;
	transition: background-color 180ms ease;
}

.ny-hero-arrow:hover,
.ny-hero-arrow:focus {
	background: rgba(37, 99, 235, 0.92);
}

.ny-hero-prev {
	left: 18px;
	transform: rotate(180deg);
}

.ny-hero-next {
	right: 18px;
}

.ny-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 4;
	display: flex;
	gap: 9px;
	transform: translateX(-50%);
}

.ny-hero-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	transition: width 180ms ease, background-color 180ms ease;
}

.ny-hero-dots button.is-active {
	width: 28px;
	background: #fff;
}

.ny-panel {
	background: var(--ny-card);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 10px;
	box-shadow: var(--ny-shadow-sm);
}

.ny-top-section,
.ny-main-section,
.ny-topic-section,
.ny-recommend-section {
	margin-top: 24px;
}

.ny-top-grid {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 24px;
}

.ny-top-grid-wide {
	grid-template-columns: 1fr;
}

.ny-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.ny-section-head h1,
.ny-section-head h2 {
	margin: 0;
	color: var(--ny-ink);
	font-size: 22px;
	line-height: 1.2;
	font-weight: 850;
}

.ny-headlines,
.ny-featured,
.ny-latest,
.ny-sidebar .ny-panel,
.ny-list-panel {
	padding: 24px;
}

.ny-headlines ul {
	display: grid;
	gap: 16px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ny-headlines li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	font-size: 14px;
}

.ny-headlines li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin-right: 2px;
	background: var(--ny-blue);
	border-radius: 50%;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
}

.ny-headlines li a {
	overflow: hidden;
	padding-left: 14px;
	color: #334155;
	white-space: nowrap;
	text-overflow: ellipsis;
	grid-column: 1;
	grid-row: 1;
}

.ny-headlines time {
	color: #94a3b8;
	font-size: 13px;
}

.ny-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
	gap: 20px;
}

.ny-featured-large {
	position: relative;
	min-height: 266px;
	overflow: hidden;
	border-radius: var(--ny-radius);
	background: #0f172a;
}

.ny-featured-media,
.ny-featured-media img,
.ny-featured-large .ny-image-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ny-featured-overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	padding: 22px;
	color: #fff;
}

.ny-featured-overlay h3 {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.35;
}

.ny-featured-small-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ny-small-card {
	min-width: 0;
}

.ny-small-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--ny-radius);
	background: #dbeafe;
}

.ny-small-card h3 {
	margin: 12px 0 8px;
	color: var(--ny-ink);
	font-size: 17px;
	line-height: 1.45;
	font-weight: 800;
}

.ny-cover-img,
.ny-small-card .ny-image-fallback,
.ny-list-thumb .ny-image-fallback,
.ny-recommend-media .ny-image-fallback {
	width: 100%;
	height: 100%;
}

.ny-small-card-media img,
.ny-recommend-media img,
.ny-list-thumb img,
.ny-topic-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 200ms ease;
}

.ny-small-card:hover img,
.ny-recommend-card:hover img,
.ny-list-item:hover img,
.ny-topic-card:hover img {
	filter: brightness(0.92);
}

.ny-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: 24px;
	align-items: start;
}

.ny-tabs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.ny-tabs-head h2 {
	margin: 0;
	color: var(--ny-ink);
	font-size: 22px;
	font-weight: 850;
}

.ny-latest-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
}

.ny-latest-tabs button {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 13px;
	border: 0;
	border-radius: 999px;
	color: #475569;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	background: transparent;
}

.ny-latest-tabs button:hover,
.ny-latest-tabs button:focus,
.ny-latest-tabs button.is-active {
	background: #eff6ff;
	color: var(--ny-blue);
}

.ny-latest-panel[hidden] {
	display: none;
}

.ny-article-list {
	display: grid;
	gap: 18px;
}

.ny-list-item {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 22px;
	min-height: 145px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ny-line);
}

.ny-list-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ny-list-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--ny-radius);
	background: #dbeafe;
}

.ny-list-body h3 {
	margin: 0 0 8px;
	color: var(--ny-ink);
	font-size: 20px;
	line-height: 1.42;
	font-weight: 850;
}

.ny-list-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 9px;
}

.ny-list-tags a,
.ny-tag-cloud a {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: #eef4ff;
	color: var(--ny-blue);
	font-size: 12px;
	font-weight: 800;
}

.ny-list-body p {
	display: -webkit-box;
	margin: 0 0 12px;
	overflow: hidden;
	color: #64748b;
	font-size: 14px;
	line-height: 1.75;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ny-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 22px;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	color: var(--ny-blue);
	font-weight: 800;
	background: #fff;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.ny-button:hover,
.ny-button:focus {
	background: #eff6ff;
	border-color: var(--ny-blue);
}

.ny-sidebar {
	display: grid;
	gap: 22px;
}

.ny-rank-tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.ny-rank-tabs button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	border: 0;
	border-radius: 8px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	background: #f8fafc;
	transition: color 180ms ease, background-color 180ms ease;
}

.ny-rank-tabs button:hover,
.ny-rank-tabs button:focus,
.ny-rank-tabs button.is-active {
	color: var(--ny-blue);
	background: #eff6ff;
}

.ny-rank-panel[hidden] {
	display: none;
}

.ny-rank-list {
	display: grid;
	gap: 13px;
	padding: 0;
	margin: 0;
	list-style: none;
	counter-reset: rank;
}

.ny-rank-list li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	color: #334155;
	font-size: 14px;
	counter-increment: rank;
}

.ny-rank-list li::before {
	content: counter(rank);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 900;
}

.ny-rank-list li:nth-child(1)::before {
	background: #ef4444;
	color: #fff;
}

.ny-rank-list li:nth-child(2)::before {
	background: #f97316;
	color: #fff;
}

.ny-rank-list li:nth-child(3)::before {
	background: #f59e0b;
	color: #fff;
}

.ny-rank-list a {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ny-rank-list span {
	color: #64748b;
	font-size: 13px;
}

.ny-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ny-tag-cloud a:nth-child(4n + 2) {
	background: #ecfdf5;
	color: #047857;
}

.ny-tag-cloud a:nth-child(4n + 3) {
	background: #fff7ed;
	color: #c2410c;
}

.ny-tag-cloud a:nth-child(4n + 4) {
	background: #f5f3ff;
	color: #6d28d9;
}

.ny-follow-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.ny-follow-row a {
	display: grid;
	gap: 8px;
	justify-items: center;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.ny-follow-row span,
.ny-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	font-weight: 900;
}

.ny-follow-row .wechat span {
	background: #22c55e;
}

.ny-follow-row .weibo span {
	background: #f59e0b;
}

.ny-follow-row .bili span {
	background: #38bdf8;
}

.ny-follow-row .zhihu span {
	background: #2563eb;
}

.ny-topic-section,
.ny-recommend-section {
	padding: 0;
}

.ny-topic-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--ny-line);
	border-radius: 10px;
	box-shadow: var(--ny-shadow-sm);
}

.ny-topic-card {
	position: relative;
	display: grid;
	align-content: end;
	min-height: 150px;
	overflow: hidden;
	padding: 22px;
	border-radius: var(--ny-radius);
	background: #0f172a;
	color: #fff;
}

.ny-topic-card .ny-topic-img,
.ny-topic-card .ny-image-fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ny-topic-card span,
.ny-topic-card strong,
.ny-topic-card em {
	position: relative;
	z-index: 2;
}

.ny-topic-card span {
	font-size: 21px;
	font-weight: 900;
}

.ny-topic-card strong {
	max-width: 280px;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 600;
}

.ny-topic-card em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 28px;
	margin-top: 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.58);
	color: #fff;
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

.ny-scroll-head {
	margin-bottom: 18px;
}

.ny-scroll-actions {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.ny-scroll-actions button {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ny-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ny-ink);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
	pointer-events: auto;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ny-scroll-actions button:first-child {
	left: 14px;
	transform: translateY(-50%) rotate(180deg);
}

.ny-scroll-actions button:last-child {
	right: 14px;
	transform: translateY(-50%);
}

.ny-scroll-actions button:hover,
.ny-scroll-actions button:focus {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: var(--ny-blue);
}

.ny-recommend-shell {
	position: relative;
	padding: 22px 64px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ny-line);
	border-radius: 10px;
	box-shadow: var(--ny-shadow-sm);
}

.ny-recommend-row {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #bfdbfe transparent;
	padding-bottom: 4px;
}

.ny-recommend-row::-webkit-scrollbar {
	height: 8px;
}

.ny-recommend-row::-webkit-scrollbar-thumb {
	background: #bfdbfe;
	border-radius: 999px;
}

.ny-recommend-card {
	display: grid;
	flex: 0 0 248px;
	gap: 9px;
	min-width: 248px;
	scroll-snap-align: start;
}

.ny-recommend-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--ny-radius);
	background: #dbeafe;
}

.ny-recommend-meta {
	color: var(--ny-blue);
	font-size: 12px;
	font-weight: 850;
}

.ny-recommend-card strong {
	overflow: hidden;
	color: var(--ny-ink);
	font-size: 15px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ny-page-main {
	min-height: 58vh;
}

.ny-archive-page,
.ny-detail-page {
	background: #fff;
}

.ny-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 28px 0 30px;
	color: #64748b;
	font-size: 14px;
	font-weight: 700;
}

.ny-breadcrumb a {
	color: #334155;
}

.ny-breadcrumb a:hover,
.ny-breadcrumb a:focus {
	color: var(--ny-blue);
}

.ny-breadcrumb a::after {
	content: ">";
	margin-left: 10px;
	color: #94a3b8;
}

.ny-breadcrumb span {
	color: var(--ny-ink);
}

.ny-archive-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-bottom: 42px;
}

.ny-archive-tabs a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	color: #334155;
	font-size: 14px;
	font-weight: 850;
	transition: background-color 180ms ease, color 180ms ease;
}

.ny-archive-tabs a:hover,
.ny-archive-tabs a:focus,
.ny-archive-tabs a.is-active {
	background: var(--ny-blue);
	color: #fff;
}

.ny-archive-layout,
.ny-detail-layout {
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 46px;
	align-items: start;
}

.ny-archive-main {
	min-width: 0;
}

.ny-archive-list {
	gap: 0;
}

.ny-archive-list .ny-list-item {
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 28px;
	min-height: 176px;
	padding: 0 0 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #e8edf5;
}

.ny-archive-list .ny-list-thumb {
	aspect-ratio: 16 / 9;
	border-radius: 8px;
}

.ny-archive-list .ny-list-body h3 {
	margin-top: 4px;
	font-size: 21px;
	line-height: 1.42;
}

.ny-archive-list .ny-list-body p {
	-webkit-line-clamp: 2;
	margin-bottom: 14px;
	font-size: 14px;
}

.ny-detail-layout {
	align-items: start;
}

.ny-single-article {
	min-width: 0;
}

.ny-single-article .ny-single-header {
	margin-bottom: 26px;
}

.ny-single-article .ny-kicker {
	margin-bottom: 14px;
}

.ny-single-article .ny-single-header h1 {
	max-width: 900px;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.36;
}

.ny-single-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
}

.ny-single-article .ny-single-cover {
	margin-bottom: 30px;
	border-radius: 4px;
}

.ny-single-article .ny-single-cover img {
	aspect-ratio: 16 / 7.2;
}

.ny-single-article .ny-entry-content {
	color: #334155;
	font-size: 17px;
	line-height: 2;
}

.ny-single-article .ny-entry-content h2,
.ny-single-article .ny-entry-content h3 {
	margin-top: 30px;
	color: var(--ny-ink);
	font-size: 24px;
	line-height: 1.35;
}

.ny-single-article .ny-entry-content p {
	margin: 0 0 22px;
}

.ny-single-article .ny-entry-content img {
	width: 100%;
	margin: 28px 0;
	border-radius: 4px;
}

.ny-single-article .ny-single-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid #e8edf5;
}

.ny-like-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #334155;
	font-weight: 850;
}

.ny-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #e8edf5;
}

.ny-post-nav div {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.ny-post-nav div:last-child {
	text-align: right;
}

.ny-post-nav span {
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.ny-post-nav a {
	overflow: hidden;
	color: var(--ny-ink);
	font-weight: 850;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ny-side-news-list {
	display: grid;
	gap: 18px;
}

.ny-side-news-item {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.ny-side-news-img {
	display: block;
	overflow: hidden;
	width: 78px;
	height: 78px;
	border-radius: 7px;
	background: #dbeafe;
}

.ny-side-news-img img,
.ny-side-news-img .ny-image-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ny-side-news-item strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ny-ink);
	font-size: 14px;
	line-height: 1.48;
	font-weight: 850;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ny-side-news-item em {
	display: block;
	margin-top: 7px;
	overflow: hidden;
	color: #64748b;
	font-size: 12px;
	font-style: normal;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ny-list-panel,
.ny-single {
	padding: 34px;
}

.ny-archive-header {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--ny-line);
}

.ny-archive-header p {
	margin: 0 0 8px;
	color: var(--ny-blue);
	font-weight: 850;
}

.ny-archive-header h1,
.ny-single-header h1 {
	margin: 0;
	color: var(--ny-ink);
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.25;
	font-weight: 900;
}

.ny-archive-desc {
	max-width: 720px;
	margin-top: 12px;
	color: var(--ny-muted);
}

.ny-single-wrap {
	width: min(1040px, calc(100% - 64px));
}

.ny-single-header {
	margin-bottom: 24px;
}

.ny-single-header .ny-meta {
	margin-top: 18px;
}

.ny-single-cover {
	overflow: hidden;
	margin: 0 0 30px;
	border-radius: 12px;
	background: #dbeafe;
}

.ny-single-cover img {
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
}

.ny-entry-content {
	color: #334155;
	font-size: 17px;
	line-height: 1.9;
}

.ny-entry-content h2,
.ny-entry-content h3 {
	color: var(--ny-ink);
	line-height: 1.35;
}

.ny-entry-content a {
	color: var(--ny-blue);
	font-weight: 700;
}

.ny-entry-content img {
	border-radius: var(--ny-radius);
}

.ny-single-footer {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--ny-line);
}

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

.ny-tags a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: #eef4ff;
	color: var(--ny-blue);
	font-size: 13px;
	font-weight: 800;
}

.ny-related {
	margin-top: 24px;
	padding: 24px;
}

.ny-card-grid {
	display: grid;
	gap: 20px;
}

.ny-card-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ny-empty,
.ny-not-found p {
	color: var(--ny-muted);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--ny-line);
	border-radius: 6px;
	background: #fff;
	color: #475569;
	font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	background: var(--ny-blue);
	border-color: var(--ny-blue);
	color: #fff;
}

.ny-image-fallback {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 18px;
	background:
		linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(14, 165, 233, 0.45)),
		radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.48), transparent 36%),
		#0f172a;
	color: #fff;
}

.ny-image-fallback span {
	position: relative;
	z-index: 2;
	font-size: 18px;
	font-weight: 900;
}

.ny-site-footer {
	padding: 44px 0;
	background: radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.22), transparent 34%), #0b1628;
	color: rgba(255, 255, 255, 0.78);
}

.ny-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(2, 1fr);
	gap: 42px;
}

.ny-brand-footer .ny-brand-text strong,
.ny-brand-footer .ny-brand-text small {
	color: #fff;
}

.ny-footer-brand p,
.ny-footer-col p {
	max-width: 310px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 14px;
}

.ny-footer-col {
	display: grid;
	align-content: start;
	gap: 10px;
}

.ny-footer-col h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 16px;
}

.ny-footer-col a {
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
}

.ny-footer-col a:hover,
.ny-footer-col a:focus {
	color: #fff;
}

.ny-socials {
	display: flex;
	gap: 12px;
}

.ny-socials a {
	background: #2563eb;
}

.ny-socials a:nth-child(2) {
	background: #22c55e;
}

.ny-socials a:nth-child(3) {
	background: #ef4444;
}

.ny-copyright {
	font-size: 13px;
}

@media (max-width: 1280px) {
	.ny-container {
		width: min(1180px, calc(100% - 40px));
	}

	.ny-header-inner {
		gap: 16px;
	}

	.ny-primary-nav a {
		min-width: auto;
		padding: 0 12px;
	}

	.ny-search {
		width: 220px;
	}

	.ny-content-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
	}

}

@media (max-width: 1024px) {
	.ny-header-inner {
		grid-template-columns: auto 1fr;
	}

	.ny-primary-nav {
		display: none;
	}

	.ny-header-actions {
		justify-content: flex-end;
	}

	.ny-menu-toggle {
		display: inline-flex;
	}

	.ny-mobile-panel.is-open {
		display: block;
	}

	.ny-top-grid,
	.ny-content-layout {
		grid-template-columns: 1fr;
	}

	.ny-featured-grid {
		grid-template-columns: 1fr;
	}

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

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

@media (max-width: 768px) {
	.ny-container,
	.ny-single-wrap {
		width: min(100% - 28px, 720px);
	}

	.ny-header-inner {
		min-height: 66px;
	}

	.ny-brand-text strong {
		font-size: 17px;
	}

	.ny-brand-text small,
	.ny-hide-sm,
	.ny-header-link {
		display: none;
	}

	.ny-search {
		display: none;
	}

	.ny-submit {
		height: 36px;
		padding: 0 13px;
	}

	.ny-home-main,
	.ny-page-main {
		padding-top: 14px;
	}

	.ny-hero {
		min-height: 420px;
		border-radius: 10px;
	}

	.ny-hero-content {
		width: 100%;
		min-height: 420px;
		padding: 52px 28px 76px;
	}

	.ny-hero h1 {
		font-size: 29px;
	}

	.ny-hero p {
		font-size: 15px;
	}

	.ny-hero-arrow {
		top: auto;
		bottom: 24px;
	}

	.ny-hero-prev {
		left: 28px;
	}

	.ny-hero-next {
		right: 28px;
	}

	.ny-top-section,
	.ny-main-section,
	.ny-topic-section,
	.ny-recommend-section {
		margin-top: 16px;
	}

	.ny-headlines,
	.ny-featured,
	.ny-latest,
	.ny-sidebar .ny-panel,
	.ny-list-panel,
	.ny-single {
		padding: 18px;
	}

	.ny-featured-small-grid,
	.ny-topic-grid,
	.ny-card-grid-3 {
		grid-template-columns: 1fr;
	}

	.ny-tabs-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ny-list-item {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ny-list-thumb {
		aspect-ratio: 16 / 9;
	}

	.ny-breadcrumb {
		margin: 18px 0 22px;
	}

	.ny-archive-tabs {
		gap: 10px;
		margin-bottom: 24px;
	}

	.ny-archive-tabs a {
		height: 34px;
		padding: 0 14px;
	}

	.ny-archive-list .ny-list-item {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-bottom: 22px;
		padding-bottom: 22px;
	}

	.ny-single-meta-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.ny-post-nav {
		grid-template-columns: 1fr;
	}

	.ny-post-nav div:last-child {
		text-align: left;
	}

	.ny-follow-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.ny-single-cover img,
	.ny-single-article .ny-single-cover img {
		aspect-ratio: 16 / 10;
	}

	.ny-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.ny-brand-mark {
		width: 36px;
		height: 36px;
	}

	.ny-submit {
		width: 40px;
		padding: 0;
		font-size: 0;
	}

	.ny-submit .ny-icon {
		width: 18px;
		height: 18px;
	}

	.ny-hero h1 {
		font-size: 25px;
	}

	.ny-hero-content {
		padding-inline: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
