/* ====== 优家极物官网共享样式 v3 ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #F5A623;
  --orange-dark: #E89010;
  --orange-light: #FFBE5C;
  --orange-50: #FFF8EE;
  --orange-100: #FFEFD4;
  --orange-200: #FFE0B0;
  --cream: #F5EFE6;
  --cream-dark: #EDE5D6;
  --warm-brown: #C8A882;
  --dark-text: #2C1F10;
  --mid-text: #7A5C3A;
  --light-text: #BFA98A;
  --white: #FFFFFF;
  --dark-section: #1E1610;
  --dark-section-2: #2A1F15;
  --shadow-sm: 0 2px 8px rgba(200, 168, 130, 0.15);
  --shadow-md: 0 8px 24px rgba(200, 168, 130, 0.2);
  --shadow-lg: 0 16px 48px rgba(200, 168, 130, 0.25);
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; color: var(--dark-text); background: var(--cream); overflow-x: hidden; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; position: relative; }
.section-label { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--orange); text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.section-title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; color: var(--dark-text); line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 15px; color: var(--mid-text); line-height: 1.8; max-width: 600px; }

/* ====== 导航 ====== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; padding: 0 48px; height: 64px; background: rgba(245, 239, 230, 0.75); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid rgba(200, 168, 130, 0.2); transition: background 0.3s, box-shadow 0.3s; }
nav.scrolled { background: rgba(245, 239, 230, 0.95); box-shadow: 0 2px 16px rgba(200, 168, 130, 0.12); }
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.logo-text { font-size: 15px; font-weight: 700; color: var(--dark-text); letter-spacing: 0.03em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; margin-left: 48px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a { font-size: 14px; color: var(--mid-text); text-decoration: none; letter-spacing: 0.03em; position: relative; transition: color 0.2s; padding: 20px 0; display: block; white-space: nowrap; }
.nav-links > li > a::after { content: ''; position: absolute; bottom: 12px; left: 0; right: 100%; height: 2px; background: var(--orange); border-radius: 2px; transition: right 0.3s ease; }
.nav-links > li > a:hover { color: var(--orange-dark); }
.nav-links > li > a:hover::after { right: 0; }
.nav-links > li > a.active { color: var(--orange-dark); font-weight: 600; }
.nav-links > li > a.active::after { right: 0; }

/* 二级下拉菜单 */
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 180px; opacity: 0; visibility: hidden; transition: all 0.25s ease; list-style: none; }
.dropdown::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--white); }
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a { display: block; padding: 10px 16px; font-size: 13px; color: var(--mid-text); text-decoration: none; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.dropdown li a:hover { background: var(--orange-50); color: var(--orange-dark); }

.has-arrow::after { content: '▾'; font-size: 10px; margin-left: 4px; opacity: 0.5; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-btn { padding: 8px 24px; background: var(--orange); color: white; font-size: 13px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35); white-space: nowrap; }
.nav-btn:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--dark-text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--cream); padding: 16px 24px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.1); flex-direction: column; gap: 4px; max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu a { padding: 12px 16px; color: var(--dark-text); text-decoration: none; font-size: 15px; border-radius: 8px; transition: background 0.2s; }
.mobile-menu a:hover { background: var(--orange-50); }
.mobile-menu .mobile-sub { padding-left: 32px; font-size: 13px; color: var(--mid-text); }
.mobile-menu .mobile-group-title { font-size: 12px; color: var(--orange); font-weight: 600; letter-spacing: 1px; padding: 8px 16px 4px; }
body.menu-open .mobile-menu { display: flex; }

