/* 首页新皮肤：内容与功能不变，只换视觉 */
:root {
  --hc-max: 720px;
  --hc-paper: #f7f3eb;
  --hc-card: #ffffff;
  --hc-ink: #1c1410;
  --hc-muted: #6b5e52;
  --hc-line: #e4d9c8;
  --hc-accent: #c41e3a;
  --hc-accent-deep: #8e1026;
  --hc-gold: #c9a227;
  --hc-gold-soft: #f3e6b8;
  --hc-sea: #0f3d4c;
  --hc-sea-text: #ffe566;
  --hc-radius: 14px;
  --hc-shadow: 0 10px 30px rgba(28, 20, 16, .12);
  --hc-top: 62px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 420px at 50% -6%, rgba(201, 162, 39, .16), transparent 55%),
    linear-gradient(180deg, #efe6d6 0%, #e8dfd0 45%, #e2d8c8 100%);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto !important;
  padding: 0 0 28px !important;
  width: 100%;
  max-width: var(--hc-max) !important;
  background: var(--hc-paper);
  color: var(--hc-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  text-align: left;
  box-shadow: var(--hc-shadow);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; display: block; }

.hc-wrap { width: 100%; background: var(--hc-paper); }

/* ===== 顶栏 ===== */
.hc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--hc-top);
  padding: 10px 14px;
  background: linear-gradient(180deg, #2f241c 0%, #1b140f 100%);
  border-bottom: 2px solid var(--hc-gold);
}
.hc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hc-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hc-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.22);
  background: #000;
  flex: none;
}
.hc-brand-mark--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hc-gold-soft);
  font-size: 18px;
  font-weight: 900;
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
}
.hc-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-brand-text strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
}
.hc-brand-text small {
  color: var(--hc-gold-soft);
  font-size: 11px;
  opacity: .92;
}
.hc-home-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,162,39,.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, transform .15s ease;
}
.hc-home-btn:hover { background: rgba(201,162,39,.22); }
.hc-home-btn:active { transform: scale(.97); }

/* 主视觉（单图 / 多图轮播外观一致） */
.hc-hero {
  position: relative;
  overflow: hidden;
  background: #111;
}
.hc-hero img { width: 100%; display: block; }
.hc-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--hc-paper));
  pointer-events: none;
  z-index: 2;
}
.hc-hero-track { position: relative; }
.hc-hero--slider .hc-hero-slide {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.hc-hero--slider .hc-hero-slide.is-on {
  position: relative;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.hc-hero--slider .hc-hero-slide:not(.is-on) {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
}
.hc-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.hc-hero-dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hc-hero-dot.is-on { background: rgba(255,255,255,.95); }

/* 导航 */
.hc-nav {
  position: sticky;
  top: var(--hc-top);
  z-index: 90;
  padding: 10px 10px 8px;
  background: rgba(247, 243, 235, .94);
  border-bottom: 1px solid var(--hc-line);
  backdrop-filter: blur(10px);
}
.hc-nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-nav ul + ul { margin-top: 6px; }
.hc-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 4px;
  text-align: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--hc-accent) 0%, var(--hc-accent-deep) 100%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0 3px 0 rgba(142, 16, 38, .35);
  transition: filter .15s ease, transform .1s ease;
}
.hc-nav a:hover { filter: brightness(1.06); }
.hc-nav a:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(142, 16, 38, .35);
}

/* 公告 */
.home-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  background: #fff8e8;
  border: 1px solid #f0d9a0;
  border-radius: 12px;
  color: #8a5a10;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.home-notice-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0b429, #d4890d);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.home-notice-viewport { overflow: hidden; flex: 1; min-width: 0; }
