/* ==========================================================================
   傅大师 · 国学易学个人品牌官网
   新中式东方美学样式表 (黑金 · 深棕 · 米白)
   ========================================================================== */

:root {
  /* 核心色彩系统 */
  --bg-ink: #0d0b09;
  --bg-obsidian: #14110e;
  --bg-study: #1c1612;
  --bg-mahogany: #281e17;
  --bg-mahogany-light: #36281f;

  --gold-primary: #c9a45c;
  --gold-bright: #e0bf7b;
  --gold-dim: #8f7039;
  --gold-hairline: rgba(201, 164, 92, 0.28);
  --gold-glow: rgba(201, 164, 92, 0.14);

  --ivory: #f5efe4;
  --parchment: #e7decb;
  --muted-ivory: #b7ab97;
  --stone-gray: #8a7f6e;
  --ink-on-light: #241b15;
  --seal-red: #8e2a22;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 尺寸与动效 */
  --container-max: 1220px;
  --header-height: 78px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 32px rgba(201, 164, 92, 0.12);
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-ink);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ivory);
  background: radial-gradient(circle at 18% 12%, rgba(54, 40, 31, 0.42) 0%, transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(40, 30, 23, 0.35) 0%, transparent 50%),
              var(--bg-ink);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* 排版规范 */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.38;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section--compact {
  padding: 72px 0;
}

.section--parchment {
  background: linear-gradient(180deg, #f3ece0 0%, #ebe1cf 100%);
  color: var(--ink-on-light);
}

.section--study {
  background: linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-study) 55%, var(--bg-obsidian) 100%);
}

.section--mahogany {
  background: linear-gradient(135deg, #1b1410 0%, #271d16 55%, #17110d 100%);
}

/* 背景水印层（水墨山水、古典书房、八卦太极） */
.bg-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-atmosphere__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: sepia(22%) contrast(1.05);
}

.bg-atmosphere__img--light {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.bg-atmosphere__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.88) 0%, rgba(13, 11, 9, 0.58) 50%, rgba(13, 11, 9, 0.94) 100%);
}

.bg-atmosphere__veil--parchment {
  background: linear-gradient(180deg, rgba(243, 236, 224, 0.9) 0%, rgba(235, 225, 207, 0.72) 50%, rgba(243, 236, 224, 0.94) 100%);
}

.bg-bagua-watermark {
  position: absolute;
  width: 560px;
  height: 560px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  animation: slowRotate 90s linear infinite;
}

.bg-bagua-watermark--right {
  top: -120px;
  right: -140px;
}

.bg-bagua-watermark--left {
  bottom: -160px;
  left: -160px;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section > .container {
  position: relative;
  z-index: 2;
}

/* 栏目标题与中式装饰 */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.section-eyebrow::after {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.section-header--left .section-eyebrow::before {
  display: none;
}

.section--parchment .section-eyebrow {
  color: #7d5c24;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--ivory);
}

.section--parchment .section-title {
  color: var(--ink-on-light);
}

.section-desc {
  font-size: 1rem;
  color: var(--muted-ivory);
  line-height: 1.9;
}

.section--parchment .section-desc {
  color: #534438;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  width: 180px;
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hairline), var(--gold-primary));
}

.gold-divider::after {
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-hairline), transparent);
}

.gold-divider__diamond {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-primary);
  transform: rotate(45deg);
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-serif);
  font-size: 0.975rem;
  letter-spacing: 0.12em;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn--gold {
  background: linear-gradient(135deg, #d7b46a 0%, #b38b42 100%);
  color: #140f0a;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(201, 164, 92, 0.24);
}

.btn--gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e5c681 0%, #c69d51 100%);
  box-shadow: 0 12px 30px rgba(201, 164, 92, 0.36);
}

.btn--outline {
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  background: rgba(20, 17, 14, 0.45);
}

