:root {
  color-scheme: light;
  --black: #211f1d;
  --black-2: #171615;
  --cream: #f7f5f0;
  --paper: #fff;
  --ink: #262423;
  --muted: #6b6865;
  --green: #52a535;
  --green-dark: #347b26;
  --green-light: #76c94f;
  --stone: #55524f;
  --line: #ddd9d2;
  --danger: #c85143;
  --shadow: 0 18px 48px rgba(31, 29, 26, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--cream);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }

.world-bg { display: none; }

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 max(28px, calc((100vw - 1380px) / 2));
  color: #fff;
  background: var(--black);
  border-bottom: 1px solid #34312f;
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand-cube { position: relative; width: 42px; height: 42px; background: var(--green); box-shadow: inset -8px -8px 0 rgba(0,0,0,.22); }
.brand-cube::before, .brand-cube::after { content: ""; position: absolute; background: #1c3218; }
.brand-cube::before { width: 8px; height: 8px; left: 8px; top: 11px; box-shadow: 17px 0 #1c3218; }
.brand-cube::after { width: 18px; height: 6px; left: 11px; bottom: 8px; }
.brand strong { display: block; font: 950 21px/1 Arial Black, Arial, sans-serif; letter-spacing: .07em; }
.brand small { display: block; margin-top: 5px; color: #aaa6a2; font: 700 8px/1 Arial, sans-serif; letter-spacing: .18em; }
.server-mark { justify-self: end; color: #c9c5c1; font: 900 10px/1 Arial; letter-spacing: .12em; }
.server-mark span { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--green-light); }

main { width: 100%; }

.hero {
  position: relative;
  min-height: 920px;
  padding: 1px 24px 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11,20,13,.3) 0%, rgba(12,22,15,.46) 58%, rgba(18,24,19,.84) 100%),
    url("/assets/images/bg.png") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: var(--cream);
  clip-path: polygon(0 100%,0 50%,2% 50%,2% 20%,4% 20%,4% 65%,6% 65%,6% 35%,8% 35%,8% 78%,10% 78%,10% 45%,12% 45%,12% 70%,14% 70%,14% 30%,16% 30%,16% 62%,18% 62%,18% 18%,20% 18%,20% 68%,22% 68%,22% 38%,24% 38%,24% 76%,26% 76%,26% 42%,28% 42%,28% 66%,30% 66%,30% 25%,32% 25%,32% 70%,34% 70%,34% 46%,36% 46%,36% 82%,38% 82%,38% 35%,40% 35%,40% 68%,42% 68%,42% 20%,44% 20%,44% 75%,46% 75%,46% 40%,48% 40%,48% 64%,50% 64%,50% 28%,52% 28%,52% 72%,54% 72%,54% 34%,56% 34%,56% 80%,58% 80%,58% 42%,60% 42%,60% 65%,62% 65%,62% 20%,64% 20%,64% 72%,66% 72%,66% 35%,68% 35%,68% 78%,70% 78%,70% 46%,72% 46%,72% 66%,74% 66%,74% 25%,76% 25%,76% 73%,78% 73%,78% 38%,80% 38%,80% 82%,82% 82%,82% 30%,84% 30%,84% 68%,86% 68%,86% 22%,88% 22%,88% 74%,90% 74%,90% 40%,92% 40%,92% 70%,94% 70%,94% 28%,96% 28%,96% 75%,98% 75%,98% 45%,100% 45%,100% 100%);
}
.hero-grid { display: none; }
.hero-copy {
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: 125px;
  text-align: center;
}
.kicker { color: var(--green-light); font: 950 14px/1 Arial, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin-top: 27px; font-size: clamp(70px, 8.5vw, 132px); line-height: .88; letter-spacing: -.075em; font-weight: 950; text-shadow: 0 7px 0 rgba(23,34,24,.68), 0 18px 38px rgba(0,0,0,.34); }
.hero h1 em { display: inline-block; margin-top: 18px; color: #fff; font-style: normal; }
.lead { width: min(660px,100%); margin: 30px auto 0; color: #f3f3ef; font-size: 18px; line-height: 1.75; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.primary-action, .refresh-button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 0 26px; font-weight: 950; font-size: 15px; cursor: pointer; border-radius: 0; }
.primary-action { color: #fff; background: var(--green); border: 3px solid #75ca54; border-right-color: var(--green-dark); border-bottom-color: var(--green-dark); box-shadow: 0 6px 0 #225e1c; }
.primary-action:hover { background: #5eb540; transform: translateY(-2px); }
.refresh-button { color: #fff; background: #373431; border: 3px solid #625e5a; border-right-color: #1c1a19; border-bottom-color: #1c1a19; box-shadow: 0 6px 0 #151413; }
.refresh-button:hover { background: #494541; }
.refresh-button:disabled { opacity: .65; cursor: wait; }
.refresh-button.is-loading span { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sync-status { width: max-content; max-width: 100%; display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 9px; margin: 22px auto 0; padding: 10px 14px; color: #ddd9d5; background: rgba(27,26,24,.78); border: 1px solid rgba(255,255,255,.25); font-size: 11px; }
.sync-status > span { width: 8px; height: 8px; background: #aaa; }
.sync-status strong { font-size: 11px; }
.sync-status small { color: #bbb7b3; font-size: 10px; }
.sync-status.is-fresh > span { background: var(--green-light); }
.sync-status.is-cache > span { background: #e3b341; }
.sync-status.is-limited > span { background: #e06b5b; }
.sync-status.is-limited strong { color: #ffb2a8; }

.identity-card {
  width: min(1120px, calc(100% - 24px));
  min-height: 166px;
  display: grid;
  grid-template-columns: 132px minmax(230px,1fr) 1.4fr auto;
  align-items: center;
  gap: 26px;
  margin: 80px auto 0;
  padding: 18px 26px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}
.identity-topline { display: none; }
.avatar-frame { width: 132px; height: 132px; display: grid; place-items: center; overflow: hidden; background: #b8e0ef; }
.avatar-frame img { width: 82%; height: 82%; object-fit: contain; image-rendering: pixelated; transform: scale(1.2); }
.avatar-fallback { color: var(--green-dark); font: 950 46px/1 Arial; }
.identity-name { padding-right: 24px; border-right: 1px solid var(--line); }
.identity-name small, .identity-meta span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.identity-name strong { display: block; margin-top: 9px; font: 950 34px/1 Arial, sans-serif; }
.identity-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.identity-meta strong { display: block; margin-top: 9px; font-size: 17px; }
.identity-meta .online { color: var(--green-dark); }
.identity-card > p { max-width: 210px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.overview-strip {
  width: min(1120px,calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin: 0 auto;
  color: var(--ink);
  background: var(--black);
}
.overview-strip article { min-height: 135px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 24px; color: #fff; border-right: 1px solid #474440; }
.overview-strip article:last-child { border-right: 0; }
.overview-strip article > span { align-self: start; margin-top: 9px; color: #77736f; font: 900 10px/1 Arial; }
.overview-strip small { display: block; color: #bdb9b5; font-size: 14px; font-weight: 800; }
.overview-strip strong { display: block; margin-top: 9px; color: #fff; font: 950 clamp(35px,3vw,50px)/1 Arial; }
.overview-strip b { grid-column: 2; color: var(--green-light); font: 900 11px/1 Arial; }

.modes { padding: 120px 24px 60px; background: var(--cream); }
.section-heading { width: min(1180px,100%); margin: 0 auto 58px; text-align: center; }
.section-heading h2, .base-info h2 { margin-top: 18px; font-size: clamp(48px,5vw,76px); line-height: 1; letter-spacing: -.055em; font-weight: 950; }
.section-heading > p { max-width: 600px; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-heading .kicker, .base-info .kicker { color: var(--green-dark); }
.mode-grid { width: min(1240px,100%); margin: 0 auto; display: grid; gap: 30px; }
.mode-card { min-width: 0; background: #fff; border-top: 7px solid var(--green); box-shadow: 0 12px 36px rgba(31,29,26,.11); overflow: hidden; }
.mode-sky { border-top-color: #4da3cd; }
.mode-body { min-width: 0; padding: 30px; }
.mode-inline-header { display: grid; grid-template-columns: 330px 1fr; align-items: center; gap: 36px; padding-bottom: 24px; }
.mode-inline-header > div > span { display: inline-block; padding: 7px 10px; color: #fff; background: var(--black); font: 900 11px/1 Arial; }
.mode-inline-header small { display: inline-block; margin-left: 12px; color: var(--green-dark); font: 900 11px/1 Arial; letter-spacing: .13em; }
.mode-sky .mode-inline-header small { color: #28779d; }
.mode-inline-header h3 { margin-top: 13px; font-size: 43px; line-height: 1; letter-spacing: -.045em; }
.mode-inline-header p { padding-left: 30px; color: var(--muted); font-size: 16px; line-height: 1.8; border-left: 1px solid var(--line); }

.monthly-primary { padding: 0; background: #f1f6ed; border: 1px solid #d7e1d1; }
.mode-sky .monthly-primary { background: #edf7fb; border-color: #4da3cd; }
.monthly-primary > header { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 20px; border-bottom: 1px solid #d7e1d1; }
.monthly-primary > header strong { font-size: 18px; }
.monthly-primary > header small { color: var(--muted); font-size: 11px; font-weight: 800; }
.monthly-grid { display: grid; grid-template-columns: 1.25fr repeat(5,1fr); }
.monthly-grid article { min-width: 0; min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-right: 1px solid #d7e1d1; }
.monthly-grid article:last-child { border-right: 0; }
.monthly-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.monthly-grid strong { display: block; margin-top: 10px; overflow: hidden; font: 950 30px/1 Arial; text-overflow: ellipsis; white-space: nowrap; }
.monthly-rank { background: rgba(82,165,53,.09); }
.mode-sky .monthly-rank { background: rgba(77,163,205,.1); }
.monthly-rank strong { color: var(--green-dark); font-size: 26px; }
.mode-sky .monthly-rank strong { color: #28779d; }
.monthly-rank.is-muted strong { color: var(--muted); font-size: 18px; }
.monthly-performance { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; min-height: 58px; padding: 0 20px; color: var(--muted); border-top: 1px solid #d7e1d1; font-size: 13px; font-weight: 800; }
.monthly-performance span:last-child { text-align: right; }
.monthly-performance i { width: 1px; height: 22px; background: #cbd7c5; justify-self: center; }
.monthly-performance strong { margin-left: 7px; color: var(--ink); font-size: 18px; }
.monthly-primary.is-empty { min-height: 160px; }
.monthly-empty { padding: 24px 20px; }
.monthly-empty strong { display: block; font-size: 20px; }
.monthly-empty span { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }

.career-section { margin-top: 20px; padding: 22px; background: #f7f7f5; border: 1px solid #e4e2dd; }
.career-heading { display: flex; justify-content: space-between; align-items: center; }
.career-heading span { font-size: 17px; font-weight: 950; }
.career-heading small { color: var(--muted); font-size: 10px; font-weight: 800; }
.core-stats { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 16px; background: #fff; border: 1px solid var(--line); }
.core-stats > article { min-width: 0; min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; border-right: 1px solid var(--line); }
.core-stats > article:last-child { border-right: 0; }
.core-stats span, .detail-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.core-stats strong { display: block; margin-top: 9px; overflow: hidden; font: 950 27px/1 Arial; text-overflow: ellipsis; }
.combat-ratios { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; min-height: 54px; color: var(--muted); font-size: 13px; font-weight: 900; }
.combat-ratios span:last-child { text-align: right; }
.combat-ratios b { margin-left: 8px; color: var(--ink); font-size: 18px; }
.combat-ratios i { width: 1px; height: 20px; background: var(--line); justify-self: center; }
.detail-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-stats > div { min-height: 72px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-stats strong { display: block; margin-top: 8px; font-size: 18px; }
.no-data { grid-column: 1/-1; padding: 20px; }

.base-info { margin-top: 70px; padding: 100px 24px 110px; color: #fff; background: var(--black); }
.base-info > header, .base-info-grid { width: min(1180px,100%); margin-inline: auto; }
.base-info > header { text-align: center; }
.base-info .kicker { color: var(--green-light); }
.base-info-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 50px; border-top: 1px solid #474440; border-left: 1px solid #474440; }
.base-info-grid article { min-height: 120px; padding: 25px; background: #2a2826; border-right: 1px solid #474440; border-bottom: 1px solid #474440; }
.base-info-grid span { display: block; color: #aaa6a2; font-size: 13px; font-weight: 800; }
.base-info-grid strong { display: block; margin-top: 13px; color: #fff; font-size: 19px; overflow-wrap: anywhere; }

.error-state { padding: 70px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.error-state strong { font-size: 26px; }
.error-state p { margin: 14px 0 24px; color: var(--muted); }
.error-state button { min-height: 48px; padding: 0 22px; color: #fff; font-weight: 950; background: var(--green); border: 0; cursor: pointer; }
footer { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(28px,calc((100vw - 1380px)/2)); color: #9e9a96; background: var(--black-2); font: 900 10px/1 Arial; letter-spacing: .13em; }
footer small { font: 500 12px/1 "Microsoft YaHei"; }
footer b { justify-self: end; color: var(--green-light); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 380px; padding: 15px 18px; color: #fff; font-size: 12px; font-weight: 900; background: var(--black); border-left: 5px solid var(--green); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .identity-card { grid-template-columns: 112px 1fr 1.2fr; }
  .identity-card > p { grid-column: 2/-1; max-width: none; margin: -8px 0 0; }
  .avatar-frame { width: 112px; height: 112px; }
  .mode-inline-header { grid-template-columns: 1fr; gap: 20px; }
  .mode-inline-header p { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .monthly-grid { grid-template-columns: repeat(3,1fr); }
  .monthly-grid article { border-bottom: 1px solid #d7e1d1; }
  .base-info-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .site-header { height: 70px; padding-inline: 14px; grid-template-columns: 1fr auto; }
  .brand small { display: none; }
  .server-mark { font-size: 8px; }
  .hero { min-height: 0; padding-inline: 12px; padding-bottom: 55px; }
  .hero-copy { padding-top: 88px; }
  .hero h1 { font-size: clamp(57px,17vw,84px); }
  .lead { font-size: 15px; }
  .hero-actions { display: grid; }
  .sync-status { grid-template-columns: auto 1fr; }
  .sync-status small { grid-column: 2; }
  .identity-card { width: 100%; grid-template-columns: 90px 1fr; gap: 18px; margin-top: 58px; padding: 16px; }
  .avatar-frame { width: 90px; height: 90px; grid-row: span 2; }
  .identity-name { padding: 0; border: 0; }
  .identity-meta { grid-column: 2; gap: 10px; }
  .identity-card > p { grid-column: 1/-1; margin: 0; }
  .overview-strip { width: 100%; grid-template-columns: 1fr 1fr; }
  .overview-strip article { min-height: 108px; padding: 16px; }
  .overview-strip article:nth-child(2) { border-right: 0; }
  .overview-strip article:nth-child(-n+2) { border-bottom: 1px solid #474440; }
  .modes { padding: 84px 12px 40px; }
  .section-heading h2, .base-info h2 { font-size: 48px; }
  .section-heading > p { font-size: 15px; }
  .mode-grid { gap: 34px; }
  .mode-body { padding: 22px 18px 28px; }
  .monthly-primary { padding: 20px 16px; }
  .monthly-primary { padding: 0; }
  .monthly-grid { grid-template-columns: 1fr 1fr; }
  .monthly-grid article { min-height: 96px; }
  .core-stats { grid-template-columns: 1fr 1fr; }
  .core-stats > article { border-bottom: 1px solid var(--line); }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .base-info { padding: 75px 12px 85px; }
  .base-info-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto; padding-inline: 16px; }
  footer small { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
