/* ===== 星穹铁道攻略站 - 全局样式 ===== */
:root {
  --bg: #0b0d14;
  --bg2: #121420;
  --bg3: #1a1e2e;
  --bg4: #23283d;
  --ink: #e2e0dc;
  --muted: #8a8d9a;
  --rule: #2a2f45;
  --accent: #e8a838;
  --accent2: #c45a6e;
  --accent3: #5aa8e0;
  --success: #5bc47a;
  --warn: #d4a843;
  --danger: #d45a5a;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "PingFang SC", "Microsoft YaHei", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(232, 168, 56, 0.08);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== 页面布局 ===== */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

.page-wrapper.full-width {
  grid-template-columns: 1fr;
}

.main-content { min-width: 0; }

/* ===== 侧边栏 ===== */
.sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
}

.sidebar-block {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  margin-bottom: 0.4rem;
}

.sidebar-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.sidebar-list a:hover {
  color: var(--accent);
}

.sidebar-list .new-tag {
  display: inline-block;
  background: rgba(232, 168, 56, 0.15);
  color: var(--accent);
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  font-weight: 500;
}

/* 侧边栏广告位 */
.ad-slot {
  background: var(--bg3);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.ad-slot-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-slot-content {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
}

.ad-slot .btn-small {
  margin-top: 0.5rem;
}

/* ===== Hero区域 ===== */
.hero {
  background: linear-gradient(135deg, rgba(11,13,20,0.92) 0%, rgba(18,20,32,0.88) 50%, rgba(11,13,20,0.92) 100%);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero.has-bg {
  background: linear-gradient(135deg, rgba(11,13,20,0.85) 0%, rgba(18,20,32,0.75) 50%, rgba(11,13,20,0.9) 100%);
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.hero p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 600px;
  margin-bottom: 1.2rem;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== 公告栏 ===== */
.announcement-bar {
  background: linear-gradient(90deg, rgba(232, 168, 56, 0.1), rgba(196, 90, 110, 0.08));
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.announcement-bar .label {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.announcement-bar p {
  color: var(--ink);
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}

.featured-strip {
  margin-bottom: 1.5rem;
}

.featured-strip-link {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.featured-strip-link:hover {
  border-color: rgba(90, 168, 224, 0.45);
  transform: translateY(-1px);
}

.featured-strip-link img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.featured-strip-text {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.featured-strip-text .label {
  align-self: flex-start;
  background: rgba(90, 168, 224, 0.15);
  color: var(--accent3);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.featured-strip-text strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .featured-strip-link {
    grid-template-columns: 1fr;
  }
}

/* ===== 分区标题 ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.section-header .more-link {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.section-header .more-link:hover {
  color: var(--accent);
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== 通用卡片 ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  border-color: rgba(232, 168, 56, 0.3);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  background: var(--bg3);
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.card-img .placeholder-text {
  position: absolute;
  z-index: 2;
  background: rgba(11, 13, 20, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.card-body {
  padding: 1rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-tag.team { background: rgba(90, 168, 224, 0.12); color: var(--accent3); }
.card-tag.abyss { background: rgba(232, 168, 56, 0.12); color: var(--accent); }
.card-tag.chest { background: rgba(91, 196, 122, 0.12); color: var(--success); }
.card-tag.boss { background: rgba(212, 90, 90, 0.12); color: var(--danger); }
.card-tag.material { background: rgba(138, 141, 154, 0.12); color: var(--muted); }
.card-tag.update { background: rgba(196, 90, 110, 0.12); color: var(--accent2); }

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--ink);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== 角色图鉴卡片 ===== */
.char-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.char-card:hover {
  border-color: rgba(232, 168, 56, 0.3);
}

.char-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid var(--rule);
}

.char-avatar.path-dest { background: linear-gradient(135deg, rgba(212,90,90,0.2), rgba(212,90,90,0.08)); border-color: rgba(212,90,90,0.3); }
.char-avatar.path-hunt { background: linear-gradient(135deg, rgba(232,168,56,0.2), rgba(232,168,56,0.08)); border-color: rgba(232,168,56,0.3); }
.char-avatar.path-erg { background: linear-gradient(135deg, rgba(90,168,224,0.2), rgba(90,168,224,0.08)); border-color: rgba(90,168,224,0.3); }
.char-avatar.path-har { background: linear-gradient(135deg, rgba(91,196,122,0.2), rgba(91,196,122,0.08)); border-color: rgba(91,196,122,0.3); }
.char-avatar.path-nih { background: linear-gradient(135deg, rgba(138,141,154,0.2), rgba(138,141,154,0.08)); border-color: rgba(138,141,154,0.3); }
.char-avatar.path-pre { background: linear-gradient(135deg, rgba(196,90,110,0.2), rgba(196,90,110,0.08)); border-color: rgba(196,90,110,0.3); }

.char-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.char-path {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ===== 玩法入口 ===== */
.mode-entry {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
  display: block;
}

.mode-entry:hover {
  border-color: rgba(232, 168, 56, 0.3);
}

.mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.mode-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.mode-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #f0b84a;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(232, 168, 56, 0.1);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* ===== 攻略文章页 ===== */
.article-header {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.article-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.article-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.article-body {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 0.8rem;
  color: var(--ink);
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.article-body li {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body code {
  background: var(--bg3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent3);
}

/* 图片占位 */
.img-placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--bg3);
  border: 2px dashed var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0;
  padding: 2rem;
  text-align: center;
}

.img-placeholder .img-label {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.article-body thead {
  background: var(--bg3);
}

.article-body th {
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.article-body td {
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: top;
}

/* 提示框 */
.callout {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.callout-tip {
  background: rgba(90, 168, 224, 0.08);
  border-left: 3px solid var(--accent3);
}

.callout-warn {
  background: rgba(212, 168, 67, 0.08);
  border-left: 3px solid var(--warn);
}

.callout-danger {
  background: rgba(212, 90, 90, 0.08);
  border-left: 3px solid var(--danger);
}

.callout strong {
  color: var(--ink);
}

/* 文章底部引导区 */
.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.cta-box {
  background: var(--bg3);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.cta-box h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.cta-box p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--rule);
}

/* ===== 关于页面 ===== */
.about-section {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.2rem 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.about-feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.about-feature p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 1rem;
    width: 100%;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.5rem;
  }

  .article-body {
    padding: 1.2rem;
  }

  .article-header {
    padding: 1.2rem;
  }
}

/* ===== xqtd-guide 扩展 ===== */
.page-wrapper.full-width,
.page-wrapper.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.nav-container {
  position: relative;
}

a { color: var(--accent3); text-decoration: none; }
a:hover { color: var(--accent); }

/* 文章页兼容 */
.breadcrumb,
.article-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a,
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-content,
.article-body {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
}

.article-content h2,
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

.article-content h2:first-child,
.article-body h2:first-child {
  margin-top: 0;
}

.article-content h3,
.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
}

.article-content p,
.article-body p {
  margin-bottom: 0.8rem;
  color: var(--ink);
  line-height: 1.8;
}

.article-content ul,
.article-content ol,
.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.article-content li,
.article-body li {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.article-content li::marker,
.article-body li::marker {
  color: var(--accent);
}

.article-content table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.2rem;
}

.article-content thead,
.article-body thead {
  background: var(--bg3);
}

.article-content th,
.article-body th {
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  border: 1px solid var(--rule);
}

.article-content td,
.article-body td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.tip-box,
.callout {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.tip-box,
.callout-tip {
  background: rgba(90, 168, 224, 0.08);
  border-left: 3px solid var(--accent3);
  color: var(--ink);
}

.tip-box strong,
.callout strong {
  color: var(--ink);
}

.article-header .card-tag {
  margin-bottom: 0.6rem;
}

.article-header h1,
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

/* 首页列表 */
.post-list {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.5rem;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-item:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  width: 42px;
}

.post-item a {
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.post-item a:hover {
  color: var(--accent);
}

/* 广告位 */
.ad-row {
  margin-bottom: 1.5rem;
}

.ad-container,
.ad-placeholder {
  background: var(--bg3);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.ad-slot.baidu-ad {
  min-height: 90px;
}

.ad-slot.promo-slot {
  border-color: rgba(232, 168, 56, 0.25);
}

.promo-code {
  display: inline-block;
  margin: 0.15rem 0;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(232, 168, 56, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.05em;
}

.baidu-ad-placeholder {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.promo-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tags-cloud,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-content,
.about-section {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.page-content h1,
.about-section h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.page-content h2,
.about-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
}

.page-content p,
.page-content li,
.about-section p,
.about-section li {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.page-content ul,
.about-section ul {
  padding-left: 1.2rem;
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.8rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.card-img.has-image {
  background: transparent;
}

.card-img .card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  z-index: 1;
}

/* 攻略正文配图 — 覆盖 .img-placeholder 的 flex/最小高度，避免拉伸变形 */
.article-img-wrap.img-placeholder {
  display: block;
  min-height: 0;
  padding: 0.75rem 0.75rem 0.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--rule);
  border-style: solid;
  background: var(--bg3);
  text-align: center;
}

.article-img-wrap.img-placeholder .img-label {
  display: block;
  margin: 0.5rem 0 0;
  padding: 0 0.5rem 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.article-img-wrap .article-img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

/* 竖屏角色面板（窄图） */
.article-img-wrap .article-img.is-portrait {
  max-width: min(100%, 360px);
  max-height: 520px;
}

/* 横屏配队/战斗界面（宽图） */
.article-img-wrap .article-img.is-landscape {
  max-width: 100%;
  max-height: 380px;
}

.img-placeholder.has-image {
  border-style: solid;
  background: var(--bg3);
}

.img-placeholder.has-image .img-label {
  color: var(--muted);
}