/* ====== HERO（首页） ====== */
.hero { position: relative; width: 100%; height: 75vh; min-height: 480px; max-height: 900px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #EFD9BC 0%, #E8C89A 20%, #D4A870 40%, #C89960 55%, #B8905A 65%, #A08050 75%, #7A6048 85%, #4A3828 100%); z-index: 0; }

/* 网格叠加层 */
.hero-grid-overlay { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; animation: gridShift 20s linear infinite; }
@keyframes gridShift { from { background-position: 0 0, 0 0; } to { background-position: 60px 60px, 60px 60px; } }

.hero-glow-1 { position: absolute; top: -10%; left: -15%; width: 60%; height: 80%; background: radial-gradient(ellipse, rgba(120, 180, 80, 0.12) 0%, transparent 70%); z-index: 1; pointer-events: none; animation: floatGlow 8s ease-in-out infinite alternate; }
.hero-glow-2 { position: absolute; top: 30%; right: 10%; width: 40%; height: 40%; background: radial-gradient(ellipse, rgba(255, 240, 200, 0.25) 0%, transparent 70%); z-index: 1; pointer-events: none; animation: floatGlow 6s ease-in-out infinite alternate-reverse; }
@keyframes floatGlow { from { transform: scale(1) translate(0, 0); opacity: 0.8; } to { transform: scale(1.08) translate(2%, 2%); opacity: 1; } }

/* 几何装饰元素 */
.hero-deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.deco-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.12); }
.deco-ring-1 { width: 320px; height: 320px; top: -80px; right: -60px; animation: decoSpin 30s linear infinite; }
.deco-ring-1::before { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); opacity: 0.4; }
.deco-ring-2 { width: 200px; height: 200px; bottom: -40px; left: -30px; border-color: rgba(245, 166, 35, 0.15); animation: decoSpin 25s linear infinite reverse; }
.deco-ring-2::before { content: ''; position: absolute; bottom: -4px; left: 30%; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-light); opacity: 0.5; }
@keyframes decoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.deco-square { position: absolute; border: 1.5px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
.deco-square-1 { width: 80px; height: 80px; top: 20%; left: 6%; animation: decoFloatY 6s ease-in-out infinite; }
.deco-square-2 { width: 50px; height: 50px; bottom: 25%; right: 8%; border-color: rgba(245, 166, 35, 0.2); animation: decoFloatY 5s ease-in-out infinite 1s; }
@keyframes decoFloatY { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(15deg); } }

.deco-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); }
.deco-line-1 { width: 200px; top: 30%; left: 15%; animation: decoLineExpand 4s ease-in-out infinite; }
.deco-line-2 { width: 150px; bottom: 35%; right: 12%; animation: decoLineExpand 4s ease-in-out infinite 2s; }
@keyframes decoLineExpand { 0%, 100% { transform: scaleX(0.6); opacity: 0.3; } 50% { transform: scaleX(1); opacity: 0.8; } }

.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; background: rgba(245, 200, 100, 0.25); animation: particleFloat linear infinite; will-change: transform, opacity; }
@keyframes particleFloat { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 0.5; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }

