/* bdsodm.cn | 抖音风舞蹈主题：明亮电光短视频舞台 */
:root {
  --ink: #20233a;
  --muted: #5e6683;
  --line: #dbe4f1;
  --paper: #fbfdff;
  --ice: #f3f9fe;
  --blue: #dff1fc;
  --blue-deep: #3d83af;
  --purple: #7354db;
  --purple-dark: #5038aa;
  --lilac: #eee9ff;
  --coral: #f27698;
  --coral-pale: #fff0f4;
  --mint: #e3f7ee;
  --lemon: #fff6bf;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(67, 84, 128, 0.11);
  --shadow-soft: 0 7px 19px rgba(67, 84, 128, 0.08);
  --radius: 22px;
  --radius-sm: 18px;
  --container: 1180px;
  --ease: 180ms cubic-bezier(.2, .75, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(223, 241, 252, 0.68), transparent 25rem),
    radial-gradient(circle at 3% 16%, rgba(238, 233, 255, 0.45), transparent 22rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--purple);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 10px 14px;
  color: var(--white);
  background: var(--purple-dark);
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid rgba(114, 84, 219, 0.42);
  outline-offset: 3px;
}

/* Header, utility links, navigation and search */
.top-bar {
  color: #53627a;
  background: #eef7fd;
  border-bottom: 1px solid rgba(115, 84, 219, 0.1);
  font-size: 13px;
}

.top-bar .container,
.top-bar-inner,
.top-bar-links {
  display: flex;
  align-items: center;
}

.top-bar .container,
.top-bar-inner {
  min-height: 34px;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-links {
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar a {
  transition: color var(--ease);
}

.top-bar a:hover {
  color: var(--purple-dark);
}

.site-header,
.header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 253, 255, 0.92);
  border-bottom: 1px solid rgba(142, 158, 189, 0.23);
  box-shadow: 0 4px 18px rgba(74, 89, 128, 0.05);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple), #967feb 62%, var(--coral));
  border-radius: 12px 16px 12px 16px;
  box-shadow: 0 6px 14px rgba(115, 84, 219, 0.25);
}

.logo-icon::before {
  width: 13px;
  height: 17px;
  border: 3px solid currentColor;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left-width: 5px;
  content: "";
}

.logo-icon img,
.logo-icon svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 19px;
  line-height: 1;
}

.logo-text > span:first-child {
  font-weight: 800;
}

.logo-text > span:last-child {
  color: #67728c;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

#mainNav,
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

#mainNav a,
.main-nav a {
  position: relative;
  padding: 8px 9px;
  color: #3e4662;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease), transform var(--ease);
}

#mainNav a::after,
.main-nav a::after {
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  background: var(--coral);
  border-radius: 99px;
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity var(--ease), transform var(--ease);
}

#mainNav a:hover,
#mainNav a[aria-current="page"],
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--purple-dark);
  background: var(--lilac);
}

#mainNav a:hover::after,
#mainNav a[aria-current="page"]::after,
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-actions a,
.header-actions button:not(.nav-toggle) {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  color: var(--purple-dark);
  background: var(--lilac);
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.search-bar {
  display: block;
  min-width: 0;
}

#searchForm.search-inner,
.search-inner {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 4px 5px 4px 12px;
  background: var(--white);
  border: 1px solid #d6e2f0;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-inner input {
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-inner input::placeholder {
  color: #8993a9;
}

.search-inner button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--white);
  background: var(--purple);
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--purple-dark);
  background: var(--lilac);
  border: 0;
  border-radius: 12px;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.nav-toggle span {
  margin: 4px 0;
}

.breadcrumb {
  color: #68718a;
  background: rgba(238, 247, 253, 0.65);
  border-bottom: 1px solid rgba(219, 228, 241, 0.85);
  font-size: 13px;
}

.breadcrumb-inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb a:hover {
  color: var(--purple-dark);
}

