/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
  始终为垂直滚动条预留位置，避免页面切换时（短页 ↔ 长页）
  滚动条出现/消失造成的 ~15px 水平抖动 navbar 与居中内容的位置漂移。
*/
html {
  scrollbar-gutter: stable;
}

/* Hotwire Native 已由 UIKit 管理可视区域和滚动条，不预留桌面滚动条槽。 */
html:has(body.hotwire-native) {
  scrollbar-gutter: auto;
}

.hotwire-native-main {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* 概览隐藏原生导航栏，viewport-fit=cover 下由网页避开状态栏。 */
body.hotwire-native .native-dashboard {
  padding-top: env(safe-area-inset-top);
}

/* iOS 聚焦小字号表单时会放大 WebView；原生容器内统一保持可读字号。 */
body.hotwire-native input,
body.hotwire-native select,
body.hotwire-native textarea {
  font-size: 16px;
}

/* 分组是横向可滑动组件，但不显示浏览器式滚动条。 */
.native-scroll-strip {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.native-scroll-strip::-webkit-scrollbar {
  display: none;
}

/* 游客首页：用抽象轨道和探测节点表达网络观测，不依赖远程图片资源。 */
.native-check-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: calc(100% + 2rem);
  min-height: 100svh;
  margin: -1rem;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 102% -4%, color-mix(in oklch, var(--color-primary) 22%, transparent) 0, transparent 36%),
    radial-gradient(circle at -16% 58%, color-mix(in oklch, var(--color-info) 11%, transparent) 0, transparent 31%),
    linear-gradient(145deg, color-mix(in oklch, var(--color-base-100) 96%, var(--color-primary) 4%), var(--color-base-200));
}

@supports (min-height: 100dvh) {
  .native-check-stage {
    min-height: 100dvh;
  }
}

.native-check-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.native-check-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(color-mix(in oklch, var(--color-base-content) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--color-base-content) 4%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.native-check-map {
  position: absolute;
  top: -5rem;
  left: -4.5rem;
  width: calc(100% + 9rem);
  max-width: none;
  color: color-mix(in oklch, var(--color-primary) 36%, transparent);
  opacity: 0.72;
}

.native-check-mark {
  border: 1px solid color-mix(in oklch, var(--color-primary) 22%, transparent);
  background: color-mix(in oklch, var(--color-primary) 13%, var(--color-base-100));
  box-shadow:
    0 12px 28px color-mix(in oklch, var(--color-primary) 14%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 42%, transparent);
}

.native-check-console {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--color-base-content) 10%, transparent);
  border-radius: 1.6rem;
  background: color-mix(in oklch, var(--color-base-100) 84%, transparent);
  box-shadow:
    0 18px 42px color-mix(in oklch, black 12%, transparent),
    inset 0 1px 0 color-mix(in oklch, white 38%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.native-check-action {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 24px color-mix(in oklch, var(--color-primary) 22%, transparent);
}

.native-check-example {
  border-radius: 0.25rem;
}

.native-check-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 24%) 48%, transparent 66%);
  transform: translateX(-135%);
  animation: native-check-shimmer 4.8s ease-in-out infinite;
}

.native-check-live-dot {
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-primary) 45%, transparent);
  animation: native-check-live 2.2s ease-out infinite;
}

.native-check-orbit {
  transform-origin: 407px 126px;
  animation: native-check-orbit 24s linear infinite;
}

.native-check-signal {
  animation: native-check-signal 13s linear infinite;
}

.native-check-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: native-check-node 3.2s ease-in-out infinite;
}

.native-check-node-b { animation-delay: -0.8s; }
.native-check-node-c { animation-delay: -1.7s; }
.native-check-node-d { animation-delay: -2.4s; }

@keyframes native-check-orbit {
  to { transform: rotate(360deg); }
}

@keyframes native-check-signal {
  to { stroke-dashoffset: -120; }
}

@keyframes native-check-node {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.65); }
}

@keyframes native-check-live {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes native-check-shimmer {
  0%, 64% { transform: translateX(-135%); }
  82%, 100% { transform: translateX(135%); }
}

@media (prefers-reduced-motion: reduce) {
  .native-check-orbit,
  .native-check-signal,
  .native-check-node,
  .native-check-live-dot,
  .native-check-action::after {
    animation: none;
  }
}

@media (max-width: 359px) {
  .native-check-stage {
    padding-inline: 1rem;
  }

  .native-check-hero h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 640px) {
  .native-check-stage {
    width: calc(100% + 3rem);
    margin-inline: -1.5rem;
  }
}

/* ========================================
   Landing Page
   ======================================== */

.landing-hero {
  background: #0B0F1A;
}

.landing-footer {
  background: #0B0F1A;
}

.landing-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}

