/* ==========================================================================
   nouslove Landing — 仿新站 (103.85.224.94 / world-firend-main LandingView+LoginView)
   Indigo→Violet 品牌渐变 · 毛玻璃导航 · Hero · 数据条 · 三栏卖点 · 登录/注册 Modal
   ========================================================================== */
:root {
  --nl-brand-50: #eef2ff;
  --nl-brand-100: #e0e7ff;
  --nl-brand-400: #818cf8;
  --nl-brand-500: #6366f1;
  --nl-brand-600: #4f46e5;
  --nl-brand-700: #4338ca;
  --nl-accent: #ec4899;
  --nl-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --nl-grad-soft: linear-gradient(135deg, #eef2ff 0%, #fae8ff 100%);
  --nl-text: #0f172a;
  --nl-text-2: #475569;
  --nl-text-3: #94a3b8;
  --nl-radius: 12px;
  --nl-radius-lg: 16px;
  --nl-radius-pill: 999px;
  --nl-shadow-sm: 0 1px 2px rgb(15 23 42 / 4%);
  --nl-shadow-md: 0 6px 20px rgb(79 70 229 / 12%);
  --nl-shadow-lg: 0 18px 48px rgb(79 70 229 / 18%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--nl-text);
  -webkit-font-smoothing: antialiased;
  background: #fafbff;
  overflow-x: hidden;
}
a { text-decoration: none; }
img { border: 0; }

/* ---------------- 顶部导航（毛玻璃吸顶） ---------------- */
.land-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 max(24px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(15 23 42 / 6%);
  color: var(--nl-text);
  position: sticky;
  top: 0;
  z-index: 20;
}
.land-logo { display: flex; align-items: center; }
.land-logo-img { height: 34px; width: auto; display: block; }
.land-logo-mark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--nl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 语言切换（保留老站 head_lang JS 依赖的结构，套新样式） */
.land-lang { position: relative; }
#head_lang_txt {
  font-size: 13px;
  color: var(--nl-text-2);
  cursor: pointer;
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}
.head_lang_arrow {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  position: absolute;
  right: 12px;
  top: 15px;
  pointer-events: none;
}
#head_lang_viewer {
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: var(--nl-shadow-md);
  padding: 6px;
  width: 150px;
  display: none;
  z-index: 30;
}
#head_lang_viewer.open { display: block; }
.head_lang_item {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--nl-text-2);
  cursor: pointer;
}
.head_lang_item:hover { background: var(--nl-brand-50); color: var(--nl-brand-600); }
.head_lang_remark { display: none; }

/* 导航按钮 */
.land-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.land-btn-solid {
  background: var(--nl-grad);
  color: #fff;
  box-shadow: var(--nl-shadow-md);
}
.land-btn-solid:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--nl-shadow-lg); }
.land-btn-ghost {
  background: transparent;
  color: var(--nl-text);
  border: 1px solid #e2e8f0;
}
.land-btn-ghost:hover { background: #f1f5f9; border-color: #cbd5e1; }
.land-btn-outline {
  background: #fff;
  color: var(--nl-brand-600);
  border: 1.5px solid var(--nl-brand-500);
}
.land-btn-outline:hover { background: var(--nl-brand-50); }
.land-btn-lg { padding: 13px 32px; font-size: 15px; }

/* ---------------- Hero ---------------- */
.land-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 64px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgb(217 70 239 / 14%), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgb(99 102 241 / 18%), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  overflow: hidden;
}
.land-hero-inner { max-width: 960px; text-align: center; }
.land-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid rgb(99 102 241 / 25%);
  color: var(--nl-brand-600);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--nl-shadow-sm);
}
.land-eyebrow svg { vertical-align: -2px; margin-right: 4px; }
.land-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #0f172a 0%, #4338ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--nl-text-2);
  line-height: 1.65;
  margin: 0 auto 32px;
  max-width: 780px;
}
.land-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.land-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid rgb(15 23 42 / 6%);
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: var(--nl-shadow-sm);
}
.land-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.land-stats strong { font-size: 20px; font-weight: 800; color: var(--nl-brand-600); letter-spacing: -0.5px; }
.land-stats span { font-size: 12px; color: var(--nl-text-3); }
.land-stats-div { width: 1px; height: 28px; background: #e2e8f0; }

/* ---------------- 三栏卖点 ---------------- */
.land-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px;
}
.land-feature {
  background: #fff;
  border: 1px solid rgb(15 23 42 / 5%);
  border-radius: var(--nl-radius-lg);
  padding: 32px 26px;
  text-align: left;
  box-shadow: var(--nl-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.land-feature:hover { transform: translateY(-4px); box-shadow: var(--nl-shadow-md); }
.land-feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--nl-grad-soft);
  color: var(--nl-brand-600);
  margin-bottom: 18px;
}
.land-feature-icon svg { width: 26px; height: 26px; }
.land-feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--nl-text); }
.land-feature p { font-size: 14px; color: var(--nl-text-2); margin: 0; line-height: 1.7; }

