/* 对外首页公共样式（纯自有 CSS，无远程 CDN） */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f6f8fb;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 960px; margin: 0 auto; padding: 32px 16px 0; }

/* ---------- 产品介绍 ---------- */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 28px; letter-spacing: 1px; margin-bottom: 10px; }
.hero-desc { color: #667; max-width: 620px; margin: 0 auto 24px; }

.feature-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.feature-card {
  background: #fff; border-radius: 12px; padding: 24px 20px; flex: 1 1 240px; max-width: 300px;
  box-shadow: 0 4px 16px rgba(30, 60, 120, .06); transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 60, 120, .10); }
.feature-icon { font-size: 34px; display: block; margin-bottom: 8px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: #778; }

/* ---------- 版本更新 ---------- */
.section-title { font-size: 20px; margin: 32px 0 14px; padding-left: 10px; border-left: 4px solid #2b6cb0; }

.update-card {
  background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 60, 120, .05);
}
.update-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 13px 16px; cursor: pointer; user-select: none;
}
.update-head:hover { background: #fafbfd; }
.update-ver { font-weight: 600; }
.update-ver small { color: #889; font-weight: 400; margin-left: 8px; }
.update-toggle { color: #2b6cb0; font-size: 13px; white-space: nowrap; }
.update-body { padding: 0 16px 14px; font-size: 14px; color: #556; white-space: pre-wrap; word-break: break-word; display: none; }
.update-card.open .update-body { display: block; }

.text-muted { color: #8a93a6; }
.text-center { text-align: center; }
#updates-loading { padding: 20px 0; }

/* 分页 */
.pagination { display: flex; gap: 6px; list-style: none; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; padding: 0; }
.pagination .page-item { }
.page-link {
  display: inline-block; padding: 5px 12px; border-radius: 6px; background: #fff; color: #456;
  border: 1px solid #dde4ee; cursor: pointer; font-size: 13px; text-decoration: none;
}
.page-item.active .page-link { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
.page-item.disabled .page-link { color: #b6c0d0; cursor: not-allowed; }
.page-ellipsis { padding: 5px 6px; color: #99a; border: none; background: none; }

/* ---------- 联系方式 ---------- */
.contact { text-align: center; padding: 32px 0 8px; }
.contact h4 { font-size: 22px; letter-spacing: 3px; margin-bottom: 14px; }
.contact img { width: 180px; height: 180px; border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 4px 14px rgba(30, 60, 120, .08); }
.contact-item { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; flex-wrap: wrap; }
.contact-item b { color: #111; margin-right: 4px; }

.btn-wechat {
  display: inline-block; padding: 6px 18px; border-radius: 9999px; border: 1px solid #07c160;
  background: #07c160; color: #fff; font-size: 14px; cursor: pointer;
}
.btn-tel {
  display: inline-block; padding: 6px 18px; border-radius: 9999px; border: 1px solid #07c160;
  background: #fff; color: #07c160; font-size: 14px; text-decoration: none;
}

/* ---------- 页脚 ---------- */
footer { text-align: center; padding: 28px 0 80px; font-size: 13px; color: #8a93a6; }
footer a { color: #8a93a6; text-decoration: none; }
footer b { color: #556; }
.divider { margin: 0 10px; }

/* ---------- 悬浮入口 ---------- */
.fab-entry { position: fixed; right: 16px; bottom: 24px; z-index: 1050; }
.btn-fab {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; padding: 12px 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18); font-weight: 600; font-size: 14px; text-decoration: none;
}
.btn-fab-primary { background: #2b6cb0; color: #fff; }
.btn-fab-success { background: #07c160; color: #fff; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 22px; }
  .feature-row { gap: 10px; }
  .feature-card { padding: 18px 14px; }
  .contact img { width: 150px; height: 150px; }
  .update-head { flex-wrap: wrap; }
}
