/* ============ 孝和之家 · 全站共享样式 ============ */
:root {
  --red: #C8102E;        /* 中国红（主色） */
  --darkred: #8B1A1A;    /* 深红（标题/强调） */
  --gold: #C9A063;       /* 金色（点缀） */
  --cream: #FAF6F0;      /* 米白（正文背景） */
  --ink: #3D3D3D;        /* 深灰（正文） */
  --gray: #8B7355;       /* 灰褐（次要文字） */
  --line: #E8DDD0;       /* 分隔线 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-seal {
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700; font-size: 17px;
  line-height: 1;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(200,16,46,.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-size: 19px; color: var(--darkred); font-family: "Songti SC", "SimSun", serif; letter-spacing: 2px; }
.logo-text span { font-size: 11px; color: var(--gray); letter-spacing: 1px; }

.nav-menu { display: flex; gap: 26px; list-style: none; }
.nav-menu a { font-size: 15px; color: var(--ink); padding: 6px 0; position: relative; transition: color .2s; }
.nav-menu a:hover { color: var(--red); }
.nav-menu a.active { color: var(--red); font-weight: 600; }
.nav-menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta {
  display: inline-block; padding: 9px 20px;
  background: var(--red); color: #fff;
  border-radius: 22px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--darkred); }

/* 移动端汉堡 */
.nav-toggle { display: none; font-size: 24px; color: var(--darkred); background: none; border: none; cursor: pointer; }

/* ============ Hero ============ */
.hero {
  padding: 96px 0 88px;
  position: relative; overflow: hidden;
  background: #2A1616; /* 视频加载前兜底色 */
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: url('/xh_hero_bg.jpg') center/cover no-repeat;
  z-index: 0;
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.28) translate(3%, -3%); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(42,22,22,.78) 0%, rgba(42,22,22,.55) 55%, rgba(42,22,22,.25) 100%);
}
.hero::after {
  content: "孝";
  position: absolute; right: -30px; top: -40px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 320px; color: var(--gold); opacity: .12;
  line-height: 1; z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-block; padding: 6px 16px;
  border: 1px solid var(--gold); color: #F3D9A4;
  background: rgba(0,0,0,.18);
  border-radius: 20px; font-size: 13px; letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 46px; line-height: 1.5; color: #fff;
  margin-bottom: 20px; letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: #E8C88A; }
.hero p { font-size: 17px; color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 26px;
  font-size: 15px; font-weight: 600; transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--darkred); transform: translateY(-2px); box-shadow: 0 7px 20px rgba(200,16,46,.38); }
.btn-ghost { background: transparent; color: var(--darkred); border: 1.5px solid var(--red); box-shadow: 0 2px 8px rgba(139,26,26,.08); }
.btn-ghost:hover { background: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(200,16,46,.25); }

/* ============ 章节通用 ============ */
.section { padding: 64px 0; }
.section.cream { background: var(--cream); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 32px; color: var(--darkred); margin-bottom: 12px; letter-spacing: 2px;
}
.sec-head p { color: var(--gray); font-size: 15px; }
.sec-head .rule { width: 44px; height: 3px; background: var(--red); margin: 16px auto 0; border-radius: 2px; }

/* ============ 三大业务卡片 ============ */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 26px; transition: all .25s; position: relative; overflow: hidden;
}
.biz-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(139,26,26,.10); border-color: var(--gold); }
.biz-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.biz-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.biz-icon svg { width: 100%; height: 100%; display: block; transition: transform .3s; }
.biz-card:hover .biz-icon svg { transform: scale(1.08) rotate(-2deg); }
.biz-card h3 { font-size: 20px; color: var(--darkred); margin-bottom: 10px; font-family: "Songti SC", "SimSun", serif; }
.biz-card p { font-size: 14px; color: var(--gray); line-height: 1.75; }
.biz-card a.more { display: inline-block; margin-top: 16px; color: var(--red); font-size: 14px; font-weight: 600; }

/* ============ 智能体矩阵 ============ */
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 18px; text-align: center; transition: all .2s;
}
.agent-card:hover { border-color: var(--red); }
.agent-card .num { font-size: 13px; color: var(--gold); letter-spacing: 1px; }
.agent-card h4 { font-size: 17px; color: var(--darkred); margin: 8px 0 6px; }
.agent-card p { font-size: 13px; color: var(--gray); }

/* ============ 测评 CTA ============ */
.cta-band {
  background: linear-gradient(135deg, var(--darkred), var(--red));
  border-radius: 18px; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { font-size: 28px; font-family: "Songti SC", "SimSun", serif; letter-spacing: 1px; margin-bottom: 8px; }
.cta-band p { font-size: 15px; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--darkred); }
.cta-band .btn:hover { background: var(--cream); }

/* ============ 页脚 ============ */
.footer { background: #2A1616; color: #D8C8B8; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 1px; }
.footer a, .footer p { font-size: 13px; color: #C4B4A4; line-height: 2; display: block; }
.footer a:hover { color: var(--gold); }
.footer .brand-line { font-size: 14px; color: #E8D5C3; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  text-align: center; font-size: 12px; color: #9B8A7A;
}

/* ============ 内页通用头部 ============ */
.page-hero { background: linear-gradient(160deg, #fff, var(--cream)); padding: 56px 0 44px; text-align: center; }
.page-hero h1 { font-family: "Songti SC", "SimSun", serif; font-size: 36px; color: var(--darkred); letter-spacing: 2px; margin-bottom: 12px; }
.page-hero p { color: var(--gray); font-size: 15px; max-width: 640px; margin: 0 auto; }

/* ============ 关于页 ============ */
.about-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-body h3 { font-size: 20px; color: var(--darkred); margin-bottom: 12px; font-family: "Songti SC", "SimSun", serif; }
.about-body p { color: var(--gray); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }
.about-facts { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.about-facts table { width: 100%; border-collapse: collapse; }
.about-facts td { padding: 10px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }
.about-facts td:first-child { color: var(--gray); width: 34%; }
.about-facts td:last-child { color: var(--ink); }
.about-facts tr:last-child td { border-bottom: none; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px 20px; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 22px; }
}

/* ============ 孝和印象 · 横向图廊 ============ */
.impression-gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.impression-gallery img {
  height: 340px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(139,26,26,.14);
  scroll-snap-align: start;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform .25s;
}
.impression-gallery img:hover { transform: translateY(-4px); }
.impression-gallery::-webkit-scrollbar { height: 6px; }
.impression-gallery::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.impression-gallery::-webkit-scrollbar-track { background: var(--line); }
@media (max-width: 640px) {
  .impression-gallery img { height: 260px; }
}

/* ============ 地址定位卡片 ============ */
.map-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(139,26,26,.05);
}
.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.map-info {
  padding: 18px 20px;
  text-align: center;
}
.map-info p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.8;
}
@media (max-width: 640px) {
  .map-card iframe { height: 260px; }
}
