@charset "utf-8";

/* ========================================
   Custom Font
   ======================================== */
@font-face {
  font-family: "fz";
  src: url('../fonts/fz.ttf');
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0e121d;
  --bg-card: rgba(18, 24, 48, 0.75);
  --bg-card-hover: rgba(22, 30, 58, 0.85);

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #b8b8b8;
  --text-muted: #6e7e9e;

  /* Accent Colors */
  --gold: #ffd700;
  --drop-blue: #00b4ff;
  --boss-pink: #ff55ff;
  --location-green: #00ff80;
  --rare-orange: #ff8000;
  --warning-red: #ff4444;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(255, 215, 0, 0.12);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 4px 30px rgba(0, 0, 0, 0.5);

  /* Spacing Scale */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 2.5rem;
  --sp-3xl: 3.5rem;

  /* Typography Scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Font Stacks */
  --font-body: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", Arial, Helvetica, sans-serif;
  --font-title: "fz", "Microsoft Yahei", sans-serif;

  /* Transitions */
  --ease: 0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: #fff;
}

ul,
ol {
  list-style: none;
}

/* ========================================
   Utility Classes - Text Colors
   ======================================== */
.text-gold {
  color: var(--gold) !important;
}

.text-drop {
  color: var(--drop-blue) !important;
}

.text-boss {
  color: var(--boss-pink) !important;
}

.text-location {
  color: var(--location-green) !important;
}

.text-rare {
  color: var(--rare-orange) !important;
}

.text-warning {
  color: var(--warning-red) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.font-title {
  font-family: var(--font-title);
}

/* ========================================
   Wrapper
   ======================================== */
.wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ========================================
   Header Area
   ======================================== */
.news-bg-head {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200, 155, 40, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0f1420 0%, #0e121d 40%, #0a0e1a 100%);
  background-size: cover;
}

.section-head {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: 3.5rem;
}

/* Logo */
.logo {
  display: block;
  width: 80px;
  height: 72px;
  background: url(../images/logo.png) no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  text-indent: -9999px;
  overflow: hidden;
}

/* Main site button */
.btn-main {
  display: block;
  width: 165px;
  height: 47px;
  background: url(../images/btn-main.png) no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  text-indent: -9999px;
  overflow: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.bread-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem 0.5rem;
  width: 100%;
  padding: var(--sp-sm) 0;
  font-family: var(--font-title);
}

.bread-box h3 {
  flex-shrink: 0;
}

.bread-box h3 a {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: var(--fs-md);
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
  line-height: 1;
}

.bread-box h3 a:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Big Nav Buttons (above 副本介绍)
   ======================================== */
.nav-big {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--sp-xl);
  grid-column: 1 / -1;
}

.btn-nav-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  min-width: 120px;
  text-align: center;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-nav-big:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
  text-decoration: none;
}

/* ========================================
   Floating Right Nav
   ======================================== */
.floating-nav {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(18, 24, 48, 0.82);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
}

.floating-nav a:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.6);
  color: #fff;
  width: auto;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.15);
  text-decoration: none;
}

/* ========================================
   Main Content Area
   ======================================== */
.section-cont {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-md) var(--sp-3xl);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(200, 155, 40, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 10%, rgba(180, 140, 60, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0e121d 0%, #0a0e1a 50%, #080c16 100%);
  background-size: cover;
  background-position: center bottom;
}

/* Page Title */
.news-title {
  font-family: var(--font-title);
  font-size: var(--fs-2xl);
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--sp-xl);
  padding: var(--sp-sm) var(--sp-md);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Legacy article wrapper */
.article-box {
  width: 100%;
}

.article {
  width: 100%;
}

/* ========================================
   Card System
   ======================================== */
.content-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), border-color var(--ease);
  word-break: break-word;
  overflow-wrap: break-word;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-title {
  font-family: var(--font-title);
  font-size: var(--fs-xl);
  color: var(--gold);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-gold);
  line-height: 1.35;
}

.card-title-note {
  font-size: 0.75em;
  font-family: var(--font-body);
}

.card-body {
  font-size: var(--fs-base);
  line-height: 2.0;
  color: var(--text-secondary);
}

.card-body p {
  margin-bottom: var(--sp-md);
}

/* Full-width card spans all columns */
.card-full {
  grid-column: 1 / -1;
}