/* ---------------- 页脚 ---------------- */
.land-foot {
  margin-top: 40px;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  color: rgb(255 255 255 / 60%);
  padding: 28px 16px;
  text-align: center;
}
.land-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 10px;
}
.land-foot-links a { color: rgb(255 255 255 / 72%); font-size: 13px; text-decoration: none; }
.land-foot-links a:hover { color: #fff; }
.land-copy { font-size: 12px; margin: 0; }

/* ==========================================================================
   登录 / 注册 Modal（仿 LoginView：渐变品牌面板 + 白色表单）
   ========================================================================== */
.nl-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 55%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  overflow-y: auto;
  padding: 24px 16px;
}
.nl-modal-mask.open { display: flex; align-items: center; justify-content: center; }
.nl-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgb(79 70 229 / 16%);
  width: 100%;
  max-width: 960px;
  margin: auto;
  overflow: hidden;
  position: relative;
  animation: nlPop 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* 注册为单栏表单 Modal：收窄宽度，消除左右大片空白（登录双栏才用 960px） */
#reg_modal .nl-modal { max-width: 640px; }
@keyframes nlPop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgb(15 23 42 / 6%);
  color: var(--nl-text-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease;
}
.nl-modal-close:hover { background: rgb(15 23 42 / 12%); }

/* 登录双栏卡片（≥768 两栏，移动单栏） */
.auth-card {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .auth-card { grid-template-columns: 380px 1fr; }
}
.auth-aside {
  position: relative;
  background: var(--nl-grad);
  color: #fff;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 220px;
}
.auth-aside-inner { position: relative; z-index: 1; }
.auth-logo-mark {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}
.auth-slogan {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.auth-aside-sub { font-size: 14px; line-height: 1.7; color: rgb(255 255 255 / 85%); margin: 0; }
.auth-blob { position: absolute; border-radius: 50%; background: rgb(255 255 255 / 15%); filter: blur(2px); }
.auth-blob-1 { width: 220px; height: 220px; right: -60px; top: -60px; }
.auth-blob-2 { width: 140px; height: 140px; left: -40px; bottom: -40px; background: rgb(255 255 255 / 12%); }
.auth-form-side { padding: 40px 36px; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 6px; color: var(--nl-text); }
.auth-sub { font-size: 14px; color: var(--nl-text-3); margin: 0 0 28px; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: var(--nl-text-2); margin-bottom: 6px; }
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  color: var(--nl-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.auth-field input:focus {
  border-color: var(--nl-brand-500);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 15%);
}
.auth-submit {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  background: var(--nl-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--nl-shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
/* 覆盖旧 login.css #head_login 的 float:right/height:23px 干扰（防残留引入） */
#head_login.auth-submit {
  float: none;
  height: auto;
  margin-top: 6px;
  margin-left: 0;
}
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--nl-shadow-lg); }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; }
.auth-switch { font-size: 13px; color: var(--nl-brand-600); text-decoration: none; font-weight: 500; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.auth-switch:hover { text-decoration: underline; }
.auth-home { display: block; text-align: center; margin-top: 24px; font-size: 13px; color: var(--nl-text-3); text-decoration: none; cursor: pointer; background: none; border: none; font-family: inherit; }
.auth-home:hover { color: var(--nl-text-2); }

/* ---------------- 注册卡片 ---------------- */
.reg-card { padding: 40px 36px; }
.reg-card-title { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 6px; color: var(--nl-text); }
.reg-card-sub { font-size: 14px; color: var(--nl-text-3); margin: 0 0 26px; }
#reg_form { max-width: 560px; margin: 0 auto; position: relative; }
.reg_main { display: block; }
.reg_caption { font-size: 20px; font-weight: 800; color: var(--nl-text); margin-bottom: 18px; text-align: center; }
.reg_table { width: 100%; border-collapse: collapse; }
.reg_table td { padding: 6px 4px; vertical-align: top; }
.reg_td0 {
  width: 130px;
  font-size: 13px;
  color: var(--nl-text-2);
  font-weight: 600;
  text-align: right;
  padding-right: 12px !important;
  line-height: 40px;
}
.reg_td0 > dl { display: none; }
.reg_td0 .reg_tip { display: none; }
.reg_input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--nl-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.reg_input:focus { border-color: var(--nl-brand-500); box-shadow: 0 0 0 3px rgb(99 102 241 / 15%); }
.reg_table select {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: var(--nl-text);
  background: #fff;
  outline: none;
  margin-right: 8px;
}
.reg_table select:focus { border-color: var(--nl-brand-500); }
#reg_gender1, #reg_gender2 { accent-color: var(--nl-brand-600); }
.reg_table label { font-size: 14px; color: var(--nl-text-2); margin-right: 14px; }
#reg_btn {
  margin-top: 18px;
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  background: var(--nl-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--nl-shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
#reg_btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--nl-shadow-lg); }
.reg_bar { display: none; }
.reg_tip {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #e11d48;
  box-shadow: var(--nl-shadow-md);
  white-space: nowrap;
  top: 6px;
}
.reg_tip_arrow { display: none; }
.reg_tip_txt { display: block; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 767px) {
  .land-nav { gap: 12px; padding: 0 14px; }
  .land-hero { padding: 56px 18px 48px; }
  .land-stats { gap: 14px; padding: 12px 18px; }
  .land-stats strong { font-size: 16px; }
  .auth-form-side { padding: 28px 22px; }
  .auth-aside { padding: 28px 24px; min-height: 0; }
  .auth-slogan { font-size: 20px; }
  .auth-logo-mark { margin-bottom: 14px; }
  .reg-card { padding: 28px 22px; }
}
@media (max-width: 420px) {
  .land-btn-lg { padding: 12px 22px; font-size: 14px; }
  .land-stats-div { display: none; }
}
