:root {
	--km-bg: #060606;
	--km-panel: #0e0e0d;
	--km-line: rgba(214, 165, 76, .22);
	--km-gold: #e0ad50;
	--km-gold-light: #f4cf7a;
	--km-muted: #9f9789;
}

body.km-gold-home-page {
	background: var(--km-bg);
	color: #eee8dc;
}

body.km-gold-home-page #toptb { display: none; }
body.km-gold-home-page #wp { width: 100%; max-width: none; margin: 0; background: var(--km-bg); }
body.km-gold-home-page .hd_xin_top { display: none; }
body.km-gold-home-page .hd_xin {
	background: rgba(6, 6, 6, .96);
	border-bottom: 1px solid rgba(224, 173, 80, .16);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .32);
}
body.km-gold-home-page .hd_xin > .wp { max-width: 1320px; }
body.km-gold-home-page .nv_li a,
body.km-gold-home-page .qmenu_xin a { color: #d7cfbf !important; }
body.km-gold-home-page .nv_li.a a,
body.km-gold-home-page .nv_li a:hover { color: var(--km-gold-light) !important; }
body.km-gold-home-page #scbar { border-color: rgba(224, 173, 80, .2); background: #11110f; }
body.km-gold-home-page footer { background: #080807; border-top: 1px solid var(--km-line); }
body.km-gold-home-page #float_ad_activity,
body.km-gold-home-page #ad_corner_close { display: none !important; }
body.km-gold-home-page .nv_logo h2 { margin: 0; }
body.km-gold-home-page .nv_logo a { display: inline-flex; height: 70px; align-items: center; color: var(--km-gold-light) !important; font: 700 25px/1 "Times New Roman", Times, serif; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; letter-spacing: .04em; }
body.km-gold-home-page .nv_logo a::before { content: "4KM2TS"; }
body.km-gold-home-page .nv_logo img { display: none !important; }

.km-home, .km-home * { box-sizing: border-box; }
.km-home { overflow: hidden; background: radial-gradient(circle at 50% 0, #171109 0, #080706 31%, #050505 70%); color: #eee8dc; }
.km-home a { color: inherit; text-decoration: none; }
.km-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.km-hero {
	position: relative;
	min-height: 500px;
	background: #050505 url(home_gold_hero.png) center center / cover no-repeat;
	border-bottom: 1px solid var(--km-line);
}
.km-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(3,3,3,.16), rgba(3,3,3,.26) 36%, rgba(3,3,3,.08) 68%, rgba(3,3,3,.26));
}
.km-hero__inner { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; }
.km-hero__copy { width: 580px; padding: 30px 20px 42px; text-shadow: 0 3px 22px #000; }
.km-kicker { margin: 0 0 8px; color: #be9a56; font-size: 12px; letter-spacing: .42em; }
.km-hero h1 { margin: 0; color: var(--km-gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6vw, 92px); line-height: .95; letter-spacing: .04em; }
.km-hero h2 { margin: 14px 0 8px; color: #e6bd67; font-size: clamp(26px, 2.4vw, 40px); font-weight: 700; letter-spacing: .08em; }
.km-hero__meta { margin: 0; color: #e2d6be; font-size: 16px; letter-spacing: .04em; }
.km-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px auto 22px; max-width: 600px; }
.km-features span { color: #c9aa6e; font-size: 13px; white-space: nowrap; }
.km-features b { display: block; margin-bottom: 5px; color: var(--km-gold-light); font-size: 20px; }
.km-button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; height: 46px; padding: 0 26px; border: 1px solid #f0c461; border-radius: 6px; color: #161009 !important; background: linear-gradient(135deg, #f4d079, #c78a2e); box-shadow: 0 7px 28px rgba(208, 146, 47, .2); font-size: 15px; font-weight: 700; text-shadow: none; transition: .2s ease; }
.km-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.km-hero__dots { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; }
.km-hero__dots i { display: inline-block; width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: #635b4d; }
.km-hero__dots i:first-child { background: var(--km-gold); }

.km-section { padding-top: 34px; }
.km-section__head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 14px; }
.km-section__head h2 { margin: 0; color: var(--km-gold-light); font-size: 20px; font-weight: 700; }
.km-section__head h2 span { margin-right: 8px; color: #ff7a00; font-size: 14px; }
.km-section__head > a { color: #d7ad5e; font-size: 13px; }
.km-section__head > a b { font-size: 18px; }

.km-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.km-feature-card, .km-latest-card, .km-notice, .km-vip { border: 1px solid rgba(226, 183, 93, .14); border-radius: 9px; background: linear-gradient(145deg, rgba(20,20,18,.97), rgba(8,8,8,.98)); box-shadow: 0 10px 36px rgba(0,0,0,.3); }
.km-feature-card { overflow: hidden; transition: .22s ease; }
.km-feature-card:hover, .km-latest-card:hover { transform: translateY(-4px); border-color: rgba(226,183,93,.38); box-shadow: 0 14px 42px rgba(0,0,0,.5); }
.km-cover { position: relative; display: block; overflow: hidden; background: linear-gradient(145deg, #19140c, #080808); }
.km-feature-card .km-cover { aspect-ratio: 16 / 10; }
.km-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.km-cover__image { position: absolute; inset: 0; display: block; background-position: center; background-size: cover; transition: transform .35s ease; }
.km-feature-card:hover .km-cover img, .km-latest-card:hover .km-cover img { transform: scale(1.035); }
.km-feature-card:hover .km-cover__image, .km-latest-card:hover .km-cover__image { transform: scale(1.035); }
.km-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); pointer-events: none; }
.km-cover__empty { display: flex; min-height: 100%; align-items: center; justify-content: center; color: #c89948; font: 700 28px/1.1 Georgia, serif; letter-spacing: .08em; text-align: center; }
.km-format, .km-heat { position: absolute; z-index: 1; top: 10px; border-radius: 4px; color: #1a1205; background: linear-gradient(135deg, #f4d06e, #b97c21); font-size: 11px; font-weight: 700; line-height: 22px; }
.km-format { left: 10px; padding: 0 8px; }
.km-heat { right: 10px; padding: 0 7px; color: #f2ca70; background: rgba(0,0,0,.72); }
.km-feature-card__body { padding: 14px 15px 16px; }
.km-feature-card h3, .km-latest-card h3 { overflow: hidden; margin: 0; color: #eee5d4; font-size: 16px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.km-feature-card h3 a:hover, .km-latest-card h3 a:hover { color: var(--km-gold-light); }
.km-feature-card__body p { margin: 7px 0 3px; color: #b89a60; font-size: 12px; }
.km-feature-card__body p span { color: var(--km-gold-light); font-weight: 700; }
.km-feature-card__body small { color: #777166; font-size: 11px; }

.km-latest-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.km-latest-card { min-width: 0; padding: 8px 8px 11px; transition: .22s ease; }
.km-latest-card .km-cover { aspect-ratio: 2 / 3; border-radius: 6px; }
.km-latest-card h3 { margin-top: 9px; font-size: 13px; }
.km-latest-card p { margin: 3px 0 0; color: #a4854d; font-size: 10px; }

.km-info { display: grid; grid-template-columns: 1.7fr .8fr; gap: 18px; padding-top: 34px; padding-bottom: 42px; }
.km-notice, .km-vip { padding: 18px 20px; }
.km-notice .km-section__head { margin-bottom: 8px; border-bottom: 1px solid rgba(224,173,80,.12); }
.km-notice ul, .km-vip ul { margin: 0; padding: 0; list-style: none; }
.km-notice li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 34px; color: #c9c1b3; }
.km-notice li > span { padding: 2px 6px; border: 1px solid #9f6f28; border-radius: 3px; color: #d9a74f; font-size: 10px; }
.km-notice li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.km-notice li time { color: #7f786e; font-size: 11px; }
.km-vip h2 { margin: 0 0 13px; color: var(--km-gold-light); font-size: 20px; }
.km-vip li { position: relative; margin: 8px 0; padding-left: 18px; color: #bab1a1; font-size: 13px; }
.km-vip li::before { content: "✓"; position: absolute; left: 0; color: var(--km-gold); }
.km-button--small { width: 100%; min-width: 0; height: 36px; margin-top: 8px; font-size: 13px; }
.km-mobile-nav { display: none; }
.km-loading { grid-column: 1 / -1; min-height: 100px; display: flex; align-items: center; justify-content: center; color: #8e826f; }
#km-resource-source, #km-thread-fallback { display: none !important; }

@media (max-width: 1050px) {
	.km-shell { width: min(100% - 32px, 960px); }
	.km-feature-grid { grid-template-columns: repeat(2, 1fr); }
	.km-latest-grid { grid-template-columns: repeat(4, 1fr); }
	.km-hero { background-position: center; }
}

@media (max-width: 680px) {
	html, body.km-gold-home-page { width: 100% !important; min-width: 0 !important; overflow-x: hidden !important; }
	body.km-gold-home-page { padding-bottom: 66px; }
	body.km-gold-home-page header,
	body.km-gold-home-page #append_parent,
	body.km-gold-home-page .hd_xin,
	body.km-gold-home-page .hd_xin > .wp,
	body.km-gold-home-page .nv_xin,
	body.km-gold-home-page #wp,
	body.km-gold-home-page .km-home { width: 100vw !important; min-width: 0 !important; max-width: 100vw !important; }
	body.km-gold-home-page header *,
	body.km-gold-home-page .hd_xin > .wp { box-sizing: border-box; }
	body.km-gold-home-page .hd_xin { height: 62px; }
	body.km-gold-home-page .hd_xin > .wp { padding: 0 15px; }
	body.km-gold-home-page .nv_xin { position: relative; display: flex; height: 42px; align-items: center; justify-content: space-between; }
	body.km-gold-home-page .nv_logo { float: none; }
	body.km-gold-home-page .nv_logo h2,
	body.km-gold-home-page .nv_logo a { height: 42px; }
	body.km-gold-home-page .nv_logo img { max-width: 125px; }
	body.km-gold-home-page .nv_li { display: none; }
	body.km-gold-home-page .qmenu_xin { position: absolute; top: 10px; right: 54px; float: none; margin: 0; }
	body.km-gold-home-page #scbar { position: absolute; top: 18px; right: 8px; left: auto; float: none; width: 42px; min-width: 42px; margin-top: 0; overflow: hidden; border: 0; background: transparent; }
	body.km-gold-home-page #scbar .scbar_type_td,
	body.km-gold-home-page #scbar .scbar_txt_td { display: none !important; }
	body.km-gold-home-page .byg_nav_pop,
	body.km-gold-home-page #mu { display: none !important; }
	body.km-gold-home-page footer { display: none !important; }

	.km-shell { width: calc(100% - 24px); }
	.km-hero { min-height: 560px; background-image: url(home_gold_hero_mobile.png); background-position: center bottom; }
	.km-hero::before { background: linear-gradient(180deg, rgba(2,2,2,.04), rgba(2,2,2,.08) 45%, rgba(2,2,2,.24)); }
	.km-hero__inner { min-height: 560px; align-items: flex-start; }
	.km-hero__copy { width: 100%; padding: 54px 8px 0; }
	.km-kicker { font-size: 9px; letter-spacing: .3em; }
	.km-hero h1 { font-size: 48px; }
	.km-hero h2 { margin-top: 9px; font-size: 24px; }
	.km-hero__meta { font-size: 12px; }
	.km-features { grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 19px; }
	.km-features span { font-size: 9px; }
	.km-features b { font-size: 15px; }
	.km-button { min-width: 160px; height: 40px; font-size: 13px; }
	.km-hero__dots { bottom: 12px; }

	.km-section { padding-top: 24px; }
	.km-section__head { margin-bottom: 10px; }
	.km-section__head h2 { font-size: 17px; }
	.km-feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.km-feature-card .km-cover { aspect-ratio: 2 / 3; }
	.km-feature-card__body { padding: 10px 9px 12px; }
	.km-feature-card h3 { font-size: 13px; }
	.km-feature-card__body p { font-size: 10px; }
	.km-feature-card__body small { display: none; }
	.km-heat { display: none; }

	.km-latest-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
	.km-latest-card { padding: 5px 5px 8px; }
	.km-latest-card h3 { margin-top: 6px; font-size: 11px; }
	.km-latest-card p { font-size: 8px; }
	.km-latest-card .km-format { top: 5px; left: 5px; padding: 0 5px; line-height: 18px; font-size: 9px; }

	.km-info { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; padding-bottom: 22px; }
	.km-notice, .km-vip { padding: 14px; }
	.km-notice li { grid-template-columns: auto 1fr; gap: 7px; }
	.km-notice li time { display: none; }
	.km-vip { display: none; }

	.km-mobile-nav { position: fixed; z-index: 999; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(224,173,80,.22); background: rgba(7,7,7,.96); backdrop-filter: blur(12px); }
	.km-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #aaa297; font-size: 10px; }
	.km-mobile-nav b { margin-bottom: 2px; color: #d8c99f; font-size: 23px; line-height: 24px; }
	.km-mobile-nav .is-current, .km-mobile-nav .is-current b { color: var(--km-gold-light); }
}

@media (max-width: 380px) {
	.km-hero { min-height: 525px; }
	.km-hero__inner { min-height: 525px; }
	.km-features span { font-size: 8px; }
	.km-latest-grid { grid-template-columns: repeat(3, 1fr); }
}
