/* ============================================================
   未登录落地页样式（原有 ljzhome.cn 风格）
   ============================================================ */

/* 落地页容器 */
.landing-page {
  display: none;
  position: relative;
  min-height: 100vh;
}
.landing-page.active {
  display: block;
}

/* 背景图 */
.landing-bg {
  position: relative;
  height: 100vh;
  background-image: url('/assets/bizhi.jpeg');
  background-size: cover;
  background-position: center;
}

/* 半透明覆盖层 */
.landing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ========== 右上角登录按钮 ========== */
.landing-login-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.landing-login-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ========== 书签网格 ========== */
.landing-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
  max-width: 700px;
  width: 100%;
  padding: 0 20px;
}

@media (max-width: 600px) {
  .landing-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.landing-nav a {
  display: inline-block;
  padding: 10px 0;
  color: white;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.15);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

.landing-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== 搜索框 ========== */
.landing-search {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 460px;
  padding: 0 20px;
}

.landing-search input[type="text"] {
  padding: 12px 18px;
  font-size: 15px;
  flex: 1;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-right: none;
  border-radius: 25px 0 0 25px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
}
.landing-search input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.landing-search input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
}

.landing-search button {
  padding: 12px 22px;
  font-size: 15px;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-left: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  white-space: nowrap;
}
.landing-search button:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* ============================================================
   登录弹窗（覆盖在落地页之上）
   ============================================================ */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.login-modal {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  padding: 36px 32px 28px;
  border-radius: 18px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.25s ease;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}
.login-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

.login-modal-logo {
  text-align: center;
  color: #4f46e5;
  margin-bottom: 4px;
}

.login-modal-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.login-modal-subtitle {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.login-modal-hint {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 14px;
}
.login-modal-hint a {
  color: #4f46e5;
  cursor: pointer;
}

/* ========== 仪表板页面 ========== */
.dashboard-page {
  display: none;
}
.dashboard-page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
