/* =====================================================================
   灰象 · 业务二级页共用样式（造浪 / 扬声 / 立意 / 点金 四页共用）
   设计依据：《企业简介网页视觉与交互蓝图 v1》《官网蓝图 v2》
   Token 与主页（intro/styles.css）完全同源，保证跨页视觉一致
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
  --bg-warm: #F5F0E8;
  --bg-cool: #E8EBEF;
  --bg-paper: #FDFBF7;
  --gold: #A68B5B;
  --gold-soft: #C9B48C;
  --gold-dark: #8A7248;
  --gold-light: #EBE2D3;
  --ink: #2B2B2B;
  --text: #3A3A3A;
  --text-sub: #6B6B6B;
  --line: #E0D9CC;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(43,43,43,.06);
  --shadow-hover: 0 16px 40px rgba(166,139,91,.16);
  --max-w: 1200px;
  --nav-h: 72px;
  --section-pad: 120px;
  --transition-fast: 180ms ease;
  --transition-base: 280ms ease;
}
@media (max-width: 1200px) { :root { --section-pad: 96px; } }
@media (max-width: 768px)  { :root { --section-pad: 72px; --nav-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.73;
  color: var(--text);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 34px; }
@media (max-width: 768px) { .container { padding: 0 17px; } }

.section { padding: var(--section-pad) 0; position: relative; }
.section.alt { background: var(--bg-cool); }   /* 板块交替底色（冷银灰） */

/* 板块标题：中文衬线大字 + 宽字距英文小字（中英混排规范） */
.section-head { margin-bottom: 41px; }
.section-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(26px, 3.6vw, 37px); color: var(--ink); margin: 0 0 14px; }
.section-subtitle { font-size: clamp(14px, 1.6vw, 16px); color: var(--text-sub); max-width: 720px; line-height: 1.73; margin: 0; }

/* 细金线分隔 */
.gold-rule { width: 56px; height: 2px; background: var(--gold); border: none; margin: 0 0 20px; }

/* ---------- NAV（与主页同构） ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(245,240,232,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.nav.scrolled { background: rgba(245,240,232,.96); box-shadow: var(--shadow-soft); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Noto Serif SC", serif; font-size: 18px; color: var(--ink); }
.logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.nav-links a { color: var(--text-sub); transition: color var(--transition-fast); position: relative; padding: 5px 0; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 19px; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--white) !important;
  font-size: 13px; transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-2px); }
@media (max-width: 768px) {
  .nav-links { gap: 14px; font-size: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }  /* 移动端仅保留 Logo + CTA（与主页一致） */
}

/* ---------- 头图 Banner ---------- */
.page-banner {
  position: relative;
  min-height: clamp(420px, 56vh, 620px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.page-banner-bg { position: absolute; inset: 0; z-index: 0; }
.page-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
/* 暖金渐变压暗，保证文字可读，同时统一香槟金色温 */
.page-banner-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(43,35,22,.72) 0%, rgba(90,72,44,.45) 55%, rgba(166,139,91,.28) 100%);
}
.page-banner .container { position: relative; z-index: 1; padding-bottom: 54px; }
.banner-crumb {
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: 12px; letter-spacing: .12em;
  color: rgba(255,255,255,.78); margin-bottom: 17px;
}
.banner-crumb a { color: rgba(255,255,255,.78); transition: color var(--transition-fast); }
.banner-crumb a:hover { color: var(--gold-soft); }
.banner-title {
  color: var(--white);
  font-size: clamp(31px, 5vw, 52px);
  letter-spacing: .08em;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.banner-en {
  font-family: "Playfair Display", serif;
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 10px;
}
.banner-desc { color: rgba(255,255,255,.92); font-size: clamp(14px, 1.6vw, 17px); max-width: 640px; margin: 0; }
.banner-subdesc { color: #ffffff !important; font-size: clamp(12px, 1.3vw, 14px); max-width: 640px; margin: 10px 0 0; line-height: 1.63; }

/* ---------- 项目简介 ---------- */
.profile-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 54px; align-items: start; }
@media (max-width: 992px) { .profile-grid { grid-template-columns: 1fr; gap: 34px; } }
.profile-lead {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.54; color: var(--ink); margin: 0 0 17px;
}
.profile-text { color: var(--text); margin: 0; }

/* 能力卡（三张，规范同主页服务卡） */
.ability-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
@media (max-width: 992px) { .ability-cards { grid-template-columns: 1fr; } }
.ability-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 27px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.ability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold-soft); }
.ability-index {
  font-family: "Playfair Display", serif;
  font-size: 14px; letter-spacing: .2em; color: var(--gold);
  margin-bottom: 10px;
}
.ability-card h3 { font-size: 18px; margin-bottom: 8px; }
.ability-card p { color: var(--text-sub); font-size: 14px; margin: 0; }

