/* ========================================
   导航系统 - 样式表（参考祈福导航系统设计）
   ======================================== */

/* ---------- 全局 ---------- */
* { margin:0; padding:0; box-sizing:border-box; }

html { font-size:16px; scroll-behavior:smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background: #1b1f22;
}

/* ---------- 包装层 ---------- */
.wrap {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px 64px;
}

/* ---------- 背景（全局） ---------- */
#app {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
}

#app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: inherit;
  background-attachment: fixed;
  background-size: cover;
}

#app::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(8,18,50,.52), rgba(12,25,65,.4) 50%, rgba(5,12,40,.56));
}

/* ---------- 顶部栏 ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 0 0;
  position: relative;
  z-index: 10;
}

.logo {
  margin-right: auto;
  font-size: 1.4rem;
  font-weight: 300;
  color: #e8eeff;
  letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.logo b {
  font-weight: 600;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bar-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  cursor: pointer;
  transition: .25s;
  text-decoration: none;
  font-weight: 500;
}

.bar-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

.login-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: .25s;
  text-decoration: none;
}

.login-btn:hover { background: rgba(255,255,255,.18); }

.user-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

.um-name { font-weight: 500; }

.um-link {
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: .2s;
  font-size: .85rem;
}

.um-link:hover { background: rgba(255,255,255,.1); color: #fff; }

.clock-digital {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ---------- 英雄区域（时钟+搜索） ---------- */
.hero {
  text-align: center;
  padding: 10px 0 18px;
  position: relative;
  z-index: 10;
}

.clock-main {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 200;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}

.date-display {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .22em;
  margin-top: 6px;
  margin-bottom: 16px;
  font-weight: 400;
}

/* ---------- 搜索框 ---------- */
.search-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
  transition: .3s;
}

.search-form:focus-within {
  background: rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15);
}

.sicon {
  display: flex;
  align-items: center;
  padding-left: 18px;
  font-size: .95rem;
  opacity: .5;
  pointer-events: none;
}

.sinp {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  color: #fff;
  font-size: .88rem;
  font-family: inherit;
  min-width: 0;
  font-weight: 400;
}

.sinp::placeholder { color: rgba(255,255,255,.4); }

.sbtn {
  padding: 0 20px;
  background: rgba(255,255,255,.15);
  border: 0;
  border-left: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 0 50px 50px 0;
  line-height: 1;
}

.sbtn:hover { background: rgba(255,255,255,.28); }

/* ---------- 快捷标签 ---------- */
.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  padding: 5px 14px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50px;
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  text-decoration: none;
  transition: .25s;
  font-weight: 500;
}

.tag:hover {
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

/* ---------- 分类 ---------- */
.sec {
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

.sec-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140,190,255,.9);
  box-shadow: 0 0 16px rgba(100,160,255,.5), 0 0 32px rgba(100,160,255,.2);
  flex-shrink: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(100,160,255,.5), 0 0 32px rgba(100,160,255,.2); }
  50% { box-shadow: 0 0 22px rgba(100,160,255,.7), 0 0 44px rgba(100,160,255,.35); }
}

.sec-title {
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: .1em;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,.15), transparent);
}

/* ---------- 链接网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

/* ---------- 链接卡片 ---------- */
.card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 55%);
  opacity: 1;
  transition: .25s;
  border-radius: 12px;
  pointer-events: none;
}

.card:hover {
  background: rgba(0,0,0,.5);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
}

.card:hover::before { opacity: .5; }

.ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.inf {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.nm {
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.ds {
  display: none;
}

/* ---------- 无结果 ---------- */
.no-result {
  display: none;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,.25);
}
.no-result.show { display: block; }

.nr-icon { font-size: 3rem; margin-bottom: 10px; }
.nr-text { font-size: 1rem; }

/* ---------- 页脚 ---------- */
.foot {
  text-align: center;
  padding: 52px 0 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .12em;
  font-weight: 400;
  position: relative;
  z-index: 10;
}

.foot a {
  color: rgba(79,172,254,.5);
  text-decoration: none;
  transition: color .2s;
}
.foot a:hover { color: rgba(79,172,254,.9); }

/* ---------- 登录覆盖层 ---------- */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.login-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.lc-icon { font-size: 3rem; margin-bottom: 10px; }
.lc-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.lc-sub { font-size: .85rem; color: rgba(255,255,255,.4); margin-bottom: 24px; }

.lc-form input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.lc-form input:focus { border-color: rgba(79,172,254,.4); }
.lc-form input::placeholder { color: rgba(255,255,255,.3); }

.lc-err {
  color: #f5576c;
  font-size: .82rem;
  margin-bottom: 8px;
  min-height: 1.2em;
}

.lc-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,#4facfe,#00f2fe);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  font-family: inherit;
}
.lc-form button:hover { opacity: .85; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .wrap { max-width: 100%; padding: 0 20px 40px; }
  .bar { flex-wrap: wrap; gap: 8px; }
  .bar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .clock-digital { display: none; }
  .clock-main { font-size: 2.8rem; }
  .search-form { max-width: 100%; }
  .sicon { padding-left: 14px; font-size: .9rem; }
  .sinp { padding: 10px 14px; font-size: .85rem; }
  .sbtn { padding: 0 16px; font-size: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .card { padding: 7px 8px; gap: 6px; border-radius: 10px; }
  .ico { width: 22px; height: 22px; font-size: .75rem; }
  .nm { font-size: .7rem; }
  .sec { margin-top: 16px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .card { padding: 6px 7px; gap: 5px; border-radius: 8px; }
  .ico { width: 20px; height: 20px; font-size: .7rem; }
  .nm { font-size: .65rem; }
  .clock-main { font-size: 2.8rem; }
  .hero { padding: 10px 0 16px; }
  .sicon { display: none; }
  .sinp { padding: 10px 16px; }
  .sbtn { padding: 0 16px; }
  .tags { gap: 6px; }
  .tag { padding: 5px 12px; font-size: .7rem; }
  .sec-title { font-size: .78rem; }
  .sec { margin-top: 14px; }
}
