/* ===================================================================
   昊瑞医疗官网多页面样式表
   Haorui Medical Multi-Page Website Stylesheet
   =================================================================== */

/* ====================== 1. CSS Variables (根主题变量) ====================== */
:root {
  /* 主色调（橄榄绿 + 暖调体系） */
  --blue: #5c7a2e;
  --blue-light: #7a9e42;
  --blue-pale: #eef3e4;
  --accent: #6b7d32;
  --accent-light: #f0f2e4;

  /* 暖调底色体系 */
  --cream: #ede8e0;
  --cream-light: #f7f3ec;
  --cream-dark: #ddd6cb;
  --warm-dark: #283620;
  --warm-dark-light: #3a4f32;
  --warm-orange: #d08a30;

  /* 毛玻璃参数（暖调磨砂质感） */
  --glass-bg: rgba(255,255,255,.52);
  --glass-bg-hover: rgba(255,255,255,.68);
  --glass-border: rgba(255,255,255,.55);
  --glass-blur: blur(20px) saturate(1.6);
  --glass-blur-heavy: blur(32px) saturate(1.8);

  /* 深色与灰度（暖灰） */
  --dark: #2a2a2a;
  --gray-900: #2c2c2c;
  --gray-700: #3a3a3a;
  --gray-500: #5a5a5a;
  --gray-600: #4a4a4a;
  --gray-300: #d5d0ca;
  --gray-100: #f0ece6;
  --white: #ffffff;

  /* 设计规范 */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(42,58,34,.05);
  --shadow-md: 0 4px 20px rgba(42,58,34,.07);
  --shadow-lg: 0 12px 40px rgba(42,58,34,.10);
  --shadow-card: 0 2px 16px rgba(42,58,34,.06), 0 1px 3px rgba(42,58,34,.04);
  --shadow-card-hover: 0 16px 48px rgba(42,58,34,.12), 0 4px 12px rgba(42,58,34,.06);
  --shadow-glass: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.4);
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --max-w: 1320px;
  --nav-h: 72px;
}

/* ====================== 2. Reset & Base (重置与基础样式) ====================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--gray-700);
  line-height: 1.75;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: .01em;
  position: relative;
}

/* 暖色底 + 细腻噪点纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--cream);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* ====================== 3. Navigation (导航栏) ====================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(236,231,223,.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(236,231,223,.85);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--nav-h);
}

.nav-logo-icon {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.nav-logo-text small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* 下拉菜单 */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(92,122,46,.82);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  z-index: 1001;
  border: none;
}

.nav-item:hover .dropdown-menu,
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: .88rem;
  color: #fff;
  border-radius: 4px;
  transition: all .2s ease;
  text-align: center;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  padding-left: 16px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-lang-switch:hover {
  background: var(--blue);
  color: #fff;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ====================== 4. Page Hero Banner (子页面横幅) ====================== */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--nav-h);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(72,100,36,.88) 0%, rgba(92,122,46,.84) 50%, rgba(107,125,50,.80) 100%);
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.page-hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.page-hero p {
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.breadcrumb a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  opacity: .5;
}

/* ====================== 5. Common Section Styles (通用区块样式) ====================== */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 72px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.18rem;
  color: var(--gray-500);
  max-width: 720px;
  line-height: 1.8;
  margin: 0 auto;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====================== 6. Card System (卡片系统) ====================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(213,208,202,.4);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(213,208,202,.5);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.card-body {
  padding: 28px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
}

.card:hover .card-link {
  gap: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ====================== 7. Buttons (按钮) ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #5a7632;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(110,139,61,.25);
}

.btn-accent {
  background: var(--warm-orange);
  color: var(--white);
}

.btn-accent:hover {
  background: #a86e24;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196,130,46,.25);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--warm-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42,58,34,.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.8);
}

.btn-outline-dark {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}

.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.btn-ghost {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1.5px solid rgba(110,139,61,.2);
}

.btn-ghost:hover {
  background: rgba(110,139,61,.15);
  border-color: var(--blue);
}

.btn-sm {
  padding: 10px 24px;
  font-size: .92rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ====================== 8. Grid Layouts (网格布局) ====================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.grid-gap {
  gap: 24px;
}

.grid-gap-sm {
  gap: 16px;
}

.grid-gap-lg {
  gap: 48px;
}

/* ====================== 9. Overview Cards (概览卡片) ====================== */
.overview-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.overview-cards > * {
  flex: 0 0 calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
}

.overview-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(213,208,202,.4);
  box-shadow: var(--shadow-card);
}

.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(213,208,202,.5);
}

.overview-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
}

.overview-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.overview-card:hover .overview-card-img img {
  transform: scale(1.08);
}

.overview-card-body {
  padding: 28px;
}