.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 24px; pointer-events: none; max-width: 900px; }
.hero-tag { display: inline-block; font-size: 13px; color: rgba(255, 230, 180, 0.9); letter-spacing: 0.12em; margin-bottom: 20px; opacity: 0; animation: fadeUp 0.8s ease both; animation-delay: 0.2s; }
.hero-title { font-size: clamp(32px, 5.5vw, 62px); font-weight: 700; color: #2C1F10; line-height: 1.2; letter-spacing: 0.05em; margin-bottom: 18px; opacity: 0; animation: fadeUp 0.9s ease both; animation-delay: 0.4s; text-shadow: 0 2px 20px rgba(255,240,200,0.3); }
.hero-title .dot { color: var(--orange); }
.hero-subtitle { font-size: clamp(13px, 1.4vw, 15px); color: rgba(80, 55, 30, 0.75); letter-spacing: 0.15em; margin-bottom: 36px; opacity: 0; animation: fadeUp 0.9s ease both; animation-delay: 0.6s; }
.hero-subtitle span { margin: 0 6px; opacity: 0.7; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 40px; background: var(--orange); color: white; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; border: none; border-radius: 6px; cursor: pointer; pointer-events: all; text-decoration: none; box-shadow: 0 8px 28px rgba(245, 166, 35, 0.45); transition: all 0.25s ease; opacity: 0; animation: fadeUp 1s ease both; animation-delay: 0.8s; position: relative; overflow: hidden; }
.hero-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%); transform: translateX(-100%); transition: transform 0.5s ease; }
.hero-cta:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(245, 166, 35, 0.55); }
.hero-cta:hover::before { transform: translateX(100%); }
.cta-arrow { width: 16px; height: 16px; border-right: 2px solid white; border-top: 2px solid white; transform: rotate(45deg); transition: transform 0.2s ease; }
.hero-cta:hover .cta-arrow { transform: rotate(45deg) translate(2px, -2px); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: fadeIn 1s ease both; animation-delay: 1.4s; }
.scroll-hint span { font-size: 11px; letter-spacing: 0.1em; color: rgba(80, 55, 30, 0.5); }
.scroll-mouse { width: 22px; height: 34px; border: 1.5px solid rgba(150, 110, 60, 0.4); border-radius: 11px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-wheel { width: 3px; height: 7px; background: rgba(150, 110, 60, 0.5); border-radius: 2px; animation: scrollWheel 1.8s ease-in-out infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ====== Hero 悬浮标签卡片 ====== */
.hero-float-cards { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(80, 55, 30, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  opacity: 0;
  animation: cardFloatIn 0.8s ease both;
  will-change: transform;
  transition: box-shadow 0.3s, background 0.3s;
}
.hero-float-card:hover { background: rgba(255, 255, 255, 0.65); box-shadow: 0 6px 24px rgba(245, 166, 35, 0.12); }
.hero-float-card .card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-100), var(--orange-200));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hero-float-card .card-text { display: flex; flex-direction: column; gap: 2px; }
.hero-float-card .card-title { font-size: 14px; font-weight: 700; color: var(--dark-text); white-space: nowrap; }
.hero-float-card .card-desc { font-size: 11px; color: var(--mid-text); white-space: nowrap; }

/* 5张卡片散布在Hero区域不同位置（整体下移避免与文字重叠） */
.hero-float-card:nth-child(1) { top: 38%; left: 6%; animation-delay: 1.0s; }
.hero-float-card:nth-child(2) { top: 40%; right: 8%; animation-delay: 1.2s; }
.hero-float-card:nth-child(3) { bottom: 18%; left: 10%; animation-delay: 1.4s; }
.hero-float-card:nth-child(4) { bottom: 12%; right: 6%; animation-delay: 1.6s; }
.hero-float-card:nth-child(5) { top: 60%; right: 15%; animation-delay: 1.8s; }

/* 持续浮动动画 */
.hero-float-card.float-anim { animation: cardFloatIn 0.8s ease both, cardFloat 4s ease-in-out infinite; }
.hero-float-card:nth-child(1).float-anim { animation-delay: 1.0s, 2.0s; }
.hero-float-card:nth-child(2).float-anim { animation-delay: 1.2s, 2.5s; }
.hero-float-card:nth-child(3).float-anim { animation-delay: 1.4s, 3.0s; }
.hero-float-card:nth-child(4).float-anim { animation-delay: 1.6s, 3.5s; }
.hero-float-card:nth-child(5).float-anim { animation-delay: 1.8s, 4.0s; }

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ====== 内页 Banner ====== */
.page-hero { position: relative; padding: 140px 0 80px; background: linear-gradient(160deg, #EFD9BC 0%, #E8C89A 30%, #D4A870 60%, #B8905A 100%); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 50%; height: 140%; background: radial-gradient(ellipse, rgba(255, 240, 200, 0.3) 0%, transparent 70%); pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-tag { display: inline-block; font-size: 12px; color: rgba(80, 55, 30, 0.6); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.page-hero-title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: var(--dark-text); line-height: 1.3; margin-bottom: 12px; }
.page-hero-desc { font-size: 15px; color: rgba(80, 55, 30, 0.7); max-width: 600px; line-height: 1.8; }

/* ====== 公司简介（首页用） ====== */
.about-section { background: var(--cream); overflow: hidden; position: relative; padding-top: 100px; padding-bottom: 100px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 420px; }
.about-visual-bg { position: absolute; top: 0; left: 0; width: 80%; height: 70%; border-radius: 20px; background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-200) 100%); z-index: 0; }
.about-visual-card { position: absolute; bottom: 0; right: 0; width: 70%; height: 70%; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); z-index: 2; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: center; }
.stat-mini { display: flex; flex-direction: column; gap: 4px; }
.stat-mini-num { font-size: 32px; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-mini-label { font-size: 13px; color: var(--mid-text); }
.about-quote { position: absolute; top: 20px; right: 20%; background: var(--dark-section); color: var(--orange-light); padding: 12px 24px; border-radius: 12px; font-size: 13px; font-weight: 600; z-index: 3; box-shadow: var(--shadow-md); }

/* ====== 核心板块卡片（首页用） ====== */
.core-section { background: var(--white); position: relative; overflow: hidden; }
.core-header { text-align: center; margin-bottom: 64px; }
.core-header .section-desc { margin: 0 auto; text-align: center; }
.core-item { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 80px; }
.core-item:last-child { margin-bottom: 0; }
.core-item:nth-child(even) .core-visual { order: 2; }
.core-visual { position: relative; height: 320px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.core-visual-bg { position: absolute; inset: 0; z-index: 0; }
.core-diamond { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transform: rotate(45deg); }
.core-diamond span { width: 70px; height: 70px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.core-tag { font-size: 11px; letter-spacing: 2px; color: var(--orange-dark); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.core-title { font-size: 26px; font-weight: 700; color: var(--dark-text); margin-bottom: 12px; }
.core-desc { font-size: 14px; color: var(--mid-text); line-height: 1.8; margin-bottom: 20px; }
.core-features { display: flex; flex-wrap: wrap; gap: 8px; }
.core-feature { padding: 6px 16px; background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 100px; font-size: 12px; color: var(--orange-dark); font-weight: 500; }

/* ====== 集团架构 ====== */
.group-section { background: var(--cream); }
.group-header { text-align: center; margin-bottom: 56px; }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card { background: var(--white); border-radius: 14px; padding: 28px 24px; text-align: center; transition: all 0.3s; border: 1px solid var(--cream-dark); }
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange-200); }
.group-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--orange-100), var(--orange-200)); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 16px; }
.group-name { font-size: 16px; font-weight: 700; color: var(--dark-text); margin-bottom: 6px; }
.group-desc { font-size: 13px; color: var(--mid-text); line-height: 1.6; }