.landing-input-glow {
  transition: box-shadow 0.5s ease;
}

.landing-input-glow:focus-within {
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.25),
    0 0 60px -15px rgba(16, 185, 129, 0.15);
}

/* --- Floating orbs --- */
@keyframes lp-float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.94); }
}
@keyframes lp-float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-35px, 25px) scale(1.12); }
  70%       { transform: translate(22px, -18px) scale(0.9); }
}
.lp-orb-1 { animation: lp-float-orb-1 14s ease-in-out infinite; }
.lp-orb-2 { animation: lp-float-orb-2 18s ease-in-out infinite; }

/* --- Hero entrance --- */
@keyframes lp-hero-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.lp-hero-line-1 { animation: lp-hero-in 0.7s cubic-bezier(0.2, 0, 0.2, 1) 0.1s  both; }
.lp-hero-line-2 { animation: lp-hero-in 0.7s cubic-bezier(0.2, 0, 0.2, 1) 0.25s both; }
.lp-hero-sub    { animation: lp-hero-in 0.7s cubic-bezier(0.2, 0, 0.2, 1) 0.4s  both; }
.lp-hero-form   { animation: lp-hero-in 0.7s cubic-bezier(0.2, 0, 0.2, 1) 0.55s both; }
.lp-hero-trust  { animation: lp-hero-in 0.6s cubic-bezier(0.2, 0, 0.2, 1) 0.75s both; }