.home-notice-body { white-space: nowrap; display: inline-block; }
.home-notice-body.is-marquee { animation: homeNoticeMarquee linear infinite; }
@keyframes homeNoticeMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 域名条（扒站 ymgg） */
.hc-domain {
  margin: 12px;
  border-radius: var(--hc-radius);
  overflow: hidden;
  border: 1px solid #0a2c36;
  box-shadow: var(--hc-shadow);
}
.hc-domain table {
  width: 100%;
  border-collapse: collapse;
  background: #ffff00;
}
.hc-domain td {
  border: 1px solid #ccc;
  padding: 10px 8px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: #00f;
  line-height: 1.25;
}
.hc-domain td a { color: inherit; }
.hc-domain td.hc-domain-empty {
  border: 0;
  background: #ffff00;
  padding: 0;
}
.hc-domain .tit {
  background: #256789;
  color: #ff0;
  font-size: 17px;
  letter-spacing: 1px;
  border-color: #0a2c36;
  font-family: "Microsoft YaHei", sans-serif;
  padding: 12px 8px;
}

/* 栏目中域名牌（扒站琴棋书画后红框） */
.hc-domain-board {
  margin: 0 12px 12px;
  border: 10px double #ff0;
  background: #000;
  text-align: center;
  box-shadow: 0 6px 18px rgba(28, 20, 16, .12);
}
.hc-domain-board a {
  display: block;
  padding: 14px 10px 16px;
  font-family: "Microsoft YaHei", "SimHei", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  color: #ff0;
}
.hc-domain-board .hc-dom-brand { color: #ff0; }
.hc-domain-board .hc-dom-pre { color: #ff0; }
.hc-domain-board .hc-dom-hot { color: #f00; }

/* 区块 */
.hc-gap { height: 10px; background: transparent; }

.hc-block {
  margin: 0 12px 12px;
  background: var(--hc-card);
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28, 20, 16, .06);
  animation: hcRise .45s ease both;
}
@keyframes hcRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #2a1f18, #3a2a20);
  color: #fff;
  border-bottom: 2px solid var(--hc-gold);
}
.hc-block-head b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
}
.hc-block-head span {
  font-size: 11px;
  color: var(--hc-gold-soft);
  opacity: .9;
}

.hc-iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

.hc-promo {
  margin: 0 12px 12px;
  border-radius: var(--hc-radius);
  overflow: hidden;
  border: 1px solid var(--hc-line);
  box-shadow: 0 4px 14px rgba(28, 20, 16, .05);
}
.hc-promo img { width: 100%; display: block; }

.hc-own { background: #fff; }
.hc-own table { width: 100% !important; }

/* 扒站末尾图库入口（dd2，无标题栏） */
.hc-dd2 {
  margin: 0 12px 12px;
  padding: 8px 6px 10px;
  background: #fff;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
}
.hc-dd2 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
}
.hc-dd2 td {
  text-align: center;
  font-size: 15px;
  width: 33.33%;
}
.hc-dd2 td a {
  display: block;
  line-height: 48px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 5px;
  color: #333;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.hc-dd2 td a:hover,
.hc-dd2 td a:active {
  background: #55dd88;
  color: #fff;
  border-color: #3cbc40;
}
@media screen and (max-width: 750px) {
  .hc-dd2 td { font-size: 13px; }
  .hc-dd2 td a { line-height: 36px; }
}

/* 图库悬浮预览 */
.hc-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.hc-lb[hidden] { display: none !important; }
.hc-lb-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}
.hc-lb-panel {
  position: relative;
  z-index: 1;
  max-width: min(960px, 96vw);
  max-height: 90vh;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  overflow: auto;
}
.hc-lb-img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
.hc-lb-x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 28px;
  line-height: 34px;
  cursor: pointer;
  padding: 0;
}
.hc-lb-x:hover { background: rgba(220, 38, 38, .9); }

.hc-foot {
  margin: 8px 12px 0;
  padding: 18px 14px 22px;
  border-radius: var(--hc-radius);
  background: linear-gradient(180deg, #1b140f, #120e0b);
  color: #cbb8a4;
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
  border: 1px solid rgba(201,162,39,.35);
}
.hc-foot b {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--hc-gold-soft);
  font-size: 15px;
  font-family: KaiTi, STKaiti, "Microsoft YaHei", serif;
}
.hc-foot p { margin: 0 0 4px; }

@media (min-width: 800px) {
  .hc-nav a { font-size: 13px; min-height: 38px; }
  .hc-domain td { font-size: 15px; }
  .hc-brand-text strong { font-size: 20px; }
}
