﻿.content-page {
  min-height: calc(100vh - 82px);
  padding: 46px max(22px, calc((100vw - 1180px) / 2)) 70px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .34), transparent 28%),
    linear-gradient(180deg, rgba(247, 239, 228, .92), rgba(224, 197, 167, .82));
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 46px;
  align-items: center;
  margin-bottom: 34px;
}

.content-media {
  height: 300px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(95, 55, 31, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 22px 56px rgba(58, 36, 23, .14);
}

.content-media[hidden] {
  display: none;
}

.content-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="platform"] .content-hero,
body[data-page="usdt"] .content-hero {
  display: block;
  max-width: 1180px;
  margin-inline: auto;
  margin-bottom: 18px;
}

body[data-page="platform"] .content-summary,
body[data-page="usdt"] .content-summary {
  width: 100%;
}

body[data-page="platform"] .content-summary h1,
body[data-page="usdt"] .content-summary h1 {
  margin-bottom: 8px;
}

body[data-page="platform"] .content-summary p,
body[data-page="usdt"] .content-summary p {
  margin: 0;
  line-height: 1.45;
}

body[data-page="platform"] .content-media {
  width: min(280px, 100%);
  height: 190px;
  justify-self: center;
  border-radius: 20px;
}

body[data-page="platform"] .content-media img {
  object-fit: contain;
  padding: 18px;
  background: rgba(255, 255, 255, .56);
}

.content-summary h1 {
  margin: 0;
  color: #5f371f;
  font-family: "Microsoft YaHei", "PingFang SC", "SimHei", Arial, sans-serif;
  font-weight: 1000;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #17110c;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  filter:
    drop-shadow(0 9px 15px rgba(48, 25, 12, .18));
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .25),
    0 9px 15px rgba(48, 25, 12, .14);
}

.content-summary p {
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.content-kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  color: #5f371f;
  font-weight: 900;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.spec-item,
.content-block,
.vip-lock {
  border: 1px solid rgba(95, 55, 31, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 16px 40px rgba(58, 36, 23, .08);
  backdrop-filter: blur(14px);
}

.spec-item {
  padding: 14px 16px;
}

.spec-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.spec-item strong {
  color: #20160f;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.content-actions.grouped {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 20px;
  margin-top: 18px;
}

.button-group {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 42%) 1fr;
  gap: 18px 26px;
  align-content: center;
  min-height: 230px;
  padding: 24px 34px;
  border-top: 5px solid #9d6843;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 248, 239, .66));
  box-shadow: 0 20px 42px rgba(58, 36, 23, .14);
}

.button-group h2 {
  margin: 0;
  color: #20160f;
  font-size: 21px;
  text-align: center;
  grid-column: 1 / -1;
}

.button-group-media {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.button-group-media img {
  max-width: min(240px, 100%);
  max-height: 120px;
  object-fit: contain;
}

.button-group-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: center;
}

.content-actions.grouped .button-group-links a {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a66d45, #5c361f);
  box-shadow: 0 12px 22px rgba(95, 55, 31, .2);
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
  text-align: center;
}

.content-actions.grouped .button-group-links a:hover {
  background: linear-gradient(135deg, #b98055, #4a2a18);
  transform: translateY(-1px);
}

.content-actions a,
.vip-lock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #9d6843, #5f371f);
  box-shadow: 0 12px 28px rgba(95, 55, 31, .22);
  font-size: 18px;
  font-weight: 900;
}

.link-item-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.content-actions .link-item-icon {
  display: none;
}

.file-list .link-item-icon,
.file-group-links .link-item-icon {
  display: none !important;
}

.content-block,
.vip-lock {
  margin-top: 22px;
  padding: 22px;
}

.content-block[hidden],
.vip-lock[hidden] {
  display: none;
}

.content-block h2,
.vip-lock h2 {
  margin: 0 0 16px;
  color: #20160f;
  font-size: 22px;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-list.grouped {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.file-group {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(95, 55, 31, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .5);
}

.file-group h3 {
  margin: 0;
  color: #5c361f;
  font-size: 19px;
}

.file-group-links {
  display: grid;
  gap: 10px;
}

.file-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.file-image-card {
  display: grid !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 10px !important;
  text-align: center;
}

.file-image-card::before,
.file-image-card::after {
  display: none !important;
}

.file-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(95, 55, 31, .12);
}

.file-image-card span {
  color: #4a2f1e;
  font-size: 14px;
  font-weight: 900;
}

body[data-page="plan"] .file-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

body[data-page="plan"] .file-list.grouped {
  grid-template-columns: 1fr;
  width: 100%;
}

body[data-page="plan"] .file-group {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-page="plan"] .file-group-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  width: 100%;
  min-width: 0;
}

.file-list a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  width: min(420px, 100%);
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid rgba(95, 55, 31, .18);
  border-radius: 14px;
  color: #4a2f1e;
  background: linear-gradient(135deg, rgba(255, 255, 255, .84), rgba(255, 247, 237, .68));
  box-shadow: 0 12px 26px rgba(58, 36, 23, .08);
  font-weight: 900;
}

.file-list a::before,
.file-list a::after {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}

.file-list a::before {
  content: "ZIP";
  width: 34px;
  height: 34px;
  color: #fff;
  background: #8a552f;
  font-size: 11px;
  letter-spacing: .02em;
}

.file-list a::after {
  content: "↓";
  width: 28px;
  height: 28px;
  color: #8a552f;
  background: rgba(138, 85, 47, .1);
  font-size: 15px;
}