/* Two-column card row (flex-based, works inside grid) */
.card-row {
  display: flex;
  gap: var(--sp-xl);
  grid-column: 1 / -1;
}

.card-half {
  flex: 1;
  min-width: 0;
}

/* ========================================
   Info Bar (横向辅助信息条)
   ======================================== */
.info-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0;
  width: 100%;
}

.info-bar-item {
  flex: 1;
  padding: 0.3rem 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  min-width: 0;
}

.info-bar-item:last-child {
  border-right: none;
}

.info-bar-title {
  display: block;
  font-family: var(--font-title);
  font-size: var(--fs-sm);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.1rem;
  line-height: 1.25;
}

.info-bar-body {
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--text-muted);
}

/* ========================================
   Sub-Section inside Cards
   ======================================== */
.card-sub {
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.card-sub:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.card-sub .boss-name {
  display: block;
  font-family: var(--font-title);
  font-size: var(--fs-lg);
  color: var(--boss-pink);
  margin-bottom: var(--sp-sm);
  font-weight: 700;
}

.card-sub .meta-line {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-xs);
  line-height: 1.65;
}

.card-sub .drop-line {
  font-size: var(--fs-sm);
  color: var(--drop-blue);
  line-height: 1.8;
}

.card-sub .rare-line {
  font-size: var(--fs-sm);
  color: var(--rare-orange);
  line-height: 1.8;
  margin-top: var(--sp-xs);
}

/* ========================================
   Lists (Dungeon / Boss lists)
   ======================================== */
.card-body ul.dungeon-list {
  list-style: none;
  padding: 0;
}

.card-body ul.dungeon-list > li {
  padding: var(--sp-sm) 0 var(--sp-sm) 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.9;
  position: relative;
}

.card-body ul.dungeon-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}

.card-body ul.dungeon-list > li:last-child {
  border-bottom: none;
}

.card-body ul.dungeon-list > li .dungeon-name {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* ========================================
   Footer / About
   ======================================== */
.about-box {
  margin-top: var(--sp-3xl);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    radial-gradient(ellipse 70% 35% at 50% 100%, rgba(200, 155, 40, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0a0e1a 0%, #0e121d 50%, #0f1420 100%);
  background-size: cover;
}

.about-box .about-info {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #486993;
  word-break: break-word;
}

/* ========================================
   Legacy Support Classes
   ======================================== */
.time-tag {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.time-tag span {
  color: var(--gold);
  border: 1px solid var(--drop-blue);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.small-title {
  display: block;
  font-size: var(--fs-lg);
  color: #7db7ff;
  margin-bottom: var(--sp-sm);
  font-weight: 700;
}

.bot-sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) 0;
}

/* ========================================
   RESPONSIVE: Tablet (768px - 1199px)
   ======================================== */
@media (min-width: 768px) {
  .section-head {
    padding: var(--sp-sm) var(--sp-xl);
    min-height: 4.5rem;
  }

  .logo {
    width: 90px;
    height: 81px;
  }

  .bread-box {
    width: auto;
    padding: 0;
  }

  .bread-box h3 a {
    font-size: var(--fs-base);
  }

  .section-cont {
    padding: var(--sp-2xl) var(--sp-xl) var(--sp-3xl);
  }

  .news-title {
    font-size: 2.2rem;
    margin-bottom: var(--sp-2xl);
  }

  .content-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2xl);
  }

  .card {
    padding: var(--sp-2xl);
  }

  /* 平板：辅助卡片两列，略增 padding */
  .aux-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-aux {
    padding: 1rem;
  }

  .card-aux .card-title {
    font-size: var(--fs-md);
  }

  .card-aux .card-body {
    font-size: var(--fs-sm);
  }
}

/* ========================================
   RESPONSIVE: Desktop (>= 1200px)
   ======================================== */
@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }

  .section-head {
    padding: var(--sp-md) var(--sp-2xl);
  }

  .logo {
    width: 105px;
    height: 94px;
  }

  .btn-main {
    width: 180px;
    height: 51px;
  }

  .news-bg-head {
    background-size: cover;
  }

  .section-cont {
    padding: var(--sp-3xl) var(--sp-2xl) 4rem;
  }

  .news-title {
    font-size: 2.6rem;
    margin-bottom: var(--sp-3xl);
  }

  .content-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3xl);
  }

  .card {
    padding: var(--sp-3xl);
  }

  .card-title {
    font-size: 1.55rem;
  }

  /* 桌面：信息条一行四列，字号舒适 */
  .info-bar {
    padding: 0.6rem 0;
    border-radius: var(--radius-md);
  }

  .info-bar-item {
    padding: 0.45rem 1rem;
  }

  .info-bar-title {
    font-size: var(--fs-md);
  }

  .info-bar-body {
    font-size: var(--fs-sm);
    line-height: 1.55;
  }
}

