/* ==========================================================================
   第二款：《皇朝传世》综合门户·正式品牌版 专属样式 (style2.css)
   包含：首屏黄金尺寸页头适配、三栏门户首焦矩阵、战法道交互职业殿堂、传世神兵黑金属性Tips、沙城荣耀倒计时
   ========================================================================== */

/* ---------------- 款式二首屏页头：纯正 16:9 全宽无缝原画适配 ---------------- */
.hero-kv-v2-fit {
  position: relative;
  width: 100%;
  margin-top: 0;
  background: #230f0a;
  overflow: hidden;
}

.hero-kv-v2-fit .hero-kv-stage {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

/* 针对 16:9 裁剪画幅精确校准三大交互热区纵向位置 */
.hero-kv-v2-fit .hotspot-letter {
  top: 34.8%;
  height: 15.8%;
}

.hero-kv-v2-fit .hotspot-reserve,
.hero-kv-v2-fit .hotspot-download {
  top: 85.4%;
  height: 10.2%;
}

.hero-kv-v2-fit .hero-cloud-transition {
  height: 30px;
}

/* ---------------- 模块 01：三栏门户首焦矩阵 ---------------- */
.portal-hub-grid {
  display: grid;
  grid-template-columns: 278px 408px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.portal-hub-grid > * {
  min-width: 0;
}

/* 左栏：下载矩阵 + 开服状态 + 礼包核销 */
.portal-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl-master-btn {
  height: 92px;
  background: linear-gradient(135deg, #d83d28 0%, #9c1f11 60%, #6b1107 100%);
  border: 2px solid var(--gold-champagne);
  box-shadow: 0 10px 24px rgba(139, 30, 18, 0.28), inset 0 0 18px rgba(255, 229, 165, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff6df;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.dl-master-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.dl-master-btn strong {
  font-family: var(--font-serif-cn);
  font-size: 25px;
  letter-spacing: 3px;
  text-shadow: 0 2px 6px rgba(50, 5, 0, 0.75);
}

.dl-master-btn span {
  font-size: 12px;
  color: #ffe09e;
  margin-top: 4px;
}

.dl-full-btn {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  background: linear-gradient(180deg, #fff9ec 0%, #f1dab3 100%);
  border: 1.5px solid #cfa563;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 242, 0.75), 0 4px 12px rgba(89, 22, 14, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-main);
  transition: all 0.22s ease;
}

.dl-full-btn strong {
  font-family: var(--font-serif-cn);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #7c1b10;
}

.dl-full-btn span {
  font-size: 11px;
  color: #8c5a48;
}

.dl-full-btn:hover {
  background: linear-gradient(180deg, #cf3c29 0%, #8f1d10 100%);
  border-color: var(--gold-champagne);
  transform: translateY(-1px);
}

.dl-full-btn:hover strong {
  color: #fff4da;
}

.dl-full-btn:hover span {
  color: #ffe0a3;
}

.portal-qr-card {
  flex: 1;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
}

.portal-qr-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portal-qr-frame {
  width: 132px;
  height: 132px;
  padding: 7px;
  background: #fff;
  border: 2px solid #cfa052;
  box-shadow: 0 6px 16px rgba(89, 22, 14, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portal-qr-tip {
  font-size: 12px;
  color: var(--ink-sub);
  text-align: center;
  line-height: 1.6;
}

.portal-qr-tip strong {
  color: #9e2416;
}

.server-status-box {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.server-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.box-mini-head {
  font-family: var(--font-serif-cn);
  font-size: 16px;
  font-weight: 900;
  color: #8b1e12;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(173, 63, 50, 0.22);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(173, 63, 50, 0.14);
}

.server-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.srv-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.srv-dot.hot { background: #e02d1b; box-shadow: 0 0 6px #e02d1b; }
.srv-dot.open { background: #18b57b; box-shadow: 0 0 6px #18b57b; }

.srv-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 800;
}

.srv-tag.hot { background: rgba(209, 45, 27, 0.14); color: #c92615; }
.srv-tag.new { background: rgba(24, 181, 123, 0.15); color: #0e8256; }

.cdkey-quick-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.cdkey-quick-row input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d2af79;
  background: #fff;
  font-size: 12px;
  color: var(--ink-dark);
}

.cdkey-quick-row button {
  padding: 0 12px;
  height: 34px;
  background: #ad3f32;
  color: #fff4dd;
  font-size: 12px;
  font-weight: 800;
}

/* 中栏：门户焦点轮播 */
.portal-banner-box {
  position: relative;
  border: 2px solid var(--gold-warm);
  background: #200a06;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-gold);
}

.pb-viewport {
  position: relative;
  flex: 1;
  min-height: 296px;
  overflow: hidden;
}

.pb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.48s ease;
  pointer-events: none;
}

.pb-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, transparent, rgba(20, 6, 3, 0.92));
  color: #fff5df;
}

.pb-overlay h4 {
  font-family: var(--font-serif-cn);
  font-size: 20px;
  margin-bottom: 4px;
}

.pb-overlay p {
  font-size: 12px;
  color: #e6c69f;
}

.pb-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #2b110b;
  border-top: 1px solid rgba(235, 206, 134, 0.35);
}

.pb-tab {
  padding: 11px 4px;
  font-size: 12px;
  font-weight: 700;
  color: #d7b894;
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(235, 206, 134, 0.15);
  transition: all 0.2s;
}

.pb-tab.active {
  background: linear-gradient(180deg, #c93b29, #851c10);
  color: #fff5dc;
}

/* 右栏：头条新闻柜 */
.portal-news-box {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.pnews-head-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #dec092;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.pnews-tabs-group {
  display: flex;
  gap: 6px;
}

.pnews-tab {
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-sub);
  border-radius: 2px;
}

.pnews-tab.active {
  background: #ad3f32;
  color: #fff4dd;
}

.pnews-top-headline {
  padding: 10px 12px;
  background: rgba(173, 63, 50, 0.08);
  border: 1px solid rgba(173, 63, 50, 0.24);
  margin-bottom: 10px;
  cursor: pointer;
}

.pnews-top-headline h4 {
  font-size: 16px;
  color: #a82314;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pnews-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pnews-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(173, 63, 50, 0.14);
  cursor: pointer;
}

.pnews-row:hover .pn-title {
  color: #b82616;
}

.pn-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-main);
  font-weight: 600;
}

.pn-cat {
  color: #ad3f32;
  font-weight: 800;
  margin-right: 6px;
}

.pn-date {
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* ---------------- 模块 02：经典三职业殿堂 ---------------- */
.class-selector-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 34px;
}

.class-switch-btn {
  min-width: 210px;
  height: 58px;
  padding: 0 28px;
  background: rgba(34, 8, 5, 0.72);
  border: 1.5px solid var(--gold-warm);
  color: #efd2ad;
  font-family: var(--font-serif-cn);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
  clip-path: polygon(18px 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0% 50%);
  transition: all 0.25s;
}

.class-switch-btn.active,
.class-switch-btn:hover {
  background: linear-gradient(180deg, #ffe7ad 0%, #d49638 100%);
  color: #541108;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.class-showcase-panel {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 28px;
  align-items: stretch;
  background: rgba(32, 7, 4, 0.65);
  border: 2px solid var(--gold-champagne);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.class-info-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.class-header-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.class-header-line h3 {
  font-family: var(--font-serif-cn);
  font-size: 36px;
  color: #ffe7ad;
  letter-spacing: 3px;
}

.class-weapon-pill {
  padding: 3px 10px;
  border: 1px solid var(--jade-main);
  background: rgba(36, 205, 178, 0.15);
  color: var(--jade-light);
  font-size: 12px;
  font-weight: 800;
}

.class-motto {
  font-family: var(--font-serif-cn);
  font-size: 16px;
  color: #f3c888;
  margin-bottom: 12px;
}

.class-desc-text {
  font-size: 14px;
  line-height: 1.75;
  color: #e6cbb0;
  margin-bottom: 18px;
}

/* 五维战力条 */
.stat-bars-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #f0d7ba;
}

.stat-bar-row span {
  width: 56px;
  flex-shrink: 0;
  font-weight: 700;
}

.stat-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(235, 206, 134, 0.35);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #e59f38, #24cdb2);
  transition: width 0.4s ease;
}

/* 招牌四大技能切换 */
.skill-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.skill-chip {
  padding: 9px 6px;
  background: rgba(255, 240, 205, 0.07);
  border: 1.5px solid rgba(235, 206, 134, 0.32);
  color: #f5dec0;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s;
}

.skill-chip.active,
.skill-chip:hover {
  background: linear-gradient(180deg, #cf3c29, #871c10);
  border-color: #ffe39e;
  color: #fff6df;
}

.skill-detail-box {
  padding: 12px 14px;
  background: rgba(15, 3, 2, 0.58);
  border-left: 3px solid var(--jade-main);
  font-size: 13px;
  color: #edd2b4;
  line-height: 1.65;
  margin-bottom: 18px;
  min-height: 64px;
}

.class-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(235, 206, 134, 0.24);
}

.class-action-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f3d29c;
  letter-spacing: 0.5px;
}

.class-art-frame {
  position: relative;
  border: 2px solid var(--gold-warm);
  overflow: hidden;
  min-height: 420px;
  background: #1a0704;
}

.class-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.class-art-frame:hover img {
  transform: scale(1.03);
}

/* ---------------- 模块 03：皇朝藏宝阁（神兵黑框Tips + 经典地图） ---------------- */
.armory-mode-switch {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.armory-panel.hidden {
  display: none;
}

.weapons-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.weapon-tile {
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  background: linear-gradient(180deg, #fffdf8, #f7e8cc);
}

.weapon-tile.active,
.weapon-tile:hover {
  border-color: var(--crimson-primary);
  background: linear-gradient(180deg, #fff6e2, #f3d59c);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(173, 63, 50, 0.22);
}

.weapon-svg-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d160e 0%, #1c0805 100%);
  border: 2px solid var(--gold-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.weapon-svg-icon svg {
  width: 46px;
  height: 46px;
}

.weapon-tile h4 {
  font-family: var(--font-serif-cn);
  font-size: 17px;
  color: #6e170d;
  margin-bottom: 4px;
}

.weapon-tile span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 经典传世游戏内黑底金框装备属性 Tooltip 面板 */
.woool-item-tooltip {
  background: rgba(12, 9, 8, 0.96);
  border: 2px solid #d4a653;
  box-shadow: inset 0 0 0 2px rgba(255, 232, 175, 0.16), 0 18px 40px rgba(35, 10, 5, 0.35);
  padding: 24px 26px;
  color: #f0e6d2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tt-item-name {
  font-family: var(--font-serif-cn);
  font-size: 26px;
  font-weight: 900;
  color: #ffd859;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.tt-grade {
  font-size: 12px;
  color: #ff6b4a;
  font-weight: 800;
  margin-bottom: 14px;
}

.tt-stat-list {
  font-size: 14px;
  line-height: 1.95;
  border-top: 1px dashed rgba(212, 166, 83, 0.35);
  border-bottom: 1px dashed rgba(212, 166, 83, 0.35);
  padding: 12px 0;
  margin-bottom: 14px;
}

.tt-green { color: #3df57a; font-weight: 700; }
.tt-cyan { color: #4af2ea; font-weight: 700; }
.tt-gold { color: #ffd466; }

.tt-drop-source {
  padding: 10px 12px;
  background: rgba(173, 63, 50, 0.22);
  border: 1px solid rgba(235, 206, 134, 0.35);
  font-size: 13px;
  color: #ffe2b3;
  line-height: 1.65;
}

/* 经典打宝地图 4宫格 */
.maps-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.map-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf9 0%, #f9eed9 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(139, 30, 18, 0.18);
}

.map-card img {
  width: 100%;
  height: 100%;
  min-height: 196px;
  object-fit: cover;
  display: block;
}

.map-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-card-body h4 {
  font-family: var(--font-serif-cn);
  font-size: 21px;
  color: #8b1e12;
  margin-bottom: 6px;
}

.map-meta {
  font-size: 12px;
  color: #ad3f32;
  font-weight: 800;
  margin-bottom: 8px;
}

.map-card-body p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.65;
}

/* ---------------- 模块 04：铁血沙城荣耀殿堂 & 四大生态铁律 ---------------- */
.siege-honor-banner {
  background:
    linear-gradient(90deg, rgba(28, 8, 5, 0.92) 0%, rgba(56, 15, 9, 0.84) 55%, rgba(28, 8, 5, 0.88) 100%),
    url("../images/feature-siege.jpg") center/cover no-repeat;
  border: 2px solid var(--gold-warm);
  padding: 34px 40px;
  color: #fff4dc;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-gold);
}

.siege-countdown-boxes {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.cd-unit {
  width: 78px;
  padding: 10px 6px;
  background: rgba(12, 3, 2, 0.78);
  border: 1.5px solid var(--gold-champagne);
  text-align: center;
}

.cd-unit strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  color: #ffd970;
}

.cd-unit span {
  font-size: 11px;
  color: #d8b58a;
}

.siege-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.siege-reward-row {
  padding: 12px 16px;
  background: rgba(255, 238, 200, 0.08);
  border: 1px solid rgba(235, 206, 134, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eco-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 3;
}

.eco-pillar-card {
  padding: 24px 20px;
  text-align: center;
}

.eco-num {
  display: inline-block;
  padding: 2px 12px;
  background: #ad3f32;
  color: #fff4dd;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.eco-pillar-card h4 {
  font-family: var(--font-serif-cn);
  font-size: 20px;
  color: #7c1b10;
  margin-bottom: 8px;
}

.eco-pillar-card p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.65;
}
