/* 巅峰魔力 3.7 官方网站样式表 — 宽屏全屏撑满 + 100% 原生魔力复古羊皮纸质感 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.bodybg {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(16, 10, 7, 0.72) 0%, rgba(12, 8, 6, 0.84) 100%),
    url("/portal_assets/bg_worldmap.jpg?v=2") center center / cover fixed no-repeat;
  background-color: #140c08;
  color: #5b2c0a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, "SimSun", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: #663300;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #cc0000;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  border: 0;
  display: block;
}

/* 宽屏自适应撑满主容器（横向占满 96vw 最高 1320px，纵向 100dvh 顶天立地零黑边） */
.wray {
  width: min(1320px, 96vw);
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    linear-gradient(90deg, #3c2118 0px, #68402e 4px, #4a2b21 9px, #2b1711 12px, #b89f82 13px, transparent 16px),
    linear-gradient(270deg, #3c2118 0px, #68402e 4px, #4a2b21 9px, #2b1711 12px, #b89f82 13px, transparent 16px),
    repeating-linear-gradient(180deg, #e5dfd5 0px, #dfd8cb 56px, #e5dfd5 112px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 0 1px #24130d;
}

.wray_top,
.wray_bottom {
  width: 100%;
  height: 12px;
  flex: none;
  background: linear-gradient(180deg, #694131 0%, #4a2b21 45%, #2d1811 85%, #8b6c50 100%);
  position: relative;
}

.wray_top::before,
.wray_bottom::before {
  content: "";
  position: absolute;
  inset: 2px 12px;
  border-top: 1px solid rgba(255, 226, 178, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.wray_bottom {
  background: linear-gradient(180deg, #8b6c50 0%, #2d1811 15%, #4a2b21 55%, #694131 100%);
}

/* 顶部超宽原生魔力官绘横幅（无缝撑满容器内宽） */
.head {
  width: calc(100% - 26px);
  height: clamp(230px, 21vw, 310px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #2b1c14;
  flex: none;
}

.head-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.head-brand-badge {
  position: absolute;
  left: 26px;
  top: 20px;
  padding: 10px 20px 12px;
  background: linear-gradient(135deg, rgba(44, 18, 12, 0.86) 0%, rgba(92, 34, 20, 0.8) 100%);
  border: 2px solid #e6c278;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.35);
}

.head-brand-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffe8a3;
  text-shadow: 0 2px 0 #4d190b, 0 4px 10px rgba(0, 0, 0, 0.75);
}

.head-brand-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #f7dfc0;
  letter-spacing: 1px;
}

.head-status-pill {
  position: absolute;
  right: 20px;
  bottom: 14px;
  padding: 6px 14px;
  background: rgba(34, 16, 12, 0.88);
  border: 1px solid #d7ae63;
  border-radius: 999px;
  color: #ffe8ad;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* 全宽深酒红渐变导航条（7 项均匀撑满整行） */
.nav {
  width: 100%;
  height: 48px;
  flex: none;
  background: linear-gradient(180deg, #9b2636 0%, #7d1725 48%, #5e0e19 52%, #761422 100%);
  border-top: 1px solid #d16e76;
  border-bottom: 2px solid #3c0a11;
  box-shadow: inset 0 1px 0 rgba(255, 220, 220, 0.25), 0 3px 6px rgba(0, 0, 0, 0.28);
  padding: 0 24px;
}

.nav ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 46px;
  gap: 6px;
}

.nav li {
  display: flex;
  align-items: center;
}

.nav li a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  color: #fff3df;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 2px rgba(40, 5, 8, 0.9);
  border-radius: 3px 3px 0 0;
}

.nav li.active a,
.nav li a:hover {
  background: linear-gradient(180deg, #d63c4b 0%, #a51c2d 50%, #7f101e 100%);
  color: #ffe899;
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.45), 0 0 8px rgba(0, 0, 0, 0.3);
}

/* 主体双栏区：左 270px + 右 1fr 撑满全宽与垂直高度 */
.main-content {
  width: 100%;
  flex: 1;
  padding: 22px 34px 28px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.leftbox {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rightbox {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* 左侧暖米黄圆角卡片（顶部配 100% 原生客户端魔力像素怪物） */
.leftboxyj {
  width: 100%;
  background: #f5eed8;
  border: 1px solid #b5925d;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 2px 6px rgba(74, 43, 33, 0.16);
  position: relative;
  padding-bottom: 16px;
}

.left-card-header {
  height: 52px;
  margin-top: 12px;
  padding: 0 14px 0 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ead8b1 0%, #ddc28d 100%);
  border-top: 1px solid #f7ebd2;
  border-bottom: 1px solid #b89153;
  position: relative;
}

.left-card-mascot {
  position: absolute;
  left: 10px;
  top: -14px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 3px rgba(60, 30, 10, 0.3));
}

.left-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #5c2a0d;
  line-height: 1.2;
}

.left-card-sub {
  font-size: 11px;
  color: #8b5a2b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* 左侧账号操作 3 按钮 */
.inwel {
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-account {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px;
  border-radius: 5px;
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 4px rgba(50, 15, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-account:hover {
  color: #fff6cc;
  filter: brightness(1.09);
  transform: translateY(-1px);
}

.btn-account strong {
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-account span {
  font-size: 11px;
  opacity: 0.88;
}

.btn-reg { background: linear-gradient(180deg, #cf3939 0%, #9c1a1a 52%, #7d1111 100%); }
.btn-forgot { background: linear-gradient(180deg, #b83770 0%, #871c4d 52%, #681139 100%); }
.btn-change { background: linear-gradient(180deg, #8b40a8 0%, #63227d 52%, #4a155f 100%); }

/* 左侧下载中心 2 按钮 */
.indownload {
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fff8e2 0%, #f1d99c 55%, #e2bf72 100%);
  border: 1px solid #a97f3b;
  border-radius: 5px;
  color: #5b2c0a;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 3px rgba(80, 50, 15, 0.22);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.btn-dl:hover {
  color: #9e1212;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-dl-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.btn-dl-meta small {
  font-size: 11px;
  font-weight: 400;
  color: #7c5223;
}

.btn-dl-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b03a2e 0%, #7d1d14 100%);
  color: #fff6d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}

.incontact {
  padding: 12px 18px 0;
  line-height: 24px;
  color: #5e310c;
  font-size: 13px;
}

.incontact p { margin: 4px 0; }

.incontact .contact-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #e8d7ad;
  border: 1px dashed #9d743a;
  border-radius: 4px;
  font-size: 12px;
  color: #6b2f0b;
}

/* 右侧米灰质感主卡片（全宽自适应） */
.rightboxyj {
  width: 100%;
  background: linear-gradient(180deg, #d5cdc2 0%, #ccc4b7 100%);
  border-left: 1px solid #a29584;
  border-right: 1px solid #a29584;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(45, 26, 15, 0.18);
}

.rightboxyj_fill {
  flex: 1;
}

.right-title-bar {
  width: 100%;
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #5e1a1c 0%, #7b2527 42%, #59261d 78%, #472119 100%);
  border-top: 1px solid #a8544b;
  border-bottom: 2px solid #31120d;
  color: #fff4df;
  flex: none;
}

.right-title-bar h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-title-bar h2::before {
  content: "◆";
  color: #f3c46b;
  font-size: 13px;
}

.right-title-more {
  color: #f6ddb0;
  font-size: 13px;
}

.right-title-more:hover {
  color: #ffffff;
}

.rightboxyjbottom {
  width: 100%;
  height: 14px;
  margin-top: auto;
  flex: none;
  background: linear-gradient(180deg, #6b4c39 0%, #4a2e20 65%, #341e14 100%);
  border-top: 1px solid #a8876d;
}

/* 服务器配置介绍 + 原生火焰翼龙立绘 */
.inhost {
  padding: 16px 190px 20px 28px;
  line-height: 29px;
  position: relative;
  z-index: 2;
}

.inhost li {
  border-bottom: 1px dashed rgba(102, 51, 0, 0.22);
  padding: 2px 0;
}

.inhost strong { color: #7c1818; }

.rightboxyj_i {
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 158px;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 1;
}

/* 新闻公告虚线列表 + 原生露比立绘 */
.innewslist {
  padding: 14px 136px 20px 28px;
  position: relative;
  z-index: 2;
}

.innewslist li {
  height: 34px;
  line-height: 34px;
  border-bottom: 1px dotted #663300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.innewslist li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-arrow { color: #9e1b1b; font-size: 11px; flex: none; }

.news-badge {
  display: inline-block;
  padding: 0 6px;
  line-height: 18px;
  font-size: 11px;
  border-radius: 2px;
  color: #fff;
  background: #b91c1c;
  flex: none;
}

.news-badge.hot { background: #c2410c; }
.news-badge.new { background: #1d4ed8; }
.news-date { color: #703800; font-size: 13px; flex: none; }

.rightboxyj_i2 {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 82px;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 1;
}

/* 游戏图片横向走马灯（全宽自适应展示 5~6 张高清缩略图） */
.piclist-wrap {
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 16px 0 18px;
  overflow: hidden;
  position: relative;
}

.piclist-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.piclist-wrap:hover .piclist-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .piclist-track { animation: none; overflow-x: auto; }
}

.piclist-item { width: 184px; flex: none; }

.piclist-btn {
  display: block;
  padding: 2px;
  background: #ffffff;
  border: 1px solid #9f9e9c;
  cursor: pointer;
  width: 184px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.piclist-btn:hover {
  border-color: #8d6100;
  transform: translateY(-2px);
}

.piclist-btn img {
  width: 178px;
  height: 118px;
  object-fit: cover;
}

/* 子页面内容区（撑满整个右侧区域） */
.subpage-body {
  padding: 24px 32px 30px;
  color: #4d2608;
  line-height: 1.9;
  flex: 1;
}

.subpage-lead {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #f5eed8;
  border: 1px solid #b8955c;
  border-radius: 5px;
  color: #6b2f0b;
}

.retro-form { max-width: 520px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 4px; color: #5a2709; }
.field-hint { display: block; font-size: 12px; color: #7c5632; margin-bottom: 5px; }

.form_txt {
  width: 320px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #815420;
  background: #fffdf7;
  color: #3d1d06;
  font-size: 14px;
  border-radius: 3px;
}

.form_txt:focus { outline: 2px solid #c27c2c; outline-offset: 1px; }
.form_txt:is(:user-invalid, .user-invalid-fallback) { border-color: #c62828; background-color: #fff0f0; }
.form_txt:is(:user-valid, .user-valid-fallback) { border-color: #2e7d32; }

.error-msg {
  display: none;
  margin-top: 4px;
  color: #b71c1c;
  font-size: 12px;
  font-weight: 600;
}

.form_txt:is(:user-invalid, .user-invalid-fallback) + .error-msg { display: block; }

.captcha-row { display: flex; align-items: center; gap: 12px; }

.captcha-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 36px;
  padding: 0 12px;
  background: #4a2b21;
  color: #ffe39b;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

.form_btn {
  width: 180px;
  height: 42px;
  border: 1px solid #6b1414;
  border-radius: 4px;
  background: linear-gradient(180deg, #c93333 0%, #8f1414 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.form_btn:hover { filter: brightness(1.08); }
.form_btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-result { margin-top: 16px; padding: 12px 14px; border-radius: 4px; font-weight: 700; display: none; }
.form-result.ok { display: block; background: #e6f4ea; border: 1px solid #34a853; color: #137333; }
.form-result.err { display: block; background: #fce8e6; border: 1px solid #d93025; color: #a50e0e; }

.dl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dl-cards.single-card {
  grid-template-columns: 1fr;
}

.dl-card {
  background: #f5eed8;
  border: 1px solid #b5925d;
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-card h3 { margin: 0 0 8px; font-size: 17px; color: #7c1818; }
.dl-card p { margin: 0 0 16px; font-size: 13px; color: #5c3412; }

.qq-hero-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fffaf0 0%, #f3e4be 100%);
  border: 1px solid #c59d56;
  border-radius: 6px;
}

.qq-number-label {
  font-size: 12px;
  color: #8b5a2b;
  letter-spacing: 0.5px;
}

.qq-number-value {
  font-size: 28px;
  font-weight: 900;
  color: #8c1616;
  letter-spacing: 2px;
  line-height: 1.2;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.qq-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qq-action-row .btn-dl {
  flex: 1 1 220px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.btn-dl.btn-qq-primary {
  background: linear-gradient(180deg, #cf3939 0%, #9c1a1a 52%, #7d1111 100%);
  border-color: #6b1414;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 5px rgba(80, 15, 10, 0.32);
}

.btn-dl.btn-qq-primary:hover {
  color: #fff6cc;
}

.btn-dl.btn-qq-primary .btn-dl-meta small {
  color: #fde8c8;
}

.btn-dl.btn-qq-primary .btn-dl-arrow {
  background: rgba(255, 246, 214, 0.22);
  color: #fff6d6;
}

.btn-dl-btn {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.qq-copy-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background: #e6f4ea;
  border: 1px solid #34a853;
  color: #137333;
  display: none;
}

.qq-copy-status.show {
  display: block;
}

/* 页脚贴底 */
.footline {
  width: calc(100% - 26px);
  height: 6px;
  margin: 0 auto;
  flex: none;
  background: linear-gradient(180deg, #5a3827 0%, #b99f80 50%, #5a3827 100%);
}

.foot {
  width: calc(100% - 26px);
  margin: 0 auto;
  padding: 16px 16px 20px;
  text-align: center;
  color: #663300;
  font-size: 13px;
  line-height: 22px;
  flex: none;
}

.foot-links { margin-top: 4px; }
.foot-links a { margin: 0 10px; }

/* 原生模态弹窗 */
dialog.portal-dialog {
  border: 2px solid #6b3b24;
  border-radius: 8px;
  padding: 0;
  background: #f5eed8;
  color: #4d2608;
  max-width: min(820px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.72);
}

dialog.portal-dialog:modal { overscroll-behavior: contain; }

dialog.portal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(90deg, #681c20 0%, #4c2319 100%);
  color: #ffe8ad;
}

.dialog-head h1 { margin: 0; font-size: 16px; }

.dialog-close-btn {
  border: 1px solid #d7ae63;
  background: rgba(0, 0, 0, 0.28);
  color: #ffe8ad;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.dialog-body { padding: 18px; }
.dialog-lightbox-img { max-width: 100%; max-height: 72vh; margin: 0 auto; border: 2px solid #9c7946; }

@media (max-width: 960px) {
  .main-content { grid-template-columns: 1fr; padding: 16px 20px; }
  .dl-cards { grid-template-columns: 1fr; }
  .inhost, .innewslist { padding-right: 24px; }
  .rightboxyj_i, .rightboxyj_i2 { display: none; }
}