/* ====== 合作品牌 ====== */
.brands-section { background: var(--white); }
.brands-header { text-align: center; margin-bottom: 56px; }
.brand-category { margin-bottom: 40px; }
.brand-cat-title { font-size: 16px; font-weight: 600; color: var(--dark-text); margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--orange); }
.brand-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-tag { padding: 10px 20px; background: var(--cream); border: 1px solid var(--cream-dark); border-radius: 8px; font-size: 14px; color: var(--mid-text); transition: all 0.2s; cursor: default; }
.brand-tag:hover { background: var(--orange-50); border-color: var(--orange-200); color: var(--orange-dark); transform: translateY(-2px); }

/* ====== 合作客户 Logo 展示 ====== */
.partner-section { background: var(--cream); }
.partner-header { text-align: center; margin-bottom: 56px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 2个 → 居中 */
.partner-grid:has(> .partner-logo:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
}
/* 3个 → 一行展示 */
.partner-grid:has(> .partner-logo:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}
/* 4个 → 2×2 或 1×4（默认1×4） */
.partner-grid:has(> .partner-logo:nth-child(4):last-child) {
  grid-template-columns: repeat(4, 1fr);
}
/* 5+个 → 自动4列换行 */
.partner-grid:has(> .partner-logo:nth-child(5)) {
  grid-template-columns: repeat(4, 1fr);
}
.partner-logo {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
}
.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-200);
}
.partner-logo img {
  width: 100%;
  max-width: 140px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
}
.partner-logo .partner-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid-text);
  text-align: center;
}

/* ====== 通用卡片网格（含 :has() 规则） ====== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* === 网格排列规则 === */
/* 2个 → 居中显示 */
.card-grid:has(> *:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.card-grid-2:has(> *:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* 3个 → 一行展示（默认3列即可） */
.card-grid:has(> *:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}
/* 4个 → 1×4 或 2×2（默认1×4，窄屏自动2×2） */
.card-grid:has(> *:nth-child(4):last-child) {
  grid-template-columns: repeat(4, 1fr);
}
/* 禁止1+3排列：如果恰好4个，强制4列一行，不拆分 */

.info-card { background: var(--white); border-radius: 14px; padding: 32px 28px; transition: all 0.3s; border: 1px solid var(--cream-dark); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange-200); }
.info-card-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--orange-100), var(--orange-200)); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.info-card-title { font-size: 17px; font-weight: 700; color: var(--dark-text); margin-bottom: 8px; }
.info-card-desc { font-size: 14px; color: var(--mid-text); line-height: 1.7; }

