/* ============================================================
   XIN · index2 · 佛学（敦煌/寺院）配色 + 佛学设计
   暖沙宣纸 + 朱砂 + 描金 + 石青。覆盖 style.css 的变量。
   ============================================================ */
:root {
  --bg:          #efe4cd;
  --bg-soft:     #f5edd9;
  --bg-tint:     #e6d8ba;
  --surface:     #fbf5e6;
  --surface-2:   #f3ead4;
  --surface-hover:#eee1c6;

  --ink:         #3a2e22;
  --ink-soft:    #554635;

  --red:         #b23a2b;
  --red-light:   #c85a45;
  --red-deep:    #8f2a1e;
  --red-grad:    linear-gradient(140deg, #c1452f, #9c2b1d);

  --gold:        #b8912f;
  --gold-deep:   #9a7723;
  --gold-soft:   #d8bd6f;
  --blue:        #356f89;   /* 石青 */
  --green:       #5b8a72;   /* 石绿 */

  --accent:      #b23a2b;
  --accent-2:    #b8912f;
  --success:     #5b8a72;
  --danger:      #b23a2b;
  --nature:      var(--red-grad);
  --energy:      var(--red-grad);

  --text:        #5b4d3b;
  --text-muted:  #8a7960;
  --text-dim:    #b6a583;

  --line:        rgba(90, 70, 40, 0.16);
  --line-strong: rgba(90, 70, 40, 0.26);
  --glass:       rgba(251, 245, 230, 0.78);
  --glass-strong:rgba(251, 245, 230, 0.94);
  --shadow:      0 20px 48px rgba(120, 90, 40, 0.14);
  --shadow-lg:   0 30px 64px rgba(120, 90, 40, 0.20);
  --glow:        0 8px 26px rgba(178, 58, 43, 0.28);

  --font-serif:  'Noto Serif SC', 'Cormorant Garamond', serif;
  --font-brush:  'Ma Shan Zheng', 'Noto Serif SC', cursive;
}

/* 暖沙 + 描金光晕背景 */
body::before {
  background:
    radial-gradient(ellipse 60% 46% at 50% 0%, rgba(184, 145, 47, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 96%, rgba(178, 58, 43, 0.08), transparent 60%),
    var(--bg) !important;
}

/* 卡片描金细边 */
.card { border-color: rgba(184, 145, 47, 0.28); }
.card-media { background: linear-gradient(160deg, #efe4cd, #e2d3b2); }
.price { color: var(--red); }
.section-head .eyebrow, .page-head .eyebrow { color: var(--gold-deep); }

/* ============================================================
   Hero2 · 曼陀罗 + 佛龛拱 + 莲花
   ============================================================ */
.hero2 { min-height: 100vh; position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 130px 24px 90px; }

.hero2-mandala { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%); width: min(780px, 96vw); aspect-ratio: 1; z-index: 0; opacity: 0.6; pointer-events: none; }
.mandala-svg { width: 100%; height: 100%; display: block; }
.mandala-svg .spin { transform-box: view-box; transform-origin: 250px 250px; animation: mspin 70s linear infinite; }
.mandala-svg .spin-rev { transform-box: view-box; transform-origin: 250px 250px; animation: mspin 95s linear infinite reverse; }
@keyframes mspin { to { transform: rotate(360deg); } }

/* 佛龛拱（描金）*/
.hero2-arch { position: absolute; top: 8%; left: 50%; transform: translateX(-50%); width: min(560px, 90vw); z-index: 0; opacity: 0.7; pointer-events: none; }
.hero2-arch svg { width: 100%; height: auto; display: block; }

.hero2 .inner { position: relative; z-index: 3; }
.hero2 .eyebrow { font-size: 0.78rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 26px; opacity: 0; animation: rise 1s var(--ease) 0.4s forwards; }
.hero2 .seal-top { width: 46px; height: 46px; margin: 0 auto 26px; border-radius: 8px; background: var(--red-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-brush); font-size: 1.5rem; box-shadow: var(--glow); opacity: 0; animation: rise 1s var(--ease) 0.5s forwards; }
.hero2 h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; letter-spacing: 0.28em; padding-left: 0.28em; color: var(--ink); opacity: 0; animation: rise 1.1s var(--ease) 0.6s forwards; }
.hero2 .sub { margin: 26px auto 36px; max-width: 40ch; color: var(--text-muted); font-size: 1.02rem; line-height: 2; letter-spacing: 0.04em; opacity: 0; animation: rise 1.1s var(--ease) 0.8s forwards; }
.hero2 .acts { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: rise 1.1s var(--ease) 1s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: translateY(0);} }

/* 莲花 */
.hero2-lotus { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 128px; z-index: 2; opacity: 0.9; }
.hero2-lotus svg { width: 100%; height: auto; display: block; }

/* 佛经浮字（复用）*/
.hero-sutra { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sutra-line { position: absolute; font-family: var(--font-brush); color: #2a2016; line-height: 1.1; letter-spacing: 0.08em; white-space: nowrap; opacity: 0; animation: sutra-fade linear forwards; }
@keyframes sutra-fade { 0%{opacity:0; transform:translateY(8px);} 14%{opacity:0.5;} 40%{opacity:0.4;} 100%{opacity:0; transform:translateY(-6px);} }

/* ============================================================
   卍字纹 分隔条
   ============================================================ */
.wan-divider { height: 34px; margin: 10px 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M17 6v11H6M17 17h11v11M17 17H6v11M17 17V6h11' fill='none' stroke='%23b8912f' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 34px 34px; background-repeat: repeat-x; background-position: center;
}
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; max-width: 340px; }

/* ============================================================
   莲花分隔（居中小莲）
   ============================================================ */
.lotus-sep { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 4px; }
.lotus-sep .ln { height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lotus-sep .ln.r { background: linear-gradient(90deg, var(--gold), transparent); }
.lotus-sep svg { width: 40px; height: auto; opacity: 0.85; }

/* ============================================================
   心经 · 禅圆（沿用 index 的 .sutra-sec，微调金色）
   ============================================================ */
.sutra-sec { position: relative; text-align: center; padding: 110px 0; }
.sutra-sec .enso { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(520px, 82vw); z-index: 0; pointer-events: none; }
.sutra-sec .enso svg { width: 100%; height: auto; display: block; }
.sutra-head { position: relative; z-index: 1; margin-bottom: 44px; }
.sutra-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; font-weight: 500; }
.sutra-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.42em; padding-left: 0.42em; color: var(--ink); }
.sutra-cols { position: relative; z-index: 1; display: flex; flex-direction: row-reverse; justify-content: center; gap: 28px; flex-wrap: wrap; }
.sutra-cols p { writing-mode: vertical-rl; font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.24em; color: var(--ink-soft); line-height: 2; }
.sutra-seal { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--red-grad); color: #fff; font-family: var(--font-brush); font-size: 1.6rem; margin-top: 44px; position: relative; z-index: 1; box-shadow: var(--glow); }

/* 巨字水印 */
.watermark { position: relative; overflow: hidden; }
.watermark::before { content: attr(data-char); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-brush); font-size: min(48vw, 640px); color: var(--gold-deep); opacity: 0.06; z-index: 0; pointer-events: none; line-height: 1; }
.watermark > * { position: relative; z-index: 1; }

