:root {
  --ink: #101820;
  --navy: #0d2538;
  --blue: #244e7a;
  --green: #18b768;
  --green-deep: #0d7e50;
  --gold: #e7a226;
  --paper: #ffffff;
  --mist: #f3f7f4;
  --line: #d9e3de;
  --muted: #657482;
  --shadow: 0 18px 42px rgba(16, 24, 32, .14);
  --wrap: 1050px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8f2;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.xin-topbar {
  background: #111315;
  color: #fff;
}

.xin-topbar-inner {
  width: min(var(--wrap), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.xin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.xin-brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)), linear-gradient(135deg, #19c578, #244e7a 52%, #e7a226);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.xin-brand-copy strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  color: #f2c44f;
  font-weight: 900;
}

.xin-brand-copy span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.xin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.xin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  background: #244e7a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.xin-btn.gold {
  border-color: #f4c866;
  color: #1b1307;
  background: linear-gradient(180deg, #ffd85e, var(--gold));
  box-shadow: 0 10px 24px rgba(231, 162, 38, .32);
}

.xin-nav-band {
  background: var(--gold);
  color: #19212b;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
}

.xin-nav {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
}

.xin-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(16, 24, 32, .72);
}

.xin-nav a.is-active {
  color: #111315;
}

.xin-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

.xin-hero {
  position: relative;
  min-height: 420px;
  background: #0a1218;
  color: #fff;
  overflow: hidden;
}

.xin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 13, 19, .92), rgba(8, 13, 19, .58) 44%, rgba(8, 13, 19, .18) 78%), url("xin88-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.xin-hero.article-hero::before {
  background-image: linear-gradient(90deg, rgba(8, 13, 19, .92), rgba(8, 13, 19, .66) 48%, rgba(8, 13, 19, .24) 82%), url("xin88-hero.png");
}

.xin-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 32px));
  min-height: 420px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 54px 0 42px;
}

.xin-hero-copy {
  max-width: 640px;
}

.xin-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(43px, 6.4vw, 76px);
  line-height: .98;
  font-weight: 900;
  text-transform: uppercase;
}

.xin-hero.article-hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
}

.xin-hero-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.xin-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.xin-hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
  margin-top: 34px;
}

.xin-hero-note span {
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(5, 12, 18, .62);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.xin-hero-note b {
  display: block;
  color: #ffd860;
  font-size: 22px;
  line-height: 1.1;
}

.xin-main {
  background: linear-gradient(180deg, #fff 0, #f7f8f2 58%, #eef5f0 100%);
}

.xin-content {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 62px;
}

.xin-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 34px;
  align-items: start;
}

.xin-article h2,
.xin-article h3,
.xin-detail h2,
.xin-detail h3 {
  color: #34485f;
  line-height: 1.24;
}

.xin-article h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.xin-article h3,
.xin-detail h2 {
  margin: 32px 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.xin-article p,
.xin-detail p {
  margin: 0 0 16px;
  color: #536271;
  font-size: 16px;
}

.xin-article strong,
.xin-detail strong {
  color: var(--ink);
}

.xin-feature-image {
  margin: 26px 0 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #071219;
}

.xin-feature-image img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center;
}

.xin-side-panel {
  position: sticky;
  top: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.xin-side-panel-head {
  padding: 18px 18px 16px;
  background: var(--navy);
  color: #fff;
}

.xin-side-panel-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.xin-side-panel-head span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.xin-side-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.xin-side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: #26394c;
  background: #fbfdfb;
  font-weight: 800;
  font-size: 14px;
}

.xin-side-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.xin-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: #edf8f1;
  color: #294337;
  font-weight: 700;
}

.xin-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 18px;
}

.xin-step {
  min-height: 170px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 51, 42, .08);
}

.xin-step b {
  display: block;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.xin-step h4 {
  margin: 16px 0 8px;
  color: #20364b;
  font-size: 18px;
  line-height: 1.25;
}

.xin-step p {
  margin: 0;
  color: #607180;
  font-size: 14px;
}

.xin-news {
  margin-top: 56px;
  padding: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.xin-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding-bottom: 20px;
}

.xin-news h2 {
  margin: 0;
  max-width: 520px;
  color: #ffd760;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
}

.xin-news-head p {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}

.xin-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.xin-news-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.xin-news-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.xin-news-card p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.xin-detail-wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

.xin-detail {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 51, 42, .08);
}

.xin-detail h1 {
  margin: 0 0 12px;
  color: #0f1720;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 900;
}

.xin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #72808d;
  font-size: 13px;
  font-weight: 700;
}

.xin-detail-body img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.xin-updated {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: #edf8f1;
  color: #294337 !important;
  font-weight: 700;
}

.xin-prev-next {
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: #f4f8f5;
  list-style: none;
}

.xin-prev-next li + li {
  margin-top: 8px;
}

.xin-prev-next a {
  color: var(--blue);
  font-weight: 800;
}

.xin-footer {
  padding: 30px 0;
  background: #101315;
  color: rgba(255, 255, 255, .7);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .xin-topbar-inner {
    min-height: 68px;
  }

  .xin-brand-mark {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }

  .xin-brand-copy strong {
    font-size: 22px;
  }

  .xin-brand-copy span,
  .xin-top-actions .xin-btn:first-child,
  .xin-nav a:nth-child(n+5) {
    display: none;
  }

  .xin-nav {
    justify-content: flex-start;
    min-height: 56px;
    gap: 22px;
  }

  .xin-hero,
  .xin-hero-inner {
    min-height: 620px;
  }

  .xin-hero::before,
  .xin-hero.article-hero::before {
    background-image: linear-gradient(180deg, rgba(8, 13, 19, .46), rgba(8, 13, 19, .88) 48%, rgba(8, 13, 19, .97)), url("xin88-hero.png");
    background-position: 62% center;
  }

  .xin-hero-inner {
    align-items: end;
    padding-bottom: 34px;
  }

  .xin-hero-copy p {
    font-size: 16px;
  }

  .xin-hero-note,
  .xin-intro,
  .xin-steps,
  .xin-news-grid,
  .xin-detail-wrap {
    grid-template-columns: 1fr;
  }

  .xin-side-panel {
    position: static;
  }

  .xin-news {
    padding: 24px 18px;
  }

  .xin-news-head {
    align-items: start;
    flex-direction: column;
  }

  .xin-detail {
    padding: 24px 18px;
  }
}

@media (max-width: 520px) {
  .xin-topbar-inner,
  .xin-nav,
  .xin-hero-inner,
  .xin-content,
  .xin-detail-wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .xin-top-actions .xin-btn {
    min-height: 38px;
    padding: 0 15px;
  }

  .xin-hero h1,
  .xin-hero.article-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .xin-article h2 {
    text-align: left;
    font-size: 25px;
  }

  .xin-feature-image img {
    aspect-ratio: 16 / 9;
  }

  .xin-steps {
    gap: 12px;
  }
}
