/* 伴读宣传站 —— 主题色跟随 APP（AppColors.profile）
   主色 #2E9C7E / 深 #0E7E63 / 浅底 #EAF6F2 */

:root {
  --brand: #2E9C7E;
  --brand-dark: #0E7E63;
  --brand-soft: #EAF6F2;
  --brand-line: #D5E9E2;
  --text: #1F2D2A;
  --muted: #5C6B67;
  --page: #FFFFFF;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.br-mobile { display: none; }

/* ---------------- 页头 ---------------- */

.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--brand-line);
  background: #fff;
}

.brand-logo { height: 46px; width: auto; }

/* 页头一行：logo 左、网页端登录右 */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 「网页端登录」：黑灰色文字链（不做成按钮，避免与首屏两个按钮抢视线） */
.header-login {
  color: #4A4A4A;
  font-size: 14px;
  letter-spacing: .3px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.header-login:hover {
  color: #1F2D2A;
  border-bottom-color: #1F2D2A;
}

/* ---------------- 首屏 ---------------- */

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #FFFFFF 100%);
}

.tagline {
  margin: 0 0 14px;
  font-size: 34px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--brand-dark);
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-sub {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease,
              background-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 156, 126, .24);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46, 156, 126, .3);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--brand-line);
}

.btn-ghost:hover { background: var(--brand-soft); }

.btn-outline {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--brand);
}

.btn-outline:hover { background: var(--brand-soft); }

/* ---------------- 功能卡片 ---------------- */

.features { padding: 20px 0 64px; }

.section-title {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.feature-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.feature-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(46, 156, 126, .1);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}

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

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------------- 下载区 ---------------- */

.download {
  padding: 8px 0 64px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}

.download-left {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.app-icon {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 19px;
  box-shadow: 0 6px 18px rgba(14, 126, 99, .16);
  background: #fff;
}

.download-meta h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
}

.download-note {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
}

.btn-download { padding: 12px 26px; font-size: 15px; }

.download-tip {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.download-right {
  flex: 0 0 auto;
  text-align: center;
}

.qr-box {
  position: relative;
  width: 168px;
  height: 168px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}

.qr-img { width: 100%; height: 100%; object-fit: contain; }

.qr-fallback {
  display: none;
  position: absolute;
  inset: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
}

.qr-box.qr-failed .qr-fallback { display: flex; }

.qr-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 网页端入口 ---------------- */

.web-entry {
  padding: 56px 0 72px;
  border-top: 1px solid var(--brand-line);
  text-align: center;
}

.web-entry .section-title { margin-bottom: 14px; }

.web-text {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 16px;
  color: var(--muted);
}

/* ★V4.8（2026-09-26 辛哥定）：网页端不再允许注册 —— 这段提示要**显眼**
   （用户看漏了就会白填一次手机号、白等一条短信）。
   用品牌浅底 + 左侧色条，视觉上是"说明"而不是"报错"。 */
.web-note {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  text-align: left;
}

.web-note .em {
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  padding: 30px 0 36px;
  background: #F7FAF9;
  border-top: 1px solid var(--brand-line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-fine { margin-top: 6px !important; font-size: 13px !important; }

/* ---------------- 手机 / 微信适配（2026-09-26）---------------- */

/* 手机端：二维码是「自己扫自己」，没意义 → 整块隐藏，让下载按钮独占版面 */
body.is-mobile .download-right { display: none; }

/* 微信内置浏览器：顶部常驻提示条（点下载前就先告知，避免点了没反应） */
.wx-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: #3A3A3A;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.wx-bar[hidden] { display: none; }

.wx-bar b { font-weight: 700; }

/* 微信内点击「下载」时的引导遮罩 */
.wx-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 25, 22, .62);
}

/* 注意：`[hidden]` 一旦被上面的 display:flex 覆盖就会失效，必须显式关掉 */
.wx-mask[hidden] { display: none; }

.wx-mask-card {
  width: 100%;
  max-width: 320px;
  padding: 26px 22px 16px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.wx-mask-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}

.wx-mask-steps {
  margin: 0 0 20px;
  padding-left: 1.4em;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.wx-mask-copy { width: 100%; }

.wx-mask-close {
  width: 100%;
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- 响应式 ---------------- */

/* 四大功能：中屏 2×2，避免 4 列挤成一行过窄 */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .download-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 30px;
    padding: 30px 24px;
  }

  .download-right { align-self: center; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }

  .hero { padding: 44px 0 40px; }

  .hero h1 { font-size: 27px; }

  .tagline { font-size: 27px; }

  .br-mobile { display: inline; }

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

  .hero-actions .btn { flex: 1 1 100%; }

  .brand-logo { height: 38px; }

  .download-left { flex-direction: column; gap: 16px; }

  .btn-download { width: 100%; }

  .section-title { font-size: 20px; }
}