/* 修习课程等区块标题字色 */
.section-head h2 { color: var(--ink); }

/* ============================================================
   合掌 Loading
   ============================================================ */
.loader-hands { display: inline-block; color: var(--red); animation: breathe 3s var(--ease) infinite; filter: drop-shadow(0 8px 22px rgba(178,58,43,0.32)); }
.loader-hands svg { width: 92px; height: 92px; display: block; }
.loader-hands img { width: 96px; height: 96px; object-fit: contain; }

/* ============================================================
   三大本尊（地藏 · 济公 · 文殊）
   ============================================================ */
.deities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.deity { position: relative; background: var(--surface); border: 1px solid rgba(184,145,47,0.32); border-radius: var(--radius); padding: 46px 26px 32px; text-align: center; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.deity:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.deity .halo { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 168px; height: 168px; z-index: 0; }
.deity .halo::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(184,145,47,0.28), transparent 68%); }
.deity .halo::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid rgba(184,145,47,0.5); }
.deity .dname { position: relative; z-index: 1; font-family: var(--font-brush); font-size: 2.1rem; color: var(--ink); letter-spacing: 0.06em; margin-top: 8px; }
.deity .dtitle { position: relative; z-index: 1; color: var(--gold-deep); letter-spacing: 0.22em; font-size: 0.78rem; margin-top: 8px; }
.deity .ddesc { position: relative; z-index: 1; color: var(--text-muted); font-size: 0.9rem; margin-top: 18px; line-height: 1.95; }
.deity .dseal { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; background: var(--red-grad); color: #fff; font-family: var(--font-brush); font-size: 1.3rem; margin-top: 22px; box-shadow: var(--glow); }

/* ============================================================
   佛道共参 · 太极带
   ============================================================ */
.dao-band { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; flex-wrap: wrap; text-align: center; }
.dao-band .taiji { width: 68px; height: 68px; animation: mspin 24s linear infinite; }
.dao-band .txt { font-family: var(--font-serif); color: var(--ink); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: 0.3em; }
.dao-band .txt small { display: block; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.24em; color: var(--text-muted); margin-top: 10px; }

/* 创办人 */
.founder { display: flex; align-items: center; gap: 28px; background: var(--surface); border: 1px solid rgba(184,145,47,0.3); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); flex-wrap: wrap; }
.founder .avatar { width: 96px; height: 96px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, var(--gold-soft), var(--gold-deep)); display: grid; place-items: center; color: #fff; font-family: var(--font-brush); font-size: 2rem; box-shadow: var(--glow); }
.founder .fi { flex: 1; min-width: 220px; }
.founder .fi .role { color: var(--gold-deep); letter-spacing: 0.2em; font-size: 0.78rem; text-transform: uppercase; }
.founder .fi h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.founder .fi p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.95; }

