* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body { font-family: 'Noto Serif SC', serif; color: #333; background: #FAF6EF; overflow-x: clip; max-width: 100vw; margin: 0; padding: 0; }
section, header, footer, nav, main, aside, article { overflow-x: clip; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

:root {
  --gold: #B8860B;
  --gold-light: #D4AF37;
  --gold-pale: #F5E6C8;
  --wine: #722F37;
  --cream: #FAF6EF;
  --dark: #1E1810;
}

/* 导航栏 */
.navbar { transition: all 0.4s ease; background: rgba(30,24,16,0.9); backdrop-filter: blur(12px); }
.navbar.scrolled { background: rgba(30,24,16,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.nav-link { position: relative; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px; background: var(--gold-light); transition: all 0.3s; transform: translateX(-50%); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }

/* 小心心分隔线 */
.heart-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px auto; }
.heart-divider::before, .heart-divider::after { content: ''; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.heart-divider i { color: var(--gold); font-size: 18px; animation: heartBeat 1.5s ease-in-out infinite; }
@keyframes heartBeat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.2);} }

/* 滚动入场动画 */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* 按钮动效 */
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: white; padding: 14px 36px; border-radius: 50px; font-weight: 500; transition: all 0.4s; box-shadow: 0 6px 20px rgba(184,134,11,0.3); display: inline-flex; align-items: center; gap: 8px; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(184,134,11,0.45); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); padding: 12px 34px; border-radius: 50px; font-weight: 500; transition: all 0.4s; display: inline-flex; align-items: center; gap: 8px; background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: white; transform: translateY(-3px); }

/* 图片悬浮 */
.img-hover { overflow: hidden; border-radius: 8px; }
.img-hover img { transition: transform 0.8s ease; }
.img-hover:hover img { transform: scale(1.08); }

/* 悬浮客服 */
.float-btns { position: fixed; right: 24px; bottom: 30px; z-index: 99; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: white; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 20px rgba(184,134,11,0.4); transition: all 0.3s; cursor: pointer; position: relative; }
.float-btn:hover { transform: scale(1.1) translateX(-4px); box-shadow: 0 8px 25px rgba(184,134,11,0.6); }
.float-btn.tip::after { content: attr(data-tip); position: absolute; right: 70px; background: var(--dark); color: white; padding: 6px 14px; border-radius: 6px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s; }
.float-btn.tip:hover::after { opacity: 1; right: 65px; }
.float-btn.call { animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(184,134,11,0.6);} 70%{box-shadow:0 0 0 15px rgba(184,134,11,0);} 100%{box-shadow:0 0 0 0 rgba(184,134,11,0);} }

/* 弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
.modal-content { background: white; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 40px; position: relative; animation: slideUp 0.4s; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; font-size: 18px; }
.modal-close:hover { background: var(--wine); color: white; transform: rotate(90deg); }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; transition: all 0.3s; margin-top: 8px; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }

/* 详情页面包屑 */
.breadcrumb { color: rgba(255,255,255,0.8); font-size: 15px; }
.breadcrumb a { color: var(--gold-light); transition: color 0.3s; }
.breadcrumb a:hover { color: white; }

/* 案例信息标签 */
.info-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--gold-pale); color: var(--gold); border-radius: 20px; font-size: 14px; margin: 4px; }

/* 图片画廊 */
.gallery-item { border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { transition: all 0.6s; width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,24,16,0.7), transparent); display: flex; align-items: flex-end; padding: 20px; color: white; opacity: 0; transition: all 0.4s; }
.gallery-item:hover .overlay { opacity: 1; }

/* 团队卡片 */
.team-card { text-align: center; }
.team-card .avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-pale), var(--gold-light)); color: white; font-size: 32px; }

/* 相关推荐卡片 */
.case-card { border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.4s; }
.case-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.case-card .thumb { height: 220px; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.case-card:hover .thumb img { transform: scale(1.08); }
.case-card .body { padding: 20px; }
.case-card .tag { display: inline-block; padding: 3px 10px; background: var(--wine); color: white; font-size: 12px; border-radius: 4px; margin-bottom: 8px; }

/* 上下篇导航 */
.prev-next { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 24px 0; margin: 40px 0; }
.prev-next a { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: white; border-radius: 8px; transition: all 0.3s; color: #333; }
.prev-next a:hover { background: var(--gold-pale); color: var(--gold); transform: translateX(4px); }
.prev-next a.next { justify-content: flex-end; }
.prev-next a.next:hover { transform: translateX(-4px); }

/* 移动端汉堡 */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 101; }
.hamburger span { width: 26px; height: 2px; background: white; transition: all 0.3s; border-radius: 2px; }
.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); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh; background: var(--dark); z-index: 100; transition: right 0.4s ease; padding: 80px 30px 30px; }
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; padding: 16px 0; color: white; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.3s; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-light); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99; display: none; }
.mobile-overlay.active { display: block; }

/* Toast */
.toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--dark); color: white; padding: 12px 28px; border-radius: 50px; z-index: 9999; opacity: 0; pointer-events: none; transition: all 0.4s; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 移动端适配 */
@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }
  .desktop-cta { display: none !important; }
}
@media (max-width: 767px) {
  .hero-page { height: 280px !important; background-attachment: scroll !important; }
  .hero-page h1 { font-size: 28px !important; }
  .breadcrumb { font-size: 13px; }
  section { padding: 50px 0 !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .case-card .thumb { height: 180px; }
  .prev-next { flex-direction: column; gap: 12px; }
  .modal-content { padding: 30px 20px; }
  .float-btns { right: 12px; bottom: 20px; gap: 10px; }
  .float-btn { width: 44px; height: 44px; font-size: 18px; }
  .float-btn.tip::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  h2 { font-size: 26px !important; }
  p { font-size: 15px !important; }
}
@media (-webkit-touch-callout: none) {
  .hero-page, .stat-section, .cta-section { background-attachment: scroll !important; }
}