/* 易紧通 PWA 安装说明页 */
:root {
  --yjt-orange: #e85a12;
  --yjt-orange-hover: #d14e0e;
  --yjt-orange-deep: #a63d0a;
  --yjt-orange-soft: #fff4ee;
  --yjt-orange-border: #f0c4a8;
  --yjt-navy: #122156;
  --yjt-navy-soft: #eef1f8;
  --yjt-navy-mid: #1a2d6e;
  --yjt-bg: #f3f5f9;
  --yjt-card: #ffffff;
  --yjt-text: #1a2236;
  --yjt-muted: #5a6578;
  --yjt-border: #d7dde8;
  --yjt-success: #1f8a4c;
  --yjt-success-soft: #eef8f1;
  --yjt-radius: 16px;
  --yjt-shadow: 0 8px 24px rgba(18, 33, 86, 0.08);
  --yjt-max: 1100px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.install-page {
  margin: 0;
  background: var(--yjt-bg);
  color: var(--yjt-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.install-wrap {
  max-width: var(--yjt-max);
  margin: 0 auto;
  padding: 0 16px 48px;
}

.install-topbar {
  background: var(--yjt-navy);
  color: #fff;
}

.install-topbar-inner {
  max-width: var(--yjt-max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.install-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.install-brand:hover {
  color: #fff;
  opacity: 0.92;
}

.install-brand img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
}

.install-brand-tag {
  font-size: 13px;
  opacity: 0.85;
  font-style: normal;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 10px;
}

.install-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-top-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.install-top-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.install-top-link-solid {
  background: var(--yjt-orange);
  border-color: var(--yjt-orange);
}

.install-top-link-solid:hover {
  background: var(--yjt-orange-hover);
  border-color: var(--yjt-orange-hover);
}

.install-hero {
  padding: 24px 0 16px;
}

.install-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: var(--yjt-navy);
  line-height: 1.25;
}

.install-hero .lead {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--yjt-muted);
  font-weight: 500;
  line-height: 1.55;
}

.benefit-line {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yjt-navy-soft);
  color: var(--yjt-navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.install-hero .desc {
  margin: 0;
  color: var(--yjt-muted);
  line-height: 1.7;
  max-width: 46em;
}

.section-block {
  margin-bottom: 22px;
}

/* 安装后手机界面预览 */
.preview-section {
  background: var(--yjt-card);
  border: 1px solid var(--yjt-border);
  border-radius: var(--yjt-radius);
  box-shadow: var(--yjt-shadow);
  padding: 18px 14px 20px;
}

.preview-lead {
  margin: -2px 0 14px;
  color: var(--yjt-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.preview-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.preview-phone {
  margin: 0;
  text-align: center;
}

.preview-phone-frame {
  background: transparent;
  border: none;
  box-shadow: none;
  line-height: 0;
}

.preview-phone-frame img {
  display: block;
  margin: 0 auto;
  /* 优先等高；宽度不够时按比例缩小，框随图走不留白 */
  width: auto;
  height: auto;
  max-height: 340px;
  max-width: 100%;
  background: transparent;
}

.preview-phone figcaption {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yjt-navy);
}

@media (max-width: 420px) {
  .preview-phones {
    gap: 8px;
  }
  .preview-phone-frame img {
    max-height: 280px;
  }
  .preview-phone figcaption {
    font-size: 0.8rem;
  }
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yjt-navy);
}

.step-list.compact > li {
  padding: 8px 0;
}

.step-list.compact .step-body p {
  color: var(--yjt-text);
}

.step-list.compact .step-url {
  margin-top: 4px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 28px;
}

.benefit-card {
  background: var(--yjt-card);
  border: 1px solid var(--yjt-border);
  border-radius: var(--yjt-radius);
  padding: 18px 16px;
  box-shadow: var(--yjt-shadow);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--yjt-orange-soft);
  color: var(--yjt-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--yjt-navy);
  font-weight: 700;
}

.benefit-card p {
  margin: 0;
  color: var(--yjt-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pc-panel {
  background: linear-gradient(145deg, #0f1a3d 0%, #122156 48%, #1a2d6e 100%);
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(18, 33, 86, 0.22);
  margin-bottom: 22px;
}

.pc-panel h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
}

.pc-panel .pc-text {
  margin: 0 0 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.pc-url-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  word-break: break-all;
}

.pc-url-box a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-yjt {
  --bs-btn-bg: var(--yjt-orange);
  --bs-btn-border-color: var(--yjt-orange);
  --bs-btn-hover-bg: var(--yjt-orange-hover);
  --bs-btn-hover-border-color: var(--yjt-orange-hover);
  --bs-btn-active-bg: var(--yjt-orange-deep);
  --bs-btn-active-border-color: var(--yjt-orange-deep);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  min-height: 46px;
  font-weight: 700;
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-yjt-outline {
  --bs-btn-color: var(--yjt-navy);
  --bs-btn-border-color: var(--yjt-border);
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--yjt-navy-soft);
  --bs-btn-hover-border-color: #b8c3d8;
  --bs-btn-hover-color: var(--yjt-navy);
  --bs-btn-active-bg: var(--yjt-navy-soft);
  --bs-btn-active-border-color: var(--yjt-navy);
  --bs-btn-active-color: var(--yjt-navy);
  min-height: 46px;
  font-weight: 700;
  border-radius: 999px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pc-panel .btn-yjt-outline {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-touch {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-card {
  background: #fff;
  color: var(--yjt-text);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 22px 18px 18px;
  text-align: center;
  height: 100%;
}

.qr-frame {
  width: 240px;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--yjt-border);
  border-radius: 14px;
  box-sizing: border-box;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
}

.qr-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yjt-navy);
}

.qr-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--yjt-muted);
  line-height: 1.55;
}

.qr-wechat-warn {
  display: inline-block;
  margin-top: 4px;
  color: var(--yjt-orange-deep);
  font-weight: 800;
}

.status-card,
.guide-card,
.device-card,
.faq-card,
.footer-card {
  background: var(--yjt-card);
  border: 1px solid var(--yjt-border);
  border-radius: var(--yjt-radius);
  box-shadow: var(--yjt-shadow);
}

.status-card {
  padding: 20px;
  border-color: rgba(31, 138, 76, 0.28);
  background: linear-gradient(180deg, var(--yjt-success-soft) 0%, #fff 65%);
}

.status-card.is-installed .status-title {
  color: var(--yjt-success);
}

.status-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.status-desc {
  margin: 0 0 16px;
  color: var(--yjt-muted);
  line-height: 1.65;
}

.wechat-banner {
  background: linear-gradient(180deg, #fff7f0 0%, #fff 70%);
  border: 1px solid var(--yjt-orange-border);
  border-radius: var(--yjt-radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--yjt-shadow);
}

.wechat-banner h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--yjt-orange-deep);
  font-weight: 800;
}

.wechat-banner p {
  margin: 0 0 10px;
  color: #6b4a38;
  line-height: 1.65;
}

.wechat-banner ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: var(--yjt-text);
}

.wechat-banner li + li {
  margin-top: 6px;
}

.guide-card {
  padding: 16px;
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--yjt-navy);
}

