/*
  Lazy Listings AI 网站的全部样式（2026-10-20）：主页、价格页、付款完成页、登录注册那几页、账户页、法律页面共用这一份。
  以前每一页各自内联一份 <style>，一模一样的颜色抄了五遍。

  **不加载任何外部资源**：没有网络字体、没有图标库（登录页上有密码框，多一个第三方就多一个看得见它的人）。
  引用时带 ?v=<文件哈希>（`site.py` 的 asset()）：改了这个文件，浏览器就会拿新的——
  插件那边 0.27.1 吃过「版本号没变、浏览器一直用旧脚本」的亏。
*/

:root {
  --ink: #14142b;
  --soft: #5b6075;
  --faint: #8a8fa3;
  --line: #e6e6f0;
  --bg: #f7f7fb;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-2: #c026d3;
  --brand-tint: #eef0ff;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #c026d3 100%);
  --good: #047857;
  --good-tint: #ecfdf5;
  --bad: #b42318;
  --bad-tint: #fef3f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 43, .04), 0 8px 24px rgba(20, 20, 43, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
[hidden] { display: none !important; }

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

/* ---------- 顶栏和页脚 ---------- */

.site-header {
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo img { width: 32px; height: 32px; display: block; }
.logo .ease {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 2026-11-03 改名 ProductEase AI 时加的：「AI」是渐变底的小角标。2026-11-16 改名 Lazy Listings AI，字标是「Lazy Listings」+ 这个角标 */
.logo .ai {
  display: inline-block;
  margin-left: 2px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 3px;
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--soft); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav .button { color: #fff; padding: 8px 16px; }
/* 语言切换（2026-11-12，i18n.py）：跟别的导航项隔开一点。窄屏上藏掉（hide-narrow），页脚还有一个 */
.site-nav .lang { padding-left: 14px; border-left: 1px solid var(--line); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  color: var(--soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-footer .logo { font-size: 15px; }
.site-footer .logo img { width: 22px; height: 22px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- 按钮和表单 ---------- */

/* 人机验证框（Cloudflare Turnstile，注册、忘记密码两页）：高 65px，宽由它自己定 */
.cf-turnstile { margin: 14px 0 12px; min-height: 65px; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font: 600 15px/1.3 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.button:hover, button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button:active, button:active { transform: translateY(1px); }
.button:focus-visible, button:focus-visible { outline: 3px solid rgba(79, 70, 229, .3); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: default; }
.button.plain, button.plain {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.button.plain:hover, button.plain:hover { border-color: var(--faint); color: var(--ink); background: var(--card); }
.button.big { padding: 14px 26px; font-size: 16px; }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  margin-bottom: 18px;
  transition: border-color .15s, box-shadow .15s;
}
/* 密码框右边的「显示密码」按钮（assets/password.js 包上去的，2026-11-10）。外层接过输入框的下边距，按钮压在框里右侧 */
.reveal { display: block; position: relative; margin-bottom: 18px; }
.reveal input { margin-bottom: 0; padding-right: 48px; }
.reveal-toggle, .reveal-toggle:hover {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 0; border-radius: 8px; color: var(--soft);
}
.reveal-toggle:hover { color: var(--ink); background: var(--bg); }
.reveal-toggle:active { transform: translateY(-50%); }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
form.inline { display: inline; margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }

/* ---------- 通用 ---------- */

.soft { color: var(--soft); font-size: 14px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 20px;
}
.alert.bad { background: var(--bad-tint); border: 1px solid #fecdca; }
.alert.good { background: var(--good-tint); border: 1px solid #a7f3d0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
td, th { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; width: 40%; color: var(--soft); }
tr:last-child td, tr:last-child th { border-bottom: 0; }

/* ---------- 单栏页面：登录、注册、账户、付款完成、法律 ---------- */

.page { padding: 48px 0 64px; flex: 1; }
.panel {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px;
}
.panel.wide { max-width: 760px; }
.panel h1 { font-size: 26px; margin: 0 0 18px; }
.panel h2 { font-size: 18px; margin: 32px 0 10px; }

/* ---------- 账户页「Usage history」（2026-10-28）：每月一组，四个数字 + 一张任务表 ---------- */

.history-month { margin-top: 28px; }
.history-month h2 { margin-top: 0; }
.history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.history-summary > div {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}
.history-summary .soft { display: block; font-size: 12px; }
.history-summary strong { font-size: 20px; }
.history-scroll { overflow-x: auto; }
table.history { font-size: 14px; min-width: 560px; }
table.history th { width: auto; font-size: 12px; padding: 8px 10px 8px 0; white-space: nowrap; }
table.history td { padding: 10px 10px 10px 0; }
table.history .num { text-align: right; white-space: nowrap; }
table.history .nowrap { white-space: nowrap; }
/* 单个商品 / 批量：跟插件「Submitted jobs」页同一套颜色（靛蓝 / 青绿） */
.kind {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.kind.single { background: #e3e6ff; color: var(--brand); }
.kind.bulk { background: #d5f3e9; color: #0b7a5f; }

.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--brand); }

/* 下载页（2026-11-07）：版本、要求、安装三步、更新日志 */
.download h1 { font-size: 32px; margin-bottom: 6px; }
.download h2 { font-size: 20px; margin-top: 36px; }
.download h3 { font-size: 16px; margin: 22px 0 6px; }
.download h3 .soft { font-weight: 400; font-size: 14px; margin-left: 6px; }
.download ul, .download ol { padding-left: 22px; margin: 0 0 16px; }
.download li { margin-bottom: 8px; }
.download li::marker { color: var(--brand); }

/* ---------- 主页 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(192, 38, 211, .12), transparent 70%),
    radial-gradient(700px 360px at 10% 0%, rgba(79, 70, 229, .14), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 50px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.03em; }
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--soft); margin: 0 0 32px; max-width: 560px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* 主页右边那张示意：照片 → 商品卡片。纯 CSS，不放截图 */
/* 首屏右边：产品照 → 建好的商品卡片（2026-11-09 换成真照片）。两张卡片之间留一道空，箭头放在空里，不压照片 */
.demo { position: relative; height: 460px; }
.demo .photo, .demo .product { position: absolute; margin: 0; padding: 12px; }
.demo .photo { left: 0; top: 80px; width: 36%; transform: rotate(-4deg); }
.demo .product { right: 0; top: 0; width: 50%; }
.demo img { display: block; width: 100%; height: auto; border-radius: 10px; background: #f3f3f8; }
.demo .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.demo .tag { font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-tint); border-radius: 6px; padding: 2px 8px; }
.demo .arrow {
  position: absolute;
  left: calc(44% - 18px);
  top: 180px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}
.demo .caption { font-size: 12px; color: var(--faint); margin: 10px 0 0; }
.demo .title { font-weight: 700; font-size: 14px; margin: 12px 0 4px; line-height: 1.3; }
.demo .desc { font-size: 12px; color: var(--soft); margin: 0; line-height: 1.45; }

.section { padding: 80px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 34px; margin: 0 0 12px; }
.section-head p { color: var(--soft); font-size: 17px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.style-card .style-alias { color: var(--brand); font-weight: 600; font-size: 14px; margin: -4px 0 10px; }
.section-note { text-align: center; color: var(--soft); font-size: 14px; margin: 24px 0 0; }
.feature { padding: 26px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--soft); font-size: 15px; }

/* 主页「原图 → AI 模特图」（2026-11-09）：三组前后对比，背面那组用品牌色描边 */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pair { margin: 0; padding: 14px 14px 18px; }
/* 三栏：左图、箭头、右图。箭头单独占中间一窄条，不压照片（2026-11-09 改的，以前叠在两张图的接缝上） */
.pair-images { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.pair-photo { position: relative; }
.pair-photo img { display: block; width: 100%; height: auto; border-radius: 10px; background: #f3f3f8; }
.pair-label {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600;
}
.pair-label.ai { background: var(--gradient); color: #fff; }
.pair-arrow {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
}
.pair figcaption { margin-top: 14px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.pair figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.pair.back-view { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* 「How it works」：一步一行，文字和截图左右交替（2026-11-07） */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 72px; }
.step { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.step:nth-child(even) { grid-template-columns: 1.2fr .8fr; }
.step:nth-child(even) .step-text { order: 2; }
/* 宽的截图（确认表格）：文字在上、图占整行，不然表格里的字缩得看不清 */
.step.wide, .step.wide:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
.step.wide .step-text { order: 0; max-width: 720px; }
.step h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
.step p { color: var(--soft); font-size: 16px; margin: 0 0 12px; }
.step-points { margin: 0; padding-left: 20px; color: var(--soft); font-size: 15px; }
.step-points li { margin-bottom: 6px; }
.step-points li::marker { color: var(--brand); }
.shot { margin: 0; }
.shot a { display: block; cursor: zoom-in; }  /* 点开看原图：手机上缩得太小 */
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.cta {
  text-align: center;
  padding: 56px 32px;
  border-radius: 20px;
  background: var(--gradient);
  color: #fff;
}
.cta h2 { font-size: 32px; margin: 0 0 10px; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0 0 28px; }
.cta .button { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta .button:hover { background: #f1f0ff; }
.cta .soft { color: rgba(255, 255, 255, .75); margin: 20px 0 0; }
.cta .actions.center { justify-content: center; }
.cta .button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .button.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- 价格页 ---------- */

.pricing-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.pricing-head h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.03em; }
.pricing-head p.lead { font-size: 18px; color: var(--soft); margin: 0 0 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin: 0 auto 32px; max-width: 900px; }
.plan { padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .badge {
  position: absolute;
  top: -12px;
  left: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 999px;
  padding: 3px 12px;
}
.plan h2 { font-size: 20px; margin: 0 0 6px; }
.price { font-size: 38px; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.03em; }
.price small { font-size: 15px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan li { padding-left: 28px; margin-bottom: 10px; position: relative; font-size: 15px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan .button { width: 100%; }
.note { max-width: 900px; margin: 0 auto; padding: 20px 24px; font-size: 15px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .demo { display: none; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .steps { gap: 56px; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-head h2, .cta h2 { font-size: 26px; }
  .pricing-head h1 { font-size: 30px; }
  .panel { padding: 26px 20px; }
  .page { padding: 24px 0 40px; }
  .site-nav { gap: 14px; }
  .site-nav .hide-narrow { display: none; }
  .legal h1, .download h1 { font-size: 26px; }
}

/* ── Cookie 同意横幅（2026-11-10，analytics.py）：只在公开页面、配了 WPAI_GA_ID 时出现。
   **Accept 和 Reject 一样大、一样的样式**——把「同意」做得更显眼，在欧盟不算有效同意。 */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(20, 20, 43, .08);
  padding: 14px 0;
}
.consent[hidden] { display: none; }
.consent .wrap { display: flex; align-items: center; gap: 18px; }
.consent p { margin: 0; flex: 1; font-size: 14px; color: var(--soft); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) {
  .consent .wrap { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent-actions button { flex: 1; }
}