.file-list a:hover {
  border-color: rgba(138, 85, 47, .34);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(58, 36, 23, .12);
}

body[data-page="plan"] .file-list a {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.4;
}

.rich-text {
  color: #31241b;
  line-height: 1.9;
  white-space: pre-wrap;
}

.vip-article-list {
  display: grid;
  gap: 12px;
}

.vip-article-card {
  overflow: hidden;
  border: 1px solid rgba(95, 55, 31, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 247, 237, .66));
  box-shadow: 0 12px 26px rgba(58, 36, 23, .08);
}

.vip-article-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #3a2417;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.vip-article-card summary::-webkit-details-marker {
  display: none;
}

.vip-article-card summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #8a552f;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.vip-article-card[open] summary::after {
  content: "-";
}

.vip-article-card div {
  padding: 0 18px 18px;
  color: #31241b;
  line-height: 1.9;
}

.vip-article-card div p,
.vip-article-card div div {
  margin: 0 0 10px;
  padding: 0;
}

.vip-article-card div img {
  display: block;
  max-width: min(520px, 100%);
  height: auto;
  margin: 12px 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(58, 36, 23, .12);
}

.video-groups {
  display: grid;
  gap: 22px;
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(122, 80, 48, .14);
}

.video-tab {
  border: 1px solid rgba(122, 80, 48, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: #5a3824;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(92, 58, 34, .08);
}

.video-tab.active {
  background: linear-gradient(135deg, #9a623b, #55321f);
  color: #fff;
  border-color: transparent;
}

.video-group {
  display: none;
}

.video-group.active {
  display: block;
}

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

.video-card video,
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #20160f;
}

.video-card p {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 800;
}

.vip-lock form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vip-lock input {
  min-height: 42px;
  min-width: 240px;
  border: 1px solid rgba(95, 55, 31, .22);
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
}

.vip-lock small {
  display: block;
  margin-top: 10px;
  color: #b13b26;
}

@media (max-width: 900px) {
  .content-page {
    padding: 22px 16px 56px;
  }

  .content-hero,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .content-hero {
    gap: 18px;
    margin-bottom: 18px;
  }

  .content-summary h1 {
    text-align: center;
    font-size: clamp(28px, 9vw, 36px);
  }

  .content-summary p {
    text-align: center;
    line-height: 1.55;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
  }

  .spec-item {
    min-height: 74px;
    padding: 11px 12px;
    border-radius: 15px;
  }

  .spec-item small {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .spec-item strong {
    font-size: 15px;
    line-height: 1.3;
  }

  .content-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .content-actions a,
  .vip-lock button {
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
  }

  .content-actions.grouped {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button-group {
    grid-template-columns: 36% 1fr;
    gap: 10px 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 15px;
  }

  .button-group h2 {
    font-size: 20px;
    grid-column: 1 / -1;
  }

  .button-group-media {
    min-height: 76px;
  }

  .button-group-media img {
    max-width: 100%;
    max-height: 78px;
  }

  .button-group-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .content-actions.grouped .button-group-links a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 15px;
  }

  body[data-page="plan"] .file-list,
  body[data-page="plan"] .file-list.grouped,
  body[data-page="plan"] .file-group-links,
  .file-list.grouped {
    grid-template-columns: 1fr;
  }

  body[data-page="plan"] .file-list a {
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .file-image-grid {
    grid-template-columns: 1fr;
  }

  .content-media {
    height: 230px;
  }

  body[data-page="platform"] .content-media {
    width: min(240px, 100%);
    height: 160px;
  }
}

@media (max-width: 420px) {
  .spec-grid {
    gap: 8px;
  }

  .spec-item {
    min-height: 70px;
    padding: 10px;
  }

  .spec-item strong {
    font-size: 14px;
  }

  .content-actions a,
  .vip-lock button {
    min-height: 46px;
    font-size: 15px;
  }

  .button-group {
    grid-template-columns: 34% 1fr;
    padding: 12px;
  }
}

body[data-page="download"] .button-group {
  display: contents;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="download"] .button-group h2 {
  display: none;
}

body[data-page="download"] .button-group-media {
  display: none;
}

body[data-page="download"] .content-actions.grouped {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

body[data-page="download"] .button-group-links {
  display: contents;
}

body[data-page="download"] .content-actions.grouped .button-group-links a {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding-inline: 20px;
  white-space: normal;
}

body[data-page="download"] .content-actions.grouped .button-group-links a.has-link-icon {
  justify-content: center;
  gap: 12px;
  text-align: center;
}

body[data-page="download"] .content-actions .link-item-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  object-fit: contain;
}

@media (max-width: 760px) {
  body[data-page="download"] .content-actions.grouped {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    width: min(360px, 100%);
    margin: 34px auto 0;
    gap: 16px 14px;
  }

  body[data-page="download"] .content-actions.grouped .button-group-links a {
    width: min(180px, 100%);
    margin: 0 auto;
    justify-content: center;
  }
}

/* Final plan archive layout: override legacy runtime classes and fixed card widths. */
@media (min-width: 761px) {
  body[data-page="plan"] [data-file-section] [data-file-list] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-page="plan"] [data-file-section] .file-group {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-page="plan"] [data-file-section] .file-group-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-page="plan"] [data-file-section] .file-group-links > a {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 760px) {
  body[data-page="plan"] [data-file-section] .file-group-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
}
