/**
 * 文件定位：亿寻广场官网的全局视觉样式入口。
 * 核心职责：定义品牌变量、公共布局、响应式断点和全部页面区块样式。
 * 拆分理由：所有页面共享同一套变量和基础规则，避免后续新增页面重复写样式。
 */

/* 全局变量集中管理颜色、尺寸和字体，后续换品牌视觉时只需改这一处。 */
:root {
  --color-ink: #102d31;
  --color-muted: #527176;
  --color-brand: #0b737b;
  --color-brand-dark: #075159;
  --color-cyan: #2fc7d2;
  --color-coral: #f06f5f;
  --color-lime: #dff3a2;
  --color-paper: #f7faf8;
  --color-white: #ffffff;
  --color-line: #cfddda;
  --header-height: 72px;
  --content-width: 1180px;
  --page-padding: 28px;
  --radius-small: 6px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

/* 统一盒模型，元素宽高计算会包含边框和内边距。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 开启平滑锚点滚动，并为固定导航预留目标位置。 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

/* 页面基础字体与背景设置。 */
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

/* 手机菜单打开时锁住正文滚动。 */
body.menu-open {
  overflow: hidden;
}

/* 图片默认作为块元素显示，避免基线产生多余空隙。 */
img {
  display: block;
  max-width: 100%;
}

/* 全站链接继承文字颜色，具体状态由各组件自行定义。 */
a {
  color: inherit;
  text-decoration: none;
}

/* 按钮继承网站字体，避免出现系统默认字体。 */
button {
  font: inherit;
}

/* 键盘用户聚焦时统一使用高对比轮廓。 */
:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 4px;
}

