/* 召唤之王 · 复刻版（对齐参考站 WAP 纯文本流主题） */
:root {
  color-scheme: light;
  --site-bg: #ffffff;
  --site-text: #000000;
  --site-link: #4169e1;
  --site-link-hover: #2a4fb8;
  --site-muted: #666666;
  --site-border: #cccccc;
  --site-footer-bg: #e3eef8;
  --site-footer-text: #808080;
  --site-note-bg: #fff9b7;
  --site-input-bg: #ffffff;
  --site-msg-success: #27ae60;
  --site-msg-error: #c0392b;
  --site-panel-max: 480px;
  --site-auth-panel-max: 320px;
  --site-page-padding-left: 6px;
  --site-page-padding-right: 12px;
  --site-page-padding-top: 6px;
  --site-block-gap: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --site-bg: #121212;
    --site-text: #e8e8e8;
    --site-link: #7eb6ff;
    --site-link-hover: #a8ccff;
    --site-muted: #aaaaaa;
    --site-border: #444444;
    --site-footer-bg: #1a2433;
    --site-footer-text: #9aa8b8;
    --site-note-bg: #3d3520;
    --site-input-bg: #1e1e1e;
    --site-msg-success: #6ee7a0;
    --site-msg-error: #ff8a8a;
  }
}

html { overflow-x: hidden; max-width: 100%; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden; max-width: 100%; margin: 0;
  background: var(--site-bg); color: var(--site-text);
  word-wrap: break-word; overflow-wrap: anywhere; box-sizing: border-box;
  padding-top: 6px; padding-left: 6px; padding-right: 12px;
}
body font { display: block; width: 100%; max-width: 100%; box-sizing: border-box; color: inherit; }
@media (min-width: 600px) { body font { max-width: min(100%, 640px); } }
@media (min-width: 1024px) { body font { max-width: min(100%, 720px); } }

a, a:link, a:visited, font a, font a:link, font a:visited {
  color: var(--site-link); text-decoration: none;
}
a:hover, font a:hover { color: var(--site-link-hover); text-decoration: underline; }

/* 原站把行内按钮做成链接样式 */
.game-link-btn, button.game-link-btn {
  display: inline; margin: 0; padding: 0; border: none; background: none;
  color: var(--site-link); cursor: pointer; font: inherit; line-height: inherit;
  max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}
button.game-link-btn:hover { color: var(--site-link-hover); text-decoration: underline; }

/* 普通提交按钮（登录/注册/搜索） */
input[type="submit"], button.btn-solid {
  font: inherit; padding: 3px 10px; color: var(--site-text);
  background: #e9e9e9; border: 1px solid #999; border-radius: 3px; cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  input[type="submit"], button.btn-solid { background: #2a2a2a; color: #e8e8e8; border-color: #666; }
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; color: var(--site-text); background: var(--site-input-bg);
  border: 1px solid var(--site-border); border-radius: 2px; padding: 2px 4px; max-width: 100%; box-sizing: border-box;
}
input:focus, textarea:focus, select:focus { outline: 1px solid var(--site-link); }

form { display: inline; max-width: 100%; }
form.block { display: block; }

img { max-width: 100%; height: auto; border: 0; }
table { max-width: 100%; border-collapse: collapse; }
td, th { padding: 1px 4px; text-align: left; vertical-align: top; }
hr { border: 0; border-top: 1px solid var(--site-border); margin: 6px 0; }

/* 页脚 */
.regulatory-footer {
  background: var(--site-footer-bg) !important;
  color: var(--site-footer-text) !important;
  font-size: 14px; line-height: 17px; margin-top: 0; padding: 4px 0;
}
.home-time-report { margin-bottom: 3px; }
.spacer { margin-bottom: 15px; }

/* 首页 Logo（自绘，占位同尺寸） */
.site-game-logo { display: block; width: 160px; max-width: 100%; margin-bottom: 3px; }
.auth-logo { display: block; width: 200px; margin: 0 0 6px; }