/* --- Scroll reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.64s; }

/* --- Step number spin-pop --- */
.lp-step-num {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-step-num.revealed {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* --- Step connecting line draw --- */
.lp-step-line {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.lp-step-line.revealed {
  transform: scaleX(1);
}

/* --- Pro card glow pulse --- */
@keyframes lp-pro-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50%       { box-shadow: 0 0 35px -6px rgba(16, 185, 129, 0.3),
                          inset 0 0 20px -10px rgba(16, 185, 129, 0.05); }
}
.lp-pro-card { animation: lp-pro-glow 3.5s ease-in-out infinite; }

/* --- Pain point icon hover bounce --- */
.lp-pain-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-pain-card:hover .lp-pain-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* --- Button shimmer sweep --- */
.lp-btn-shimmer {
  position: relative;
  overflow: hidden;
}
.lp-btn-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
}
.lp-btn-shimmer:hover::after {
  animation: lp-btn-shine 0.55s ease;
}
@keyframes lp-btn-shine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

/* --- Channel badge wave-in --- */
.lp-channel-badge {
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  transition: opacity 0.4s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-channel-badge.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Pain points slide carousel --- */
.lp-slide-wrapper {
  display: grid;
}
.lp-slide-wrapper > * {
  grid-area: 1 / 1;
}

@keyframes lp-slide-show-1 {
  0%, 42%  { opacity: 1; }
  52%, 92% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes lp-slide-show-2 {
  0%, 42%  { opacity: 0; }
  52%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
.lp-slide-1 { animation: lp-slide-show-1 10s ease-in-out infinite; }
.lp-slide-2 { animation: lp-slide-show-2 10s ease-in-out infinite; }

@keyframes lp-pill-1 {
  0%, 42%  { width: 1.5rem; opacity: 1; }
  52%, 92% { width: 0.4rem; opacity: 0.35; }
  100%     { width: 1.5rem; opacity: 1; }
}
@keyframes lp-pill-2 {
  0%, 42%  { width: 0.4rem; opacity: 0.35; }
  52%, 92% { width: 1.5rem; opacity: 1; }
  100%     { width: 0.4rem; opacity: 0.35; }
}
.lp-pill-1 { animation: lp-pill-1 10s ease-in-out infinite; }
.lp-pill-2 { animation: lp-pill-2 10s ease-in-out infinite; }

/* --- Browser error mock --- */
.lp-browser-mock {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.13), 0 6px 20px rgba(0,0,0,0.08);
}

@keyframes lp-shield-shake {
  0%, 75%, 100% { transform: rotate(0deg); }
  77%  { transform: rotate(-5deg) scale(1.06); }
  79%  { transform: rotate(5deg)  scale(1.06); }
  81%  { transform: rotate(-4deg); }
  83%  { transform: rotate(4deg); }
  85%  { transform: rotate(-2deg); }
  87%  { transform: rotate(2deg); }
  89%  { transform: rotate(0deg); }
}

.lp-error-shield {
  animation: lp-shield-shake 5s ease-in-out infinite;
  animation-delay: 1.5s;
  transform-origin: center bottom;
  display: inline-block;
}

/* --- Notification cards (slide from right) --- */
.lp-notif-card {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.lp-notif-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

@keyframes lp-live-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.6); }
}
.lp-live-dot   { animation: lp-live-dot 2s ease-in-out infinite; }
.lp-live-dot-2 { animation: lp-live-dot 2s ease-in-out 0.3s  infinite; }
.lp-live-dot-3 { animation: lp-live-dot 2s ease-in-out 0.6s  infinite; }

/* ========================================
   End Landing Page
   ======================================== */

/* ========================================
   Landing Page A — product-led light system
   ======================================== */

.landing-a {
  background: #ffffff;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.landing-a-hero {
  background:
    radial-gradient(circle at 83% 18%, rgba(16, 185, 129, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 72%, #f7faf8 100%);
}

.landing-a-grid,
.landing-a-glow,
.landing-free-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-a-grid {
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.landing-a-glow {
  background: radial-gradient(circle at 70% 48%, rgba(16, 185, 129, 0.08), transparent 25rem);
}

.landing-product-window {
  box-shadow:
    0 34px 80px -32px rgba(15, 23, 42, 0.26),
    0 14px 34px -20px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  transform: perspective(1600px) rotateY(-1.4deg) rotateX(0.5deg);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease;
}

.landing-product-window:hover {
  transform: perspective(1600px) rotateY(0) rotateX(0) translateY(-3px);
  box-shadow:
    0 40px 90px -32px rgba(15, 23, 42, 0.28),
    0 16px 38px -18px rgba(5, 150, 105, 0.16);
}

.landing-mini-bar {
  animation: landing-bar-breathe 3.6s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.landing-mini-bar:nth-child(3n) { animation-delay: 180ms; }
.landing-mini-bar:nth-child(4n) { animation-delay: 360ms; }

@keyframes landing-bar-breathe {
  from { opacity: 0.62; transform: scaleY(0.82); }
  to { opacity: 1; transform: scaleY(1); }
}

.landing-feature-card {
  box-shadow: 0 18px 44px -36px rgba(15, 23, 42, 0.34);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 26px 52px -34px rgba(5, 150, 105, 0.24);
}

.landing-ready-panel {
  background:
    radial-gradient(circle at 82% 30%, rgba(16, 185, 129, 0.13), transparent 22rem),
    linear-gradient(135deg, #f8fffc 0%, #f1fbf6 100%);
  box-shadow: 0 24px 60px -46px rgba(5, 150, 105, 0.42);
}

.landing-ready-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(rgba(5, 150, 105, 0.15) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 18%, black 72%);
  pointer-events: none;
}

.landing-ready-console {
  box-shadow:
    0 26px 52px -34px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.landing-ready-signal {
  animation: landing-ready-rise 3.4s ease-in-out var(--ready-delay) infinite;
}

.landing-ready-dot {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes landing-ready-rise {
  0%, 72%, 100% { transform: translateY(0); border-color: rgb(226 232 240); }
  82% { transform: translateY(-3px); border-color: rgba(16, 185, 129, 0.42); }
}

.landing-scenario-stage {
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.09), transparent 25rem),
    radial-gradient(circle at 82% 76%, rgba(14, 165, 233, 0.045), transparent 26rem),
    #f7faf8;
}

.landing-scenario-grid,
.landing-scenario-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-scenario-grid {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.landing-scenario-glow {
  background: linear-gradient(115deg, transparent 30%, rgba(16, 185, 129, 0.055) 50%, transparent 70%);
  transform: translateX(-70%);
  animation: landing-scenario-sweep 9s ease-in-out infinite;
}

.landing-scenario-card {
  border: 1px solid rgba(148, 163, 184, 0.30);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86));
  box-shadow: 0 28px 70px -46px rgba(15, 23, 42, 0.34), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(14px);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.landing-scenario-card::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.55), transparent);
  opacity: 0.65;
}

.landing-scenario-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 34px 80px -44px rgba(15, 23, 42, 0.38), 0 0 45px -30px rgba(16, 185, 129, 0.4);
}

.landing-scenario-card--featured {
  background:
    radial-gradient(circle at 16% 82%, rgba(245, 158, 11, 0.07), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.90));
}