.btn--outline:hover {
  background: rgba(201, 164, 92, 0.14);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn--outline-dark {
  border: 1px solid #8a6930;
  color: #5c4217;
  background: transparent;
}

.btn--outline-dark:hover {
  background: rgba(138, 105, 48, 0.1);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(13, 11, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-hairline);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__logo {
  width: 46px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(201, 164, 92, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted-ivory);
  margin-top: 3px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--parchment);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 8px 18px;
  font-size: 0.875rem;
  margin-left: 6px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  color: var(--gold-bright);
}

/* 移动端抽屉导航 */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 11, 9, 0.97);
  backdrop-filter: blur(18px);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 1.15rem;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}

.nav-mobile .nav-link::after {
  display: none;
}

/* 首页主视觉 Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 68px 0 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 72% 42%, rgba(62, 43, 28, 0.45) 0%, rgba(13, 11, 9, 0.98) 65%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero__seal-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--gold-hairline);
  background: rgba(36, 27, 21, 0.7);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.hero__seal-dot {
  width: 6px;
  height: 6px;
  background: var(--seal-red);
  border: 1px solid var(--gold-primary);
  transform: rotate(45deg);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.08em;
  color: var(--ivory);
  margin-bottom: 22px;
}

.hero__title span {
  display: block;
  color: var(--gold-bright);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--parchment);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 0.98rem;
  color: var(--muted-ivory);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}

.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-hairline);
}

.hero__pillar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.hero__pillar-text {
  font-size: 0.84rem;
  color: var(--muted-ivory);
  line-height: 1.65;
}

/* 主视觉右侧大师肖像画框 */
.hero__portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(54, 40, 31, 0.9), rgba(19, 16, 13, 0.95));
  border: 1px solid rgba(201, 164, 92, 0.42);
  box-shadow: var(--shadow-deep), var(--shadow-gold);
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-bright);
  border-style: solid;
  pointer-events: none;
}

.portrait-frame::before {
  top: -6px;
  left: -6px;
  border-width: 2px 0 0 2px;
}

.portrait-frame::after {
  bottom: -6px;
  right: -6px;
  border-width: 0 2px 2px 0;
}

.portrait-frame__inner {
  position: relative;
  overflow: hidden;
  background: #110e0c;
  aspect-ratio: 900 / 942;
}

.portrait-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s ease;
}

.portrait-frame:hover .portrait-frame__img {
  transform: scale(1.02);
}

.portrait-frame__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 4px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--parchment);
}

.portrait-frame__seal {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(142, 42, 34, 0.85);
  background: rgba(142, 42, 34, 0.2);
  color: #e49c94;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* 卡片与网格系统 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(36, 27, 21, 0.78) 0%, rgba(20, 17, 14, 0.92) 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 92, 0.58);
  box-shadow: var(--shadow-gold);
}

.card--parchment {
  background: rgba(252, 248, 241, 0.82);
  border: 1px solid rgba(143, 112, 57, 0.28);
  color: var(--ink-on-light);
}

.card--parchment:hover {
  border-color: rgba(143, 112, 57, 0.65);
  box-shadow: 0 14px 36px rgba(40, 30, 23, 0.1);
}

.card__num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.card--parchment .card__num {
  color: #8a6425;
}

.card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ivory);
}

.card--parchment .card__title {
  color: var(--ink-on-light);
}

.card__text {
  font-size: 0.95rem;
  color: var(--muted-ivory);
  line-height: 1.85;
}

.card--parchment .card__text {
  color: #4f4135;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.card--parchment .card__link {
  color: #7d591c;
}

.card__link:hover {
  gap: 12px;
}

/* 简介图文分栏 */
.split-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.split-panel__media {
  position: relative;
  border: 1px solid var(--gold-hairline);
  padding: 12px;
  background: rgba(20, 17, 14, 0.88);
  box-shadow: var(--shadow-deep);
}

.split-panel__media img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.quote-box {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold-primary);
  background: rgba(201, 164, 92, 0.08);
  font-family: var(--font-serif);
  color: var(--parchment);
}