.overview-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.overview-card-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ====================== 10. Timeline & Steps (时间线与步骤) ====================== */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-300);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 0 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
  order: -1;
  text-align: right;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-pale), var(--accent-light));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.step-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-desc {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ====================== 11. Product Generation Tags (产品代数标签) ====================== */
.gen-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.gen-1 {
  background: rgba(110,139,61,.12);
  color: #4a6128;
  border: 1px solid rgba(110,139,61,.18);
}

.gen-2 {
  background: var(--cream-light);
  color: #4a6128;
}

.gen-3 {
  background: #faf0e2;
  color: var(--warm-orange);
}

/* ====================== 12. Stats Section (数据统计) ====================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ====================== 13. Tabs (标签页) ====================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--gray-300);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.tab:hover {
  background: rgba(110,139,61,.08);
  border-color: rgba(110,139,61,.2);
  color: var(--blue);
}

.tab.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 15px rgba(110,139,61,.25);
}

.tab-panel {
  display: none;
  animation: fadeIn .4s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ====================== 14. CTA Banner (行动召唤横幅) ====================== */
#ctaBanner,
.cta-banner {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--warm-dark-light) 50%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 0;
  margin-top: 64px;
}
.section + #ctaBanner,
.section + .cta-banner {
  margin-top: 0;
}

#ctaBanner::before,
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(143,173,90,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(196,130,46,.08) 0%, transparent 60%);
}

#ctaBanner .container,
.cta-banner .container {
  position: relative;
  z-index: 2;
}

#ctaBanner h2,
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

#ctaBanner p,
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

#ctaBanner .btn-group,
.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ====================== 15. Footer (页脚) ====================== */
.footer {
  background: var(--warm-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: .95rem;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 320px;
  color: rgba(255,255,255,.65);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.footer-logo-icon {
  height: 40px;
  flex-shrink: 0;
}

.footer-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: .95rem;
  transition: all var(--transition);
  color: rgba(255,255,255,.65);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .95rem;
  line-height: 1.6;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,.5);
}

/* ====================== 16. Form Styles (表单样式) ====================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--gray-900);
  transition: border-color var(--transition);
  font-family: inherit;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(110,139,61,.12);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card {
  background: var(--cream-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--gray-300);
}

.form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-card > p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

/* ====================== 17. Floating CTA (悬浮按钮) ====================== */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(42,58,34,.15);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(42,58,34,.22);
}

.float-btn.fb-phone {
  background: var(--blue);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
}

.float-btn.fb-wechat {
  background: #4a7c2e;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
}

.float-btn.fb-top {
  background: var(--cream-light);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

/* ====================== 18. Utility Classes (工具类) ====================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; }
.pt-5 { padding-top: 48px; }

.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }
.pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 32px; }
.pb-5 { padding-bottom: 48px; }

.bg-white { background: var(--cream-light); border: 1px solid var(--gray-300); }
.bg-gray { background: rgba(236,231,223,.6); }
.bg-blue { background: var(--blue); }
.bg-accent { background: var(--accent); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ====================== 19. Animations (动画效果) ====================== */
.reveal {
  /* 默认可见，避免 JS 失败或视口外元素被永久隐藏（2026-08-12 案例页 bug） */
  opacity: 1;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

/* 如果浏览器支持 IntersectionObserver，初始再次隐藏以便做滚动入场动画 */
.js-reveal .reveal {
  opacity: 0;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ====================== 20. Responsive (响应式断点) ====================== */

/* 小桌面 / 横屏平板 (Small Desktop / Landscape Tablet) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .section {
    padding: 80px 0;
  }
  .container,
  .container-narrow {
    padding: 0 28px;
  }
  .page-hero {
    min-height: 340px;
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  }
}

/* 平板端 (Tablet) */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(236,231,223,.95);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding-left: 20px;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .overview-cards > * {
    flex: 0 0 calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 50px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    order: 0;
    text-align: left;
  }

  .steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero-overlay {
    padding: 60px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

/* 竖屏平板 (Portrait Tablet) */
@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .container,
  .container-narrow {
    padding: 0 20px;
  }
  .section {
    padding: 64px 0;
  }
  .page-hero {
    min-height: 300px;
  }
  .page-hero-overlay {
    padding: 50px 20px;
  }
}

/* 手机端 (Mobile) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .overview-cards {
    flex-direction: column;
    align-items: center;
  }
  .overview-cards > * {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    gap: 6px;
  }

  .tab {
    padding: 10px 18px;
    font-size: .82rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: .95rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: .95rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-num {
    font-size: 2.8rem;
  }

  .form-card {
    padding: 24px;
  }

  #ctaBanner,
  .cta-banner {
    padding: 60px 0;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ====================== Placeholder Images (占位图样式) ====================== */
.placeholder-img {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gray-500);
  font-size: .92rem;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.3) 10px, rgba(255,255,255,.3) 20px);
}