.landing-scenario-scan {
  position: absolute;
  inset: -30% 0 auto;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(52, 211, 153, 0.07), transparent);
  animation: landing-card-scan 6s linear infinite;
}

.certificate-countdown {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 9999px;
  background: conic-gradient(var(--certificate-ring-color) var(--certificate-progress), rgba(148, 163, 184, 0.18) var(--certificate-progress) 360deg);
  box-shadow: 0 0 42px -18px var(--certificate-glow-color);
}

.certificate-countdown::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #07111d;
}

.certificate-countdown__center {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.certificate-countdown__value {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.certificate-countdown__label {
  margin-top: 0.38rem;
  color: var(--certificate-ring-color);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.certificate-countdown--light {
  box-shadow:
    0 0 36px -18px var(--certificate-glow-color),
    0 8px 20px -16px rgba(15, 23, 42, 0.28);
}

.certificate-countdown--light::before {
  border-color: rgba(148, 163, 184, 0.15);
  background: #ffffff;
}

.certificate-countdown--light .certificate-countdown__value {
  color: #0f172a;
}

.certificate-countdown--small {
  width: 4.5rem;
  height: 4.5rem;
}

.certificate-countdown--small .certificate-countdown__value { font-size: 1.25rem; }
.certificate-countdown--small .certificate-countdown__label { font-size: 0.43rem; }

.certificate-countdown--medium {
  width: 7.5rem;
  height: 7.5rem;
}

.certificate-countdown--medium .certificate-countdown__value { font-size: 2rem; }
.certificate-countdown--medium .certificate-countdown__label { font-size: 0.58rem; }

.certificate-countdown--large {
  width: 9rem;
  height: 9rem;
}

.certificate-countdown--large .certificate-countdown__value { font-size: 2.5rem; }
.certificate-countdown--large .certificate-countdown__label { font-size: 0.65rem; }

.landing-signal-dot,
.landing-alert-pulse {
  animation: landing-signal-pulse 2s ease-in-out infinite;
}

.landing-signal-dot {
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.85);
}

.landing-scenario-flow {
  background: linear-gradient(90deg, #f87171, #fbbf24 50%, #34d399);
  opacity: 0.35;
}

@keyframes landing-scenario-sweep {
  0%, 18% { transform: translateX(-70%); }
  68%, 100% { transform: translateX(70%); }
}

@keyframes landing-card-scan {
  from { transform: translateY(0); }
  to { transform: translateY(430%); }
}

@keyframes landing-signal-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.landing-incident-panel {
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.28);
}

.landing-incident-line::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 4.25rem;
  width: 1px;
  background: linear-gradient(to bottom, #fecaca, #cbd5e1 48%, #a7f3d0);
}

.landing-free-panel {
  box-shadow: 0 30px 70px -45px rgba(5, 150, 105, 0.30);
}

.landing-free-grid {
  opacity: 0.48;
  background-image: radial-gradient(circle, rgba(5, 150, 105, 0.16) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, black 65%, black);
}

.landing-ios-stage {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 44%, rgba(16, 185, 129, 0.19), transparent 22rem),
    radial-gradient(circle at 13% 92%, rgba(14, 165, 233, 0.10), transparent 24rem),
    linear-gradient(145deg, #101b2d 0%, #07111d 58%, #050b13 100%);
  box-shadow:
    0 45px 110px -60px rgba(2, 6, 23, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-ios-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 48%, black, transparent 72%);
  pointer-events: none;
}

.landing-ios-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(52, 211, 153, 0.14);
  border-radius: 9999px;
  pointer-events: none;
}

.landing-ios-orbit--one {
  top: 8%;
  right: -9rem;
  width: 38rem;
  height: 38rem;
  animation: landing-ios-orbit 24s linear infinite;
}

.landing-ios-orbit--two {
  right: -2rem;
  bottom: -11rem;
  width: 28rem;
  height: 28rem;
  border-style: dashed;
  animation: landing-ios-orbit 32s linear infinite reverse;
}

.landing-ios-live {
  box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.5);
  animation: landing-ios-live 2.2s ease-out infinite;
}

.landing-ios-visual::before {
  content: "";
  position: absolute;
  inset: 16% 7% 8%;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.17);
  filter: blur(52px);
  pointer-events: none;
}

