/* Corporate magazine — navy + muted gold, inset sheets */
:root {
  --navy: #1e3a5f;
  --navy-deep: #162c48;
  --gold: #b08d57;
  --gold-ink: #8a6c3d;
  --page: #f4f6f8;
  --paper: #ffffff;
  --ink: #243044;
  --muted: #5c6778;
  --line: #d5dde6;
  --wash: #e8eef4;
  --wide: 1180px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Calibri, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--gold-ink);
}

h1,
h2,
h3,
.mag-brand,
.mag-quote figcaption strong {
  font-family: Cambria, STSong, SimSun, "Songti SC", serif;
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
}

h1 {
  font-size: 2.05rem;
  margin: 0 0 18px;
}

h2 {
  font-size: 1.48rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

/* Header */
.mag-hair {
  height: 3px;
  background: var(--gold);
}

.mag-top {
  background: var(--navy);
  color: #fff;
}

.mag-top-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mag-brand {
  color: #fff;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
}

.mag-brand:hover {
  color: var(--gold);
}

.mag-nav {
  display: flex;
  gap: 28px;
}

.mag-nav a {
  color: #d7deea;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.mag-nav a:hover,
.mag-nav a.is-on {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* Inset sheets */
.mag-sheet {
  max-width: var(--wide);
  margin: 28px auto;
  background: var(--paper);
  padding: 48px 56px;
  border-radius: var(--radius);
}

.mag-hero {
  background: var(--navy);
  color: #fff;
  margin-top: 28px;
}

.mag-hero h1,
.mag-hero h2 {
  color: #fff;
}

.mag-lead {
  font-size: 1.05rem;
  color: #d7deea;
  max-width: 46em;
  margin-bottom: 22px;
}

.mag-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mag-hero .mag-kicker {
  color: #e4c899;
}

/* Buttons */
.mag-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0 22px;
}

.mag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
}

.mag-btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.mag-btn-gold:hover {
  background: #9a7848;
  color: #fff;
}

.mag-btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.mag-hero .mag-btn-ghost {
  color: #fff;
  border-color: #8ea0b8;
}

.mag-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.mag-hero .mag-btn-ghost:hover {
  color: #e4c899;
  border-color: #e4c899;
}

/* 3-stat row */
.mag-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #345074;
  margin-top: 8px;
}

.mag-stat {
  padding: 18px 16px 4px 0;
}

.mag-stat + .mag-stat {
  padding-left: 22px;
  border-left: 1px solid #345074;
}

.mag-stat span {
  display: block;
  font-family: Cambria, STSong, SimSun, serif;
  font-size: 1.2rem;
  color: #e4c899;
  margin-bottom: 4px;
}

.mag-stat small {
  color: #c5d0de;
  font-size: 14px;
}

/* Magazine alternating rows */
.mag-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.mag-row-swap {
  grid-template-columns: 1.15fr 1fr;
}

.mag-row-swap .mag-illust {
  order: 2;
}

.mag-illust {
  background: var(--wash);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.mag-copy h2 {
  margin-top: 0;
}

/* 4-up process */
.mag-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 22px;
}

.mag-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  margin-right: 18px;
}

.mag-step:last-child {
  margin-right: 0;
}

.mag-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -19px;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.mag-step b {
  display: block;
  font-family: Cambria, STSong, SimSun, serif;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.mag-step strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 16px;
}

.mag-step p {
  color: var(--muted);
  font-size: 14px;
}

/* Table */
.mag-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-family: Cambria, STSong, SimSun, serif;
}

tbody tr:nth-child(even) {
  background: #f7f9fb;
}

/* Quotes 2x2 */
.mag-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.mag-quote {
  margin: 0;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.mag-quote blockquote {
  margin: 0 0 16px;
  color: var(--ink);
}

.mag-quote figcaption {
  color: var(--muted);
  font-size: 14px;
}

.mag-quote figcaption strong {
  display: block;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 2px;
}

/* News dated index */
.mag-news {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.mag-news li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mag-news time {
  color: var(--gold-ink);
  font-size: 14px;
  padding-top: 2px;
}

.mag-news strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.mag-news p {
  color: var(--muted);
  font-size: 14.5px;
}

/* FAQ two column */
.mag-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-top: 8px;
}

.mag-qa {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.mag-qa h3 {
  font-size: 1.02rem;
}

.mag-qa p {
  color: var(--muted);
}

/* Four gates */
.mag-gates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.mag-gate {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: #fbfcfd;
}

.mag-gate h3 {
  margin-bottom: 8px;
}

.mag-gate p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.mag-gate .mag-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
}

/* Footer */
.mag-foot {
  background: var(--navy-deep);
  color: #c5d0de;
  margin-top: 20px;
}

.mag-foot-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px 28px 40px;
  font-size: 14px;
  line-height: 1.7;
}

.mag-foot p {
  margin: 0 0 8px;
}

.mag-foot p:last-child {
  margin-bottom: 0;
  color: #9aabbe;
}

@media (max-width: 980px) {
  .mag-sheet {
    margin: 16px 12px;
    padding: 32px 22px;
  }

  .mag-row,
  .mag-row-swap,
  .mag-stats,
  .mag-steps,
  .mag-quotes,
  .mag-faq,
  .mag-gates {
    grid-template-columns: 1fr;
  }

  .mag-row-swap .mag-illust {
    order: 0;
  }

  .mag-stat + .mag-stat {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #345074;
  }

  .mag-step {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .mag-step:not(:last-child)::after {
    display: none;
  }

  .mag-news li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mag-top-inner {
    flex-direction: column;
    padding: 14px 18px;
    align-items: flex-start;
  }
}
