/* ============================================
   大更设计 DAGENG DESIGN
   PC + Mobile 响应式样式
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #1a1a1a;
  --accent: #b8977e;
  --bg: #fafaf8;
  --bg-dark: #2a2a2a;
  --text: #333333;
  --text-light: #888888;
  --white: #ffffff;
  --radius: 12px;
  --header-h: 60px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* ============================================
   Header / Navigation — 深色导航栏
   ============================================ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: transparent;
}

.header-solid {
  position: relative;
  background: var(--bg-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 90%;
  margin: 0 auto;
  padding: 0 3rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  z-index: 10002;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  z-index: 10002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span { background: var(--accent); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav {
  display: flex;
  align-items: center;
}

.nav-search { display: none; }

.nav-links {
  width: 100%;
  background: rgba(30, 30, 30, 0.98);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-links.active {
  max-height: 400px;
  padding: 0.75rem 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(184, 151, 126, 0.1);
}

/* Nav Flip Animation */
.nav-links a {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease, background 0.3s ease;
  perspective: 200px;
}

.nav-links li:not(.has-dropdown):not(.nav-search) > a,
.nav-links li.has-dropdown > a {
  position: relative;
  display: inline-block;
}

.nav-text {
  display: inline-block;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.nav-text.flipping {
  transform: rotateX(360deg);
}

.nav-text-en {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: rotateX(-180deg);
  transition: opacity 0.2s ease 0.2s;
  pointer-events: none;
}

.nav-text.flipping .nav-text-en {
  opacity: 1;
  transform: rotateX(0deg);
}

.nav-text.flipping .nav-text-zh {
  opacity: 0;
}

.nav-text-zh {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.nav-links li:not(.has-dropdown):not(.nav-search) > a:hover .nav-text,
.nav-links li.has-dropdown > a:hover .nav-text {
  color: var(--accent);
}

/* Search Box */
.nav-search {
  list-style: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  margin-left: 0.5rem;
  transition: border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: rgba(255,255,255,0.8);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.85rem;
  width: 120px;
  padding: 0;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  margin-left: 0.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: var(--white);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.97);
  width: max-content;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  padding: 0.25rem 0;
  z-index: 10001;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
}

.hero h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: 0.12em;
}

.hero-subtitle {
  font-size: clamp(3rem, 9vw, 5.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(25px);
  animation: heroFadeUp 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
}

.hero-english {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: -0.6rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 2s cubic-bezier(0.25, 0.1, 0.25, 1) 1s forwards;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--white);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 50px;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(15px);
  animation: heroFadeUp 2s cubic-bezier(0.25, 0.1, 0.25, 1) 1.5s forwards;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--primary);
}

/* ============================================
   Hero Carousel — Banner轮播 重叠渐变切换
   ============================================ */
.hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide.prev {
  opacity: 0;
  z-index: 3;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1);
}

