/* ============================================================
 * 威龙传世 · H5 站样式
 * ============================================================ */

.h5-wrap {
  max-width: var(--h5-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
  display: flex;
  flex-direction: column;
}
.h5-body-pad { padding-bottom: var(--space-md); }

/* ---------- H5 内页（攻略 / 新闻）整页龙鳞暗景底纹，叠深色蒙版 ---------- */
.h5-wrap.h5-inner {
  background:
    linear-gradient(180deg, rgba(10, 20, 32, .72) 0%, rgba(10, 20, 32, .9) 100%),
    url("../assets/h5/bg-guide.jpg") center / cover no-repeat fixed,
    var(--bg-deep);
}

/* ---------- 头部栏 ---------- */
.h5-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}
.h5-header .brand { display: flex; align-items: center; gap: 10px; }
.h5-header .brand .logo-mark {
  width: 40px; height: 40px; object-fit: contain;
  display: inline-flex; align-items: center; justify-content: center;
}
.h5-header .brand .name { font-family: var(--font-title); font-size: 24px; color: var(--gold-bright); letter-spacing: 2px; }
.h5-header .h5-links { display: flex; gap: var(--space-sm); }
.h5-header .h5-links .btn { padding: 8px 14px; font-size: var(--fs-body); min-width: 92px; height: 40px; }

/* ---------- Banner 主视觉 ---------- */
.h5-banner { position: relative; flex: 1; min-height: 420px; margin: var(--space-lg) 0 0; overflow: hidden; }
.h5-banner .banner-bg { position: absolute; inset: 0; }
.h5-banner .banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.h5-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,32,.25), rgba(10,20,32,.75)); }
.h5-banner .banner-inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--space-lg); text-align: center; }
.h5-banner .hero-title { position: relative; font-family: var(--font-title); font-size: 42px; color: var(--gold-bright); letter-spacing: 6px; text-shadow: 0 3px 14px rgba(0,0,0,.6); }
.h5-banner .hero-title .wordmark { width: 340px; max-width: 82%; height: auto; }
.h5-banner .hero-slogan { margin-top: var(--space-sm); color: var(--text-gold); letter-spacing: 2px; font-size: var(--fs-body); }
.h5-banner .h5-actions { margin-top: var(--space-xl); display: flex; gap: var(--space-lg); }
.h5-banner .h5-actions .btn { min-width: 140px; height: 50px; font-size: var(--fs-md); }

/* ---------- 底部导航 ---------- */
.h5-bottomnav {
  width: 100%;
  display: flex; background: rgba(6, 12, 20, .96);
  border-top: var(--border-gold);
}
.h5-bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-sm) 0; color: var(--text-muted); font-size: var(--fs-caption);
}
.h5-bottomnav a + a { border-left: 1px solid rgba(201, 162, 75, .25); }
.h5-bottomnav a .icon { display: flex; align-items: center; justify-content: center; }
.h5-bottomnav a .icon img { width: 22px; height: 22px; object-fit: contain; }
.h5-bottomnav a.active { color: var(--gold-bright); }

/* ---------- 攻略顶部栏 ---------- */
.h5-guide-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
}
.h5-guide-top .back {
  position: relative;
  width: 42px; height: 42px; border: var(--border-gold); border-radius: 50%;
  background-color: var(--panel-blue);
  background-image:
    radial-gradient(circle 2px at 50% 3px, var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at 50% calc(100% - 3px), var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at 3px 50%, var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at calc(100% - 3px) 50%, var(--gold-bright) 60%, transparent 61%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
}
.h5-guide-top .back .back-arrow { width: 18px; height: 18px; }
.h5-guide-top .back .tassel {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border: 1.5px solid var(--gold); border-radius: 50%;
}
.h5-guide-top .back .tassel::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 15px; border: 1.5px solid var(--gold); border-radius: 2px;
  background:
    radial-gradient(circle 1.6px at 50% 50%, var(--gold-bright) 60%, transparent 61%),
    linear-gradient(180deg, rgba(201, 162, 75, .2), rgba(109, 19, 19, .18));
}
.h5-guide-top .back .tassel::after {
  content: ""; position: absolute; top: 27px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 9px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.h5-guide-top .top-title {
  font-family: var(--font-title); font-size: 46px; letter-spacing: 5px;
  margin: 0; font-weight: 400;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--text-gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h5-guide-top .top-sub { text-align: center; color: var(--text-gold); font-size: var(--fs-caption); margin-top: 6px; letter-spacing: 2px; }
.h5-guide-top .crest {
  width: 42px; height: 42px; object-fit: contain;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 对话 ---------- */
.h5-chat { padding: var(--space-lg); }
.h5-chat .chat-msg { margin-bottom: var(--space-lg); }
.h5-chat .avatar { width: 42px; height: 42px; }
.h5-chat .bubble { max-width: 78%; font-size: var(--fs-body); padding: 12px 14px; }
.h5-input-bar {
  display: flex; gap: var(--space-md); align-items: center;
  padding: var(--space-md) var(--space-lg);
}
.h5-input-bar .input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.h5-input-bar .input-icon { position: absolute; left: 16px; width: 20px; height: 20px; object-fit: contain; opacity: .7; pointer-events: none; }
.h5-input-bar .input { height: 48px; width: 100%; border-radius: var(--radius-md); padding-left: 44px; }
.h5-input-bar .send {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background-color: var(--crimson-deep);
  background-image:
    radial-gradient(circle 2px at 50% 4px, var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at 50% calc(100% - 4px), var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at 4px 50%, var(--gold-bright) 60%, transparent 61%),
    radial-gradient(circle 2px at calc(100% - 4px) 50%, var(--gold-bright) 60%, transparent 61%),
    linear-gradient(180deg, var(--crimson), var(--crimson-deep));
  background-repeat: no-repeat;
  border: var(--border-gold); display: flex; align-items: center; justify-content: center;
}
.h5-input-bar .send img { width: 22px; height: 22px; object-fit: contain; filter: brightness(1.25); }

/* ---------- 新闻列表 ---------- */
.h5-news { padding: 0 var(--space-lg); }
.h5-filters { display: flex; gap: var(--space-sm); overflow-x: auto; padding: var(--space-md) 0; }
.h5-filters .tag { flex: none; padding: 6px 14px; font-size: var(--fs-body); }
.h5-news-list { display: flex; flex-direction: column; gap: var(--space-lg); }
.h5-news-card { padding: var(--space-lg); }
.h5-news-card .nc-tags { display: flex; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.h5-news-card .sticky { background: var(--crimson); color: var(--gold-bright); border: var(--border-gold); border-radius: var(--radius-sm); font-size: var(--fs-caption); padding: 2px 10px; }
.h5-news-card .cat { border: var(--border-gold); border-radius: var(--radius-sm); color: var(--gold); font-size: var(--fs-caption); padding: 2px 10px; }
.h5-news-card .title { font-size: var(--fs-lg); color: var(--text-gold); }
.h5-news-card .summary { font-size: var(--fs-body); color: var(--text-muted); margin-top: var(--space-xs); }
.h5-news-card .date { font-size: var(--fs-caption); color: var(--text-muted); margin-top: var(--space-sm); }