/* ====== 案例展示（贰青页面用） ====== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.case-card { background: var(--white); border-radius: 14px; overflow: hidden; transition: all 0.3s; border: 1px solid var(--cream-dark); cursor: pointer; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange-200); }
.case-thumb { width: 100%; height: 200px; background: linear-gradient(135deg, var(--orange-100), var(--orange-200)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.case-body { padding: 20px 24px; }
.case-tag { font-size: 11px; letter-spacing: 2px; color: var(--orange-dark); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.case-title { font-size: 16px; font-weight: 700; color: var(--dark-text); margin-bottom: 8px; }
.case-desc { font-size: 13px; color: var(--mid-text); line-height: 1.6; }

/* ====== 时间线 ====== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--orange), var(--orange-200)); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.timeline-year { font-size: 20px; font-weight: 800; color: var(--orange-dark); margin-bottom: 8px; }
.timeline-content { font-size: 14px; color: var(--mid-text); line-height: 1.8; }

/* ====== 数据统计 ====== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box { background: var(--white); border-radius: 14px; padding: 32px 24px; text-align: center; transition: all 0.3s; border: 1px solid var(--cream-dark); }
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-box-num { font-size: 36px; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.stat-box-label { font-size: 13px; color: var(--mid-text); }

/* ====== 特性标签 ====== */
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-tag { padding: 6px 16px; background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 100px; font-size: 12px; color: var(--orange-dark); font-weight: 500; }

/* ====== 文本内容区 ====== */
.content-block { max-width: 800px; }
.content-block p { font-size: 15px; color: var(--mid-text); line-height: 1.9; margin-bottom: 16px; }
.content-block h3 { font-size: 20px; font-weight: 700; color: var(--dark-text); margin: 32px 0 12px; }

/* ====== 招聘列表 ====== */
.careers-list { display: flex; flex-direction: column; gap: 12px; }
.career-item { display: flex; flex-direction: column; padding: 20px 24px; background: var(--white); border-radius: 14px; transition: all 0.2s; cursor: pointer; border: 1px solid var(--cream-dark); }
.career-item:hover { background: var(--orange-50); border-color: var(--orange-200); }
.career-header { display: flex; align-items: center; justify-content: space-between; }
.career-info { display: flex; align-items: center; gap: 16px; }
.career-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-100); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.career-title { font-size: 15px; font-weight: 600; color: var(--dark-text); }
.career-tags { display: flex; gap: 8px; margin-top: 4px; }
.career-tag { font-size: 11px; color: var(--light-text); padding: 2px 8px; background: var(--cream); border-radius: 100px; }
.career-arrow { color: var(--orange); font-size: 20px; transition: transform 0.3s; flex-shrink: 0; }
.career-item.expanded .career-arrow { transform: rotate(90deg); }
.career-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0; }
.career-item.expanded .career-detail { max-height: 500px; padding: 20px 0 0; }
.career-detail h4 { font-size: 14px; font-weight: 600; color: var(--dark-text); margin-bottom: 8px; }
.career-detail ul { list-style: none; padding: 0; }
.career-detail li { font-size: 13px; color: var(--mid-text); line-height: 1.8; padding-left: 16px; position: relative; }
.career-detail li::before { content: '·'; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }
.career-detail .career-apply { margin-top: 16px; display: inline-block; padding: 8px 24px; background: var(--orange); color: white; font-size: 13px; font-weight: 600; border-radius: 6px; text-decoration: none; transition: background 0.2s; }
.career-detail .career-apply:hover { background: var(--orange-dark); }

/* ====== 联系CTA ====== */
.cta-section { background: var(--dark-section); padding: 100px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 80%; height: 160%; background: radial-gradient(ellipse, rgba(245, 166, 35, 0.1) 0%, transparent 60%); pointer-events: none; }
.cta-content { text-align: center; position: relative; z-index: 2; }
.cta-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 20px; }
.cta-title .accent { color: var(--orange); }
.cta-desc { font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-primary { padding: 16px 48px; background: var(--orange); color: white; font-size: 16px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 32px rgba(245, 166, 35, 0.4); transition: all 0.25s; }
.cta-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245, 166, 35, 0.55); }
.cta-secondary { padding: 16px 48px; background: transparent; color: var(--white); font-size: 16px; font-weight: 600; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px; cursor: pointer; text-decoration: none; transition: all 0.25s; }
.cta-secondary:hover { border-color: var(--orange); color: var(--orange-light); }
.cta-contact { margin-top: 48px; display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.cta-contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.6); font-size: 14px; }
.cta-contact-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(245, 166, 35, 0.15); display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* ====== 页脚 ====== */
footer { background: var(--dark-section-2); padding: 80px 0 32px; color: rgba(255,255,255,0.5); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text { color: var(--white); }
.footer-tagline { font-size: 14px; line-height: 1.8; margin-bottom: 24px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.social-btn:hover { background: var(--orange); color: white; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 20px; letter-spacing: 0.03em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange-light); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ====== 新闻列表 ====== */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; flex-direction: column; padding: 24px; background: var(--white); border-radius: 14px; transition: all 0.2s; cursor: pointer; border: 1px solid var(--cream-dark); }
.news-item:hover { box-shadow: var(--shadow-md); border-color: var(--orange-200); }
.news-header { display: flex; gap: 24px; align-items: flex-start; }
.news-date { flex-shrink: 0; width: 64px; text-align: center; }
.news-day { font-size: 28px; font-weight: 800; color: var(--orange); line-height: 1; }
.news-month { font-size: 12px; color: var(--light-text); margin-top: 4px; }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 16px; font-weight: 600; color: var(--dark-text); margin-bottom: 6px; }
.news-summary { font-size: 13px; color: var(--mid-text); line-height: 1.6; }
.news-arrow { color: var(--orange); font-size: 18px; transition: transform 0.3s; flex-shrink: 0; margin-top: 4px; }
.news-item.expanded .news-arrow { transform: rotate(90deg); }
.news-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0; }
.news-item.expanded .news-detail { max-height: 600px; padding: 16px 0 0 88px; }
.news-detail p { font-size: 14px; color: var(--mid-text); line-height: 1.8; margin-bottom: 8px; }