/* 幻兽头像占位（原站为 70x70 图片） */
.pet-avatar, .pet-avatar-ph {
  display: inline-block; width: 70px; height: 70px; margin-bottom: 4px;
  border: 1px solid var(--site-border); border-radius: 4px;
  text-align: center; line-height: 70px; font-size: 24px;
  background: #f2f2f2; color: #333; vertical-align: middle;
}
@media (prefers-color-scheme: dark) { .pet-avatar-ph { background: #232323; color: #ddd; } }
.pet-avatar-ph.r0 { color: #b5651d; } .pet-avatar-ph.r1 { color: #2a6bb5; }
.pet-avatar-ph.r2 { color: #2f7d4f; } .pet-avatar-ph.r3 { color: #8a5bb5; }
.pet-avatar-ph.r4 { color: #b58b2a; } .pet-avatar-ph.r5 { color: #b52a5b; }

/* 聊天/喊话行 */
.world-shout-line { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.world-shout-text {
  overflow-wrap: anywhere; word-break: break-word;
  background: linear-gradient(90deg, #ff4d6d, #ffb347 20%, #ffe66d 38%, #39d98a 56%, #4da6ff 76%, #c77dff);
  background-size: 240% 100%; background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: world-rainbow 4s linear infinite;
}

/* 对齐对标站的魔钻渐变昵称与动态等级标识，使用本地 CSS 动效，不依赖远程资源。 */
.nick-badge-row { display: inline-flex; align-items: flex-end; gap: 2px; vertical-align: text-bottom; margin-left: 2px; }
.mozuan-link, a.mozuan-link, a.mozuan-link:visited, a.mozuan-link:hover {
  background: linear-gradient(90deg, #0aa3a0, #1a7fd4 45%, #c9a227 100%);
  background-size: 200% 100%; background-clip: text; -webkit-background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
  animation: mozuan-shimmer 2.6s linear infinite;
}
.vip-badge-icon {
  display: inline-block; min-width: 30px; height: 20px; padding: 0 3px; box-sizing: border-box;
  border: 1px solid #d79d27; border-radius: 3px; color: #fff; background: linear-gradient(135deg, #dca63b, #8b4a12);
  font-size: 10px; line-height: 18px; text-align: center; font-weight: 700; vertical-align: bottom;
  animation: vip-badge-pulse 1.8s ease-in-out infinite;
}
.vip-badge-v6, .vip-badge-v7, .vip-badge-v8 { background: linear-gradient(135deg, #b66bff, #49228c); border-color: #c89cff; }
.vip-badge-v9, .vip-badge-v10 { background: linear-gradient(135deg, #ff6c6c, #8d1010); border-color: #ffb3b3; }
.mozuan-badge-icon { display: inline-block; color: #28b9d2; font-size: 18px; line-height: 18px; text-shadow: 0 0 5px #55eaff; animation: mozuan-orbit 1.6s linear infinite; }
.signin-done { color: var(--site-muted); }
@keyframes mozuan-shimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }
@keyframes world-rainbow { from { background-position: 0 0; } to { background-position: 240% 0; } }
@keyframes vip-badge-pulse { 0%, 100% { filter: brightness(.9); transform: translateY(0); } 50% { filter: brightness(1.25); transform: translateY(-1px); } }
@keyframes mozuan-orbit { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(1.12); } }

/* 提示条 */
.note { background: var(--site-note-bg) !important; padding: 2px 4px; margin-bottom: 3px; }
.msg-ok { color: var(--site-msg-success); }
.msg-err { color: var(--site-msg-error); }
.muted { color: var(--site-muted); }
.red { color: #cc0000; }
.small { font-size: 0.9em; }
.center { text-align: center; }

/* 战斗日志 */
.battle-line { display: block; }
.battle-win { color: var(--site-msg-success); }
.battle-lose { color: var(--site-msg-error); }

/* 分页 */
.page-nav input[type="number"] { width: 40px; height: 18px; }

/* 登录/注册窄栏 */
.container { max-width: min(var(--site-panel-max), 100%); margin: 16px auto; padding: 12px; box-sizing: border-box; }
.container.narrow {
  width: 100%; max-width: min(var(--site-auth-panel-max), calc(100vw - 34px));
  margin-left: auto; margin-right: auto;
}
.container form { display: block; }
.field { display: block; margin-bottom: 6px; }
.field span { display: block; color: var(--site-muted); font-size: 0.92em; }
.field input { width: 100%; padding: 6px; }
.btn-success {
  display: block; width: 100%; padding: 7px; margin-top: 6px;
  background: #5cb85c; color: #fff !important; border: 0; border-radius: 3px;
  font: inherit; cursor: pointer;
}
.hint { color: var(--site-muted); font-size: 0.9em; }

/* 管理后台入口保持原样 */
.admin-body { background: #0d1017; }
