/* ==========================================================
   西影文旅官网 · 全局基础样式
   基调取自西影集团官网：#b81c22 西影红 / #d13729 / #242424 墨黑 / #f7f4f1 米白
   子站通过 :root 注入 --accent 等变量，实现「一套组件、四种视觉」
   ========================================================== */
:root {
  --accent: #b81c22;
  --accent2: #d13729;
  --deep: #1c1112;
  --pale: #f7f4f1;
  --ink: #242424;
  --ink-2: #4a4a4a;
  --ink-3: #7a7a7a;
  --line: #e5e0da;
  --bg: #ffffff;
  --red: #b81c22;
  --radius: 2px;
  --shadow: 0 12px 38px rgba(28, 17, 18, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", helvetica, arial, verdana, tahoma, sans-serif;
  --serif: Georgia, "Songti SC", "SimSun", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s, transform .2s; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--pale); }
.tc { text-align: center; }

/* ---------- 通用文字 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; font-weight: 700; letter-spacing: .02em; margin: 14px 0 12px; }
.sec-sub { color: var(--ink-3); font-size: 15px; max-width: 720px; }
.sec-head { margin-bottom: 42px; }
.sec-head.tc .sec-sub { margin: 0 auto; }
.lead { font-size: 17px; line-height: 2; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.en { font-family: var(--serif); letter-spacing: .12em; font-weight: 400; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 30px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600; letter-spacing: .04em; background: none; cursor: pointer; transition: all .25s; }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--deep); color: #fff; transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-ghost { color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost::after { content: "→"; transition: transform .25s; }
.btn-ghost:hover::after { transform: translateX(5px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 顶部条 ---------- */
.topbar { background: #161314; color: rgba(255,255,255,.72); font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.72); }
.topbar a:hover { color: #fff; }
.topbar-sites { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-sites a { position: relative; padding: 8px 0; }
.topbar-sites a.on { color: #fff; }
.topbar-sites a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }

/* ---------- 头部 ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
/* 后台为每个站点单独上传的横版 LOGO */
.brand .brand-logo-full { height: 46px; width: auto; max-width: 290px; object-fit: contain; object-position: left center; }
.brand .brand-mark-img { height: 40px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-size: 18px; letter-spacing: .06em; color: var(--deep); }
.brand-txt small { font-size: 9px; letter-spacing: .16em; color: var(--ink-3); font-family: var(--serif); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 700; border-radius: var(--radius); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; display: block; padding: 28px 0; font-size: 15px; font-weight: 500; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--accent); transition: right .28s; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--accent); }
.header-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-tel { font-size: 13px; color: var(--ink-2); font-family: var(--serif); letter-spacing: .04em; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--deep); margin: 5px 0; transition: .25s; }

/* ---------- 主视觉 ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-slides .slide { opacity: 0; transition: opacity .9s ease; }
.hero-slides .slide.on { opacity: .62; }
.hero-pane { display: none; }
.hero-pane.on { display: block; animation: heroIn .7s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,8,.86) 0%, rgba(10,8,8,.45) 55%, rgba(10,8,8,.15) 100%); }
.hero-inner { position: relative; z-index: 2; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 80px; }
.hero .eyebrow { color: #f0c9c9; }
.hero h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.22; font-weight: 700; letter-spacing: .04em; margin: 20px 0 18px; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero p.hero-sub { font-size: clamp(15px, 1.5vw, 19px); color: rgba(255,255,255,.85); max-width: 620px; line-height: 1.9; }
.hero .btn-row { margin-top: 38px; }
.hero-index { position: absolute; right: 0; bottom: 34px; z-index: 2; display: flex; gap: 10px; padding-right: max(24px, calc((100vw - 1200px)/2)); }
.hero-dot { width: 30px; height: 3px; background: rgba(255,255,255,.35); border: 0; padding: 0; }
.hero-dot.on { background: var(--accent2); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.6); writing-mode: vertical-rl; }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px 24px 28px; }
.card-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--accent); border: 1px solid currentColor; padding: 2px 9px; margin-bottom: 14px; }
.card h3 { font-size: 19px; line-height: 1.5; margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--ink-3); line-height: 1.8; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- 文章 ---------- */
.article-body { font-size: 16px; line-height: 2.1; color: var(--ink-2); }
.article-body p { margin-bottom: 1.2em; }
.article-body h2, .article-body h3 { color: var(--ink); margin: 1.6em 0 .7em; line-height: 1.5; }
.article-body img { max-width: 100%; height: auto; margin: 1.4em 0; }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.6em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-3); }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body table td, .article-body table th { border: 1px solid var(--line); padding: 10px 14px; }

/* ---------- 面包屑 / 页眉 ---------- */
.page-banner { background: var(--deep); color: #fff; padding: 62px 0 56px; position: relative; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.page-banner::after { content: ""; position: absolute; right: 20px; top: -60px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.page-banner h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 10px; letter-spacing: .04em; }
.page-banner p { color: rgba(255,255,255,.66); font-size: 15px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; font-size: 14px; }
.pager a, .pager .cur { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-info { color: var(--ink-3); font-size: 12px; margin-left: 12px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.input, .textarea, .select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; outline: none; transition: border-color .2s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #171314; color: rgba(255,255,255,.62); padding: 66px 0 0; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 42px; padding-bottom: 48px; }
.footer-logo { height: 44px; margin-bottom: 20px; }
.footer-col h3 { font-size: 19px; color: #fff; margin-bottom: 16px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 18px; letter-spacing: .08em; }
.footer-col p { margin-bottom: 10px; line-height: 1.9; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-admin { display: inline-block; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.footer-qr { width: 112px; height: 112px; background: #fff; padding: 6px; object-fit: contain; margin-bottom: 8px; }
.qr-cap { font-size: 12px !important; color: rgba(255,255,255,.5) !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 24px; font-size: 12px; }

/* ---------- 回到顶部 ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 50; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--deep); color: #fff; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 20px; }
  .header-side .header-tel { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: span 3; }
}
@media (max-width: 860px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .section { padding: 60px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; padding: 8px 16px 20px; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-side { display: none; }
  .hero-inner { min-height: 460px; padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-inner { min-height: 430px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: span 1; }
  .topbar-sites { gap: 12px; font-size: 11px; }
  .topbar-inner > a { display: none; }
  .brand-txt strong { font-size: 16px; }
  .brand .brand-logo-full { height: 36px; max-width: 200px; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