.section--parchment .quote-box {
  background: rgba(143, 112, 57, 0.09);
  color: #382a1e;
}

.placeholder-notice {
  padding: 18px 22px;
  border: 1px dashed rgba(201, 164, 92, 0.55);
  background: rgba(40, 30, 23, 0.55);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.section--parchment .placeholder-notice {
  background: rgba(143, 112, 57, 0.08);
  border-color: rgba(143, 112, 57, 0.55);
  color: #6f4e19;
}

/* 五行八卦互动小部件 (首页 & 易经页) */
.widget-shell {
  padding: 40px;
  background: linear-gradient(155deg, rgba(28, 22, 18, 0.92) 0%, rgba(16, 13, 11, 0.96) 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
}

.widget-tabs {
  display: inline-flex;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 32px;
}

.widget-tab {
  padding: 10px 24px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted-ivory);
  background: rgba(20, 17, 14, 0.6);
  transition: background-color var(--transition), color var(--transition);
}

.widget-tab.is-active {
  background: linear-gradient(135deg, #c9a45c 0%, #9f7c3b 100%);
  color: #140f0a;
  font-weight: 600;
}

.widget-panel {
  display: none;
}

.widget-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
}

/* 五行盘 */
.wuxing-stage {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.wuxing-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wuxing-node {
  position: absolute;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: #1b1511;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  z-index: 2;
}

.wuxing-node strong {
  font-size: 1.25rem;
  color: var(--ivory);
  line-height: 1.1;
}

.wuxing-node span {
  font-size: 0.72rem;
  color: var(--muted-ivory);
}

.wuxing-node:hover,
.wuxing-node.is-active {
  transform: scale(1.1);
  border-color: var(--gold-bright);
  background: radial-gradient(circle, rgba(201, 164, 92, 0.25) 0%, #241b15 80%);
  box-shadow: 0 0 24px rgba(201, 164, 92, 0.28);
}

.wuxing-node.is-sheng {
  border-color: #6ab586;
  box-shadow: 0 0 18px rgba(106, 181, 134, 0.28);
}

.wuxing-node.is-ke {
  border-color: #c96c5b;
  box-shadow: 0 0 18px rgba(201, 108, 91, 0.28);
}

/* 五行五角坐标 */
.wuxing-node[data-el="fire"]  { left: 50%; top: 14%; }
.wuxing-node[data-el="earth"] { left: 85%; top: 40%; }
.wuxing-node[data-el="metal"] { left: 72%; top: 82%; }
.wuxing-node[data-el="water"] { left: 28%; top: 82%; }
.wuxing-node[data-el="wood"]  { left: 15%; top: 40%; }

.widget-detail {
  padding: 28px;
  background: rgba(13, 11, 9, 0.65);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
}

.widget-detail__badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.widget-detail__title {
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 14px;
}

.widget-detail__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(201, 164, 92, 0.16);
  border-bottom: 1px solid rgba(201, 164, 92, 0.16);
  font-size: 0.9rem;
}

.widget-detail__meta span {
  color: var(--muted-ivory);
}

.widget-detail__meta strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.relation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.relation-pill {
  padding: 5px 12px;
  font-size: 0.84rem;
  border-radius: 2px;
  border: 1px solid var(--gold-hairline);
  background: rgba(36, 27, 21, 0.7);
}

.relation-pill--sheng {
  border-color: rgba(106, 181, 134, 0.55);
  color: #a8dfbd;
}

.relation-pill--ke {
  border-color: rgba(201, 108, 91, 0.55);
  color: #eeb0a5;
}

/* 八卦互动图 */
.bagua-stage {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bagua-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: radial-gradient(circle, rgba(201, 164, 92, 0.08) 0%, transparent 68%);
}

.bagua-taiji {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 0 28px rgba(201, 164, 92, 0.16);
  z-index: 2;
}

.bagua-node {
  position: absolute;
  width: 66px;
  height: 66px;
  margin-left: -33px;
  margin-top: -33px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: #1b1511;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
  z-index: 3;
}

.bagua-node__sym {
  font-size: 1.15rem;
  color: var(--gold-bright);
  line-height: 1;
}

.bagua-node__name {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--ivory);
  margin-top: 2px;
}

.bagua-node:hover,
.bagua-node.is-active {
  transform: scale(1.12);
  border-color: var(--gold-bright);
  background: #2f231a;
  box-shadow: 0 0 22px rgba(201, 164, 92, 0.34);
}

/* 先天八卦八方位 */
.bagua-node[data-gua="qian"] { left: 50%; top: 10%; }
.bagua-node[data-gua="dui"]  { left: 22%; top: 22%; }
.bagua-node[data-gua="li"]   { left: 10%; top: 50%; }
.bagua-node[data-gua="zhen"] { left: 22%; top: 78%; }
.bagua-node[data-gua="kun"]  { left: 50%; top: 90%; }
.bagua-node[data-gua="gen"]  { left: 78%; top: 78%; }
.bagua-node[data-gua="kan"]  { left: 90%; top: 50%; }
.bagua-node[data-gua="xun"]  { left: 78%; top: 22%; }

/* 摄影画廊 · 轮播展台 + 典藏网格 */
.carousel {
  position: relative;
  border: 1px solid var(--gold-hairline);
  background: rgba(20, 17, 14, 0.94);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 42px;
  box-shadow: var(--shadow-deep);
}

.carousel__viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.carousel__media {
  position: relative;
  height: 440px;
  background: #0b0908;
  border: 1px solid rgba(201, 164, 92, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.carousel__media:hover img {
  transform: scale(1.015);
}

.carousel__zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  background: rgba(13, 11, 9, 0.82);
  border: 1px solid var(--gold-hairline);
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.carousel__info {
  padding: 8px 6px;
}

.carousel__counter {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.carousel__title {
  font-size: 1.65rem;
  color: var(--ivory);
  margin-bottom: 14px;
}

.carousel__desc {
  font-size: 0.98rem;
  color: var(--parchment);
  line-height: 1.9;
  margin-bottom: 24px;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.carousel__btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-hairline);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  background: rgba(36, 27, 21, 0.75);
  transition: background-color var(--transition), border-color var(--transition);
}

.carousel__btn:hover {
  background: rgba(201, 164, 92, 0.2);
  border-color: var(--gold-bright);
}

.carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 164, 92, 0.16);
}

.carousel__thumb {
  position: relative;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: #120f0c;
  padding: 6px;
  text-align: left;
  border-radius: 3px;
  opacity: 0.68;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}

.carousel__thumb:hover,
.carousel__thumb.is-active {
  opacity: 1;
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.carousel__thumb img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  object-position: center 15%;
  margin-bottom: 6px;
}

.carousel__thumb span {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 画廊作品卡片网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(36, 27, 21, 0.78) 0%, rgba(18, 14, 11, 0.96) 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.gallery-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0d0b09;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-card__img-wrap img {
  transform: scale(1.04);
}

.gallery-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background: rgba(13, 11, 9, 0.82);
  border: 1px solid var(--gold-hairline);
  font-size: 0.75rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.gallery-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card__title {
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 8px;
}

.gallery-card__desc {
  font-size: 0.9rem;
  color: var(--muted-ivory);
  line-height: 1.75;
  flex: 1;
}

.gallery-card__action {
  margin-top: 14px;
  align-self: flex-start;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

/* 品牌印记展示条（logo.png，独立于画廊人物区） */
.brand-seal-banner {
  margin-top: 34px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(46, 22, 19, 0.45) 0%, rgba(28, 22, 18, 0.85) 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
}

.brand-seal-banner__left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-seal-banner__img {
  width: 84px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(201, 164, 92, 0.6);
  cursor: zoom-in;
  flex-shrink: 0;
}

/* 灯箱 Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 7, 6, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  max-width: 1020px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: rgba(20, 17, 14, 0.85);
  color: var(--gold-bright);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background: rgba(201, 164, 92, 0.2);
}

.lightbox__stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.lightbox__img {
  max-height: 76vh;
  max-width: min(82vw, 880px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(201, 164, 92, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  background: #0d0b09;
}

.lightbox__nav {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  background: rgba(20, 17, 14, 0.85);
  color: var(--gold-bright);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav:hover {
  background: rgba(201, 164, 92, 0.22);
}

.lightbox__caption {
  margin-top: 18px;
  text-align: center;
  max-width: 680px;
}

.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.lightbox__desc {
  font-size: 0.94rem;
  color: var(--parchment);
}

/* 内页 Page Hero */
.page-hero {
  position: relative;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--gold-hairline);
  overflow: hidden;
  background: linear-gradient(180deg, #16110e 0%, #0e0b09 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-ivory);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

.page-hero__title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  color: var(--ivory);
  margin-bottom: 14px;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: var(--parchment);
  line-height: 1.85;
}

/* 联系表单与联系方式 */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 26px 0;
}

.contact-item {
  padding: 18px 20px;
  border: 1px solid var(--gold-hairline);
  background: rgba(20, 17, 14, 0.72);
  border-radius: var(--radius-sm);
}

.contact-item__label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 1.05rem;
  color: var(--ivory);
}

.form-card {
  padding: 36px 34px;
  background: linear-gradient(160deg, rgba(36, 27, 21, 0.88) 0%, rgba(18, 14, 11, 0.96) 100%);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--parchment);
  letter-spacing: 0.06em;
}

