/* ============================================================
   HTMLHost 官网首页（landing）
   与后台共用 app.css 里的设计变量，单独成文件避免影响控制台
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body.lp {
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.lp a:not(.lp-btn) { color: inherit; }

.lp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= 顶部导航 ================= */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-logo {
  width: 30px; height: 30px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #1677ff, #36cfc9);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.5px;
  box-shadow: 0 6px 14px -8px rgba(22, 119, 255, .9);
}
.lp-logo-sm { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }

.lp-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.lp-brand-text strong { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.lp-brand-text small { font-size: 11px; color: var(--muted); }

.lp-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
  color: #5b6572;
}
.lp-menu a { text-decoration: none; transition: color .15s; }
.lp-menu a:hover { color: var(--brand); }

/* ================= 按钮 ================= */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #d9dce1;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.lp-btn svg { width: 14px; height: 14px; }
.lp-btn:hover { border-color: var(--brand-line); color: var(--brand); }

.lp-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(22, 119, 255, .85);
}
.lp-btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.lp-btn-ghost { background: #fff; border-color: #d9dce1; color: var(--ink-2); }

.lp-btn-white { background: #fff; border-color: #fff; color: var(--brand); }
.lp-btn-white:hover { background: #f2f7ff; border-color: #fff; color: var(--brand); }

.lp-btn-lg { height: 42px; padding: 0 22px; font-size: 14px; border-radius: 7px; }

/* ================= 首屏 ================= */

.lp-hero {
  padding: 66px 0 76px;
  border-bottom: 1px solid var(--line-2);
  background:
    radial-gradient(880px 440px at 80% -12%, rgba(22, 119, 255, .13), transparent 62%),
    radial-gradient(680px 400px at 6% 4%, rgba(54, 207, 201, .10), transparent 60%),
    #fff;
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  align-items: center;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eff5ff;
  border: 1px solid #d8e7ff;
  color: #1a6ae0;
  font-size: 12px;
  letter-spacing: .2px;
}
.lp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00b42a;
  box-shadow: 0 0 0 3px rgba(0, 180, 42, .12);
}

.lp-hero h1 {
  margin: 18px 0 14px;
  font-size: 40px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: #14181f;
}

.lp-lead {
  margin: 0 0 26px;
  max-width: 486px;
  color: #5b6572;
  font-size: 14.5px;
  line-height: 1.88;
}

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

.lp-note { margin: 18px 0 0; font-size: 12px; color: #9aa3b2; }

/* 右侧浏览器示意 */
.lp-hero-art { position: relative; }

.lp-mock {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(31, 35, 41, .35), 0 2px 6px rgba(31, 35, 41, .04);
}

.lp-mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--line-2);
}
.lp-mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e0e3e8; }

.lp-url {
  margin-left: 9px;
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #9aa3b2;
  overflow: hidden;
  white-space: nowrap;
}
.lp-url b { color: var(--brand); font-weight: 500; }

.lp-mock-body { padding: 18px; }

.lp-mock-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eff5ff;
  color: var(--brand);
  font-size: 10.5px;
  letter-spacing: .3px;
}

.lp-mock-line {
  height: 9px;
  border-radius: 4px;
  background: #eef1f5;
  margin: 11px 0;
}
.lp-mock-line.w72 { width: 72%; height: 13px; background: #e4e9f0; }
.lp-mock-line.w48 { width: 48%; }
.lp-mock-line.w30 { width: 30%; }

.lp-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.lp-mock-card {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, #eef4ff, #f7faff);
  border: 1px solid #e8eefb;
}

.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  box-shadow: 0 12px 30px -16px rgba(31, 35, 41, .4);
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.lp-float-ico { display: inline-flex; color: #00b42a; }
.lp-float-2 .lp-float-ico { color: var(--brand); }
.lp-float-ico svg { width: 13px; height: 13px; }
.lp-float-1 { top: -14px; right: -6px; }
.lp-float-2 { bottom: -18px; left: -12px; }

/* ================= 数据条 ================= */

.lp-strip { border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.lp-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;
}
.lp-strip-item b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.5px;
  line-height: 1.3;
}
.lp-strip-item span { font-size: 12px; color: var(--muted); }

/* ================= 通用区块 ================= */

.lp-section { padding: 72px 0; }
.lp-section-alt {
  background: #f7f9fc;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.lp-section-head {
  max-width: 640px;
  margin: 0 auto 42px;
  text-align: center;
}
.lp-kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 1.4px;
}
.lp-section-head h2,
.lp-publish-copy h2 {
  margin: 8px 0 10px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.6px;
  color: #14181f;
}
.lp-section-head p {
  margin: 0;
  font-size: 13.5px;
  color: #5b6572;
  line-height: 1.85;
}