/* Buttons and repeatable section language */
.btn-primary,
.btn-blue,
.btn-outline,
.btn-light,
.rank-link,
.button,
.form-submit {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease);
}

.btn-primary,
.form-submit {
  color: var(--white);
  background: linear-gradient(120deg, var(--purple), #9478e9);
  box-shadow: 0 9px 18px rgba(115, 84, 219, 0.23);
}

.btn-blue {
  color: #236688;
  background: var(--blue);
}

.btn-outline {
  color: var(--purple-dark);
  background: var(--white);
  border-color: #cfc4f4;
}

.btn-light {
  color: #a64060;
  background: var(--coral-pale);
}

.btn-primary:hover,
.btn-blue:hover,
.btn-outline:hover,
.btn-light:hover,
.rank-link:hover,
.button:hover,
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.section {
  position: relative;
  padding: 76px 0;
}

.section + .section {
  border-top: 1px solid rgba(218, 228, 242, 0.56);
}

.section-lilac {
  background: linear-gradient(135deg, rgba(238, 233, 255, 0.78), rgba(251, 253, 255, 0.65) 62%);
}

.section-yellow {
  background: linear-gradient(135deg, rgba(255, 246, 191, 0.52), rgba(251, 253, 255, 0.76) 65%);
}

.section-mint {
  background: linear-gradient(135deg, rgba(227, 247, 238, 0.8), rgba(251, 253, 255, 0.66) 65%);
}

.section-coral {
  background: linear-gradient(135deg, rgba(255, 240, 244, 0.92), rgba(251, 253, 255, 0.72) 62%);
}

.section-blue {
  background: linear-gradient(135deg, rgba(223, 241, 252, 0.85), rgba(251, 253, 255, 0.73) 64%);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 31px;
}

.section-copy {
  min-width: 0;
}

.section-eyebrow,
.kicker,
.hero-kicker {
  margin: 0 0 8px;
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.section-eyebrow::before,
.kicker::before,
.hero-kicker::before {
  display: inline-block;
  width: 18px;
  height: 7px;
  margin-right: 8px;
  background: var(--coral);
  border-radius: 99px;
  content: "";
  vertical-align: middle;
}

.section-title,
.page-title,
.article-title-main {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-lead,
.section-header .lead,
.lead {
  max-width: 660px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Home hero: copy stays clear; three complete vertical posters live in a separate column */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -6vw;
  bottom: 4%;
  width: min(25vw, 340px);
  height: min(25vw, 340px);
  background: radial-gradient(circle, rgba(242, 118, 152, 0.16), transparent 68%);
  border-radius: 50%;
  content: "";
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.hero-copy {
  min-width: 0;
  padding-block: 18px;
}

.brand-heading {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero-heading {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 56px);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.18;
}

.hero-heading::first-line {
  color: var(--purple-dark);
}

.hero-desc {
  max-width: 600px;
  margin: 18px 0 0;
  color: #565f7b;
  font-size: 16px;
}

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

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.89fr) minmax(0, 1.16fr) minmax(0, 0.89fr);
  align-items: end;
  gap: 13px;
  min-width: 0;
  padding: 22px 8px 10px;
}

.hero-poster {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e7eef8;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  box-shadow: 0 15px 28px rgba(58, 69, 112, 0.15);
}

.hero-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #e8edf7;
}

.poster-one {
  transform: rotate(-4deg) translateY(19px);
}

.poster-two {
  z-index: 1;
  transform: rotate(1.2deg);
}

.poster-three {
  transform: rotate(4deg) translateY(20px);
}

.poster-caption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  padding: 7px 9px;
  overflow: hidden;
  color: var(--white);
  background: rgba(30, 35, 58, 0.67);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.stage-note {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 11px 0 0;
  padding: 7px 12px;
  color: #56617d;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d9e7f3;
  border-radius: 99px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 650;
}

.stage-note::before {
  margin-right: 6px;
  color: var(--coral);
  content: "●";
}

/* Video and work collections */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(214, 226, 240, 0.88);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.video-card:hover {
  border-color: rgba(115, 84, 219, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #edf3fa;
  aspect-ratio: 9 / 16;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf3fa;
  transition: transform 280ms ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.025);
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  padding: 5px 8px;
  color: #3d2b8b;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(27, 33, 54, 0.25), transparent 48%);
}

.play-btn {
  display: grid;
  width: 46px;
  height: 46px;
  padding-left: 3px;
  place-items: center;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(35, 39, 70, 0.18);
  font-size: 15px;
  transition: transform var(--ease), color var(--ease), background-color var(--ease);
}

.video-card:hover .play-btn,
.video-card:focus-visible .play-btn {
  color: var(--white);
  background: var(--coral);
  transform: scale(1.09);
}

.video-info {
  display: block;
  padding: 13px 13px 15px;
}

.video-title,
.video-desc,
.video-meta {
  display: block;
}

.video-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
}