.form-label .req {
  color: var(--gold-bright);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ivory);
  background: rgba(13, 11, 9, 0.85);
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.14);
}

textarea.form-control {
  min-height: 128px;
  resize: vertical;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.form-status {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.95rem;
  line-height: 1.75;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: rgba(45, 96, 65, 0.25);
  border: 1px solid rgba(106, 181, 134, 0.6);
  color: #cbeeda;
}

.form-status--error {
  background: rgba(142, 42, 34, 0.24);
  border: 1px solid rgba(220, 108, 97, 0.6);
  color: #f4c7c2;
}

/* 短文与文章排版 */
.essay-card {
  padding: 36px 34px;
  background: rgba(252, 248, 241, 0.9);
  border: 1px solid rgba(143, 112, 57, 0.3);
  border-radius: var(--radius-sm);
  color: var(--ink-on-light);
}

.essay-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(143, 112, 57, 0.45);
  color: #7c591e;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.essay-card__title {
  font-size: 1.45rem;
  color: #241b15;
  margin-bottom: 14px;
}

.essay-card__body p {
  color: #46392e;
  margin-bottom: 12px;
}

/* 预约横幅 CTA */
.cta-banner {
  padding: 58px 46px;
  background: linear-gradient(135deg, rgba(48, 35, 25, 0.92) 0%, rgba(22, 17, 14, 0.96) 100%);
  border: 1px solid rgba(201, 164, 92, 0.42);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-deep);
}

.cta-banner__title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: var(--ivory);
  margin-bottom: 8px;
}

.cta-banner__desc {
  color: var(--parchment);
  max-width: 600px;
}

/* 页脚 */
.site-footer {
  background: #0a0806;
  border-top: 1px solid var(--gold-hairline);
  padding: 64px 0 32px;
  color: var(--muted-ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--stone-gray);
}

/* 渐入动效 */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 1080px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__grid,
  .split-panel,
  .contact-layout,
  .widget-panel.is-active,
  .carousel__viewport {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .hero__pillars,
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .carousel__media {
    height: 300px;
  }

  .widget-shell {
    padding: 24px 18px;
  }

  .wuxing-stage,
  .bagua-stage {
    width: 280px;
    height: 280px;
  }

  .wuxing-node,
  .bagua-node {
    width: 58px;
    height: 58px;
    margin-left: -29px;
    margin-top: -29px;
  }

  .cta-banner,
  .brand-seal-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .form-card {
    padding: 26px 20px;
  }
}
