/* ============================================================
   Apple-style light theme override
   加载顺序：style.css 之后
   ============================================================ */

:root {
	--ap-bg: #f5f5f7;
	--ap-card: #fff;
	--ap-ink: #1d1d1f;
	--ap-ink-2: #6e6e73;
	--ap-ink-3: #86868b;
	--ap-line: #d2d2d7;
	--ap-line-soft: #e8e8ed;
	--ap-accent: #0071e1;
	--ap-accent-dark: #0060b9;
	--ap-radius: 18px;
	--ap-radius-sm: 12px;
	--ap-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
	--ap-shadow-hover: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.10);
	--ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
		"Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--ap-ease: cubic-bezier(.32,.72,.35,1);
}

html, body {
	font-family: var(--ap-font);
	color: var(--ap-ink);
	background-color: var(--ap-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	letter-spacing: -.005em;
}

a { color: inherit; }

/* ---------- 排版 ---------- */
.heading-large .text-inner,
.heading-small .text-inner,
.heading-tiny .text-inner {
	font-weight: 600;
	color: var(--ap-ink);
	letter-spacing: -.022em;
}

.heading-large .text-inner { font-size: 26px; line-height: 32px; }
.heading-small .text-inner { font-size: 17px; line-height: 24px; }
.heading-tiny .text-inner { font-weight: 500; font-size: 14px; line-height: 20px; }

.label-text .text-inner { color: var(--ap-ink-2); }

.body-text .text-inner,
.label-text .text-inner {
	font-weight: 400;
	color: var(--ap-ink-2);
	letter-spacing: 0;
}

.line-divider { background-color: var(--ap-line-soft); margin: 18px 0; }
.line-divider.line-black { background-color: var(--ap-line); }

.bg-gray { background-color: #fafafc !important; }

/* ---------- 顶栏 ---------- */
#header {
	background-color: rgba(255,255,255,.72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--ap-line-soft);
}

#header .header-utility { padding-top: 6px; padding-bottom: 6px; align-items: center; }

/* 头部内容整体居中：导航 | LOGO | 语言 | 搜索 */
#header .header-utility {
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding-left: 20px;
	padding-right: 20px;
}

/* LOGO 紧邻导航左侧，整组居中 */
#header .header-utility .symbol {
	position: static;
	-webkit-transform: none;
	transform: none;
	-webkit-box-ordinal-group: 2;
	-ms-flex-order: 1;
	order: 1;
	margin-right: 36px;
}

#header .header-utility nav { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; }
#header .header-utility .language-switcher { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; margin-left: 36px; }
#header .header-utility > .d-flex { -webkit-box-ordinal-group: 5; -ms-flex-order: 4; order: 4; }

.navbar > li {
	height: 52px;
	line-height: 52px;
	padding-right: 32px;
	font-size: 14px;
}

.navbar > li a {
	color: var(--ap-ink);
	font-weight: 400;
	transition: opacity .25s var(--ap-ease);
}

.navbar > li a:hover { opacity: .55; }

.navbar li .active {
	color: var(--ap-ink);
	border-bottom: none;
	padding-bottom: 0;
	font-weight: 500;
}

.navbar li ul {
	top: 52px;
	border-radius: var(--ap-radius-sm);
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
	border: 1px solid var(--ap-line-soft);
	padding: 12px 16px;
}

.navbar li ul li { line-height: 34px; font-size: 14px; }

@media (max-width:768px) {
	.navbar > li { border-bottom: 1px solid var(--ap-line-soft); height: 48px; line-height: 48px; }
	.navbar > li a { padding: 0 18px; }
}

#header .global-symbol img { max-height: 30px; }

/* ---------- 语言切换 ---------- */
.language-btn {
	border-radius: 980px !important;
	background: var(--ap-bg) !important;
	border: none !important;
	box-shadow: none !important;
	font-size: 13px !important;
}

.language-dropdown {
	border-radius: var(--ap-radius-sm) !important;
	border: 1px solid var(--ap-line-soft) !important;
	box-shadow: 0 10px 34px rgba(0,0,0,.14) !important;
}

.language-item { border-radius: 8px; }
.language-item:hover { background: var(--ap-bg) !important; }

/* ---------- 搜索 ---------- */
.search-form { border-bottom: 1px solid var(--ap-line); }
.search-form__control { font-size: 17px; font-weight: 400; color: var(--ap-ink); }
.search-form__control::placeholder { color: var(--ap-ink-3); }

.sch-m .schinput {
	border-radius: 980px;
	background: var(--ap-bg);
	border: 1px solid var(--ap-line-soft);
	padding: 10px 18px;
}

/* ---------- 内容区 ---------- */
#contents { padding-bottom: 60px; }