/* ========================================
   RESPONSIVE: Mobile (<= 767px)
   ======================================== */
@media (max-width: 767px) {
  .section-head {
    padding: var(--sp-sm) var(--sp-md);
    min-height: auto;
    gap: var(--sp-sm);
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 70px;
    height: 63px;
  }

  .btn-main {
    width: 130px;
    height: 37px;
  }

  .bread-box {
    width: 100%;
    gap: 0.3rem;
    padding: var(--sp-sm) 0;
    justify-content: center;
  }

  .bread-box h3 a {
    font-size: var(--fs-sm);
    padding: 0.3rem 0.5rem;
    line-height: 1.5;
  }

  .section-cont {
    padding: var(--sp-lg) var(--sp-md) var(--sp-2xl);
    background-size: cover;
    background-position: center bottom;
  }

  .news-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-lg);
  }

  .content-cards {
    gap: var(--sp-lg);
  }

  .card {
    padding: var(--sp-lg);
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: var(--fs-lg);
  }

  .card-body {
    font-size: var(--fs-sm);
    line-height: 1.85;
  }

  /* 移动端：card-row 单列堆叠 */
  .card-row {
    flex-direction: column;
    gap: var(--sp-lg);
  }

  /* 移动端：大按钮缩小、堆叠 */
  .nav-big {
    gap: 0.5rem;
    margin-bottom: var(--sp-lg);
  }

  .btn-nav-big {
    font-size: var(--fs-sm);
    padding: 0.55rem 0.9rem;
    min-width: 0;
    border-radius: var(--radius-sm);
  }

  /* 移动端：隐藏悬浮导航 */
  .floating-nav {
    display: none;
  }

  /* 移动端：辅助卡片两列 */
  .aux-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
  }

  .card-aux .card-body {
    font-size: var(--fs-xs);
    line-height: 1.55;
  }

  .card-sub .boss-name {
    font-size: var(--fs-base);
  }

  .about-box {
    padding: var(--sp-lg) var(--sp-md);
    margin-top: var(--sp-2xl);
  }

  .about-box .about-info {
    font-size: var(--fs-xs);
    line-height: 1.7;
  }
}

/* ========================================
   RESPONSIVE: Small Mobile (<= 480px)
   ======================================== */
@media (max-width: 480px) {
  html {
    font-size: 14.5px;
  }

  .section-head {
    padding: var(--sp-xs) var(--sp-sm);
    min-height: auto;
    gap: var(--sp-xs);
  }

  .logo {
    width: 56px;
    height: 50px;
  }

  .btn-main {
    width: 110px;
    height: 31px;
  }

  .bread-box {
    gap: 0.1rem 0.25rem;
    padding: 0.25rem 0;
  }

  .bread-box h3 a {
    font-size: var(--fs-xs);
    padding: 0.2rem 0.35rem;
  }

  .section-cont {
    padding: var(--sp-md) var(--sp-sm) var(--sp-xl);
  }

  .news-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-lg);
  }

  .content-cards {
    gap: var(--sp-md);
  }

  .card {
    padding: var(--sp-md);
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: var(--fs-lg);
  }

  .card-body {
    font-size: var(--fs-sm);
    line-height: 1.7;
  }

  /* 小屏：信息条单列堆叠 */
  .info-bar {
    flex-direction: column;
    padding: 0.3rem 0;
  }

  .info-bar-item {
    flex: 1 1 auto;
    padding: 0.3rem 0.6rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  }

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

  .info-bar-title {
    font-size: var(--fs-sm);
  }

  .info-bar-body {
    font-size: var(--fs-xs);
    line-height: 1.4;
  }

  .card-sub .boss-name {
    font-size: var(--fs-base);
  }

  .card-body ul.dungeon-list > li {
    padding-left: 1rem;
    font-size: var(--fs-sm);
  }

  .about-box {
    padding: var(--sp-md) var(--sp-sm);
  }

  .about-box .about-info {
    font-size: var(--fs-xs);
  }
}