.landing-ios-phone {
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 480ms ease;
}

.landing-ios-visual:hover .landing-ios-phone {
  transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
}

.landing-ios-signal-card {
  transition: transform 320ms ease, border-color 320ms ease;
}

.landing-ios-signal-card--top {
  animation: landing-ios-card-float 4.6s ease-in-out infinite;
}

.landing-ios-signal-card--bottom {
  animation: landing-ios-card-float 5.2s ease-in-out -1.7s infinite;
}

@keyframes landing-ios-orbit {
  to { transform: rotate(360deg); }
}

@keyframes landing-ios-live {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes landing-ios-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 640px) {
  .landing-incident-line::before {
    left: 5rem;
  }
}

@media (max-width: 639px) {
  .landing-product-window {
    transform: none;
  }

  .landing-ios-phone {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-a *,
  .landing-a *::before,
  .landing-a *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .landing-a .reveal-on-scroll,
  .landing-a .lp-step-num,
  .landing-a .lp-step-line,
  .landing-a .lp-channel-badge,
  .landing-a .lp-notif-card {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   End Landing Page A
   ======================================== */

/*
  登录/找回密码页面自定义样式
  颜色全部基于 DaisyUI 主题变量，Web 端使用账户偏好，iOS 跟随系统。
*/
.auth-page {
  color: var(--color-base-content);
  background: var(--color-base-200);
}

.auth-page .landing-grid {
  background-image:
    linear-gradient(color-mix(in oklch, var(--color-base-content) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--color-base-content) 3%, transparent) 1px, transparent 1px);
}

.auth-card {
  background: color-mix(in oklch, var(--color-base-100) 88%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-base-content) 10%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/*
  Hotwire Native 已经提供系统导航栏，认证内容应从 WebView 顶部自然开始。
  不再按整块桌面视口垂直居中，否则在 iPhone 上会产生一大段无意义留白。
*/
body.hotwire-native .auth-layout-main {
  min-height: 100svh;
  align-items: flex-start;
  padding: clamp(1.5rem, 6vh, 3rem) 1.25rem max(2rem, env(safe-area-inset-bottom));
}

body.hotwire-native .auth-shell {
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
}

body.hotwire-native .auth-heading {
  margin-bottom: 1.5rem;
  text-align: left;
}

body.hotwire-native .auth-brand {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.875rem;
}

body.hotwire-native .auth-heading h1 {
  margin-bottom: 0.375rem;
  font-size: 1.625rem;
  line-height: 1.2;
}

body.hotwire-native .auth-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

@supports (min-height: 100dvh) {
  body.hotwire-native .auth-layout-main {
    min-height: 100dvh;
  }
}

.login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  min-height: 100vh;
  display: flex;
  width: 100%;
}

.login-form-container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: color-mix(in oklch, var(--color-base-100) 85%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-base-content) 8%, transparent);
  box-shadow: 0 8px 32px color-mix(in oklch, black 30%, transparent);
  position: relative;
  z-index: 20;
}

.login-input {
  transition: all 0.3s ease;
}

.login-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-primary) 15%, transparent);
}

.login-button {
  background: var(--color-primary);
  color: var(--color-primary-content);
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in oklch, var(--color-primary) 30%, transparent);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-form-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Flash 消息动画效果 */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.flash-message {
  animation: slideInDown 0.4s ease-out;
  transition: all 0.3s ease;
}

.flash-message:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.flash-success {
  background-color: color-mix(in oklch, var(--color-success) 10%, var(--color-base-100));
  border-left: 4px solid var(--color-success);
}

.flash-error {
  background-color: color-mix(in oklch, var(--color-error) 10%, var(--color-base-100));
  border-left: 4px solid var(--color-error);
}

.flash-warning {
  background-color: color-mix(in oklch, var(--color-warning) 10%, var(--color-base-100));
  border-left: 4px solid var(--color-warning);
}

/* 信息消息样式 */
.flash-info {
  background-color: color-mix(in oklch, var(--color-info) 10%, var(--color-base-100));
  border-left: 4px solid var(--color-info);
}

.login-page .hidden.lg\\:flex {
  animation: slideInLeft 0.8s ease-out;
}

/* 桌面端标题：移动端隐藏，桌面端显示 */
.desktop-title {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-title {
    display: block;
  }
}

.desktop-title h2,
.desktop-title p {
  color: white;
}

.desktop-title p {
  opacity: 0.8;
}