@media (min-width:1200px) {
	body.hub .main-hub .container,
	.main-hub .container {
		max-width: 1280px;
		min-width: 0;
		width: auto;
		margin: 0 auto;
		padding-left: 28px;
		padding-right: 28px;
	}
}

.billboard-main__title .text-inner {
	font-weight: 600 !important;
	letter-spacing: -.025em;
}

/* ---------- 卡片 ---------- */
.billboard {
	background: var(--ap-card);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
	padding: 14px 18px 20px;
	margin-top: 24px;
	overflow: hidden;
	transition: box-shadow .4s var(--ap-ease), transform .4s var(--ap-ease);
}

.billboard:hover {
	box-shadow: var(--ap-shadow-hover);
	transform: translateY(-3px);
}

.billboard-img { border-radius: var(--ap-radius-sm); }
.billboard-img img { border-radius: var(--ap-radius-sm); }

.billboard-line { display: none; }

.billboard .heading-small .text-inner {
	font-size: 17px;
	line-height: 24px;
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--ap-ink);
}

.billboard .heading-small a:hover { color: var(--ap-accent); }

.billboard p.label-text .text-inner {
	font-size: 13px;
	line-height: 19px;
	color: var(--ap-ink-3);
}

/* ---------- 标签 / 徽章 ---------- */
.badge { background-color: var(--ap-bg); color: var(--ap-ink); font-weight: 400; }

.badge-border {
	background-color: #fff;
	color: var(--ap-ink-2);
	border: 1px solid var(--ap-line);
	transition: background-color .25s var(--ap-ease), color .25s var(--ap-ease);
}

.badge-border:hover { background-color: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }

.badge-border .text-inner, .badge-border .text-gray-dark { color: inherit; }

.list-horizontal.gx-10 .list-item:hover { background: var(--ap-bg); }

/* ---------- 按钮 ---------- */
.btn {
	background-color: var(--ap-accent);
	border-radius: 980px;
	padding: 10px 20px;
	min-width: 0;
	font-weight: 400;
	transition: background-color .25s var(--ap-ease), opacity .25s var(--ap-ease);
}

.btn:hover { background-color: var(--ap-accent-dark); }

.btn .btn__text { font-weight: 400; letter-spacing: 0; }

.btn-border {
	background-color: #fff;
	border: 1px solid var(--ap-line);
	color: var(--ap-accent);
}

.btn-border:hover { background-color: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }

.btn-ghost { background-color: transparent; }
.btn-ghost:hover { background-color: rgba(0,0,0,.05); }

.btn-icon.btn-circle {
	background-color: rgba(255,255,255,.85);
	border: 1px solid var(--ap-line-soft);
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.icon.icon-black { color: var(--ap-ink); }

/* ---------- 文章详情 ---------- */
.hero .page-heading { text-shadow: 0 1px 24px rgba(0,0,0,.28); }
.hero .page-heading .text-inner {
	font-weight: 600;
	text-transform: none;
	letter-spacing: -.02em;
}
.hero .page-heading.text-kr .text-inner { font-weight: 600; }
.hero .body-text .text-inner { text-shadow: 0 1px 12px rgba(0,0,0,.3); font-weight: 400; }

.content-utility__wrap2 {
	text-align: center;
	padding: 4px 0 0;
	font-size: 13px;
	color: var(--ap-ink-3);
	border-top: none;
}

.content-utility__wrap2 .item { padding-right: 22px; }
.content-utility__wrap2 .item a { color: var(--ap-ink-3); }

.main-times .content-utility__wrap,
.art-content {
	border-top: 1px solid var(--ap-line-soft);
}

.art-content {
	padding-top: 34px;
	max-width: 760px;
	margin: 0 auto;
	float: none;
}

.art-content p {
	font-size: 17px;
	line-height: 1.75;
	color: #333;
	margin-bottom: 22px;
	letter-spacing: 0;
}

.art-content h1, .art-content h2, .art-content h3 {
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--ap-ink);
	margin: 42px 0 16px;
}

.art-content img { border-radius: var(--ap-radius-sm); }