@media (max-width: 900px) { .deities { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hero2 h1 { letter-spacing: 0.2em; padding-left: 0.2em; }
}

/* ============================================================
   活动详情 · 动态报名表单
   ============================================================ */
.ev-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.ev-meta-item { display: flex; align-items: center; gap: 10px; color: var(--text); }
.ev-meta-item .ic { width: 20px; height: 20px; color: var(--gold-deep); }
.ev-meta-item span { display: block; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.06em; }
.ev-meta-item b { font-size: 0.95rem; font-weight: 500; }
.ev-field { margin-bottom: 16px; }
.field-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 7px; }
.ev-input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-tint); border: 1px solid var(--line); color: var(--text); font-size: 0.95rem; font-family: inherit; transition: border-color .3s, box-shadow .3s, background .3s; }
.ev-input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(178,58,43,0.13); }
textarea.ev-input { resize: vertical; }

/* ============================================================
   活动状态标签
   ============================================================ */
.event-status { position: absolute; top: 12px; right: 12px; z-index: 3; font-size: 0.72rem; letter-spacing: 0.06em; padding: 5px 13px; border-radius: 100px; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); backdrop-filter: blur(4px); }
.event-status.st-upcoming { background: rgba(184,145,47,0.92); }   /* 金 · 即将开始 */
.event-status.st-ongoing  { background: rgba(91,138,114,0.92); }   /* 绿 · 进行中 */
.event-status.st-ended    { background: rgba(120,110,96,0.85); }   /* 灰 · 已圆满 */
.ev-status-inline { display: inline-block; font-size: 0.78rem; padding: 5px 14px; border-radius: 100px; color: #fff; margin-left: 12px; vertical-align: middle; }
.ev-status-inline.st-upcoming { background: var(--gold-deep); }
.ev-status-inline.st-ongoing { background: var(--green); }
.ev-status-inline.st-ended { background: #7a6f60; }

/* ============================================================
   活动已圆满
   ============================================================ */
.ended-note { text-align: center; margin-top: 44px; padding: 44px 28px; background: var(--surface); border: 1px solid rgba(184,145,47,0.3); border-radius: var(--radius); box-shadow: var(--shadow); }
.ended-note .en-seal { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 10px; background: var(--red-grad); color: #fff; display: grid; place-items: center; font-family: var(--font-brush); font-size: 1.9rem; box-shadow: var(--glow); }
.ended-note h3 { font-size: 1.5rem; letter-spacing: 0.1em; margin-bottom: 12px; }
.ended-note p { color: var(--text-muted); line-height: 2; }

/* ============================================================
   产品图片灯箱（点击看大图）
   ============================================================ */
#main-img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(28,22,16,0.9); display: none; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,0.5); }
.lightbox .lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: 0.85; }
.lightbox .lb-close:hover { opacity: 1; }

/* 产品详情：桌面端图文等宽（图片小一点），手机仍单列 */
@media (min-width: 901px) {
  .detail-grid:has(.pd-gallery) { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   账户中心（profile 页 tab）
   ============================================================ */
.acct-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 32px; }
.acct-tab { padding: 9px 20px; border-radius: 100px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-muted); cursor: pointer; font-family: inherit; transition: all .25s var(--ease); }
.acct-tab:hover { border-color: var(--accent); color: var(--ink); }
.acct-tab.on { background: var(--red-grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.acct-panel { display: none; }
.acct-panel.on { display: block; }
.acct-event { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 14px; }
.acct-event .thumb { width: 76px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; }
.acct-event .ae-info { flex: 1; min-width: 0; }
.acct-event .ae-info h4 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.acct-event .ae-info .ae-meta { color: var(--text-muted); font-size: 0.85rem; }
.acct-order { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acct-order .thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--nature); flex: none; }
.acct-order .ao-info { flex: 1; }
.acct-order .ao-info h4 { font-family: var(--font-sans); font-size: 0.98rem; margin-bottom: 2px; }
.acct-order .ao-info .var { color: var(--text-dim); font-size: 0.82rem; }

/* ============================================================
   直播页
   ============================================================ */
.live-wrap { max-width: 960px; margin: 0 auto; }
.live-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #14100c; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.live-frame iframe { width: 100%; height: 100%; border: 0; }
.live-badge { position: absolute; top: 16px; left: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; background: #e0242b; color: #fff; font-size: 0.78rem; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 100px; box-shadow: 0 6px 16px rgba(224,36,43,0.4); }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.live-title { font-family: var(--font-serif); font-size: 1.6rem; margin-top: 24px; color: var(--ink); }
.live-note { color: var(--text-muted); margin-top: 10px; line-height: 1.9; }

/* ============================================================
   联系我们
   ============================================================ */
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 4/3; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.contact-card h3 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.contact-card .addr { font-size: 1.05rem; color: var(--ink); line-height: 1.9; }
.contact-card .openmap { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-size: 0.9rem; }
.contact-socials { display: flex; flex-direction: column; gap: 12px; }
.contact-social { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-sm); color: #fff; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.contact-social:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-social svg { width: 24px; height: 24px; flex: none; }
.contact-social .cs-label { font-weight: 500; }
.contact-social .cs-sub { font-size: 0.8rem; opacity: 0.85; }
.cs-fb { background: #1877F2; }
.cs-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.cs-wa { background: #25D366; }

/* 播放器：遮住 YouTube 顶部标题/分享（底部控件不受影响）*/
.video-frame { position: relative; }
.yt-cover { position: absolute; top: 0; left: 0; right: 0; height: 62px; z-index: 5; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.82) 35%, rgba(0,0,0,0) 100%); }