.alert-tip {
  background: var(--yjt-orange-soft);
  border: 1px solid var(--yjt-orange-border);
  color: var(--yjt-orange-deep);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-list > li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--yjt-border);
}

.step-list > li:last-child {
  border-bottom: 0;
}

.step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yjt-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

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

.step-body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--yjt-navy);
}

.step-body p {
  margin: 0;
  color: var(--yjt-muted);
  line-height: 1.6;
}

.step-url {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  background: #f0f3f8;
  border-radius: 8px;
  color: var(--yjt-navy);
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}

.share-icon {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px;
  color: var(--yjt-orange);
}

.done-tip {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--yjt-success-soft);
  border: 1px solid rgba(31, 138, 76, 0.22);
  border-radius: 12px;
  color: var(--yjt-success);
  font-weight: 600;
}

.help-box {
  margin-top: 14px;
  padding: 14px;
  background: #f7f9fc;
  border-radius: 12px;
  border: 1px dashed #cfd7e6;
}

.help-box h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--yjt-navy);
}

.help-box p {
  margin: 0;
  color: var(--yjt-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.install-success-msg {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--yjt-success-soft);
  border: 1px solid rgba(31, 138, 76, 0.22);
  border-radius: 12px;
  color: var(--yjt-success);
  font-weight: 600;
}

.device-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.device-card {
  padding: 14px 16px;
  position: relative;
}

.device-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--yjt-navy);
}

.device-card p {
  margin: 0;
  color: var(--yjt-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.device-card.is-recommended {
  border-color: var(--yjt-orange-border);
  box-shadow: 0 0 0 2px rgba(232, 90, 18, 0.1), var(--yjt-shadow);
}

.recommend-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--yjt-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.samsung-card,
.faq-card {
  padding: 6px 0;
}

.samsung-card .accordion-button,
.faq-card .accordion-button {
  font-weight: 700;
  color: var(--yjt-navy);
  background: transparent;
  box-shadow: none;
}

.samsung-card .accordion-button:not(.collapsed),
.faq-card .accordion-button:not(.collapsed) {
  color: var(--yjt-orange-deep);
  background: var(--yjt-orange-soft);
  box-shadow: none;
}

.samsung-card .accordion-button:focus,
.faq-card .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.samsung-card .accordion-body,
.faq-card .accordion-body {
  color: var(--yjt-muted);
  line-height: 1.7;
}

.samsung-card .accordion-item,
.faq-card .accordion-item {
  border-left: 0;
  border-right: 0;
  border-color: var(--yjt-border);
}

.samsung-card .accordion-item:first-child,
.faq-card .accordion-item:first-child {
  border-top: 0;
}

.footer-card {
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.footer-card h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--yjt-navy);
  font-weight: 800;
}

.footer-card .footer-sub {
  margin: 0 0 8px;
  color: var(--yjt-muted);
}

.footer-card .footer-url {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--yjt-navy);
}

.footer-card .footer-url a {
  color: var(--yjt-navy);
  text-decoration: none;
}

.site-copy {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--yjt-border);
  color: #7a8496;
  font-size: 12px;
  line-height: 1.8;
}

.site-copy a {
  color: #5a6578;
  text-decoration: none;
}

.toast-wrap {
  z-index: 1090;
  bottom: 20px;
}

.install-toast {
  background: var(--yjt-navy);
  color: #fff;
  border: 0;
  border-radius: 12px;
  min-width: 220px;
}

.hidden-block {
  display: none !important;
}

@media (max-width: 991.98px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .device-cards {
    grid-template-columns: 1fr;
  }

  .pc-panel {
    padding: 22px 18px;
  }

  .qr-frame {
    width: 200px;
  }

  .pc-actions .btn,
  .guide-actions .btn,
  .wechat-banner .btn,
  .status-card .btn,
  .footer-card .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .install-brand-tag {
    display: none;
  }

  .install-hero {
    padding-top: 24px;
  }
}