/* 确保移动端标题显示 */
.mobile-title {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-title {
    display: none !important;
  }
}

/* 响应式优化 */
@media (max-width: 1024px) {
  .login-form-container {
    margin: 1rem;
    padding: 2rem;
  }
}

.input-icon {
  color: color-mix(in oklch, var(--color-base-content) 40%, transparent);
  transition: color 0.3s ease;
}

.login-input:focus + .input-icon {
  color: var(--color-primary);
}

.custom-checkbox {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid color-mix(in oklch, var(--color-base-content) 25%, transparent);
  border-radius: 0.25rem;
  background: var(--color-base-200);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.custom-checkbox:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary-content);
  font-size: 0.75rem;
  font-weight: bold;
}

.login-link {
  position: relative;
  transition: color 0.3s ease;
}

.login-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.login-link:hover::after {
  width: 100%;
}

/* 淡入动画 */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Line clamp 样式支持 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HTTPS证书过期状态背景色样式 */
.certificate-expiry-bg {
  position: relative;
  transition: all 0.3s ease;
}

/*
  使用 DaisyUI 语义色变量（--color-error/warning/success）+ color-mix 派生背景与阴影，
  保证切换主题（含暗色）时整体跟随，不再有硬编码 hex 色穿帮。
*/
.certificate-expired {
  background-color: color-mix(in oklch, var(--color-error) 6%, var(--color-base-100));
  border-left: 4px solid var(--color-error);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--color-error) 10%, transparent);
}

.certificate-expired:hover {
  background-color: color-mix(in oklch, var(--color-error) 10%, var(--color-base-100));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-error) 15%, transparent);
}

.certificate-expiring {
  background-color: color-mix(in oklch, var(--color-warning) 6%, var(--color-base-100));
  border-left: 4px solid var(--color-warning);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--color-warning) 10%, transparent);
}

.certificate-expiring:hover {
  background-color: color-mix(in oklch, var(--color-warning) 10%, var(--color-base-100));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-warning) 15%, transparent);
}

.certificate-normal {
  background-color: color-mix(in oklch, var(--color-success) 6%, var(--color-base-100));
  border-left: 4px solid var(--color-success);
  box-shadow: 0 1px 3px color-mix(in oklch, var(--color-success) 10%, transparent);
}

.certificate-normal:hover {
  background-color: color-mix(in oklch, var(--color-success) 10%, var(--color-base-100));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-success) 15%, transparent);
}

/* 状态指示器动画 */
.status-indicator {
  position: relative;
  overflow: hidden;
}

.status-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.certificate-expired .status-indicator::before {
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-error) 12%, transparent), transparent);
}

.certificate-expiring .status-indicator::before {
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-warning) 12%, transparent), transparent);
}

.certificate-normal .status-indicator::before {
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--color-success) 12%, transparent), transparent);
}

/* 悬停时显示光泽效果 */
.certificate-expiry-bg:hover .status-indicator::before {
  left: 100%;
}

/* 响应式优化 */
@media (max-width: 640px) {
  .certificate-expired,
  .certificate-expiring,
  .certificate-normal {
    border-left-width: 3px;
  }
}

/* 高亮动画样式：基于 DaisyUI info 色，主题切换时跟随 */
@keyframes highlight-pulse {
  0% {
    background-color: color-mix(in oklch, var(--color-info) 10%, transparent);
    box-shadow: 0 0 0 0 color-mix(in oklch, var(--color-info) 40%, transparent);
  }
  50% {
    background-color: color-mix(in oklch, var(--color-info) 20%, transparent);
    box-shadow: 0 0 0 8px color-mix(in oklch, var(--color-info) 10%, transparent);
  }
  100% {
    background-color: color-mix(in oklch, var(--color-info) 10%, transparent);
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes highlight-glow {
  0%, 100% {
    border-color: color-mix(in oklch, var(--color-info) 30%, transparent);
  }
  50% {
    border-color: color-mix(in oklch, var(--color-info) 80%, transparent);
  }
}

.highlight-updated {
  animation: highlight-pulse 2s ease-in-out, highlight-glow 2s ease-in-out;
  border: 2px solid color-mix(in oklch, var(--color-info) 30%, transparent);
  border-radius: 8px;
}

.highlight-updated.animation-complete {
  background-color: color-mix(in oklch, var(--color-info) 5%, transparent);
  border-color: color-mix(in oklch, var(--color-info) 20%, transparent);
  transition: all 0.3s ease;
}