/* 无障碍跳转链接平时放到屏幕外，获得焦点时显示。 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-white);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 顶部导航采用半透明白色背景，滚动时仍能看清内容。 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(16, 45, 49, 0.12);
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(14px);
}

/* 导航内容限制最大宽度，并让品牌和菜单两端对齐。 */
.header-inner {
  width: min(calc(100% - var(--page-padding) * 2), var(--content-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 19px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  padding: 10px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--color-brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 手机菜单按钮保持固定方形，图标状态变化不会引发布局抖动。 */
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  padding: 22px var(--page-padding) 28px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-weight: 700;
}

/* 首屏至少占满当前视口，同时底部露出下一节提示。 */
.hero {
  position: relative;
  /* 比完整视口略短，让访客首屏能看到下一节的边缘并自然继续浏览。 */
  min-height: 620px;
  height: calc(100svh - 32px);
  max-height: 820px;
  padding: calc(var(--header-height) + 46px) var(--page-padding) 78px;
  overflow: hidden;
  background-color: #e8f3ef;
  background-image:
    linear-gradient(rgba(11, 115, 123, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 115, 123, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 使用实色大块建立品牌场景，不依赖装饰性渐变。 */
.hero::before {
  position: absolute;
  top: var(--header-height);
  right: 0;
  width: 36%;
  height: calc(100% - var(--header-height));
  background: var(--color-brand);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  min-height: calc(100svh - var(--header-height) - 156px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(60px, 8vw, 112px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-slogan {
  margin: 24px 0 14px;
  color: var(--color-brand);
  font-size: 28px;
  font-weight: 750;
}

.hero-description {
  max-width: 620px;
  margin: 0;
  color: #395c61;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.copy-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-action {
  color: var(--color-white);
  background: var(--color-brand);
}

.secondary-action {
  color: var(--color-brand);
  background: transparent;
}

.primary-action:hover,
.copy-button:hover {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
}

.secondary-action:hover {
  color: var(--color-white);
  background: var(--color-brand);
}

.hero-points {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
}

.hero-points span::before {
  margin-right: 8px;
  color: var(--color-coral);
  content: "•";
}

/* 产品舞台位于实色背景上，展示接近小程序真实界面的手机画面。 */
.product-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 22px 0 48px;
}

.phone-shell {
  width: min(100%, 342px);
  padding: 12px;
  border: 2px solid #102d31;
  border-radius: 36px;
  background: #102d31;
  box-shadow: 20px 24px 0 rgba(8, 54, 59, 0.32);
  transform: rotate(2deg);
}

.phone-speaker {
  width: 72px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 3px;
  background: #507176;
}

.phone-screen {
  overflow: hidden;
  border-radius: 25px;
  background: #f7faf8;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}

.app-bar strong,
.app-bar span {
  display: block;
}

.app-bar strong {
  font-size: 22px;
}

.app-bar span {
  color: var(--color-muted);
  font-size: 11px;
}

.app-bar img {
  width: 34px;
  height: 34px;
}

.feed-preview {
  margin: 0;
  padding: 8px 18px 18px;
}

.feed-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 3px;
  color: #5b571f;
  background: var(--color-lime);
  font-size: 10px;
  font-weight: 800;
}

.feed-preview h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.feed-preview > p:not(.feed-label) {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.7;
}

.feed-preview > img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
}

.app-tabs {
  height: 62px;
  padding: 8px 18px;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  background: var(--color-white);
}

.app-tabs img {
  width: 25px;
  height: 25px;
}

.app-tabs .tab-publish {
  width: 37px;
  height: 37px;
}

.stage-note {
  position: absolute;
  right: -30px;
  bottom: 0;
  width: 190px;
  margin: 0;
  padding: 15px 18px;
  border-left: 4px solid var(--color-lime);
  color: var(--color-white);
  background: var(--color-brand-dark);
}

.stage-note strong,
.stage-note span {
  display: block;
}

.stage-note strong {
  font-size: 15px;
}

.stage-note span {
  margin-top: 3px;
  color: #bcd7d6;
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  padding: 5px 12px;
  color: var(--color-brand-dark);
  background: var(--color-paper);
  font-size: 11px;
  font-weight: 750;
  transform: translateX(-50%);
}

.scroll-cue::after {
  display: inline-block;
  margin-left: 8px;
  color: var(--color-coral);
  content: "↓";
}

/* 公共页面区块保持一致留白和内容宽度。 */
.section {
  padding: 116px var(--page-padding);
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading h2,
.scene-content h2,
.join-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: 0;
}

.about-section {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}

.about-content {
  padding-top: 36px;
}

.about-content > p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 2;
}

.about-content .about-lead {
  color: var(--color-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.75;
}

.about-facts {
  margin-top: 44px;
  border-top: 1px solid var(--color-line);
}

.about-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--color-line);
}

.about-facts strong {
  color: var(--color-brand);
}

.about-facts span {
  color: var(--color-muted);
}

.features-section {
  background: var(--color-ink);
}

.features-section .section-index,
.features-section h2 {
  color: var(--color-white);
}

.horizontal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.horizontal-heading > p {
  width: min(100%, 390px);
  margin: 0 0 8px;
  color: #a9c1c1;
}

.feature-list {
  margin-top: 70px;
  border-top: 1px solid #446065;
}

.feature-item {
  display: grid;
  grid-template-columns: 50px 66px 1fr;
  align-items: center;
  gap: 30px;
  min-height: 142px;
  padding: 24px 0;
  border-bottom: 1px solid #446065;
}

.feature-number {
  color: var(--color-coral);
  font-size: 12px;
  font-weight: 800;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-white);
}

.feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-item > div:last-child {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) 1fr;
  align-items: center;
  gap: 30px;
}

.feature-item h3 {
  margin: 0;
  color: var(--color-white);
  font-size: 21px;
}

.feature-item p {
  margin: 0;
  color: #a9c1c1;
  font-size: 14px;
}

.scenes-section {
  background: var(--color-lime);
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 86px;
}

.scene-visual {
  position: relative;
}

.scene-visual > img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
}

.scene-visual > p {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  margin: 0;
  padding: 16px 18px;
  color: var(--color-white);
  background: rgba(16, 45, 49, 0.9);
}

.scene-visual span,
.scene-visual strong {
  display: block;
}

.scene-visual span {
  color: var(--color-lime);
  font-size: 11px;
  text-transform: uppercase;
}

.scene-visual strong {
  margin-top: 3px;
  font-size: 16px;
}

.scene-list {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(16, 45, 49, 0.28);
}

.scene-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(16, 45, 49, 0.28);
}