.placeholder-img svg {
  width: 40px;
  height: 40px;
  opacity: .4;
  position: relative;
  z-index: 1;
}

.placeholder-img span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

/* ====================== Additional Components (扩展组件) ====================== */

/* 列表样式 (List styles) */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--gray-700);
}

.feature-list li svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 图标盒子 (Icon box) — 圆形绿色徽章 */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(110,139,61,.2);
}

.icon-box.blue {
  background: var(--blue);
  color: var(--white);
}

.icon-box.accent {
  background: var(--accent);
  color: var(--white);
}

.icon-box.green {
  background: #4a7c2e;
  color: var(--white);
}

.icon-box.light {
  background: var(--blue-pale);
  color: var(--blue);
  box-shadow: none;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

/* 分隔线 (Divider) */
.divider {
  height: 1px;
  background: var(--gray-300);
  margin: 48px 0;
}

.divider-sm {
  margin: 24px 0;
}

/* 引用块 (Blockquote) */
blockquote {
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  background: rgba(236,231,223,.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-700);
  margin: 24px 0;
  border-top: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* 表格 (Table) */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}

th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

td {
  font-size: .95rem;
  color: var(--gray-700);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(236,231,223,.35);
}

/* 徽章 (Badge) */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
}

.badge-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-success {
  background: #eef2e8;
  color: #4a6128;
}

.badge-warning {
  background: #fff3e0;
  color: #e65100;
}

/* 警告框 (Alert) */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.alert-info {
  background: var(--blue-pale);
  color: var(--blue);
  border-left: 4px solid var(--blue);
}

.alert-success {
  background: #eef2e8;
  color: #4a6128;
  border-left: 4px solid #4a6128;
}

.alert-warning {
  background: #fff3e0;
  color: #e65100;
  border-left: 4px solid #e65100;
}

/* 手风琴 (Accordion) */
.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.accordion-header {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.accordion-header:hover {
  background: rgba(236,231,223,.35);
}

.accordion-header.active {
  background: var(--blue-pale);
  color: var(--blue);
}

.accordion-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.accordion-body.open {
  padding: 20px 24px;
  max-height: 1000px;
}

/* 图片画廊 (Image gallery) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 联系信息卡片 (Contact info card) */
.contact-info-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.contact-info-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-info-icon svg {
  width: 28px;
  height: 28px;
}

.contact-info-title {
  font-size: .92rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* 合作伙伴 (Partners) */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  max-width: 120px;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: .6;
  transition: all var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* 下载按钮 (Download button) */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(236,231,223,.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid var(--glass-border);
}

.download-btn:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
}

.download-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn-info {
  text-align: left;
}

.download-btn-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-900);
}

.download-btn-size {
  font-size: .78rem;
  color: var(--gray-500);
}

/* ====================== End of Stylesheet ====================== */

/* ====================== 18. IP Mascot (昊瑞小昊 - 品牌 IP 角色) ====================== */