/* 能力卡下方配图（透明底图片，间距与能力卡区一致：上 64px / 图间 24px） */
.ability-showcase {
  margin-top: 54px;
  display: flex; flex-direction: column; gap: 20px;
}
.showcase-item { margin: 0; display: flex; justify-content: center; }
.showcase-item img {
  width: 100%; max-width: 960px; height: auto;
}
@media (max-width: 768px) {
  .ability-showcase { margin-top: 34px; gap: 14px; }
}

/* ---------- 单个项目板块（案例区以「项目」为单位划分） ---------- */
.case-project { margin-bottom: 61px; }
.case-project:last-child { margin-bottom: 0; }
.case-project-head {
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.case-project-name {
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.case-project-desc {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.73;
  max-width: 860px;
  margin: 0 0 12px;
}
/* 一句话简介缺失时的占位（不改写、不臆造文案） */
.case-project-desc.is-pending { color: var(--gold-dark); font-style: italic; }
.case-project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: 11px; letter-spacing: .12em; line-height: 1.54;
}
.tag-type  { background: var(--gold); color: var(--white); }
.tag-label { border: 1px solid var(--gold-soft); color: var(--gold-dark); background: rgba(255,255,255,.55); }
.tag-pending { border: 1px dashed var(--gold-soft); color: var(--gold-dark); background: transparent; }
@media (max-width: 768px) {
  .case-project { margin-bottom: 48px; }
  .case-project-head { margin-bottom: 17px; padding-bottom: 14px; }
}

/* ---------- 案例图片展示（分组图片墙） ---------- */
.case-group { margin-bottom: 61px; }
.case-group:last-child { margin-bottom: 0; }
.case-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.case-group-head h3 { font-size: 20px; letter-spacing: .06em; }
.case-group-count {
  font-family: "Inter", sans-serif; font-size: 11px;
  letter-spacing: .2em; color: var(--gold);
}
.case-group-note { color: var(--text-sub); font-size: 13px; margin-left: auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
@media (max-width: 992px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--gold-light);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;               /* 统一比例，保证图片墙整齐 */
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(30,24,14,.62));
  color: rgba(255,255,255,.94);
  font-size: 12px; letter-spacing: .08em;
  opacity: 0; transition: opacity var(--transition-base);
}
.gallery-item:hover figcaption { opacity: 1; }
/* 懒加载骨架 */
.gallery-item img.loading { opacity: 0; }
.gallery-item img.loaded { opacity: 1; }

/* 待补占位（某业务图片缺失时使用，结构与图片项一致） */
.gallery-item.pending {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--gold-soft);
  background: var(--gold-light);
  cursor: default; aspect-ratio: 4 / 3;
}
.gallery-item.pending span {
  font-size: 13px; letter-spacing: .2em; color: var(--gold-dark);
}

/* ---------- 底部 CTA ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 33px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.72); margin-bottom: 31px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 29px; border-radius: var(--radius-pill);
  font-size: 14px; letter-spacing: .06em;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 12px; color: var(--text-sub);
}
.footer .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Lightbox 图片查看器 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(24,20,12,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 3px; }
.lightbox button { position: absolute; color: rgba(255,255,255,.85); transition: color var(--transition-fast); }
.lightbox button:hover { color: var(--gold-soft); }
.lightbox-close { top: 24px; right: 28px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-family: "Inter", sans-serif;
  font-size: 12px; letter-spacing: .2em;
}

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img, .ability-card, .btn, .nav-cta { transition: none; }
}
