/* 博普智库制药英语官网 - 年轻化视觉，桌面端，主色 #2C65FF / 点缀 #3ED0F7 */

:root {
  --color-primary: #2C65FF;
  --color-primary-dark: #1a4ad9;
  --color-primary-light: #5b85ff;
  --color-accent: #3ED0F7;
  --color-accent-soft: rgba(62, 208, 247, 0.25);
  --color-text: #1a1d29;
  --color-text-muted: #5c6178;
  --color-bg: #f0f4ff;
  --color-bg-alt: #e8eeff;
  --color-bg-card: #fff;
  --color-border: #d0daff;
  --color-gradient-hero: linear-gradient(135deg, #2C65FF 0%, #1a4ad9 50%, #0d3bb5 100%);
  --color-gradient-soft: linear-gradient(180deg, rgba(44, 101, 255, 0.06) 0%, transparent 100%);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(44, 101, 255, 0.12);
  --shadow-hover: 0 12px 40px rgba(44, 101, 255, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-width: 1024px;
  overflow-x: hidden;
}

/* ----- 头部 ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 16px rgba(44, 101, 255, 0.06);
}

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

.logo-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.logo-img {
  flex-shrink: 0;
  height: 40px;
  width: auto;
  display: block;
  background: transparent;
  order: 1;
}

.logo-wrap .logo-text {
  order: 2;
}

.logo-text {
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: #1a1d29;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* 汉堡按钮：仅移动端显示 */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--color-bg);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ----- 通用 ----- */
.section {
  padding: 64px 28px 72px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-title .highlight {
  color: var(--color-primary);
}

.section-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  max-width: 560px;
}

/* 锚点跳转时留出顶部导航高度，避免被遮挡 */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Hero Banner：左文右图，模块高度=图片高度，图片顶满 ----- */
.hero {
  padding: 0 28px; /* 与 .section 左右边距一致 */
  background: var(--color-gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -15%;
  width: 55%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(62, 208, 247, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  height: 560px;
}

.hero-media {
  width: 580px;
  height: 100%;
  align-self: stretch;
}

.hero-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  margin-left: 0;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-title-line1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.hero-title-line2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.25rem;
  margin: 0 0 32px;
  opacity: 0.95;
  line-height: 1.5;
  max-width: 480px;
}

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

.hero-note {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.hero-note-underline {
  text-decoration: underline;
}

.hero-media {
  flex-shrink: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0 0 var(--radius) var(--radius);
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(62, 208, 247, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.0625rem;
}

/* ----- 专业场景（现代卡片 + 序号图标） ----- */
.section-pain {
  background: var(--color-bg-card);
}

.section-pain .section-title {
  text-align: center;
}

.pain-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-weight: 500;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: linear-gradient(145deg, #fff 0%, var(--color-bg) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(44, 101, 255, 0.15);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(62, 208, 247, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.pain-card strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.pain-card span:not(.pain-card-icon) {
  color: var(--color-text-muted);
}

/* ----- 专业素材（左图-中文-右图，高级感） ----- */
.section-materials {
  background: linear-gradient(180deg, #f8faff 0%, #fff 50%, #f5f9ff 100%);
  position: relative;
}

.section-materials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  opacity: 0.6;
}

.materials-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: visible;
}

.materials-media {
  flex-shrink: 0;
  width: 380px;
  position: relative;
  z-index: 0;
}

.materials-media:hover {
  z-index: 10;
}

.materials-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(44, 101, 255, 0.1);
  border: 1px solid rgba(44, 101, 255, 0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.materials-media:hover img {
  transform: scale(1.18);
  z-index: 20;
  box-shadow: 0 16px 48px rgba(44, 101, 255, 0.18);
}

.materials-content {
  flex: 0 1 320px;
  min-width: 0;
  max-width: 320px;
  text-align: center;
  padding: 0 16px;
}

.materials-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.materials-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  line-height: 1.7;
  font-weight: 500;
}

.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.materials-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(44, 101, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.materials-list li:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(44, 101, 255, 0.12);
  transform: translateY(-2px);
}

.materials-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

/* ----- 四大能力（左上角大图标 + 两行正文 + 副标题） ----- */
.section-solution {
  background: var(--color-gradient-soft);
  background-color: var(--color-bg-alt);
}

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

.ability-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.ability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.ability-card-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.ability-card h3,
.ability-card p {
  position: relative;
  z-index: 1;
}

.ability-card h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin: 0 0 12px;
  font-weight: 700;
}

.ability-card p {
  margin: 0 0 6px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ability-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.ability-card p:last-of-type {
  margin-bottom: 0;
}

.ability-tag {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
}

.ability-card .ability-tag {
  margin-bottom: 0;
}

/* ----- 学习工具：6 个图标卡片 ----- */
.section-tools {
  background: var(--color-bg-card);
}

.section-tools .section-title {
  text-align: center;
}

.tools-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-weight: 500;
}

.tools-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.tool-icon-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.tool-icon-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-icon-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.tool-icon-card .icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-icon-card h3 {
  font-size: 1.125rem;
  color: var(--color-text);
  margin: 0 0 8px;
  font-weight: 700;
}

.tool-icon-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* 真机效果图相册：缩略图网格 + 大图灯箱 */
.tools-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding: 0;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(44, 101, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.35s ease;
  aspect-ratio: 9 / 8;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  opacity: 1;
}

.gallery-item::after {
  content: "点击查看大图";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(44, 101, 255, 0.2);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

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

.gallery-item-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-label {
  opacity: 0;
}

/* 灯箱大图 */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.gallery-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  padding-bottom: 48px;
}

.gallery-lightbox-img-wrap {
  max-width: 320px;
  max-height: 85vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  vertical-align: middle;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.gallery-lightbox-close {
  position: absolute;
  top: -56px;
  right: 0;
  font-size: 2rem;
  line-height: 48px;
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ----- 专家老师 ----- */
.section-experts {
  background: var(--color-bg-alt);
}

.section-experts .section-title {
  text-align: center;
}

.experts-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-weight: 500;
}

.experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.expert-card {
  background: var(--color-bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.expert-card:hover {
  border-color: var(--color-primary);
}

.expert-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 14px;
  font-weight: 700;
}

.expert-card p {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.expert-card p:last-child {
  margin-bottom: 0;
}

.expert-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.experts-note {
  text-align: center;
  margin: 0;
}

.experts-note-line1,
.experts-note-line2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
  line-height: 1.5;
}

.experts-note-line2 {
  margin-bottom: 0;
}

/* ----- 伴学服务 ----- */
.section-service {
  background: var(--color-bg-card);
}

.section-service .section-title {
  text-align: center;
}

.service-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-weight: 500;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.service-item {
  padding: 24px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.25s ease;
}

.service-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.service-item strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.service-item span {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.testimonials-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 28px;
}

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

.testimonial-card {
  position: relative;
  padding: 28px 24px 80px;
  background: linear-gradient(145deg, #fff 0%, var(--color-bg) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(44, 101, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 101, 255, 0.12);
  border-color: var(--color-accent);
}

.testimonial-quote {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.9;
}

.testimonial-text {
  margin: 0 0 20px;
  padding-top: 12px;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.65;
}

.testimonial-author {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover .testimonial-author img {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ----- 加入 / CTA ----- */
.section-join {
  background: var(--color-gradient-hero);
  color: #fff;
}

.section-join .section-title {
  color: #fff;
  text-align: center;
}

.section-join .section-title .highlight {
  color: var(--color-accent);
}

.join-subtitle {
  text-align: center;
  font-size: 1.0625rem;
  margin: 0 0 32px;
  opacity: 0.95;
}

.join-emoji {
  font-size: 1.3em;
  vertical-align: middle;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  margin: 0 0 32px;
  align-items: center;
}

.join-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(62, 208, 247, 0.4);
}

.join-module {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.12);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.join-module-icon {
  flex-shrink: 0;
}

.join-module-icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.join-module-body {
  flex: 1;
  min-width: 0;
}

.join-module-body h3 {
  font-size: 1.0625rem;
  margin: 0 0 12px;
  font-weight: 700;
  opacity: 0.98;
}

.join-module-body p {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.95;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.join-module-body p:last-child {
  margin-bottom: 0;
}

.join-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
}

.cta-qr-btn {
  width: 100%;
  max-width: 160px;
  box-sizing: border-box;
  margin-top: 16px;
  text-align: center;
}

.cta-qr {
  text-align: center;
}

.cta-qr img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-qr p {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.95;
  font-weight: 500;
}

.cta-qr-line1 {
  margin-bottom: 2px !important;
}

.cta-qr-line2 {
  margin-bottom: 0 !important;
}

.section-join .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.section-join .btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.section-join .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.section-join .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
}

/* ----- 页脚 ----- */
.site-footer {
  padding: 28px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 6px;
  font-size: 0.9375rem;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-small {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========== 移动端响应式（仅布局与适配，不改变风格与内容结构） ========== */

/* 平板断点 */
@media (max-width: 1024px) {
  body {
    min-width: 0;
  }

  .header-inner {
    padding: 0 16px;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 0.875rem;
  }

  .section {
    padding: 48px 20px 56px;
  }

  .hero {
    padding: 0 20px;
  }

  .hero-inner {
    height: 480px;
    gap: 32px;
  }

  .hero-media {
    width: 420px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1.125rem;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .materials-wrap {
    gap: 24px;
  }

  .materials-media {
    width: 280px;
  }

  .materials-content {
    flex: 0 1 260px;
    max-width: 260px;
  }

  .ability-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tools-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .tools-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-actions {
    gap: 32px;
  }
}

/* 移动端断点 */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  html {
    overflow-x: hidden;
  }

  body {
    min-width: 0;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0 12px 0 16px;
    height: 100%;
    gap: 12px;
  }

  .logo-wrap {
    flex: 1;
    min-width: 0;
    gap: 6px;
  }

  .logo-img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
  }

  /* 折叠状态：导航隐藏 */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 16px max(32px, env(safe-area-inset-bottom, 32px));
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .site-header.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  @supports (height: 100dvh) {
    .main-nav {
      height: calc(100dvh - var(--header-height));
      min-height: calc(100dvh - var(--header-height));
    }
  }

  .main-nav a {
    flex-shrink: 0;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a:hover {
    color: var(--color-primary);
    background: var(--color-bg);
  }

  /* 汉堡变叉：展开时 */
  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section {
    padding: 40px 16px 48px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .container {
    padding: 0;
  }

  /* Hero：移动端改为上文下图 */
  .hero {
    padding: 24px 16px 32px;
  }

  .hero-inner {
    flex-direction: column;
    height: auto;
    gap: 24px;
    align-items: stretch;
  }

  .hero-content {
    text-align: center;
    margin-left: 0;
  }

  .hero h1 {
    align-items: center;
    margin-bottom: 16px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 100%;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
    gap: 12px;
  }

  .hero-note {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 12px;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 480 / 360;
    align-self: center;
    min-height: 0;
  }

  .hero-media img {
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: center;
  }

  /* 按钮触摸区域 */
  .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.9375rem;
  }

  .pain-subtitle,
  .tools-subtitle,
  .experts-subtitle,
  .service-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 28px;
  }

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

  .pain-card {
    padding: 20px 16px;
  }

  .pain-card strong {
    font-size: 1rem;
  }

  /* 专业素材：移动端改为 内容在上，图在下方左右或堆叠 */
  .materials-wrap {
    flex-direction: column;
    gap: 24px;
  }

  .materials-content {
    flex: none;
    max-width: 100%;
    padding: 0;
    order: 1;
  }

  .materials-title {
    font-size: 1.5rem;
  }

  .materials-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  .materials-list {
    gap: 10px 16px;
    justify-content: center;
  }

  .materials-list li {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .materials-media-left {
    order: 2;
  }

  .materials-media-right {
    order: 3;
  }

  .materials-media {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .materials-media:hover img {
    transform: none;
  }

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

  .ability-card {
    padding: 20px;
  }

  .ability-card h3 {
    font-size: 1.0625rem;
  }

  .ability-card p {
    font-size: 0.8125rem;
  }

  .tools-icon-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .tool-icon-card {
    padding: 20px;
  }

  .tool-icon-card .icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .tools-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .gallery-item {
    aspect-ratio: 9 / 10;
  }

  .gallery-item::after {
    content: "点击查看";
    font-size: 0.875rem;
  }

  /* 灯箱：移动端不溢出视口，内容垂直排列、居中 */
  .gallery-lightbox {
    overflow: hidden;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: center;
  }

  .gallery-lightbox-inner {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .gallery-lightbox-close {
    order: 0;
    align-self: flex-end;
    position: static;
    top: auto;
    right: auto;
    margin-bottom: 8px;
  }

  .gallery-lightbox-img-wrap {
    order: 1;
    flex: 1 1 auto;
    min-height: 0;
    max-width: min(280px, 100%);
    margin: 0 auto;
  }

  .gallery-lightbox-img-wrap img {
    max-height: 60vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .gallery-lightbox-prev {
    order: 2;
    margin-top: 12px;
  }

  .gallery-lightbox-next {
    order: 3;
    margin-top: 12px;
  }

  .gallery-lightbox-counter {
    order: 4;
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 8px;
  }

  .experts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .expert-card {
    padding: 20px;
  }

  .expert-card h3 {
    font-size: 1.125rem;
  }

  .experts-note-line1,
  .experts-note-line2 {
    font-size: 0.9375rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .service-item {
    padding: 20px 16px;
  }

  .testimonials-heading {
    font-size: 1.125rem;
    margin-bottom: 20px;
  }

  .testimonials {
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px 16px 72px;
  }

  .testimonial-quote {
    font-size: 2.25rem;
    top: 12px;
    left: 16px;
  }

  .testimonial-text {
    font-size: 0.875rem;
  }

  .testimonial-author {
    bottom: 16px;
    right: 16px;
  }

  .testimonial-author img {
    width: 44px;
    height: 44px;
  }

  .section-join .section-title {
    font-size: 1.375rem;
  }

  .join-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }

  .join-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .join-plus {
    font-size: 2rem;
    padding: 4px 0;
  }

  .join-module {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .join-module-icon {
    display: flex;
    justify-content: center;
  }

  .join-module-icon img {
    width: 56px;
    height: 56px;
  }

  .join-module-body {
    text-align: center;
  }

  .join-module-body h3 {
    font-size: 1rem;
    text-align: center;
  }

  .join-module-body p {
    font-size: 0.8125rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .cta-qr-wrap {
    width: 100%;
    max-width: 200px;
  }

  .cta-qr img {
    width: 160px;
    height: 160px;
  }

  .cta-qr-btn {
    min-height: 48px;
    max-width: 100%;
    width: 100%;
  }

  .site-footer {
    padding: 20px 16px;
  }

  .site-footer p {
    font-size: 0.875rem;
  }

  .footer-small {
    font-size: 0.7rem;
  }
}

/* 小屏手机（可选：进一步收紧） */
@media (max-width: 480px) {
  .section {
    padding: 32px 12px 40px;
  }

  .hero {
    padding: 20px 12px 28px;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: 1.375rem;
  }

  .hero-media {
    aspect-ratio: 480 / 360;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .materials-title {
    font-size: 1.375rem;
  }

  .tools-gallery {
    gap: 10px;
  }

  .gallery-item-label {
    font-size: 0.75rem;
    bottom: 8px;
  }

  /* 小屏灯箱：图片高度再限制一档，避免溢出 */
  .gallery-lightbox-img-wrap img {
    max-height: 55vh;
  }
}

/* 横屏与安全区域（刘海屏等） */
@supports (padding: env(safe-area-inset-left)) {
  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  @media (max-width: 768px) {
    .hero,
    .section {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }

    .section-join,
    .site-footer {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
  }
}
