/* 远征2-龙起征途 — 文章详情页样式 */
:root {
  --royal-rose: #BE185D;
  --imperial-gold: #F59E0B;
  --sky-blue: #38BDF8;
  --void-black: #0f0a12;
  --void-black-2: #1a111f;
  --text-main: #f8f7f5;
  --text-muted: #a7a3ad;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-gold: 0 0 28px rgba(245, 158, 11, 0.18);
  --shadow-rose: 0 0 28px rgba(190, 24, 93, 0.22);
  --font-title: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--void-black);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}



.container {
  width: 92%;
  max-width: 860px;
  margin: 0 auto;
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--imperial-gold);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--imperial-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--imperial-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--royal-rose);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--imperial-gold);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--sky-blue);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--imperial-gold);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* ===== 文章详情 ===== */
.article-detail {
  padding: 2rem 0 4rem;
}

.article-hero {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--card-border);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--imperial-gold);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.article-meta-bar i {
  margin-right: 0.35rem;
  color: var(--royal-rose);
}

.article-content {
  color: var(--text-main);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.9;
}

.article-content h2 {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--royal-rose);
}

.article-content h3 {
  font-family: var(--font-title);
  color: var(--sky-blue);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.article-content strong {
  color: var(--text-main);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--card-border);
}

.article-tip {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--sky-blue);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.article-tip strong {
  color: var(--sky-blue);
}

/* ===== 分享与导航 ===== */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.article-tags a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(190, 24, 93, 0.1);
  border: 1px solid rgba(190, 24, 93, 0.25);
  color: var(--royal-rose);
  font-size: 0.8rem;
  transition: all 0.3s;
}

.article-tags a:hover {
  background: var(--royal-rose);
  color: #fff;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.article-nav a {
  display: block;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: all 0.3s;
}

.article-nav a:hover {
  border-color: var(--imperial-gold);
  transform: translateY(-3px);
}

.article-nav small {
  display: block;
  color: var(--royal-rose);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.article-nav strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* ===== 悬浮联系 ===== */
.floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 999;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-rose), #9d174d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-rose);
  cursor: pointer;
  transition: transform 0.3s;
}

.chat-bubble:hover {
  transform: scale(1.08);
}

.contact-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(26, 17, 31, 0.98);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.floating-contact.active .contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-panel h4 {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.15);
  color: var(--royal-rose);
  font-size: 0.85rem;
}

.contact-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

/* ===== 页脚 ===== */
.footer {
  background: #080508;
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-title);
  color: var(--imperial-gold);
  font-size: 1.2rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--sky-blue);
}

/* ===== 响应式 md 768px ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 10, 18, 0.98);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hamburger {
    display: flex;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }
}

/* Position-specific image sizing */

.navbar img { height: 2.5rem; width: auto; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo-frame img { width: min(320px, 70vw); height: auto; }
.hex-card img { width: 100%; height: 180px; object-fit: cover; }
.qr-card img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
.article-body img { width: 100%; max-height: 320px; object-fit: cover; }
footer img { width: 100%; max-width: 120px; height: auto; }

/* Friendly links block */

.friendly-links.yz2 { padding: 3rem 1rem; background: #0f0a12; border-top: 1px solid rgba(190,24,93,.3); }
.friendly-links.yz2 .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.yz2 h2 { font-family: 'Noto Serif SC', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.yz2 h2 i { color: #F59E0B; margin-right: .5rem; }
.friendly-links.yz2 p { color: rgba(255,255,255,.55); margin-bottom: 1.5rem; }
.friendly-links.yz2 ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.yz2 li a { display: block; padding: .6rem .8rem; border-radius: .5rem; background: rgba(190,24,93,.12); border: 1px solid rgba(190,24,93,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.yz2 li a:hover { background: rgba(245,158,11,.15); border-color: #F59E0B; color: #F59E0B; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.yz2 ul { grid-template-columns: repeat(2, 1fr); } }

