/* ===== 首页宣传页样式（SPA）=====
   隔离约定：所有选择器必须以 .landing-page 开头，不污染工作台样式 */
.landing-page {
  background: #f8fafc;
  min-height: 100vh;
  height: 100vh;            /* body 是 overflow:hidden 的固定视口，滚动交给首页容器自己 */
  overflow-y: auto;
  position: relative;           /* 首屏氛围层（点阵 + 光斑）以它为定位基准 */
  color: #1e293b;
  line-height: 1.6;
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.landing-page * { box-sizing: border-box; margin: 0; padding: 0; }
.landing-page .nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; max-width: 1200px; margin: 0 auto; }
.landing-page .logo { font-size: 22px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.landing-page .logo-icon { font-size: 28px; }
.landing-page .btn-primary { height: 36px; padding: 0 20px; border-radius: 999px; border: none; background: #3b82f6; color: white; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; box-shadow: 0 4px 12px rgba(59,130,246,0.3); transition: 0.3s; }
.landing-page .btn-primary:hover { transform: scale(1.04); box-shadow: 0 6px 16px rgba(59,130,246,0.4); }
.landing-page .header { text-align: center; padding: 80px 20px 40px; max-width: 900px; margin: 0 auto; }
.landing-page .header h1 { font-size: 52px; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.landing-page .text-gradient { background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-page .header p { font-size: 20px; color: #64748b; margin-bottom: 40px; }
.landing-page .btn-large { padding: 16px 48px; font-size: 20px; border-radius: 40px; border: none; background: #3b82f6; color: white; cursor: pointer; font-weight: bold; font-family: inherit; box-shadow: 0 8px 24px rgba(59,130,246,0.4); transition: 0.3s; }
.landing-page .btn-large:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(59,130,246,0.5); }
.landing-page .hero-image-wrapper { max-width: 1100px; margin: 40px auto 80px; padding: 0 20px; }
.landing-page .placeholder-box { width: 100%; background: #e2e8f0; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); border: 2px dashed #cbd5e1; }
.landing-page .hero-box { height: 600px; }
.landing-page .feature-section { padding: 80px 20px; background: white; }
.landing-page .feature-container { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.landing-page .feature-container:nth-child(even) { flex-direction: row-reverse; }
.landing-page .feature-text { flex: 1; }
.landing-page .feature-text h2 { font-size: 36px; margin-bottom: 20px; }
.landing-page .feature-text p { font-size: 18px; color: #64748b; margin-bottom: 20px; }
.landing-page .feature-list { list-style: none; color: #475569; }
.landing-page .feature-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.landing-page .check-icon { color: #3b82f6; font-weight: bold; }
.landing-page .feature-image { flex: 1; }
.landing-page .feature-box { height: 400px; }
.landing-page .reviews-section { padding: 80px 20px; background: #f8fafc; text-align: center; }
.landing-page .reviews-section h2 { font-size: 36px; margin-bottom: 50px; }
.landing-page .review-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.landing-page .review-card { background: white; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); text-align: left; }
.landing-page .review-card p { font-style: italic; color: #475569; margin-bottom: 20px; }
.landing-page .review-user { display: flex; align-items: center; gap: 15px; }
.landing-page .user-avatar { width: 50px; height: 50px; border-radius: 50%; background: #cbd5e1; }
.landing-page .user-info h4 { font-size: 16px; margin-bottom: 2px; }
.landing-page .user-info span { font-size: 13px; color: #94a3b8; }
.landing-page .bottom-cta { padding: 100px 20px; text-align: center; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white; }
.landing-page .bottom-cta h2 { font-size: 40px; margin-bottom: 20px; }
.landing-page .btn-white { padding: 16px 48px; font-size: 20px; border-radius: 40px; border: none; background: white; color: #3b82f6; cursor: pointer; font-weight: bold; font-family: inherit; box-shadow: 0 8px 24px rgba(0,0,0,0.2); transition: 0.3s; }
.landing-page .btn-white:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.landing-page .footer { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 32px 20px 40px; color: #94a3b8; font-size: 14px; background: white; border-top: 1px solid #e2e8f0; text-align: center; }
.landing-page .footer span + span { font-size: 12px; color: #a8b3c4; }

/* 移动端降级：单列堆叠，避免横向溢出 */
@media (max-width: 768px) {
  .landing-page .header h1 { font-size: 34px; }
  .landing-page .header p { font-size: 16px; }
  .landing-page .feature-container { flex-direction: column !important; gap: 30px; margin-bottom: 60px; }
  .landing-page .feature-text h2 { font-size: 26px; }
  .landing-page .review-grid { grid-template-columns: 1fr; }
  .landing-page .hero-box { height: 360px; }
  .landing-page .feature-box { height: 260px; }
  .landing-page .bottom-cta h2 { font-size: 28px; }
}

/* v2.47：首页顶栏与工作台统一成「白色圆角方块 logo + 文字」（原来 emoji 图标在窄屏下把文字挤成竖排） */
.landing-page .logo { flex: 0 0 auto; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.landing-page .logo-mark {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: #fff;
  box-shadow: 0 3px 12px rgba(17, 24, 39, .10), inset 0 0 0 1px rgba(47, 107, 255, .20);
  display: block;
}
.landing-page .logo-text { font-size: 23px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; color: #111827; }
@media (max-width: 768px) {
  .landing-page .nav { padding: 14px 16px; gap: 8px; flex-wrap: nowrap; }
  .landing-page .logo { gap: 8px; }
  .landing-page .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
  .landing-page .logo-text { font-size: 16px; letter-spacing: .2px; }
  /* 窄屏放不下「昵称胶囊 + 进入工作台」，昵称收进工作台顶栏，这里只留主按钮 */
  .landing-page .nav .ptw-chip { display: none !important; }
  .landing-page .nav .btn-primary { height: 30px; padding: 0 13px; font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
}

/* ===== v3.13 首页评价：双行反向无缝滚动（不是跑马灯，无边框闪烁） ===== */
.landing-page .reviews-section {
  max-width: 1100px; margin: 0 auto; padding: 72px 20px 64px;   /* 和 hero-image-wrapper 同一宽度基准，左右边线与上下一段对齐 */
  background: transparent; text-align: center;
}
.landing-page .reviews-section h2 { font-size: 34px; margin-bottom: 44px; }
.landing-page .reviews-sub { margin: -30px 0 34px; font-size: 13.5px; color: #94a3b8; }
.landing-page .review-marquee {
  position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.landing-page .review-row { display: flex; gap: 14px; width: max-content; animation: ptwReviewL 44s linear infinite; }
.landing-page .review-row.is-reverse { animation: ptwReviewR 56s linear infinite; }
.landing-page .review-marquee:hover .review-row { animation-play-state: paused; }
@keyframes ptwReviewL { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes ptwReviewR { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.landing-page .review-card {
  width: 328px; flex: 0 0 auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid #eef1f7; border-radius: 18px; padding: 20px 20px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.landing-page .review-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .09); }
.landing-page .review-q { font: 700 22px/1 Georgia, "Times New Roman", serif; color: #c9d8ff; height: 12px; }
.landing-page .review-card p { margin: 0; font-style: normal; font-size: 14.5px; line-height: 1.7; color: #3b4453; letter-spacing: .1px; }
.landing-page .review-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 6px; }
/* 第二行（反向）：署名在上、内容在下，引号去掉更干净 */
.landing-page .review-row.is-reverse .review-q { display: none; }
.landing-page .review-row.is-reverse .review-user { order: -1; margin-top: 0; margin-bottom: 2px; padding-top: 0; }
.landing-page .user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #6f9bff, #8b5cf6);
}
.landing-page .user-info h4 { margin: 0; font-size: 13px; font-weight: 600; color: #1f2937; }
.landing-page .user-info span { font-size: 11.5px; color: #9aa3b2; }

/* ===== v3.13 页脚：条款 / 备案 / 主体 / 联系方式 ===== */
.landing-page .footer { gap: 10px; padding: 30px 20px 38px; }
.landing-page .footer-links { display: flex; align-items: center; gap: 8px; font-size: 13px; order: 0; }
.landing-page .footer-links a { color: #5b6577; text-decoration: none; transition: color .16s ease; }
.landing-page .footer-links a:hover { color: #2f6bff; }
.landing-page .footer-dot { color: #cbd5e1; }
.landing-page .footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: #a8b3c4; }
.landing-page .footer-meta a { color: #a8b3c4; text-decoration: none; }
.landing-page .footer-meta a:hover { color: #2f6bff; }
.landing-page .footer-note { font-size: 11.5px; color: #c0c9d6; }

@media (max-width: 768px) {
  .landing-page .reviews-section { max-width: none; padding: 52px 0 44px; }
  .landing-page .reviews-section h2 { font-size: 24px; margin-bottom: 32px; }
  .landing-page .reviews-sub { margin: -20px 0 24px; font-size: 12.5px; }
  .landing-page .review-marquee { gap: 11px; }
  .landing-page .review-row { gap: 11px; animation-duration: 30s; }
  .landing-page .review-row.is-reverse { animation-duration: 40s; }
  .landing-page .review-card { width: 72vw; max-width: 312px; padding: 16px 16px 13px; border-radius: 16px; }
  .landing-page .review-card p { font-size: 13.5px; line-height: 1.62; }
  .landing-page .footer { padding: 24px 16px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .review-row { animation: none !important; }
  .landing-page .review-marquee { overflow-x: auto; }
}

/* 维护模式提示条（site.js 注入） */
.site-maint-tip {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000;
  background: rgba(17, 24, 39, .92); color: #fff; font-size: 12.5px; line-height: 1;
  padding: 9px 15px; border-radius: 999px; box-shadow: 0 10px 26px rgba(17, 24, 39, .22);
  white-space: nowrap;
}

/* ===== v3.13 首页真实图片：有图显示图，没图（404）回落到占位框 ===== */
.landing-page .shot-img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 40px rgba(15, 23, 42, .10); }
.landing-page .hero-image-wrapper .shot-img { max-height: 760px; object-fit: cover; }
.landing-page .feature-image .shot-img { border-radius: 18px; box-shadow: 0 14px 30px rgba(15, 23, 42, .08); }
@media (max-width: 768px) {
  .landing-page .shot-img { border-radius: 16px; box-shadow: 0 10px 24px rgba(15, 23, 42, .10); }
}

/* ===== v3.15 首页视觉：吸顶栏 / 首屏氛围 / 占位卡 / 维护提示 =====
   只动样式，不改结构与业务逻辑 */

/* 1) 顶栏吸顶：白底 + 轻模糊 + 下阴影（::before 撑满视口宽度，避免 1200px 两侧露底） */
.landing-page .nav {
  position: sticky; top: 0; z-index: 60;
  padding: 18px 40px;
}
.landing-page .nav::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 100vw; height: 100%; z-index: -1;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  opacity: 0;
  transition: opacity .24s ease;
}
.landing-page .nav.is-stuck::before { opacity: 1; }

/* 2) 首屏：点阵网格 + 两枚弥散光斑 + 信任小字 */
.landing-page .header { position: relative; }
/* 首屏氛围层：点阵铺满整屏首屏，两枚光斑在它上面随机游走 */
.landing-page .hero-fx {
  position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: 0;
  pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 1.3s cubic-bezier(.22, .61, .36, 1);
}
.landing-page .hero-fx.is-in { opacity: 1; }
.landing-page .hero-fx::before {          /* 点阵：间距 12px，铺满整个首屏 */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(#d8e2f2 .8px, transparent .8px);
  background-size: 12px 12px;
  background-position: 0 0;
  opacity: .62;
  /* 椭圆渐隐 + 竖向渐隐两层叠加：中间最清楚，两侧和最底部自然淡到看不见 */
  -webkit-mask-image:
    radial-gradient(ellipse 92% 100% at 50% 40%, #000 0%, #000 58%, rgba(0, 0, 0, .5) 84%, transparent 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, #000 16%, #000 62%, rgba(0, 0, 0, .4) 78%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 92% 100% at 50% 40%, #000 0%, #000 58%, rgba(0, 0, 0, .5) 84%, transparent 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, #000 16%, #000 62%, rgba(0, 0, 0, .4) 78%, transparent 96%);
  mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .hero-fx { transition: none; }
}
/* 光斑尺寸跟着浏览器宽度走（vw），窄屏按比例缩小 */
.landing-page .hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: min(44vw, 760px); height: min(33vw, 560px);
  background: radial-gradient(circle, rgba(59, 130, 246, .17) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(60px);
  /* 交错呼吸：左斑「亮→暗→亮」，右斑反相「暗→亮→暗」，
     暗到几乎看不见的那半秒里由 JS 换一个随机位置，再在那里亮起来 */
  animation: ptwGlowBreath 7s ease-in-out infinite;
  will-change: transform, opacity;
}
.landing-page .hero-glow-l {
  top: var(--glow-l-y, 6%); left: var(--glow-l-x, 0%);
}
.landing-page .hero-glow-r {
  top: var(--glow-r-y, 24%); right: var(--glow-r-x, 0%);
  background: radial-gradient(circle, rgba(139, 92, 246, .18) 0%, rgba(139, 92, 246, 0) 70%);
  animation-name: ptwGlowBreathDim;
}
@keyframes ptwGlowBreath {          /* 左斑：一开始就亮着，3.5s 时暗到看不见 */
  0%   { opacity: 1;    transform: scale(1.06) translate3d(0, 0, 0); }
  42%  { opacity: .04;  transform: scale(.9)   translate3d(4px, 6px, 0); }
  58%  { opacity: .04;  transform: scale(.9)   translate3d(4px, 6px, 0); }
  100% { opacity: 1;    transform: scale(1.06) translate3d(0, 0, 0); }
}
@keyframes ptwGlowBreathDim {       /* 右斑：反相，一开始隐着，3.5s 时最亮 */
  0%   { opacity: .04;  transform: scale(.9)   translate3d(4px, 6px, 0); }
  42%  { opacity: 1;    transform: scale(1.06) translate3d(0, 0, 0); }
  58%  { opacity: 1;    transform: scale(1.06) translate3d(0, 0, 0); }
  100% { opacity: .04;  transform: scale(.9)   translate3d(4px, 6px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .hero-glow { animation: none; opacity: .9; }
}
.landing-page .header .hero-trust {
  max-width: 620px; margin: 20px auto 0; font-size: 12.5px; line-height: 1.7; color: #9aa6b8;
  letter-spacing: .2px; font-weight: 400; text-wrap: balance;
}

/* 3) 占位卡：浅灰渐变 + 内描边，去掉"施工中"虚线 */
.landing-page .placeholder-box {
  background: linear-gradient(160deg, #f7f9fd 0%, #eff3fa 55%, #e9eff8 100%);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(219, 227, 240, .9), 0 16px 38px rgba(15, 23, 42, .06);
  color: #7d8a9e;
  font-size: inherit;
}
.landing-page .hero-box { min-height: 430px; }
.landing-page .feature-box { min-height: 330px; }
.landing-page .ph-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 36px 24px; text-align: center;
}
.landing-page .ph-icon { width: 78px; height: 78px; display: block; }
.landing-page .ph-text { font-size: 15px; font-weight: 600; color: #7f8da2; letter-spacing: .6px; }
.landing-page .ph-hint { font-size: 12px; color: #a5b1c4; }

/* 4) 维护模式：整页毛玻璃 + 居中提示卡 */
.site-maint-overlay {
  position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(244, 247, 251, .62);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
}
.site-maint-card {
  width: min(430px, 92vw); background: #fff; border-radius: 20px; padding: 34px 30px 28px;
  box-shadow: 0 26px 64px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06);
  text-align: center; animation: ptwMaintPop .3s cubic-bezier(.22, .9, .3, 1) both;
}
.site-maint-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef4ff, #f3efff);
  color: #5b8def; font-size: 24px; line-height: 1;
}
.site-maint-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #1e293b; }
.site-maint-card p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.75; color: #64748b; }
.site-maint-btn {
  height: 38px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(37, 99, 235, .26);
}
@keyframes ptwMaintPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
  .landing-page .nav { padding: 12px 16px; }
  .landing-page .hero-fx::before { background-size: 10px 10px; opacity: .5; }
  .landing-page .hero-glow { width: min(92vw, 460px); height: min(70vw, 350px); filter: blur(46px); }
  .landing-page .header .hero-trust { font-size: 11.5px; margin-top: 16px; }
  .landing-page .hero-box { min-height: 300px; }
  .landing-page .feature-box { min-height: 230px; }
  .landing-page .ph-icon { width: 62px; height: 62px; }
  .landing-page .ph-text { font-size: 14px; }
  .site-maint-card { padding: 28px 22px 22px; }
}
