/* ============================================================
   镜面科技官网 · 中文定制样式（在 style-variables.css 之后加载）
   用途：中文字体、品牌标识、数据条、优势卡片、联系表单等
   ============================================================ */

:root {
  --font-heading: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --z-header: 1030;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  letter-spacing: 0.01em;
}

section[id] {
  scroll-margin-top: 78px;
}

.text-uppercase {
  letter-spacing: 0.12em;
}

/* ---------- 品牌标识 ---------- */
a.navbar-brand,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

a.navbar-brand img,
.footer-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* 页脚 Logo 放在白色底片上，避免白底图片与深色背景冲突 */
.footer-logo .logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.background-color-purple .brand-name,
.footer-logo .brand-name {
  color: #ffffff;
}

.background-color-purple .brand-sub,
.footer-logo .brand-sub {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 导航 ---------- */
header .navbar {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding-inline: 0.85rem !important;
  transition: color 0.25s ease;
}

.navbar-nav .nav-link:hover,
.dropdown-item:hover {
  color: var(--color-brand-secondary) !important;
}

.dropdown-item {
  font-size: 0.97rem;
  padding-block: 0.4rem;
}

.mega-menu h6 {
  font-weight: 700;
  font-size: 1rem;
}

.mega-menu .list-unstyled li {
  margin-bottom: 0.5rem;
}

/* ---------- 数据统计条 ---------- */
.stats-strip {
  padding-bottom: var(--padding-bottom-medium, 120px);
}

.stats-strip .row {
  row-gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-xl, 20px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(46, 26, 71, 0.07);
  height: 100%;
}

.stat-num {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-brand-primary);
  line-height: 1.1;
}

.stat-num span {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 2px;
  color: var(--color-brand-secondary);
}

.stat-label {
  color: var(--color-text-primary);
  font-size: 0.98rem;
  margin-top: 0.35rem;
}

/* ---------- 优势卡片 ---------- */
.advantage-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 20px);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(46, 26, 71, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(46, 26, 71, 0.14);
}

.advantage-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  margin-bottom: 1.25rem;
}

.advantage-card p {
  color: var(--color-text-primary);
  margin-bottom: 0;
}

/* ---------- 服务项目手风琴 ---------- */
.our-services .accordion-button {
  font-size: 1.15rem !important;
  padding-block: 1.1rem;
  background: transparent;
}

.our-services .accordion-body {
  color: var(--color-text-primary);
}

/* ---------- 联系我们 ---------- */
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(46, 26, 71, 0.07);
}

.contact-card .bi {
  color: var(--color-brand-secondary);
  font-size: 1.35rem;
  margin-right: 0.6rem;
}

.contact-card .label {
  font-weight: 700;
  color: var(--color-text-secondary);
}

.contact-card p {
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-default, 8px);
  border-color: #e5e0ec;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(99, 49, 162, 0.15);
}

/* ---------- 页脚 ---------- */
footer {
  font-size: 0.97rem;
}

footer ul.list-unstyled li {
  margin-bottom: 0.55rem;
}

footer h6 {
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

footer .social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

footer .social-link:hover {
  background: var(--color-accent-yellow);
  color: #000000;
}

/* ---------- 侧边联系面板 ---------- */
#offcanvasContact .offcanvas-title {
  font-weight: 700;
}

.offcanvas .post-title {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.map-embed {
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  min-height: 260px;
  background: linear-gradient(135deg, #efe9f8, #f8f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  text-align: center;
  padding: 2rem;
}

/* ---------- App 下载入口 ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.hero-btn--ghost:hover {
  background: #ffffff;
  color: #000000;
}

.app-download .app-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 18px 45px rgba(46, 26, 71, 0.1);
}

.app-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--color-text-primary);
}

.app-meta li {
  margin-bottom: 0.45rem;
}

.phone-mockup {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 34px;
  padding: 18px 14px;
  margin: 0 auto;
  background: linear-gradient(160deg, #2e1a47, #6b21a8);
  box-shadow: 0 20px 45px rgba(46, 26, 71, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  text-align: center;
}

.phone-mockup img {
  width: 92px;
  height: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 8px;
}

/* 移动端底部悬浮下载条 */
.mobile-download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -6px 20px rgba(46, 26, 71, 0.18);
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: 66px;
  }
}

/* ---------- 移动端微调 ---------- */
@media (max-width: 991.98px) {
  section[id] {
    scroll-margin-top: 70px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .nav-link {
    padding-inline: 0.25rem !important;
  }
}