/* ====== 动画 ====== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .core-item { grid-template-columns: 1fr; gap: 40px; }
  .core-item:nth-child(even) .core-visual { order: 0; }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .card-grid:has(> *:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid:has(> .partner-logo:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  /* 导航缩小间距 */
  .nav-links { gap: 20px; margin-left: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero { height: 75vh; min-height: 420px; }
  .hero-content { margin-top: 0; padding: 0 20px; }
  .group-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-visual-card { grid-template-columns: 1fr 1fr; padding: 20px; }
  .stat-mini-num { font-size: 24px; }
  .core-visual { height: 240px; }
  .core-diamond span { width: 50px; height: 50px; font-size: 20px; }
  .cta-contact { gap: 24px; flex-direction: column; }
  .logo img { height: 30px; }
  .logo-text { font-size: 13px; }
  .card-grid { grid-template-columns: 1fr !important; }
  .card-grid:has(> *:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr) !important; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-header { flex-direction: column; gap: 12px; }
  .news-item.expanded .news-detail { padding: 16px 0 0 0; }
  .page-hero { padding: 100px 0 60px; }
  /* 防溢出 */
  body { overflow-x: hidden; }
  img, video, canvas { max-width: 100%; }
  .about-visual { height: auto; min-height: 280px; }
  .core-visual { max-width: 100%; }
  .career-header { flex-wrap: wrap; gap: 12px; }
  /* 移动端Hero悬浮卡片 - 缩小尺寸+降低透明度 */
  .hero-float-card { padding: 8px 12px; gap: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.35); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 2px 12px rgba(80, 55, 30, 0.04); }
  .hero-float-card .card-icon { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 200, 100, 0.15)); }
  .hero-float-card .card-title { font-size: 11px; }
  .hero-float-card .card-desc { display: none; }
  .hero-float-card:nth-child(1) { top: 28%; left: 2%; }
  .hero-float-card:nth-child(2) { top: 30%; right: 2%; }
  .hero-float-card:nth-child(3) { bottom: 18%; left: 2%; }
  .hero-float-card:nth-child(4) { bottom: 20%; right: 2%; }
  .hero-float-card:nth-child(5) { top: 55%; right: 2%; }
  @keyframes cardFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
  /* 合作客户Logo移动端2列 */
  .partner-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .partner-grid:has(> .partner-logo:nth-child(2):last-child) { grid-template-columns: 1fr !important; max-width: 300px; }
  /* 案例网格移动端1列 */
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 12px; }
  .section-title { font-size: 22px; }
  .core-title { font-size: 20px; }
  .about-visual-card { grid-template-columns: 1fr; gap: 12px; }
  .about-visual { height: 320px; }
  .brand-tag { font-size: 12px; padding: 8px 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-box-num { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-links { gap: 16px; }
  .hero-cta { padding: 12px 32px; font-size: 14px; }
  .career-item { padding: 16px 18px; }
  .news-item { padding: 18px; }
  .info-card { padding: 24px 20px; }
  .group-card { padding: 20px 16px; }
  .partner-logo { padding: 16px 12px; }
  .partner-logo img { height: 60px; }
  .case-thumb { height: 150px; font-size: 36px; }
}
