/* ========= 设计变量 ========= */
:root {
  --primary: #E8722A;
  --primary-dark: #C95D1D;
  --primary-light: #FDEBDD;
  --ink: #3D2B1F;
  --ink-soft: #7A6A5C;
  --bg: #FFF9F2;
  --card: #FFFFFF;
  --line: #F0DFCB;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(120, 72, 24, .10);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

h1, h2, h3 { line-height: 1.4; }

.section[id] { scroll-margin-top: 86px; }

.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 10px; font-size: 30px; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 4px;
  background: var(--primary); border-radius: 2px; margin: 14px auto 0;
}
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 36px; font-size: 15px; }

/* ========= 顶部导航 ========= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(120, 72, 24, .08);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 44px; width: auto; transform: translateY(-4px); }
.footer-logo { height: 40px; width: auto; margin-bottom: 12px; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15.5px;
  color: var(--ink); transition: .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); background: var(--primary-light); }

.header-phone {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.header-phone:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--primary-dark);
  border-radius: 2px; transition: .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========= 首页轮播：模糊铺底 + 全图居中 ========= */
.hero { position: relative; height: 560px; overflow: hidden; background: #EAD3BC; }
.hero .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
}
.hero .slide.on { opacity: 1; }
.hero .ph-bg {
  position: absolute; inset: -60px;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(.55) saturate(1.1);
  transform: scale(1.15);
}
.hero .ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 2;
}
.hero .slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(40, 20, 5, .12), rgba(40, 20, 5, .38));
  pointer-events: none;
}
.hero-caption {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; padding: 0 24px;
}
.hero-caption h1 { font-size: 44px; letter-spacing: 4px; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.hero-caption p { font-size: 18px; margin-top: 14px; opacity: .94; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-caption .btn { margin-top: 30px; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 16.5px; font-weight: 600;
  border: none; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.85); }
.btn.ghost:hover { background: rgba(255,255,255,.28); }

.hero-dots {
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%);
  z-index: 6; display: flex; gap: 4px;
}
.hero-dots button {
  position: relative; width: 30px; height: 26px;
  border: none; background: none; cursor: pointer;
}
.hero-dots button::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 8px; bottom: 8px;
  border-radius: 6px; background: rgba(255,255,255,.45); transition: .25s;
}
.hero-dots button.on::after { left: 3px; right: 3px; background: #fff; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.22); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; transition: .2s; padding-bottom: 4px;
}
.hero-arrow:hover { background: rgba(255,255,255,.38); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ========= 数据条 ========= */
.stats { margin-top: -52px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; padding: 26px 10px 22px;
}
.stat b { font-size: 34px; color: var(--primary-dark); display: block; line-height: 1.2; }
.stat b small { font-size: 15px; font-weight: 600; }
.stat span { color: var(--ink-soft); font-size: 14.5px; }

/* ========= 院区卡片 ========= */
.yuanqu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.yuanqu-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; position: relative;
  display: flex; flex-direction: column;
}
.yuanqu-card:hover { transform: translateY(-6px); }
.yuanqu-card .cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.yuanqu-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.yuanqu-card:hover .cover img { transform: scale(1.05); }
.yuanqu-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.yuanqu-card h3 { font-size: 21px; color: var(--primary-dark); }
.yuanqu-card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.yuanqu-card .tags i {
  font-style: normal; font-size: 12.5px; color: var(--primary-dark);
  background: var(--primary-light); padding: 3px 11px; border-radius: 999px;
}
.yuanqu-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.yuanqu-card .more {
  margin-top: 14px; font-size: 15px; color: var(--primary); font-weight: 600;
}
.yuanqu-card .more::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(201, 93, 29, .92); color: #fff;
  font-size: 13px; padding: 5px 14px; border-radius: 999px; letter-spacing: 1px;
}
.cover.placeholder {
  background: linear-gradient(135deg, #F5924E 0%, #E8722A 55%, #C95D1D 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.92); font-size: 46px; font-weight: 800; letter-spacing: 6px;
}

/* ========= 服务内容 ========= */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card .body { padding: 20px 22px 24px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card h3::before { content: "●"; color: var(--primary); font-size: 13px; margin-right: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ========= 相册 ========= */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tabs button {
  padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 15px; cursor: pointer; transition: .2s;
}
.tabs button.on, .tabs button:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  cursor: pointer; transition: .25s;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* ========= 新闻 ========= */
.news-list { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.news-item {
  display: flex; gap: 22px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .25s;
  position: relative;
}
.news-item:hover { transform: translateY(-4px); }
.news-item .thumb { width: 240px; flex-shrink: 0; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.news-item .body { padding: 18px 24px 18px 0; }
.news-item time { font-size: 13.5px; color: var(--primary); font-weight: 600; }
.news-item h3 { font-size: 18.5px; margin: 6px 0 8px; }
.news-item h3 a:hover { color: var(--primary-dark); }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-item:hover { transform: translateY(-3px); }
.news-item p { font-size: 14.5px; color: var(--ink-soft); }
.center { text-align: center; margin-top: 34px; }

/* ========= 入住流程 ========= */
.steps-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 30px; }
.steps { display: flex; justify-content: space-between; gap: 6px; }
.step { flex: 1; text-align: center; position: relative; }
.step .num {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary);
}
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 12.5px; color: var(--ink-soft); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: calc(50% + 34px);
  width: calc(100% - 68px); height: 2px; background: var(--line);
}

/* ========= 联系我们 ========= */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.contact-info {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 34px;
}
.contact-info h3 { font-size: 20px; margin-bottom: 16px; color: var(--primary-dark); }
.contact-info li {
  display: flex; gap: 12px; padding: 10px 0; font-size: 15.5px;
  border-bottom: 1px dashed var(--line); align-items: flex-start;
}
.contact-info li:last-child { border: none; }
.contact-info li .ico { color: var(--primary); font-size: 17px; flex-shrink: 0; }
.qr-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-items: start; justify-items: center;
}
.qr-item { text-align: center; margin: 0; }
.qr-item img {
  width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; box-shadow: 0 4px 14px rgba(120,72,24,.14);
}
.qr-item figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.contact-info a { color: var(--primary-dark); font-weight: 600; }

/* ========= 院区内页 ========= */
.page-hero { height: 300px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 1;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(rgba(40,20,5,.18) 30%, rgba(40,20,5,.62));
}
.page-hero.no-img {
  background: linear-gradient(135deg, #F5924E 0%, #E8722A 55%, #C95D1D 100%);
}
.page-hero.no-img::after { background: none; }
.page-hero .inner {
  position: relative; z-index: 3; color: #fff; padding-bottom: 34px;
}
.page-hero h1 { font-size: 34px; letter-spacing: 2px; }
.page-hero p { margin-top: 6px; opacity: .92; font-size: 15.5px; }

.breadcrumb { font-size: 13.5px; color: var(--ink-soft); padding: 16px 0 0; }
.breadcrumb a:hover { color: var(--primary); }

.prose { max-width: 860px; margin: 0 auto; font-size: 16.5px; }
.prose h2 {
  font-size: 23px; color: var(--primary-dark); margin: 40px 0 14px;
  padding-left: 14px; border-left: 5px solid var(--primary);
}
.prose p { margin-bottom: 14px; text-align: justify; }
.prose img { border-radius: var(--radius); margin: 20px auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin: 26px 0; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* 筹备中 */
.pending-banner {
  background: linear-gradient(135deg, #F5924E, var(--primary-dark));
  border-radius: var(--radius); color: #fff; text-align: center;
  padding: 60px 24px; box-shadow: var(--shadow);
}
.pending-banner h2 { font-size: 30px; letter-spacing: 3px; margin-bottom: 12px; }
.pending-banner p { opacity: .95; max-width: 620px; margin: 0 auto; }

/* ========= 页脚 ========= */
.site-footer { background: #33241A; color: #CBB9A8; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding: 46px 0 34px;
}
.site-footer h4 { color: #fff; font-size: 16.5px; margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 2; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0;
  text-align: center; font-size: 13px;
}

/* ========= 灯箱 ========= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 10, 3, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 18px; right: 26px; font-size: 42px; color: #fff;
  cursor: pointer; line-height: 1; background: none; border: none;
}
.lightbox .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 46px; color: rgba(255,255,255,.85); background: none; border: none; cursor: pointer;
  padding: 20px;
}
.lightbox .arrow:hover { color: var(--primary); }
.lightbox .prev { left: 8px; }
.lightbox .next { right: 8px; }

/* ========= 返回顶部 ========= */
.to-top {
  position: fixed; right: 22px; bottom: 30px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); }

/* ========= 平板：<=1024 ========= */
@media (max-width: 1024px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 20px 18px;
    box-shadow: 0 12px 24px rgba(120,72,24,.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 10px; font-size: 16.5px; border-bottom: 1px solid var(--bg); }
  .hero { height: 430px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 24px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-caption h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat b { font-size: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========= 手机：<=680 ========= */
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .hero { height: 340px; }
  .hero-dots { bottom: 64px; }
  .hero-caption h1 { font-size: 26px; letter-spacing: 2px; }
  .hero-caption p { font-size: 15px; }
  .hero-caption .btn { padding: 11px 26px; font-size: 15px; }
  .stats { margin-top: -40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 18px 8px 14px; }
  .stat b { font-size: 24px; }
  .yuanqu-grid, .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-item { flex-direction: column; }
  .news-item .thumb { width: 100%; }
  .news-item .thumb img { min-height: 190px; }
  .news-item .body { padding: 0 20px 20px; }
  .steps-wrap { padding: 28px 18px; }
  .steps { flex-direction: column; gap: 22px; }
  .step { display: flex; text-align: left; gap: 14px; }
  .step .num { margin: 0; flex-shrink: 0; width: 46px; height: 46px; font-size: 18px; }
  .step:not(:last-child)::after {
    top: 48px; left: 23px; width: 2px; height: calc(100% - 24px);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .page-hero { height: 220px; }
  .page-hero h1 { font-size: 26px; }
  .split { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .brand-img { height: 36px; transform: translateY(-3px); }
}