.video-desc {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 13px;
  line-height: 1.55;
}

.video-meta {
  margin-top: 8px;
  color: #767f98;
  font-size: 12px;
  line-height: 1.4;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}

.filter-btn {
  min-height: 37px;
  padding: 7px 13px;
  color: #58617a;
  background: var(--white);
  border: 1px solid #dce5f0;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  background: var(--purple);
  border-color: var(--purple);
}

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

.work-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e0e8f2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
}

.work-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.work-image {
  position: relative;
  overflow: hidden;
  background: #eef4fa;
  aspect-ratio: 4 / 3;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef4fa;
  transition: transform 260ms ease;
}

.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.035);
}

.work-info {
  padding: 17px 18px 19px;
}

.work-number {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.work-title {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.work-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.work-tags,
.rank-tags,
.tag-list,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.work-tags {
  margin-top: 12px;
}

.work-tags span,
.rank-tags span,
.tag-list a,
.tag-list span {
  display: inline-flex;
  padding: 4px 8px;
  color: #586480;
  background: #f0f5fa;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.35;
}

/* Editorial practice index, intentionally not a live platform ranking */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 118px;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid #dae5f1;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
}

.rank-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.rank-number {
  align-self: start;
  color: var(--coral);
  font-size: 18px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rank-name {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.rank-level {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  color: var(--purple-dark);
  background: var(--lilac);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.rank-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rank-tags {
  margin-top: 9px;
}

.rank-image {
  width: 118px;
  height: 158px;
  overflow: hidden;
  background: #edf3fa;
  border-radius: 14px;
}

.rank-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf3fa;
}

.rank-link {
  min-height: 36px;
  margin-top: 11px;
  padding: 7px 10px;
  color: var(--purple-dark);
  background: var(--lilac);
  border-radius: 10px;
  font-size: 12px;
}

.rank-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid #dce6f1;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.rank-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.rank-table th,
.rank-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e6edf5;
}

.rank-table th {
  color: var(--purple-dark);
  background: #f3f0ff;
  font-size: 13px;
}

.rank-table tr:last-child td {
  border-bottom: 0;
}

.rank-table tbody tr:hover {
  background: #fafcff;
}

/* Shared content cards, feature panels, roles, partners, process and FAQ */
.feature-grid,
.role-grid,
.partner-grid,
.steps,
.values-grid,
.contact-grid,
.app-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.role,
.partner,
.step,
.about-value,
.contact-card,
.app-feature,
.faq-item {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce6f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.feature h3,
.role h3,
.partner h3,
.step h3,
.about-value h3,
.contact-card h3,
.app-feature h3,
.faq-item summary {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.feature p,
.role p,
.partner p,
.step p,
.about-value p,
.contact-card p,
.app-feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feature > :first-child:not(h3),
.role > :first-child:not(h3),
.step > :first-child:not(h3) {
  color: var(--coral);
  font-weight: 850;
}

.steps {
  counter-reset: dance-step;
}

.step {
  counter-increment: dance-step;
}

.step::before {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  place-items: center;
  color: var(--white);
  background: var(--purple);
  border-radius: 50%;
  content: counter(dance-step);
  font-size: 13px;
  font-weight: 850;
}

.faq-list {
  display: grid;
  gap: 11px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 17px 52px 17px 19px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--purple);
  content: "+";
  font-size: 25px;
  font-weight: 400;
  transform: translateY(-53%);
}

.faq-item[open] summary {
  color: var(--purple-dark);
  background: #faf9ff;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item > p,
.faq-item > div {
  margin: 0;
  padding: 0 19px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Pages, news cards, article reading and side navigation */
.page-hero {
  padding: 52px 0 44px;
  background: linear-gradient(135deg, rgba(238, 233, 255, 0.72), rgba(223, 241, 252, 0.55));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.page-hero-grid > div {
  min-width: 0;
}

.intro-text {
  max-width: 680px;
  margin: 16px 0 0;
  color: #59627e;
  font-size: 16px;
}

.page-visual {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.page-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e9f1f9;
}

.page-visual img[src*="app.webp"],
.app-visual img[src*="app.webp"] {
  object-fit: contain;
}

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

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #dce6f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), box-shadow var(--ease);
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.article-thumb {
  display: block;
  overflow: hidden;
  background: #edf3fa;
  aspect-ratio: 16 / 10;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf3fa;
  transition: transform 260ms ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.03);
}

.article-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.article-meta {
  color: #737e98;
  font-size: 12px;
}

.article-meta span,
.article-meta time {
  display: inline-flex;
}

.article-title {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.article-title a:hover {
  color: var(--purple-dark);
}

.article-excerpt,
.excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  padding: 52px 0 76px;
}

.article-main,
.article-layout main,
.article-layout > article {
  min-width: 0;
}

.article-title-main {
  max-width: 900px;
  font-size: clamp(30px, 4vw, 42px);
}

.article-cover {
  width: 100%;
  max-height: 520px;
  margin: 24px 0;
  overflow: hidden;
  background: #ecf3fa;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ecf3fa;
}

.article-body {
  color: #3f4863;
  font-size: 16px;
  line-height: 1.9;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.38;
}

.article-body h2 {
  margin: 38px 0 14px;
  font-size: 26px;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 17px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 6px;
}

.article-body a {
  color: var(--purple-dark);
  text-decoration: underline;
  text-decoration-color: rgba(115, 84, 219, 0.38);
  text-underline-offset: 3px;
}

.article-figure {
  margin: 28px 0;
  text-align: center;
}

.article-figure img {
  width: auto;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  object-fit: contain;
  background: #ecf3fa;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.article-figure figcaption {
  margin-top: 9px;
  color: #747e95;
  font-size: 14px;
  line-height: 1.5;
}

.tag-list {
  margin-top: 22px;
}

.tag-list a:hover {
  color: var(--white);
  background: var(--purple);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #e0e8f1;
}

.article-nav a {
  min-width: 0;
  padding: 13px;
  color: var(--purple-dark);
  background: #f6f4ff;
  border-radius: 13px;
  font-size: 13px;
}

.sidebar {
  position: sticky;
  top: 99px;
}

.side-block {
  padding: 18px;
  background: var(--white);
  border: 1px solid #dce6f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.side-block + .side-block {
  margin-top: 15px;
}

.side-block h2,
.side-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
}

.side-links {
  display: grid;
  gap: 6px;
}

.side-links a {
  padding: 7px 8px;
  color: #58627e;
  border-radius: 8px;
  font-size: 14px;
}

.side-links a:hover,
.side-links a[aria-current="page"] {
  color: var(--purple-dark);
  background: var(--lilac);
}

/* App, contact and forms */
.app-layout,
.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.app-visual {
  justify-self: center;
  width: min(100%, 330px);
  overflow: hidden;
  background: #edf4fa;
  border: 7px solid var(--white);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(63, 76, 118, 0.18);
}

.app-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #edf4fa;
}

.qr-list,
.app-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.qr-item {
  display: grid;
  width: 118px;
  gap: 6px;
  padding: 9px;
  color: #5b6680;
  background: var(--white);
  border: 1px solid #dce7f1;
  border-radius: 14px;
  font-size: 12px;
  text-align: center;
}

.qr-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  color: #4b5570;
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cedcea;
  border-radius: 11px;
  outline: none;
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(115, 84, 219, 0.13);
}

.notice {
  padding: 13px 15px;
  color: #4f6174;
  background: #edf8ff;
  border: 1px solid #cbe9fa;
  border-radius: 13px;
  font-size: 14px;
}

.notice strong {
  color: #276988;
}

/* Footer and dialogs */
.site-footer,
.footer {
  color: #4f5b78;
  background: linear-gradient(135deg, #edf3ff, #e8f7fc 58%, #f4efff);
  border-top: 1px solid #d7e4f1;
}

.footer-main,
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 0.75fr));
  gap: 30px;
  padding: 48px 0 32px;
}