/* --- IP Animations --- */
@keyframes ipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ipPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes ipBubbleIn {
  0% { opacity: 0; transform: translateY(10px) scale(.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* IP Entrance: 柔和淡入上浮 */
@keyframes ipEntrance {
  0%   { transform: translateY(30px) scale(.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* IP Exit: 柔和淡出 */
@keyframes ipExit {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(20px) scale(.96); opacity: 0; }
}
/* IP Idle: 微妙呼吸感 */
@keyframes ipIdle {
  0%   { transform: translateY(0) scale(1) rotate(0deg); }
  25%  { transform: translateY(-3px) scale(1) rotate(1deg); }
  50%  { transform: translateY(-5px) scale(1) rotate(0deg); }
  75%  { transform: translateY(-3px) scale(1) rotate(-1deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}
/* IP Hover: 小弹跳 */
@keyframes ipJump {
  0%   { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-10px) scale(1.05); }
  50%  { transform: translateY(-6px) scale(1.02); }
  75%  { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}
/* IP Bob: 轻柔上下浮动 */
@keyframes ipBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* --- IP Pose Stack (multi-pose crossfade carousel) --- */
.ip-pose-stack {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* square aspect-ratio fallback */
}
.ip-pose-stack img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: auto;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
  object-fit: contain;
}
.ip-pose-stack img.active {
  opacity: 1;
}
/* Pose cycle dots */
.ip-pose-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  position: relative;
  z-index: 2;
}
.ip-pose-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  transition: all .3s ease;
}
.ip-pose-dots span.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* --- CTA / 404 Pose Stack (smaller variant, supports both div and picture) --- */
.ip-pose-stack-sm {
  position: relative;
  display: inline-block;
  width: 360px;   /* default, overridden by parent contexts */
  height: auto;
  vertical-align: middle;
}
/* Static stack images (multi-pose, absolute stacked) */
div.ip-pose-stack-sm img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: auto;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
div.ip-pose-stack-sm img.active {
  opacity: 1;
}
/* Animated picture element (single animated image) */
picture.ip-pose-stack-sm {
  line-height: 0;
}
picture.ip-pose-stack-sm img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Floating IP Assistant --- */
.ip-assistant {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  pointer-events: none;
}
.ip-assistant-wrap {
  position: relative;
  pointer-events: auto;
}
.ip-assistant-char {
  width: 360px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: ipEntrance 1.2s cubic-bezier(.25,.1,.25,1) .5s forwards;
  transform-origin: bottom center;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
}
.ip-assistant-char.collapsed {
  transform: scale(0) translateY(60px);
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.ip-assistant-char.expanded {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ip-assistant-char.idle {
  animation: ipIdle 5s ease-in-out infinite;
  opacity: 1;
}
.ip-assistant-char:hover {
  animation: ipJump .7s ease forwards;
  opacity: 1;
}
.ip-assistant-char picture,
.ip-assistant-char > img {
  width: 100%;
  height: auto;
  display: block;
}
.ip-assistant-char picture img {
  width: 100%;
  height: auto;
  display: block;
}
/* Small "new" indicator dot */
.ip-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  animation: ipPulse 2s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
/* Close button on character */
.ip-close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: all .2s ease;
  pointer-events: auto;
}
.ip-close-btn:hover {
  background: #fff;
  color: var(--gray-900);
  transform: scale(1.1);
}
/* Wake button (collapsed state) */
.ip-wake-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(42,58,34,.18);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  pointer-events: auto;
}
.ip-wake-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(42,58,34,.26);
}
.ip-wake-btn svg {
  width: 26px;
  height: 26px;
}
.ip-wake-btn.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
/* Mini popup on click */
.ip-mini-menu {
  position: absolute;
  right: 0;
  bottom: 500px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  z-index: 4;
  border: 1px solid rgba(92,122,46,.08);
}
.ip-mini-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.ip-mini-menu::after {
  content: '';
  position: absolute;
  right: 28px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-right: 1px solid rgba(92,122,46,.08);
  border-bottom: 1px solid rgba(92,122,46,.08);
  transform: rotate(45deg);
}
.ip-mini-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  text-align: center;
}
.ip-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ip-mini-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s ease;
  color: var(--gray-700);
}
.ip-mini-actions a:hover {
  background: var(--blue-pale);
  color: var(--blue);
}
.ip-mini-actions a span {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.ip-mini-actions a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-500);
  transition: color .2s ease;
}
.ip-mini-actions a:hover svg {
  color: var(--blue);
}

/* Back to top (IP style) */
.ip-back-top {
  position: fixed;
  right: 56px;
  bottom: 540px;
  z-index: 998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(213,208,202,.4);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  color: var(--gray-500);
}
.ip-back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.ip-back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
}
.ip-back-top svg { width: 16px; height: 16px; }

/* --- Service Page IP Guide --- */
.ip-process-guide {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-right: 8px;
}
.ip-process-guide .ip-pose-stack-sm {
  width: 270px;
  animation: ipBob 4s ease-in-out infinite;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.08));
}

/* --- CTA Banner IP Companion --- */
.ip-cta-companion {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-left: 24px;
  flex-shrink: 0;
  animation: ipBob 3.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.12));
}
.ip-cta-companion .ip-pose-stack-sm {
  width: 216px;
}

/* --- IP Responsive --- */
@media (max-width: 1024px) {
  .ip-assistant-char { width: 340px; }
}
@media (max-width: 960px) {
  .ip-assistant-char { width: 300px; }
  .ip-mini-menu { bottom: 420px; }
  .ip-back-top { right: 48px; bottom: 460px; }
  .ip-process-guide .ip-pose-stack-sm { width: 240px; }
  .ip-cta-companion { margin-left: 16px; }
  .ip-cta-companion .ip-pose-stack-sm { width: 210px; }
}
@media (max-width: 768px) {
  .ip-assistant-char { width: 270px; }
  .ip-back-top { right: 40px; bottom: 400px; }
  .ip-mini-menu { bottom: 370px; }
}
@media (max-width: 640px) {
  .ip-assistant-char { width: 240px; }
  .ip-mini-menu { width: 180px; bottom: 340px; right: -4px; }
  .ip-back-top { right: 36px; bottom: 380px; }
  .ip-process-guide { display: none; }
  .ip-cta-companion { display: none; }
}
