/* ==========================================================
 * 玄武GEO 落地页/登录页独立布局样式
 * 文件路径：public/assets/css/landing-layout.css（建议）
 * 与 landing-theme.css 变量配套使用
 * 仅作用于 welcome.blade / login.blade / layouts.landing
 * ========================================================== */

/* =========================
 * 1. 母版布局
 * ========================= */
.landing-wrap {
  width: 100%;
  min-height: 100vh;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* =========================
 * 2. 导航栏
 * ========================= */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.35s ease;
}

.landing-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.landing-nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.landing-nav .nav-menu {
  display: flex;
  gap: 28px;
}

.landing-nav .nav-link {
  font-size: 15px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.landing-nav .nav-link:hover {
  color: var(--color-text-primary);
}

.landing-nav .btn-login {
  padding: 8px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
 * 3. Hero 首屏
 * ========================= */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px var(--space-sm) var(--space-xl);
  text-align: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(127, 119, 221, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.14) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.btn-hero {
  composes: btn-gradient; /* 如不支持，复制如下 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(83, 74, 183, 0.4);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* =========================
 * 4. 模型板块
 * ========================= */
.models-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg-dark);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text-primary);
}

.section-desc {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  transition: all 0.3s ease;
}

.model-card:hover {
  background: var(--color-bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.model-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(83, 74, 183, 0.18);
}

/* 真实官方 logo 图片：白圆底 + 内边距 + 等比缩放 */
.model-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
  display: block;
}

.model-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.model-tag {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* =========================
 * 5. 核心优势板块
 * ========================= */
.advantages-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg-dark-2);
}

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

.advantage-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(127, 119, 221, 0.3);
}

.advantage-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--color-primary-light);
}

.advantage-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.advantage-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* =========================
 * 6. 资讯扩展区
 * ========================= */
.news-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg-dark);
}

.news-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card-placeholder {
  height: 140px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* =========================
 * 7. 页脚
 * ========================= */
.landing-footer {
  padding: 32px 0;
  text-align: center;
  background: var(--color-bg-dark-2);
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 13px;
}

.landing-footer .footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.landing-footer a {
  color: var(--color-text-secondary);
}

.landing-footer a:hover {
  color: var(--color-primary-light);
}

.link-sep { opacity: 0.4; }

/* =========================
 * 8. 登录页布局
 * ========================= */
.login-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-login);
}

.login-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--gradient-login-brand);
  color: #fff;
}

.brand-content { text-align: center; }

.brand-logo {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-slogan {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.brand-slogan-sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.88;
  margin-top: 12px;
  max-width: 360px;
}

.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.form-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  background: var(--color-bg-white);
  box-shadow: var(--shadow-form);
}

.form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--color-text-dark);
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  color: var(--color-text-dark-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-md);
  background: #FAFBFC;
  color: var(--color-text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-border-input-focus);
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.15);
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-input { padding-right: 42px; }

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-dark-secondary);
  transition: background 0.2s, color 0.2s;
}

.toggle-password:hover {
  background: rgba(83, 74, 183, 0.08);
  color: var(--color-primary);
}

.toggle-password svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.toggle-password .eye-open { display: none; }
.toggle-password .eye-close { display: block; }
.toggle-password.showing .eye-open { display: block; }
.toggle-password.showing .eye-close { display: none; }

.checkbox-group { display: flex; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-dark-secondary);
  cursor: pointer;
}

.checkbox-label a { color: var(--color-text-link); text-decoration: none; }

.btn-submit {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(83, 74, 183, 0.35);
}

.btn-submit:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.form-agreement-below {
  margin-top: 18px;
  text-align: center;
}

.checkbox-label-agreement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-dark-secondary);
  cursor: pointer;
}

.checkbox-label-agreement input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-label-agreement a {
  color: var(--color-text-link);
  text-decoration: none;
}

.checkbox-label-agreement a:hover {
  text-decoration: underline;
}

.alert-error {
  background: #FCEBEB;
  border-left: 4px solid var(--color-text-error);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  color: var(--color-text-error);
  font-size: 13px;
}

.login-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px 0;
  text-align: center;
  color: var(--color-text-dark-secondary);
  font-size: 12px;
}

/* =========================
 * 9. 响应式
 * ========================= */
@media (max-width: 900px) {
  .advantages-grid,
  .news-placeholder {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title { font-size: 40px; }
}

@media (max-width: 640px) {
  .landing-nav .nav-menu { display: none; }
  .hero-title { font-size: 32px; }
  .advantages-grid,
  .news-placeholder,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .login-wrapper {
    flex-direction: column-reverse;
  }
  .login-brand,
  .login-form-section {
    flex: none;
  }
  .login-brand {
    padding: 36px 24px;
  }
  .login-form-section {
    padding: 36px 24px;
  }
  .form-card {
    padding: 28px 24px;
    box-shadow: none;
  }
  .login-footer {
    position: static;
    padding: 24px 0;
  }
}