.footer h2,
.footer h3,
.footer-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a,
.footer a:not(.logo) {
  transition: color var(--ease);
}

.footer-links a:hover,
.footer a:not(.logo):hover {
  color: var(--purple-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 14px 0;
  border-top: 1px solid rgba(135, 152, 188, 0.22);
  font-size: 13px;
}

dialog {
  display: none;
  width: min(900px, calc(100% - 28px));
  max-width: none;
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(35, 42, 73, 0.26);
}

dialog[open] {
  display: block;
}

dialog::backdrop {
  background: rgba(28, 35, 58, 0.44);
  backdrop-filter: blur(3px);
}

.player-dialog {
  grid-template-columns: minmax(0, 0.92fr) minmax(250px, 1fr);
  align-items: center;
}

.player-dialog[open] {
  display: grid;
}

.player-image,
.gallery-image {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #edf3fa;
}

.player-copy {
  padding: 26px;
}

.player-copy h2,
.player-copy p {
  margin-top: 0;
}

.player-copy p {
  color: var(--muted);
}

.dialog-close,
.close-dialog,
.player-dialog button[aria-label*="关闭"],
dialog button[aria-label*="关闭"] {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d8e3ef;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 23px;
  line-height: 1;
}

.gallery-dialog {
  width: fit-content;
  max-width: calc(100% - 28px);
  background: transparent;
}

.gallery-dialog[open] {
  display: block;
}

.gallery-dialog .gallery-image {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(26, 31, 53, 0.28);
}

.backtop,
.back-to-top {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--purple);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 9px 20px rgba(115, 84, 219, 0.29);
  font-size: 14px;
}