/* ================= 功能卡 ================= */

.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-card {
  background: #fff;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  padding: 22px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.lp-card:hover {
  border-color: #d6e6ff;
  box-shadow: 0 14px 30px -22px rgba(22, 119, 255, .5);
  transform: translateY(-2px);
}
.lp-ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: #eff5ff;
  color: var(--brand);
  margin-bottom: 13px;
}
.lp-ico svg { width: 17px; height: 17px; }
.lp-card h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: #14181f; }
.lp-card p { margin: 0; font-size: 12.8px; color: #5b6572; line-height: 1.8; }

/* ================= 流程 ================= */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-step {
  position: relative;
  background: #fff;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  padding: 24px 22px;
}
.lp-step-no {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: 0 8px 16px -10px rgba(22, 119, 255, .9);
}
.lp-step h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: #14181f; }
.lp-step p { margin: 0; font-size: 12.8px; color: #5b6572; line-height: 1.8; }

/* ================= 发布方式 ================= */

.lp-publish {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.lp-publish-copy p {
  margin: 0;
  color: #5b6572;
  font-size: 13.5px;
  line-height: 1.9;
}
.lp-ticks { list-style: none; margin: 20px 0 0; padding: 0; }
.lp-ticks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 11px;
  line-height: 1.7;
}
.lp-ticks svg { width: 14px; height: 14px; color: #00b42a; margin-top: 4px; }

.lp-code {
  background: #0f1b2d;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 50px -28px rgba(15, 27, 45, .85);
}
.lp-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #93a4bd;
}
.lp-code-dots { display: flex; gap: 4px; }
.lp-code-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.lp-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.78;
  color: #cfe3ff;
  background: none;
}
.lp-code pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

/* ================= 常见问题 ================= */

.lp-faq { max-width: 880px; }
.lp-faq .lp-section-head { text-align: left; margin-left: 0; margin-bottom: 24px; }

.lp-q { border-bottom: 1px solid #e6e9ee; padding: 15px 0; }
.lp-q summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #14181f;
}
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after {
  content: "+";
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f2f3f5;
  color: #8a919f;
  font-size: 14px;
  line-height: 1;
  transition: all .15s;
}
.lp-q[open] summary::after { content: "−"; background: #eff5ff; color: var(--brand); }
.lp-q summary:hover::after { background: #e8f0fe; color: var(--brand); }
.lp-q p {
  margin: 11px 0 2px;
  color: #5b6572;
  font-size: 13px;
  line-height: 1.9;
  max-width: 720px;
}

/* ================= CTA ================= */

.lp-cta { padding: 0 0 72px; }
.lp-cta-box {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: 14px;
  background: linear-gradient(120deg, #1677ff, #0e5dd6);
  box-shadow: 0 26px 56px -30px rgba(22, 119, 255, .85);
}
.lp-cta-box h2 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
}
.lp-cta-box p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .84); }
.lp-cta-box .lp-btn { margin-left: auto; }

/* ================= 页脚 ================= */

.lp-footer { border-top: 1px solid var(--line-2); background: #fbfcfd; padding: 26px 0; }
.lp-footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-footer-links { display: flex; gap: 20px; margin-left: auto; font-size: 12.5px; color: #7a8494; }
.lp-footer-links a:hover { color: var(--brand); }
.lp-copy { font-size: 12px; color: #9aa3b2; }

/* ================= 响应式 ================= */

@media (max-width: 980px) {
  .lp-hero { padding: 48px 0 56px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-lead { max-width: none; }
  .lp-grid, .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-publish { grid-template-columns: 1fr; gap: 28px; }
  .lp-section { padding: 56px 0; }
}

@media (max-width: 680px) {
  .lp-menu { display: none; }
  .lp-nav-inner { gap: 12px; }
  .lp-hero h1 { font-size: 27px; letter-spacing: -.6px; }
  .lp-lead { font-size: 13.5px; }
  .lp-grid, .lp-steps { grid-template-columns: 1fr; }
  .lp-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lp-float-1 { display: none; }
  .lp-float-2 { left: 0; }
  .lp-cta-box { padding: 24px 20px; }
  .lp-cta-box .lp-btn { margin-left: 0; width: 100%; }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lp-footer-links { margin-left: 0; }
  .lp-section-head h2, .lp-publish-copy h2 { font-size: 22px; }
}