.related { background-color: #fafafc; }
.related .slide-default__img { border-radius: var(--ap-radius-sm); }

/* ---------- 分页 ---------- */
.pagination .page-item,
.pagebar .page-item,
.pagination .page-link,
.pagebar .page-link {
	border-radius: 980px !important;
	border: 1px solid var(--ap-line-soft) !important;
	background: #fff !important;
	color: var(--ap-ink-2) !important;
	font-size: 13px;
	transition: all .25s var(--ap-ease);
}

.pagination .page-item:hover,
.pagebar .page-item:hover,
.pagination .active-page,
.pagebar .active {
	background: var(--ap-ink) !important;
	border-color: var(--ap-ink) !important;
	color: #fff !important;
}

/* ---------- 弹窗 ---------- */
.modal.modal-custom .modal-content { background-color: #fff; }
.backdrop { background-color: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- 移动端底部导航 ---------- */
#navBar {
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	background-color: rgba(255,255,255,.72);
	box-shadow: 0 -1px 0 0 var(--ap-line-soft);
}

/* ---------- 页脚 ---------- */
#footer {
	background-color: transparent;
	border-top: 1px solid var(--ap-line-soft);
	padding-top: 26px;
	font-size: 12px;
	color: var(--ap-ink-3);
}

#footer p, #footer a { color: var(--ap-ink-3); font-weight: 400; font-size: 12px; }
#footer a:hover { color: var(--ap-accent); }

#footer .list-horizontal a {
	background-image: none;
	-webkit-text-fill-color: var(--ap-ink-3);
	-webkit-background-clip: border-box;
	-webkit-animation: none;
	animation: none;
}

/* ---------- 去掉模板内彩虹渐变字（兜底） ---------- */
.navbar > li {
	background-image: none !important;
	-webkit-text-fill-color: var(--ap-ink) !important;
	-webkit-background-clip: border-box !important;
	-webkit-animation: none !important;
	animation: none !important;
}

/* ============================================================
   文章详情页（news）
   ============================================================ */

/* ---------- Hero 封面 ---------- */
.hero { height: auto; }

.hero .hero-visual {
	position: relative;
	height: 300px;
	background-color: #e8e8ed;
}

.hero .hero-visual:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45));
}

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

.hero .hero-caption { z-index: 2; justify-content: flex-end; padding: 0 24px 22px; }

.hero .page-heading { text-shadow: none; color: #fff; }

.hero .page-heading .text-inner,
.hero .page-heading.text-kr .text-inner {
	font-size: 26px;
	line-height: 36px;
	font-weight: 600;
	letter-spacing: -.02em;
	text-transform: none;
	color: #fff;
	width: 100%;
}

@media (min-width:768px) {
	.hero .hero-visual { height: 340px; border-radius: 0; }
	.hero .page-heading.text-kr .text-inner,
	.hero .page-heading .text-inner { font-size: 32px; line-height: 40px; }
}

@media (min-width:1024px) {
	.hero .hero-visual { height: 380px; }
	.hero .page-heading.text-kr .text-inner,
	.hero .page-heading .text-inner { font-size: 38px; line-height: 46px; }
	.hero .hero-caption { padding-bottom: 28px; }
}

@media (min-width:1440px) {
	.hero .hero-visual { height: 420px; }
	.hero .page-heading.text-kr .text-inner,
	.hero .page-heading .text-inner { font-size: 42px; line-height: 50px; max-width: 900px; margin: 0 auto; }
}

.hero .body-text { display: none; }

.hero-ad { max-width: 760px; margin: 14px auto 0; padding: 0 20px; }

/* ---------- 元信息行 ---------- */
.content-utility__wrap2 {
	max-width: 760px;
	margin: 0 auto;
	padding-top: 12px;
	font-size: 12px;
	color: var(--ap-ink-3);
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 0;
}

.content-utility__wrap2 .item { padding-right: 14px; display: inline-flex; align-items: center; }

.content-utility__wrap2 .item .icon {
	width: 14px;
	height: 14px;
	margin-right: 6px;
	opacity: .45;
}

.content-utility__wrap2 .item + .item:before {
	content: "·";
	margin-right: 14px;
	color: var(--ap-line);
}

.content-utility__wrap2 .item a { color: var(--ap-ink-3); }
.content-utility__wrap2 .item a:hover { color: var(--ap-accent); }

/* ---------- 正文 ---------- */
.art-content {
	padding-top: 30px;
	font-size: 17px;
}

.art-content a { color: var(--ap-accent); }
.art-content a:hover { text-decoration: underline; }

.art-content blockquote {
	margin: 28px 0;
	padding: 14px 22px;
	border-left: 3px solid var(--ap-accent);
	background: #fafafc;
	border-radius: 0 var(--ap-radius-sm) var(--ap-radius-sm) 0;
	color: var(--ap-ink-2);
}

.art-content hr { border: none; border-top: 1px solid var(--ap-line-soft); margin: 40px 0; }

.art-content ul, .art-content ol { padding-left: 26px; line-height: 1.9; color: #333; }

.art-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 28px 0;
	font-size: 15px;
}

.art-content table th, .art-content table td {
	border: 1px solid var(--ap-line-soft);
	padding: 10px 14px;
	text-align: left;
}

.art-content table th { background: var(--ap-bg); font-weight: 600; }

/* ---------- 标签 + 上一篇/下一篇 ---------- */
.main-times .content-utility__wrap {
	border-top: 1px solid var(--ap-line-soft);
	max-width: 980px;
	margin: 0 auto;
}

.content-utility .btn {
	min-width: 110px;
	padding: 9px 22px;
	font-size: 14px;
}

.content-utility .btn-border { background: #fff; }

/* ---------- 相关文章 ---------- */
.related { background: #fff; border-top: 1px solid var(--ap-line-soft); }

.related .heading-small .text-inner { font-size: 20px; letter-spacing: -.02em; }

.related .slide-default__img {
	border-radius: var(--ap-radius-sm);
	box-shadow: var(--ap-shadow);
	transition: transform .4s var(--ap-ease), box-shadow .4s var(--ap-ease);
}

.related .swiper-slide:hover .slide-default__img { transform: scale(1.02); box-shadow: var(--ap-shadow-hover); }

.related .heading-tiny .text-inner { font-weight: 500; color: var(--ap-ink); line-height: 21px; }
.related .heading-tiny { margin-top: 16px; margin-bottom: 8px; }

.related .body-text .text-inner { font-size: 13px; color: var(--ap-ink-3); }

.related .slide-prev.btn-ghost, .related .slide-next.btn-ghost {
	border: 1px solid var(--ap-line);
	border-radius: 980px;
	min-width: 44px;
	background: #fff;
}

.related .slide-prev.btn-ghost:hover, .related .slide-next.btn-ghost:hover { background: var(--ap-bg); }

/* ============================================================
   详情页 V2：面包屑 + 正文卡片 + 侧栏卡片
   ============================================================ */
.article-shell { max-width: 1200px; margin: 0 auto; padding-top: 20px; }

.article-crumb { font-size: 13px; color: var(--ap-ink-3); margin: 4px 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-crumb a { color: var(--ap-ink-3); }
.article-crumb a:hover { color: var(--ap-accent); }
.article-crumb i { font-style: normal; margin: 0 8px; color: var(--ap-line); }

.article-layout { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; gap: 24px; }

.article-card {
	flex: 1;
	min-width: 0;
	background: #fff;
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
	padding: 34px 42px 40px;
}

.article-title {
	font-size: 28px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--ap-ink);
	margin: 2px 0 12px;
}

.article-meta { font-size: 12px; color: var(--ap-ink-3); margin-bottom: 22px; }
.article-meta i { font-style: normal; margin: 0 8px; color: var(--ap-line); }

.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; display: block; border-radius: var(--ap-radius-sm); }

.article-card .hero-ad { max-width: none; margin: 0 0 6px; padding: 0; }

.article-card .art-content { max-width: none; border-top: 1px solid var(--ap-line-soft); padding-top: 26px; }

.article-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }

.article-pager {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--ap-line-soft);
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.article-pager .btn { min-width: 96px; }

/* ---------- 侧栏 ---------- */
.article-side {
	width: 320px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: -webkit-sticky;
	position: sticky;
	top: 76px;
}

.side-card { background: #fff; border-radius: var(--ap-radius); box-shadow: var(--ap-shadow); padding: 22px 24px 14px; }

.side-card__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--ap-ink);
	margin: 0 0 8px;
}