.scene-list strong {
  color: var(--color-brand-dark);
}

.scene-list span {
  color: #486468;
}

.join-section {
  padding: 118px var(--page-padding);
  color: var(--color-white);
  text-align: center;
  background: var(--color-brand);
}

.join-inner {
  width: min(100%, 800px);
  margin: 0 auto;
}

.join-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 26px;
}

.join-section .section-index {
  color: var(--color-lime);
}

.join-section h2 {
  font-size: clamp(36px, 5vw, 62px);
}

.join-section p:not(.section-index, .copy-feedback) {
  margin: 20px 0 30px;
  color: #cbe0df;
  font-size: 16px;
}

.copy-button {
  min-width: 184px;
  color: var(--color-brand-dark);
  border-color: var(--color-white);
  background: var(--color-white);
  cursor: pointer;
}

.copy-button:hover {
  color: var(--color-white);
}

.copy-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--color-lime);
  font-size: 13px;
}

.site-footer {
  padding: 38px var(--page-padding);
  color: #9db4b6;
  background: #092b30;
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--color-white);
}

.footer-brand span {
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

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

.copyright {
  margin: 0;
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--color-brand-dark);
  cursor: pointer;
}

/* 中等屏幕减少首屏间距，保证产品舞台不会挤压文字。 */
@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 38px;
  }

  .hero::before {
    width: 34%;
  }

  .stage-note {
    right: -10px;
  }

  .about-grid,
  .scenes-grid {
    gap: 54px;
  }
}

/* 手机和平板统一切换为单列布局，避免内容横向挤压。 */
@media (max-width: 799px) {
  :root {
    --header-height: 64px;
    --page-padding: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    /* 手机端把首屏限制在一屏附近，底部产品画面只作为真实界面提示。 */
    min-height: 720px;
    height: calc(100svh - 112px);
    max-height: 760px;
    padding-top: calc(var(--header-height) + 54px);
    padding-bottom: 38px;
  }

  .hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 45%;
  }

  .hero-inner {
    min-height: 0;
    height: 100%;
    display: block;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .hero-slogan {
    font-size: 23px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions > a {
    flex: 1 1 150px;
  }

  /* 手机首屏只保留主行动，避免次要入口和产品预览互相遮挡。 */
  .hero-actions .secondary-action,
  .hero-points {
    display: none;
  }

  .hero-points {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .product-stage {
    position: absolute;
    right: -22px;
    bottom: -266px;
    z-index: 1;
    width: 250px;
    padding: 0;
  }

  .phone-shell {
    width: 230px;
    box-shadow: 9px 12px 0 rgba(8, 54, 59, 0.32);
  }

  .stage-note {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .section-heading h2,
  .scene-content h2 {
    font-size: 40px;
  }

  .about-grid,
  .scenes-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-content {
    padding-top: 0;
  }

  .about-content .about-lead {
    font-size: 19px;
  }

  .horizontal-heading {
    display: block;
  }

  .horizontal-heading > p {
    margin-top: 22px;
  }

  .feature-list {
    margin-top: 48px;
  }

  .feature-item {
    grid-template-columns: 34px 50px 1fr;
    gap: 16px;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
  }

  .feature-item > div:last-child {
    display: block;
  }

  .feature-item h3 {
    font-size: 17px;
  }

  .feature-item p {
    margin-top: 6px;
    font-size: 13px;
  }

  .scenes-grid {
    gap: 54px;
  }

  .scene-content {
    order: -1;
  }

  .join-section {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* 小手机进一步收紧文字和列表，确保最长中文文案不溢出。 */
@media (max-width: 430px) {
  .hero h1 {
    font-size: 54px;
  }

  .hero-slogan {
    font-size: 21px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions > a {
    width: 100%;
  }

  .stage-note {
    right: 0;
    width: 170px;
  }

  .about-facts > div,
  .scene-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .feature-item {
    grid-template-columns: 28px 42px 1fr;
    gap: 11px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon img {
    width: 24px;
    height: 24px;
  }

  .join-section h2 {
    font-size: 34px;
  }
}

/* 尊重系统减少动态效果设置，关闭平滑滚动与动画过渡。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
