:root {
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
               "Microsoft YaHei", sans-serif;
}

:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #f9fafb;
  --max: 980px;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* 导航按钮（胶囊） */
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  border-radius: 999px;

  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;

  color: #111;
  text-decoration: none;

  /* ✅ 默认就是淡黄色按钮 */
  background: rgba(255, 225, 120, 0.55);
  border: 1px solid rgba(17, 24, 39, 0.12);

  transition: background 160ms ease,
              border-color 160ms ease,
              transform 160ms ease,
              box-shadow 160ms ease;
}


.nav-link:hover {
  text-decoration: none;
  background: rgba(255, 225, 120, 0.75);
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}


/* Active：按下反馈 */
.nav-link:active {
  transform: translateY(0px);
}

/* 当前页高亮：无需 JS，用 aria-current */
.nav-link[aria-current="page"] {
  background: rgba(255, 225, 120, 0.45);      /* 柠檬黄的轻高亮 */
  border-color: rgba(17, 24, 39, 0.16);
}

/* 可选：键盘可访问性 */
.nav-link:focus-visible {
  outline: 3px solid rgba(255, 225, 120, 0.9);
  outline-offset: 2px;
}

.main {
  padding: 28px 0 56px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0.6em 0 0.4em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p { margin: 0.6em 0; color: var(--text); }
.small { color: var(--muted); font-size: 0.95rem; }

.card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}



.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  .nav { justify-content: flex-start; }
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #111827;
  color: white;
}

.button:hover {
  text-decoration: none;
  opacity: 0.92;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.footer-title {
  font-weight: 700;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--text);
  text-decoration: none;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 288px;     /* 你可以改成 48 / 56 / 72 */
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;           /* 桌面也允许换行，避免太挤 */
  padding: 6px 0 0px;       /* 收紧 nav 的上下空白 */
}


.nav a {
  font-family: var(--font-sans);   /* ← 黑体 */
  color: #111;
  font-size: 18px;
  font-weight: 700;                /* ← 加粗 */
  letter-spacing: 0.4px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 18px 60px;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  color: #666;
  font-size: 14px;
}

/* 右上角联系方式：去掉 padding-top / 夸张字号 / !important */
.contact-block {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.35;        /* ✅ 让三行更紧凑 */
  font-weight: 400;
  letter-spacing: 0.2px;
  color: #111;

  margin: 0;
  padding: 0;               /* ✅ 关键：不要再 padding-top:38px */
  max-width: 520px;
}

.contact-block > * {
  display: block;
  margin: 2px 0;            /* ✅ 行间距更小 */
}

.contact-block a {
  color: inherit;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* 电话不要巨大，但要略突出 */
.contact-block a:last-child {
  font-size: 16px;          /* ✅ 你说“不要那么大”，这里控制住 */
  font-weight: 650;
  letter-spacing: 0.4px;
}

/* Home page showcase image (only on Home) */
.W-0 {
  max-width: 1300px;
  margin: 8px auto 0;
  padding: 16px 16px;
}

.W-0 img {
  width: 100%;
  height: auto;        /* 想更高就 320/360 */
  object-fit: contain;    /* 不变形，自动裁剪 */
  display: block;
  border-radius: 18px;
  margin-bottom: 24px;
  
}

/* Home page showcase image (only on Home) */
.w-1-c {
  max-width: 1300px;
  margin: 16px auto 0;
  padding: 16px 16px;
  
}

.w-1-c img {
  width: 100%;
  height: auto;        /* 想更高就 320/360 */
  object-fit: contain;    /* 不变形，自动裁剪 */
  display: block;
  border-radius: 18px;
  margin-bottom: 24px;
}

.slideshow {
  max-width: 1300px;   /* 👈 你要的宽度限制 */
  margin: 28px auto 0;
  padding: 0 16px;
}

.slideshow-viewport {
  position: relative;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: auto;        /* 👈 高度随图片 */
  object-fit: contain;

  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  position: relative; /* 只有当前那张参与布局 */
  opacity: 1;
}


/* Mobile */
@media (max-width: 520px) {
  .slideshow-viewport {
    height: 240px;
  }
}

/* 首页背景渐变 */
.page-home {
  position: relative;
}

/* 全宽背景层 */
.page-home::before {
  content: "";
  position: absolute;

  /* 👇 关键 3 行 */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);

  top: 0;
  bottom: 0;

  background-image: url("/images/bg-gradient.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  
  opacity: 0.3;
  z-index: -1;
}

@media (max-width: 640px) {
  .nav-link {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 1.1;
    
  }
}

@media (max-width: 640px) {
  /* ✅ 只隐藏这两个：预约咨询 + 联系方式块 */
  .header-actions .cta,
  .header-actions .contact-block {
    display: none;
  }
}