.side-card__more { font-size: 12px; font-weight: 400; color: var(--ap-ink-3); }
.side-card__more:hover { color: var(--ap-accent); }

.hot-list { list-style: none; counter-reset: ap-hot; margin: 0; padding: 0; }

.hot-list li { padding: 8px 0; border-bottom: 1px solid var(--ap-line-soft); counter-increment: ap-hot; }
.hot-list li:last-child { border-bottom: none; }

.hot-list li a { display: flex; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ap-ink); }
.hot-list li a:hover { color: var(--ap-accent); }

.hot-list li a:before {
	content: counter(ap-hot);
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	width: 20px;
	-ms-flex-negative: 0;
	flex: none;
	margin-right: 8px;
	color: var(--ap-ink-3);
}

.hot-list li:nth-child(-n+3) a:before { color: #c2410c; }

.rel-list { list-style: none; margin: 0; padding: 0; }

.rel-list a {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--ap-ink);
	border-bottom: 1px solid var(--ap-line-soft);
}

.rel-list li:last-child a { border-bottom: none; }
.rel-list a:hover .rel-list__t { color: var(--ap-accent); }

.rel-list__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-list__d { flex: none; font-size: 12px; color: var(--ap-ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
	.article-layout { flex-direction: column; align-items: stretch; }
	.article-side { width: 100%; position: static; }
}

@media (max-width: 767px) {
	.article-shell { padding-top: 12px; }
	.article-card { padding: 20px 18px 24px; border-radius: 14px; }
	.article-title { font-size: 21px; }
	.article-pager { flex-wrap: wrap; }
	.article-pager .btn { flex: 1; min-width: 0; }
	.side-card { border-radius: 14px; }
}