.error-page,
.error-404 {
  display: grid;
  min-height: 58vh;
  place-items: center;
  padding: 70px 0;
  text-align: center;
}

.error-page > div,
.error-404 > div {
  max-width: 560px;
}

.error-code {
  margin: 0;
  color: var(--coral);
  font-size: clamp(72px, 15vw, 142px);
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.error-page h1,
.error-404 h1 {
  margin: 15px 0 8px;
  font-size: 28px;
}

.error-page p,
.error-404 p {
  color: var(--muted);
}

/* Tablet navigation and layout */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto minmax(170px, 1fr) auto auto;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
    grid-column: 4;
  }

  #mainNav,
  .main-nav {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    display: none;
    grid-column: auto;
    align-items: stretch;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dce5f0;
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow);
  }

  #mainNav.open,
  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mainNav a,
  .main-nav a {
    padding: 12px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(350px, 0.82fr);
    gap: 30px;
  }

  .video-grid {
    gap: 14px;
  }

  .rank-card {
    grid-template-columns: auto minmax(0, 1fr) 94px;
    gap: 12px;
  }

  .rank-image {
    width: 94px;
    height: 132px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section {
    padding: 58px 0;
  }

  .hero {
    padding: 42px 0 51px;
  }

  .hero-layout,
  .page-hero-grid,
  .app-layout,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-stage {
    max-width: 580px;
    margin: 2px auto 0;
  }

  .page-visual {
    max-width: 600px;
  }

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

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .role-grid,
  .partner-grid,
  .steps,
  .values-grid,
  .contact-grid,
  .app-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .side-block + .side-block {
    margin-top: 0;
  }

  .footer-main,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main > :first-child,
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Phone: a complete, compact first screen and generous hit targets */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .top-bar .container,
  .top-bar-inner {
    min-height: 31px;
  }

  .top-bar-links {
    gap: 10px;
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .top-bar-links a:nth-child(n + 3) {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 64px;
    gap: 9px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-icon {
    width: 31px;
    height: 31px;
  }

  .header-actions {
    display: none;
  }

  .search-bar {
    grid-column: 2;
  }

  .search-inner {
    padding-left: 9px;
  }

  .search-inner input {
    font-size: 12px;
  }

  .search-inner button {
    min-height: 29px;
    padding-inline: 8px;
  }

  .nav-toggle {
    grid-column: 3;
    width: 39px;
    height: 39px;
  }

  #mainNav.open,
  .main-nav.open {
    grid-template-columns: 1fr;
  }

  .breadcrumb-inner {
    min-height: 37px;
    font-size: 12px;
  }

  .hero {
    padding: 30px 0 39px;
  }

  .hero-layout {
    gap: 21px;
  }

  .hero-kicker,
  .section-eyebrow,
  .kicker {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .brand-heading {
    margin-bottom: 5px;
    font-size: 22px;
  }

  .hero-heading {
    font-size: clamp(28px, 8vw, 32px);
    letter-spacing: -0.055em;
    line-height: 1.22;
  }

  .hero-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions a {
    width: 100%;
    min-height: 44px;
  }

  .hero-stage {
    width: min(100%, 360px);
    height: 209px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 8px;
    padding: 8px 5px 0;
  }

  .hero-poster {
    border-width: 3px;
    border-radius: 14px;
    box-shadow: 0 9px 18px rgba(58, 69, 112, 0.13);
  }

  .poster-one {
    transform: rotate(-4deg) translateY(16px);
  }

  .poster-three {
    transform: rotate(4deg) translateY(16px);
  }

  .poster-caption {
    right: 5px;
    bottom: 5px;
    left: 5px;
    padding: 4px 5px;
    border-radius: 6px;
    font-size: 9px;
  }

  .stage-note {
    margin-top: 5px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .section {
    padding: 46px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
  }

  .section-title,
  .page-title {
    font-size: 28px;
  }

  .section-lead,
  .section-header .lead,
  .lead,
  .intro-text {
    font-size: 14px;
  }

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

  .video-info {
    padding: 10px 10px 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-desc {
    font-size: 12px;
  }

  .video-meta {
    font-size: 11px;
  }

  .video-badge {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .play-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    max-width: calc(100vw - 28px);
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .work-grid,
  .article-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .work-image {
    aspect-ratio: 16 / 10;
  }

  .rank-card {
    grid-template-columns: auto minmax(0, 1fr) 90px;
    padding: 13px;
  }

  .rank-image {
    width: 90px;
    height: 122px;
  }

  .feature-grid,
  .role-grid,
  .partner-grid,
  .steps,
  .values-grid,
  .contact-grid,
  .app-features,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full-width {
    grid-column: auto;
  }

  .feature,
  .role,
  .partner,
  .step,
  .about-value,
  .contact-card,
  .app-feature {
    padding: 17px;
  }

  .page-hero {
    padding: 36px 0;
  }

  .page-hero-grid {
    gap: 22px;
  }

  .article-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .article-thumb {
    height: 100%;
    min-height: 138px;
    aspect-ratio: auto;
  }

  .article-info {
    padding: 13px;
  }

  .article-title {
    margin-top: 5px;
    font-size: 16px;
  }

  .article-excerpt,
  .excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 13px;
  }

  .article-layout {
    gap: 30px;
    padding: 32px 0 50px;
  }

  .article-title-main {
    font-size: 30px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.82;
  }

  .article-body h2 {
    margin-top: 30px;
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .app-visual {
    width: min(72vw, 290px);
  }

  .footer-main,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding: 37px 0 25px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .player-dialog[open] {
    display: block;
  }

  .player-copy {
    padding: 19px;
  }

  .backtop,
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 24px);
  }

  .header-inner {
    gap: 6px;
  }

  .logo {
    gap: 6px;
  }

  .logo-text {
    font-size: 15px;
  }

  .search-inner button {
    font-size: 0;
  }

  .search-inner button::before {
    content: "搜";
    font-size: 12px;
  }

  .hero-stage {
    width: min(100%, 330px);
    height: 194px;
  }

  .rank-card {
    grid-template-columns: auto minmax(0, 1fr) 76px;
    gap: 9px;
    padding: 11px;
  }

  .rank-image {
    width: 76px;
    height: 106px;
  }

  .rank-name {
    font-size: 16px;
  }

  .rank-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .article-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .article-thumb {
    min-height: 128px;
  }
}

@media (max-width: 320px) {
  .top-bar {
    display: none;
  }

  .logo-text {
    font-size: 14px;
  }

  .search-inner {
    padding-left: 7px;
  }

  .search-inner input::placeholder {
    color: transparent;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-heading {
    font-size: 28px;
  }

  .hero-stage {
    width: 290px;
    max-width: 100%;
    height: 180px;
    gap: 6px;
  }

  .stage-note {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .video-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .video-thumb {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
  }

  .video-info {
    align-self: center;
  }

  .work-info {
    padding: 14px;
  }

  .rank-card {
    grid-template-columns: auto minmax(0, 1fr) 64px;
    gap: 7px;
  }

  .rank-image {
    display: block;
    width: 64px;
    height: 94px;
  }

  .footer-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Match the shared PHP markup without depending on open on inner divs. */
dialog[open] .player-dialog {
  display: grid;
}
.player-details {
  min-width: 0;
  padding: 30px;
}
.player-details .player-copy {
  padding: 0;
}
.player-title {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.4;
}
.backtop {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.backtop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 767px) {
  .hero-stage {
    height: auto;
    margin-top: 8px;
  }
  dialog[open] .player-dialog {
    display: block;
  }
  .player-details {
    padding: 20px;
  }
}

/* Actual dance-template modules: natural image sizing and consistent card layout. */
img {
  height: auto;
}
.btn-sm {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--purple-dark);
  background: #f3efff;
  border: 1px solid #dcd3f4;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.btn-sm:hover {
  background: #eae2ff;
  border-color: #c8b9ee;
}
.feature-card,
.role-card,
.step-card,
.topic-card,
.value-card,
.contest-card {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.feature-title,
.role-title,
.topic-title,
.contest-title,
.value-card h3,
.step-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.45;
}
.feature-text,
.role-copy,
.topic-text,
.contest-copy,
.value-card p,
.step-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.feature-index,
.step-num,
.role-label,
.topic-tag,
.contest-tag {
  display: inline-flex;
  align-items: center;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}
.feature-index,
.step-num {
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--purple);
  border-radius: 11px;
}
.role-label,
.topic-tag,
.contest-tag {
  padding: 5px 9px;
  background: var(--lilac);
  border-radius: 8px;
}
.role-grid,
.steps-grid,
.partner-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.topic-grid,
.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.role-card,
.contest-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.contest-card > .btn-sm,
.role-card > .btn-sm {
  margin-top: auto;
  padding-top: 8px;
}
.contest-card > .btn-sm {
  margin-top: 20px;
}
.contest-meta {
  margin: 8px 0 0;
  color: var(--purple-dark);
  font-size: 14px;
}
.partner-card {
  display: flex;
  min-height: 108px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  font-weight: 700;
}
.partner-card img {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}
.partner-card:hover {
  border-color: #c8b9ee;
  background: #faf8ff;
}
.app-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
}
.app-copy {
  min-width: 0;
  max-width: 610px;
}
.app-copy > p {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.app-points {
  display: grid;
  gap: 11px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.app-points > p,
.app-points > li {
  margin: 0;
  padding: 10px 14px;
  color: #4e5b78;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  font-size: 14px;
}
.app-actions,
.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.app-visual {
  width: min(100%, 410px);
  height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
}
.app-visual img,
.page-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.app-visual img {
  display: block;
  background: transparent;
}
.page-visual img[src*="app.webp"] {
  height: auto;
  aspect-ratio: 3 / 4;
}
.qr-inline {
  display: flex;
  width: 138px;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
}
.qr-inline img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.rank-card {
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: start;
}
.rank-card > div {
  min-width: 0;
}
.rank-number {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
.rank-name {
  margin: 7px 0 0;
}
.rank-description {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.contact-label,
.contact-value {
  display: block;
}
.contact-label {
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: 13px;
}
.contact-value {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.tip-list {
  display: grid;
  gap: 12px;
}
.tip-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.tip-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--purple-dark);
  background: var(--lilac);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
}
.tip-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.tip-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.tip-row > a {
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 650;
}
.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.article-tag-list span {
  padding: 5px 9px;
  color: var(--purple-dark);
  background: var(--lilac);
  border-radius: 8px;
  font-size: 12px;
}
.article-cover {
  max-height: none;
  padding: 14px;
}
.article-cover img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  margin: 0 auto;
  background: transparent;
}
.article-cover figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.article-sidebar {
  position: sticky;
  top: 96px;
}
.footer-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.65fr) minmax(0, 0.8fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 28px;
}
.footer-grid > * {
  min-width: 0;
}
.footer-brand p {
  margin-top: 15px;
  line-height: 1.8;
}
.footer-col h4 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}
.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.footer-col li,
.footer-col a,
.footer-col p {
  font-size: 13px;
  line-height: 1.65;
}
.footer-col p + p {
  margin-top: 7px;
}
.footer-col p {
  overflow-wrap: anywhere;
}
.footer-qrs {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}
.qr-item {
  display: flex;
  width: 112px;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}
.qr-item img {
  width: 90px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.qr-item span {
  font-size: 11px;
  line-height: 1.5;
}
.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notice-dialog {
  padding: 32px;
}
.notice-title {
  margin: 0 40px 14px 0;
  font-size: 22px;
}
.notice-copy {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .role-grid,
  .steps-grid,
  .partner-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .topic-grid,
  .about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand,
  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .article-sidebar {
    position: static;
  }
}
@media (max-width: 767px) {
  .feature-card,
  .role-card,
  .step-card,
  .topic-card,
  .value-card,
  .contest-card {
    padding: 20px;
  }
  .role-grid,
  .steps-grid,
  .topic-grid,
  .about-values,
  .contest-grid {
    grid-template-columns: 1fr;
  }
  .partner-card {
    min-height: 96px;
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
    font-size: 14px;
  }
  .app-visual {
    width: min(100%, 360px);
  }
  .rank-card {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 13px;
  }
  .tip-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .tip-row > a {
    grid-column: 2;
  }
  .tip-index {
    width: 32px;
    height: 32px;
  }
  .tip-row h3 {
    font-size: 16px;
  }
  .btn-sm {
    min-height: 42px;
  }
  .footer-grid {
    gap: 26px 20px;
  }
  .footer-bottom {
    gap: 16px;
  }
  .notice-dialog {
    padding: 25px 20px;
  }
}
@media (max-width: 390px) {
  .rank-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

.image-dialog {
  padding: 18px;
}
.gallery-caption {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}
.empty-note {
  padding: 12px 14px;
  color: #67728c;
  background: #f2f6fb;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.error-card {
  max-width: 560px;
}
@media (max-width: 767px) {
  .image-dialog {
    padding: 12px;
  }
}