.hero-slide.active img {
  animation: heroZoom 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-slide.prev img {
  animation: none;
  transform: scale(1.1);
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-carousel .hero-overlay {
  position: absolute;
  inset: 0;
  will-change: background;
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  pointer-events: none;
}

.hero-slide.active .hero-overlay {
  animation: overlayBreathe 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes overlayBreathe {
  0%   { background: rgba(0, 0, 0, 0.4); }
  35%  { background: rgba(0, 0, 0, 0.05); }
  100% { background: rgba(0, 0, 0, 0.9); }
}

.hero-carousel .hero-content {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.section-text {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================
   Services (首页 + portfolio 业务范围)
   ============================================ */
.services-bg {
  background: linear-gradient(135deg, rgba(184,151,126,0.04) 0%, rgba(250,250,248,0) 60%);
  position: relative;
}

.services-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path d="M0 400 L200 350 L400 380 L600 320 L800 360 L800 600 L0 600Z" fill="none" stroke="%23b8977e" stroke-width="0.5" opacity="0.08"/></svg>') center bottom / cover no-repeat;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(184,151,126,0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover { border-color: var(--accent); color: var(--accent); }

.filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.project-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}

.project-info {
  padding: 1rem;
}

.project-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(184,151,126,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.project-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.project-tags .tag {
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border-radius: 50px;
  font-size: 0.68rem;
  color: var(--text-light);
}

/* ============================================
   CTA Section
   ============================================ */
.bottom-band {
  background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.85)), url('../images/cover/footer-bg.jpg') top center / 100% auto no-repeat;
  position: relative;
}

.section-cta {
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
  margin-bottom: 0;
  border-radius: 0;
  background: none;
}

.section-cta h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.section-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #a6856c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,151,126,0.3);
}

/* ============================================
   Footer — 深色半透明建筑底图
   ============================================ */
.footer {
  background: linear-gradient(rgba(17,17,17,0.85), rgba(17,17,17,0.85)), url('../images/cover/footer-bg.jpg') center center / cover no-repeat;
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.bottom-band .footer {
  background: none;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
  padding-left: 0;
  padding-right: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col p,
.footer-col ul li,
.footer-col ul li a {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: flex-start;
}

.footer-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.footer-social-item a {
  display: inline-flex;
}

.footer-social-item span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-social img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   Bottom Bar (mobile only)
   ============================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  display: flex;
  z-index: 9999;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
  color: var(--white);
  font-size: 0.85rem;
  transition: background 0.3s ease;
  min-height: 52px;
}

.bottom-bar-item:first-child {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.bottom-bar-item:hover { background: rgba(255,255,255,0.05); }
.bottom-bar-icon { font-size: 1rem; }

/* ============================================
   Portfolio Page (portfolio.html)
   ============================================ */
.page-header {
  padding: 7rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(rgba(17,17,17,0.55), rgba(17,17,17,0.55)), url('../images/cover/01.jpg') center center / cover no-repeat;
  color: var(--white);
  position: relative;
}

.page-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.page-header-compact {
  padding: 1.75rem 0 0.6rem;
  background: var(--bg-dark);
  margin-top: 60px;
}

.page-header-compact h1 {
  font-size: 1.5rem;
}

.page-header-compact p {
  font-size: 0.8rem;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: var(--bg-dark);
}

.section-filter {
  padding: 1rem 0 0;
}

.project-section {
  margin-bottom: 3rem;
}

.project-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ============================================
   Project Detail Pages (projects/*.html)
   ============================================ */
.detail-hero {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 2rem 1rem;
}

.detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-meta-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-meta-value {
  font-weight: 500;
  font-size: 0.9rem;
}

.detail-content {
  max-width: 800px;
  margin-bottom: 2rem;
}

.detail-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.detail-content p {
  color: var(--text-light);
  line-height: 2;
  font-size: 0.95rem;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.detail-gallery img:hover { transform: scale(1.02); }

.detail-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.detail-nav a {
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.detail-nav a:hover { background: #444; }

/* ============================================
   About Page
   ============================================ */
.about-intro-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.section-about-stats {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section-about-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.015) 0px, transparent 1px, transparent 60px);
  opacity: 0.6;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.about-stat-card {
  background: linear-gradient(180deg, #f7f5f2 0%, #f0ede8 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.about-stat-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-stat-number {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.about-stat-divider {
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.section-about-team {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}

.section-about-team::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.012) 0px, transparent 1px, transparent 80px);
  opacity: 0.4;
}

.about-team-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.about-team-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.about-team-header p {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.about-team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.about-team-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eae7e2;
}

.about-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-team-card:hover .about-team-avatar img {
  transform: scale(1.05);
}

.about-team-info {
  padding: 1.25rem;
}

.about-team-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.about-team-role {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.about-team-info p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.stat-number {
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.section-business { margin-bottom: 2rem; }

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.business-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.business-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(184,151,126,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.business-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.business-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Philosophy */
.section-philosophy { margin-bottom: 2rem; }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.philosophy-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-3px);
}

.philosophy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.philosophy-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.philosophy-quote {
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  background: rgba(184,151,126,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}

.philosophy-quote p {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-style: italic;
  color: var(--primary);
  line-height: 1.8;
  font-weight: 300;
}

/* Advantages */
.section-advantages { margin-bottom: 2rem; }

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.advantage-item {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.advantage-item .adv-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.advantage-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.advantage-item p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Team */
.section-team { margin-bottom: 2rem; }

.team-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.team-grid::-webkit-scrollbar { display: none; }

.team-member {
  flex-shrink: 0;
  width: 140px;
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d4b89a);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-member h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.team-role {
  font-size: 0.72rem;
  color: var(--text-light);
}

.team-member p {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* ============================================
   Contact Page
   ============================================ */
.section-contact { margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-card .info-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.contact-card .info-value {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,151,126,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
}

.form-submit:hover {
  background: #a6856c;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(184,151,126,0.3);
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success .success-icon {
  width: 60px;
  height: 60px;
  background: rgba(76,175,80,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #4caf50;
}

/* ============================================
   Blog Page
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(184,151,126,0.1);
  color: var(--accent);
  font-size: 0.68rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.btn-readmore {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  min-width: 40px;
  min-height: 40px;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-ellipsis { color: var(--text-light); padding: 0 0.3rem; }

/* ============================================
   404 Page
   ============================================ */
.page-404 {
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.page-404 h1 {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-primary { background: var(--accent); }
.btn-primary:hover { background: #a6856c; }

/* ============================================
   Progress / Phases
   ============================================ */
.project-progress {
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.project-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.phase-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.phase-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e5e5;
  margin-top: 0.4rem;
}

.phase-dot.completed { background: var(--accent); }

.phase-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(184,151,126,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
}

.project-phases-mini {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-phases-mini::-webkit-scrollbar { display: none; }

.project-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ============================================
   Float Sidebar — 右侧悬浮咨询组件
   ============================================ */
.float-sidebar {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.88);
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.float-group {
  position: relative;
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 0.6rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.float-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.float-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.float-item span {
  font-size: 0.6rem;
  white-space: nowrap;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
}

.float-divider {
  width: 55%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto;
}

.float-popup {
  display: none;
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 1.2rem;
  white-space: nowrap;
}

.float-popup.active { display: block; }

.float-popup-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.float-popup-inner img {
  display: block;
  margin: 0 auto;
  width: 130px;
  border-radius: 6px;
}

.float-popup-arrow {
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: translateY(-50%) rotate(45deg);
}

.float-popup-phone { font-size: 1rem; font-weight: 600; color: var(--text-dark); letter-spacing: 0.02em; }
.float-popup-wechat { font-size: 0.75rem; color: var(--text-light); margin-top: 0.4rem; }

/* ============================================
   Project Detail Pages - Legacy Navbar
   (project pages use .navbar / .nav-toggle)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span { background: var(--accent); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 30, 30, 0.97);
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  padding: 0.5rem 0;
  z-index: 10001;
}

.dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Service Process — 服务流程时间线
   ============================================ */
.section-process {
  background: linear-gradient(180deg, var(--bg) 0%, #f5f3f0 100%);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(184,151,126,0.12);
}

.process-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.process-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184,151,126,0.1), rgba(184,151,126,0.05));
  color: var(--accent);
}

.process-icon svg {
  width: 22px;
  height: 22px;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Team Modal — 团队成员详情弹窗
   ============================================ */
.team-member { cursor: pointer; }

.team-member:hover .team-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(184,151,126,0.25);
}

.team-avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.team-modal.active {
  display: flex;
}

.team-modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.team-modal-close:hover { background: #e5e5e5; }

.team-modal-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  min-height: 420px;
}

.team-modal-avatar {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  margin-bottom: 0;
  border: none;
}

.team-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-info {
  text-align: left;
  width: 50%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.team-modal-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.team-modal-info > .team-role {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.team-modal-detail {
  text-align: left;
}

.team-modal-section {
  margin-bottom: 1.25rem;
}

.team-modal-section h4 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.team-modal-section p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.8;
}

.team-modal-section ul {
  list-style: none;
  padding: 0;
}

.team-modal-section ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.7;
}

.team-modal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================
   Responsive — 480px (small phones)
   ============================================ */
@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .container { padding: 0 0.6rem; }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-subtitle { font-size: clamp(2.1rem, 12vw, 3rem); letter-spacing: 0.1em; }
  .hero-english { font-size: clamp(0.7rem, 3.5vw, 0.95rem); }
  .hero-cta { padding: 0.75rem 2rem; font-size: 0.85rem; }
  .hero-carousel { min-height: 100vh; }

  .services-grid { gap: 0.75rem; }
  .service-card { padding: 1.5rem 1rem; }
  .service-card h3 { font-size: 1rem; }

  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .process-step { padding: 1.25rem 0.75rem; }
  .process-step h3 { font-size: 0.88rem; }
  .process-step p { font-size: 0.72rem; }

  .filter-tabs { justify-content: flex-start; gap: 0.35rem; }
  .filter-tab { padding: 0.35rem 0.9rem; font-size: 0.72rem; }

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

  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-stat-card { padding: 2rem 1.25rem; }
  .about-stat-number { font-size: 1.8rem; }
  .about-stat-label { font-size: 0.78rem; }
  .about-stat-divider { width: 28px; }

  .about-team-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 400px; margin: 0 auto; }
  .about-team-header { margin-bottom: 2.5rem; }
  .about-team-header h2 { font-size: 1.8rem; }

  .pagination { gap: 0.35rem; padding: 2rem 0 0.5rem; }
  .pagination-btn, .pagination-num { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .about-team-header p { font-size: 0.9rem; }

  .team-modal-content { max-height: 90vh; }
  .team-modal-body { flex-direction: column; min-height: auto; }
  .team-modal-avatar { width: 100%; height: 220px; border-radius: 16px 16px 0 0; }
  .team-modal-info { width: 100%; padding: 1.5rem; }

  .section-cta { padding: 2.5rem 1rem; }

  .detail-hero { height: 40vh; min-height: 250px; }
  .detail-body { padding: 1.5rem 1rem; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery img { height: 200px; object-fit: cover; }

  .bottom-bar { display: flex; }

  .contact-grid { gap: 1rem; }

  .philosophy-grid { gap: 0.75rem; }
  .philosophy-card { padding: 1.25rem; }
}

/* ============================================
   Responsive — 768px+ (tablet & desktop)
   ============================================ */
@media (min-width: 768px) {
  :root { --header-h: 75px; }
  .container { padding: 0 1.25rem; }

  /* Nav: desktop horizontal — inline inside header-inner */
  .nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 2rem;
  }

  .hamburger { display: none; }
  .nav-toggle { display: none; }

  .nav-search { display: block; }

  .nav-links {
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.5rem 1.4rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    background: rgba(184, 151, 126, 0.12);
  }

  .has-dropdown:hover .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .header-inner { height: var(--header-h); }

  /* Hero */
  .hero { min-height: 600px; }
  .hero-carousel { min-height: 600px; }
  .hero h1 { font-size: clamp(3.5rem, 10vw, 6rem); }
  .hero-content, .hero-carousel .hero-content { max-width: 900px; }
  .hero-subtitle { letter-spacing: 0.2em; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Services: 4 columns */
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .service-card { padding: 2.5rem 1.5rem; }
  .service-icon { width: 64px; height: 64px; }
  .service-icon svg { width: 30px; height: 30px; }

  .process-timeline { grid-template-columns: repeat(7, 1fr); gap: 1rem; }

  /* Projects: 3 columns */
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .project-overlay { opacity: 0; }
  .project-card:hover .project-overlay { opacity: 1; }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .footer { padding: 4rem 0 0; }
  .footer .container { padding-left: 0; padding-right: 0; }

  /* Bottom Bar hidden on desktop */
  .bottom-bar { display: none; }

  /* Float sidebar visible on desktop */
  .float-sidebar { display: flex; }

  /* About */
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .stat-item { padding: 2rem 1.5rem; }

  .about-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .about-stat-card { padding: 3rem 2rem; }
  .about-stat-number { font-size: clamp(2rem, 5vw, 3.2rem); }
  .about-stat-label { font-size: 0.82rem; }

  .about-team-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .about-team-header { margin-bottom: 4rem; }
  .about-team-header h2 { font-size: clamp(2rem, 5vw, 3rem); }
  .about-team-header p { font-size: 1.05rem; }

  .business-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .business-item { padding: 2rem; }

  .philosophy-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .philosophy-card { padding: 1.75rem; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .advantage-item { padding: 2rem 1.5rem; }

  .team-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow-x: visible; gap: 2rem; }
  .team-member { width: auto; }
  .team-avatar { width: 120px; height: 120px; font-size: 2rem; }

  .team-modal-body { min-height: 420px; }
  .team-modal-info { padding: 2.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
  .contact-form-wrapper { padding: 2rem; }

  /* Portfolio */
  .project-section-title { font-size: 1.3rem; }

  /* Detail pages */
  .detail-hero { height: 60vh; min-height: 400px; }
  .detail-body { padding: 3rem 2rem; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .detail-gallery img { height: auto; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Lightbox */
  .lightbox-prev { left: 2rem; }
  .lightbox-next { right: 2rem; }
}

/* ============================================
   Responsive — 1200px+ (large desktop)
   ============================================ */
@media (min-width: 1200px) {
  .container { max-width: 90%; }

  .hero h1 { font-size: 8rem; }
  .hero-content, .hero-carousel .hero-content { max-width: 1000px; }

  .projects-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

  .section { padding: 4rem 0; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
  .footer .container { padding-left: 0; padding-right: 0; }

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

  .philosophy-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ============================================
   Responsive — 1920px+ (2K/4K screens)
   ============================================ */
@media (min-width: 1920px) {
  .container { max-width: 90%; }
  .projects-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .project-card img { height: 220px; }
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.lightbox-swipe-area {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0 1rem;
}

.pagination-btn,
.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
}

.pagination-btn:hover:not(:disabled),
.pagination-num:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-num.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-btn {
  font-weight: 500;
}

/* Floating Bubbles */
.bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(255,255,255,0.15));
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.15);
}

/* ============================================
   Mobile Adaptation Fix — 2026-10-10
   修复：项目页/非首页的 .navbar + .nav-toggle 菜单
   问题：桌面端 .nav-links 横向样式未在移动端被覆盖，
        菜单展开后菜单项竖排挤压在右侧、文字换行
   ============================================ */

/* ---------- 通用：移动端禁用双击缩放 ---------- */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* 图片不撑破容器 */
  img { max-width: 100%; height: auto; }

  /* 长串文字（如邮箱、电话）在窄屏换行 */
  p, a, span, li, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* ============================================
   抽屉式导航（项目页 .navbar）
   ============================================ */
@media (max-width: 767px) {

  /* 抽屉容器：全屏深色，从右滑出 */
  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(78vw, 300px);
    max-height: none;
    height: 100vh;
    height: 100dvh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: calc(var(--header-h) + 1rem) 0 5rem;
    overflow-y: auto;
    overscroll-behavior: contain;

    /* 默认隐藏在视口右侧 */
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.55);
    z-index: 10001;

    /* 覆盖桌面端的横向排列 */
    display: block;
    align-items: stretch;
    gap: 0;
  }

  /* 展开态：滑入视口 */
  .navbar .nav-links.active {
    max-height: none;
    padding: calc(var(--header-h) + 1rem) 0 5rem;
    transform: translateX(0);
  }

  /* 菜单项：整行可点，竖向排列 */
  .navbar .nav-links li {
    position: relative;
    width: 100%;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .navbar .nav-links li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 1.05rem 1.35rem;
    min-height: 52px;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;          /* 防止「联系我们」被拆行 */
  }

  /* 中英文双行排版保持完整 */
  .navbar .nav-links .nav-text {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    white-space: nowrap;
  }

  .navbar .nav-links .nav-text-zh {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }

  .navbar .nav-links .nav-text-en {
    font-size: 0.66rem;
    line-height: 1.2;
    opacity: 0.5;
  }

  /* 悬停高亮在触屏上改为常驻色，避免点了没反馈 */
  .navbar .nav-links li > a:active {
    background: rgba(255, 255, 255, 0.06);
  }

  /* 下拉子菜单：折叠为可点击的分区标签 */
  .navbar .nav-links .has-dropdown > .dropdown {
    position: static;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .navbar .nav-links .has-dropdown:hover > .dropdown,
  .navbar .nav-links .has-dropdown:focus-within > .dropdown {
    max-height: 0;               /* 触屏不靠 hover 展开 */
  }

  .navbar .nav-links .dropdown li a {
    display: block;
    padding: 0.85rem 2.2rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.66);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
  }

  /* 搜索框：移动端隐藏（占位太小且无法展开键盘） */
  .navbar .nav-links .nav-search {
    display: none;
  }

  /* 汉堡按钮：加大点击区域，固定在导航栏右侧 */
  .navbar .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 44px;                  /* 触屏最小可点区域 */
    height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    padding: 0 2px;
    cursor: pointer;
    position: relative;
    z-index: 10002;
  }

  .navbar .nav-toggle span { width: 24px; height: 2px; }

  /* 导航栏本体：加上 safe-area 适配刘海屏 */
  .navbar {
    padding-top: env(safe-area-inset-top);
    -webkit-tap-highlight-color: transparent;
  }

  .navbar .nav-container { height: var(--header-h); padding: 0 1rem; }

  /* Logo 防止过大挤掉按钮 */
  .navbar .nav-container .logo { max-width: 55vw; }

  /* 抽屉打开时：锁定页面滚动 */
  body.nav-open { overflow: hidden; }
}

/* ============================================
   底部联系条（.bottom-bar）修复
   ============================================ */
@media (max-width: 767px) {
  .bottom-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.35);
  }

  .bottom-bar-item {
    flex: 1 1 50%;
    min-width: 0;
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================
   首页首屏在移动端过高（100vh），下调
   ============================================ */
@media (max-width: 767px) {
  .hero,
  .hero-carousel {
    min-height: 78vh !important;
  }

  /* 首屏大标题在窄屏收一档，避免撑破 */
  .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem) !important;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: clamp(1.15rem, 6vw, 1.6rem) !important;
    letter-spacing: 0.06em;
  }

  .hero-english {
    font-size: clamp(0.62rem, 2.8vw, 0.8rem) !important;
    letter-spacing: 0.04em;
  }

  /* 按钮组竖排，避免并排挤压 */
  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }
}

/* ============================================
   平板 768-1023px：填补断点空白
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --header-h: 64px; }
  .container { padding: 0 1.25rem; }

  /* 平板用抽屉而非挤在一起的横排 */
  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(72vw, 320px);
    max-height: none;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    padding: calc(var(--header-h) + 1rem) 0 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.55);
    z-index: 10001;
    display: block;
  }

  .navbar .nav-links.active { transform: translateX(0); max-height: none; }

  .navbar .nav-links li > a {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 1.35rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .navbar .nav-links .nav-search { display: none; }

  .navbar .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10002;
  }

  /* 两列栅格，避免四列在平板上过窄 */
  .services-grid,
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }

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

  /* 平板隐藏底部联系条（有空间） */
  .bottom-bar { display: none; }

  body.nav-open { overflow: hidden; }
}

/* ============================================
   Mobile Polish Round 2 — 2026-10-10
   ============================================ */
@media (max-width: 767px) {

  /* 1) 筛选标签横滑提示：右侧渐隐，让用户看出还能滑 */
  .filter-tabs {
    position: relative;
    justify-content: flex-start;
    padding-right: 1.5rem;
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 78%, transparent 100%);
  }

  /* 2) 底部联系条固定，页面内容需留出等高空间，否则最后一段被盖住 */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

  /*3) 精选作品卡片：图片在手机上过高，压缩比例 */
  .project-card-media,
  .project-card img {
    height: 200px;
    object-fit: cover;
  }

  /* 4) 页脚深色区：移动端加大内边距，快速链接不挤 */
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer { padding: 3rem 0 1.5rem; }
  .footer-links a { padding: 0.35rem 0; display: block; }

  /* 5) 关于页数据卡：手机上2列已足够，数字收小避免换行 */
  .about-stat-number { font-size: 1.5rem; }
  .about-stat-card { padding: 1.5rem 0.75rem; }

  /* 6) 首屏 CTA 按钮组：已在上面设竖排，这里补宽度 */
  .hero-cta a { width: 100%; max-width: 260px; text-align: center; }
}

/* ============================================
   Mobile Fix Round 3 — 2026-10-10
   修复首页（.header/.header-inner/.nav/.hamburger）菜单文字被拆行
   根因：上一轮只写了 .navbar .nav-links（项目页），
        首页的层级是 .header > .header-inner > .nav > .nav-links，未被覆盖
   ============================================ */
@media (max-width: 767px) {

  /* ---------- 抽屉容器 ---------- */
  .header .nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(80vw, 300px);
    max-height: none;
    height: 100vh;
    height: 100dvh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: calc(var(--header-h) + 1rem) 0 5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: block;               /* 覆盖桌面端横向排列 */
    align-items: stretch;
    gap: 0;
  }

  .header .nav .nav-links.active {
    max-height: none;
    padding: calc(var(--header-h) + 1rem) 0 5rem;
    transform: translateX(0);
  }

  /* ---------- 菜单项：整行可点 ---------- */
  .header .nav .nav-links li {
    position: relative;
    width: 100%;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header .nav .nav-links li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    padding: 1.05rem 1.35rem;
    min-height: 54px;
    font-size: 1.05rem;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;          /* 关键：禁止「联系我们」被拆行 */
    letter-spacing: 0.04em;
  }

  /* ---------- 中英文改为并排流式，不绝对定位 ---------- */
  .header .nav .nav-links .nav-text {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    white-space: nowrap;
    transform: none !important;  /* 禁用翻转动画，避免触屏误触乱码 */
  }

  .header .nav .nav-links .nav-text-zh,
  .header .nav .nav-links .nav-text-en {
    position: static;             /* 关键：脱离 absolute，否则文字叠在一起 */
    opacity: 1;
    transform: none;
    white-space: nowrap;
  }

  .header .nav .nav-links .nav-text-zh {
    font-size: 1.05rem;
    line-height: 1.3;
    flex-shrink: 0;
  }

  .header .nav .nav-links .nav-text-en {
    font-size: 0.66rem;
    line-height: 1.2;
    opacity: 0.45;
    flex-shrink: 0;
  }

  /* 触屏用 active 高亮，hover 无效 */
  .header .nav .nav-links li > a:active { background: rgba(255, 255, 255, 0.06); }

  /* ---------- 下拉子菜单：横向标签组 ---------- */
  .header .nav .nav-links .has-dropdown > .dropdown {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: none;
    overflow: visible;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0.7rem 1.35rem;
  }

  .header .nav .nav-links .has-dropdown:hover > .dropdown,
  .header .nav .nav-links .has-dropdown:focus-within > .dropdown {
    max-height: none;
  }

  .header .nav .nav-links .dropdown li {
    border: none;
    list-style: none;
  }

  .header .nav .nav-links .dropdown li a {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    white-space: nowrap;
  }

  /* 搜索框移动端隐藏 */
  .header .nav .nav-links .nav-search { display: none; }

  /* ---------- 汉堡按钮：加大到触屏标准 ---------- */
  .header .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: auto;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
  }

  .header .hamburger span { width: 24px; height: 2px; }

  /* ---------- header 布局 ---------- */
  .header {
    padding-top: env(safe-area-inset-top);
  }

  .header .header-inner {
    padding: 0 1rem;
    max-width: 100%;
    height: var(--header-h);
  }

  .header .logo {
    max-width: 50vw;
    flex-shrink: 1;
  }

  /* 抽屉打开时锁定背景滚动 */
  body.nav-open { overflow: hidden; }
}

/* ---------- 平板同样处理 ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .header .nav .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    width: min(74vw, 320px);
    max-height: none;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    padding: calc(var(--header-h) + 1rem) 0 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: block;
  }

  .header .nav .nav-links.active { transform: translateX(0); max-height: none; }

  .header .nav .nav-links li > a {
    display: flex;
    justify-content: flex-start;
    padding: 0.9rem 1.35rem;
    min-height: 50px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .header .nav .nav-links .nav-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
    transform: none !important;
  }

  .header .nav .nav-links .nav-text-zh,
  .header .nav .nav-links .nav-text-en {
    position: static;
    opacity: 1;
    transform: none;
  }

  .header .nav .nav-links .nav-text-en { font-size: 0.62rem; opacity: 0.45; }
  .header .nav .nav-links .nav-search { display: none; }

  .header .hamburger {
    display: flex;
    width: 44px; height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10002;
  }

  body.nav-open { overflow: hidden; }
}

/* ============================================
   WeChat QR Modal — 2026-10-10
   桌面端二维码在右侧悬浮栏(.float-sidebar)内，
   手机端悬浮栏不显示，故底部「微信咨询」点击弹出此模态框
   ============================================ */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
}

.wechat-modal.active { display: flex; }

.wechat-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wechat-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  width: min(88vw, 320px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: wechatModalIn 0.25s ease;
}

@keyframes wechatModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.wechat-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.wechat-modal-qr {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
}

.wechat-modal-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wechat-modal-hint {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.03em;
}

/* 弹窗打开时锁定背景滚动 */
body.modal-open { overflow: hidden; }
/* ============================================
   Mobile Fix Round 5 — 2026-10-10
   仅影响手机端（max-width:767px），桌面端零改动
   ============================================ */

/* --- 问题1：关于页正文右侧被裁，文字缺字--- */
@media (max-width: 767px) {
  /* 全局兜底：任何元素都不许把页面撑出横向滚动条 */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 所有 section / 内容容器禁止溢出裁切 */
  .section,
  .container,
  .about-intro-content,
  .section-about-intro .container,
  .about-intro-content p,
  .about-intro-text {
    max-width: 100%;
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* 中文段落按字断行，避免右侧切字 */
  .section-about-intro p,
  .about-intro-content p {
    line-height: 1.9;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  /* 标题同样不许撑破 */
  .section-about-intro h2,
  .section-about-intro h3,
  .section-about-intro h1 {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
  }
}

/* --- 问题2：团队成员卡片姓名下文字被压成竖排 --- */
@media (max-width: 767px) {
  /* 强制单列，且取消最大宽度限制，避免卡片被压扁 */
  .about-team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100%;
  }

  .about-team-card {
    width: 100%;
    min-width: 0;
  }

  /* 卡片内信息区：允许换行，禁止压成竖排 */
  .about-team-info {
    min-width: 0;
    overflow: visible;
    padding: 1rem 1.25rem 1.25rem;
  }

  /* 关键：姓名和职位都强制横排+自动换行，
     这是「竖排一根条」的根因（父容器宽度被挤压后无换行机会） */
  .about-team-info h3 {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: normal;
    line-height: 1.5;
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
  }

  .about-team-role {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.6;
    font-size: 0.85rem;
  }

  /* 头像比例在窄屏放宽一点，避免过高 */
  .about-team-avatar {
    aspect-ratio: 4 / 3;
  }
}

/* --- 问题3：底部联系条电话被切 --- */
@media (max-width: 767px) {
  .bottom-bar-item {
    /* 允许两行显示，不要 nowrap 把号码挤掉 */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all;
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 0.7rem 0.3rem;
    min-height: 56px;
    gap: 0.3rem;
  }

  /* 号码单独一行，字号再收一档确保放得下 */
  .bottom-bar-item span {
    font-size: 0.72rem;
    letter-spacing: 0;
  }

  .bottom-bar-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* 条本身不要超出视口 */
  .bottom-bar {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* --- 问题4：数据卡横向溢出，第四张被切 --- */
@media (max-width: 767px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    width: 100%;
  }

  .about-stat-card {
    min-width: 0;
    padding: 1.5rem 0.85rem;
  }

  .about-stat-number {
    font-size: 1.5rem;
    line-height: 1.2;
    overflow-wrap: break-word;
  }

  .about-stat-label {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* 首页数据卡同理 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }

  .stats-grid .stat-card,
  .stats-grid > div {
    min-width: 0;
  }
}

/* --- 问题5：筛选栏最后一项被切--- */
@media (max-width: 767px) {
  .filter-tabs {
    display: flex;
    flex-wrap: wrap !important;      /* 改为换行，不再靠横向滑动 */
    gap: 0.5rem !important;
    padding-right: 0;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: visible;
  }

  .filter-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

/* --- 问题6：首页首屏文案不显示 --- */
@media (max-width: 767px) {
  /* 首屏内容强制可见：动画类若因未触发导致不可见，这里兜底 */
  .hero-content,
  .hero h1,
  .hero-subtitle,
  .hero-english {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
  }

  /* 首屏压到72vh，保证文案区有足够空间 */
  .hero,
  .hero-carousel {
    min-height: 72vh !important;
  }

  /* 文案压在图上要有底衬，浅色图上也读得清 */
  .hero h1 {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle,
  .hero-english {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  }
}

/* --- 全局兜底：任何栅格/弹性子项都允许收缩，避免挤压竖排 --- */
@media (max-width: 767px) {
  .section > .container,
  .container > *,
  .grid > *,
  [class*="-grid"] > * {
    min-width: 0;
    max-width: 100%;
  }

  /* 页面底部留出联系条高度，防止遮挡内容 */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}/* ============================================
   Mobile Float Sidebar — 2026-10-10
   手机端把底部联系条改成右侧悬浮图标（上下排、只显示图标、点击展开）
   仅 max-width:767px，桌面端零改动
   ============================================ */
@media (max-width: 767px) {

  /* 1) 手机端显示右侧悬浮栏 */
  .float-sidebar {
    display: flex !important;
    position: fixed;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9500;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* 2) 隐藏底部联系条 */
  .bottom-bar {
    display: none !important;
  }

  /* 3) 图标按钮：只显示图标，不显示文字 */
  .float-item {
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    border-radius: 18px;
  }

  /* 手机端隐藏文字标签，只留符号 */
  .float-item span {
    display: none;
  }

  .float-item svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
  }

  .float-item:active {
    background: rgba(255, 255, 255, 0.15);
  }

  /* 4) 分隔线 */
  .float-divider {
    width: 55%;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 auto;
  }

  /* 5) 弹层：改为在图标左侧展开，宽度适合手机 */
  .float-popup {
    display: none;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
    padding: 1rem;
    white-space: nowrap;
  }

  .float-popup.active {
    display: block;
  }

  .float-popup-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .float-popup-inner img {
    display: block;
    margin: 0 auto;
    width: 118px;
    border-radius: 6px;
  }

  .float-popup-arrow {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: translateY(-50%) rotate(45deg);
  }

  .float-popup-phone {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
  }

  .float-popup-wechat {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 0.4rem;
  }

  /* 6) 弹层太窄时（320px 以下）兜底：允许贴边不溢出 */
  @media (max-width: 360px) {
    .float-sidebar { right: 0.4rem; }
    .float-item { width: 42px; height: 42px; }
    .float-popup { padding: 0.85rem; }
    .float-popup-inner img { width: 112px; }
  }

  /* 7) 底部条已移除，恢复正常页面底部留白 */
  body {
    padding-bottom: 0 !important;
  }
}
/* ============================================
   Mobile Header Scroll State — 2026-10-10
   手机端首页导航：
   · 页面顶部时 = 完全透明，与首屏画面融为一体（不压黑条）
   · 向下滚动后 = 加 .scrolled 类，变为黑色半透明并吸顶
   ⚠️ about/portfolio/contact/research 已有 .header-sticky(fixed) 本身已吸附，
      blog/项目页用 .navbar(fixed) 也已吸附 —— 都不需要动，只补首页。
   ============================================ */
@media (max-width: 767px) {

  /* ⚠️ 关键：只作用于首页（.header 无 .header-solid/.header-sticky）
     about/portfolio/contact/research 用的是
     `.header .header-solid .header-sticky` → 本身已是 fixed 吸附，
     **绝不能被这里的规则覆盖**（否则 fixed 被打破 → 导航随页面滚走）。
     用 :not() 精确排除。 */
  .header:not(.header-solid):not(.header-sticky) {
    position: sticky !important;
    top: 0;
    left: auto;
    z-index: 10000;
    /* 顶部状态：完全透明，与首屏背景融合 */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
    /* 抵消 sticky 占位，首屏视觉位置不变 */
    margin-bottom: calc(var(--header-h, 56px) * -1);
  }

  /* 滚动后：黑色半透明 + 毛玻璃 + 投影，吸在顶部 */
  .header.scrolled:not(.header-solid):not(.header-sticky) {
    background: rgba(17, 17, 17, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================
   Mobile Page Header Fix — 2026-10-10
   修两个问题：
   ① 标题区顶部出现一条白色空隙（导航与标题之间的白线）
      根因：.page-header-compact 用 margin-top:60px 硬coded顶开导航，
      60px 恰好等于导航高度 → 多出的空隙露出白色 body 底色
   ② 标题区过高，手机端占用首屏空间太多
   ============================================ */
@media (max-width: 767px) {

  /* 导航 .header-sticky 是 fixed，会盖住内容。
     原本靠 .page-header-compact 的 margin-top:60px 避让，
     但 60px 是硬编码，与实际导航高度不一定一致，
     多出的部分就露出白色 body 底色 → 形成那条白线。

     解法：标题区整体黑底 + 顶部内边距精确等于导航高度。
     导航下方的空隙也是黑色 → 白线消失；标题不被遮挡。
     内边距用 calc(var(--header-h)) 跟随导航高度，不写死数值。 */
  .page-header-compact {
    background: var(--bg-dark) !important;
    padding-top: var(--header-h, 60px) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 0.7rem !important;
    margin-top: 0 !important;
    position: relative;
  }

  /* 修 ②：标题区整体压缩，标题与副标题都收小 */
  .page-header-compact h1 {
    font-size: 1.15rem !important;
    line-height: 1.35;
    margin: 0 0 0.25rem;
    font-weight: 400;
  }

  .page-header-compact p {
    font-size: 0.72rem !important;
    line-height: 1.5;
    margin: 0;
    opacity: 0.75;
  }
}
