/* 海角网：当代摄影画廊与旅行影像出版风格。仅使用本地系统字体与本地资源。 */
:root {
  --paper: #fbfaf5;
  --paper-deep: #f3f0e8;
  --white: #ffffff;
  --ink: #21333a;
  --muted: #5e7278;
  --sea: #2d6377;
  --sea-dark: #1f4e60;
  --sea-mist: #dcebef;
  --mist: #e7f0ee;
  --champagne: #b49158;
  --champagne-pale: #f3ead8;
  --warm: #f7eee2;
  --line: rgba(45, 99, 119, 0.18);
  --line-strong: rgba(45, 99, 119, 0.36);
  --shadow: 0 12px 30px rgba(31, 78, 96, 0.09);
  --shadow-hover: 0 18px 38px rgba(31, 78, 96, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(18px, 3vw, 42px);
  --content: 1360px;
  --serif: Songti SC, STSong, SimSun, Noto Serif CJK SC, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, Noto Sans CJK SC, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--sea-dark);
  background: #e8d2a5;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button, [role=button] { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin-inline: auto;
}

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

.visually-hidden:focus {
  position: fixed !important;
  z-index: 100;
  top: 10px;
  left: 10px;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  color: var(--white);
  background: var(--sea);
  border-radius: var(--radius-sm);
}

/* 通用排版、标签与行动按钮 */
.hero-kicker,
.section-eyebrow,
.contest-tag,
.topic-tag,
.role-label,
.contact-label,
.article-meta,
.award-category,
.video-meta,
.work-tags,
.hero-label,
.feature-index,
.step-num,
.tip-index {
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.1em;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin: 0 0 0.85rem;
  color: var(--champagne);
}

.hero-kicker::before,
.section-eyebrow::before {
  width: 24px;
  height: 1px;
  content: '';
  background: currentColor;
}

.btn-primary,
.btn-blue,
.btn-outline,
.btn-light,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn-primary,
.btn-blue {
  color: var(--white);
  background: var(--sea);
  box-shadow: 0 5px 12px rgba(31, 78, 96, 0.16);
}

.btn-primary:hover,
.btn-blue:hover {
  color: var(--white);
  background: var(--sea-dark);
  box-shadow: 0 8px 18px rgba(31, 78, 96, 0.22);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--sea-dark);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.82);
}

.btn-outline:hover {
  color: var(--sea-dark);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  color: var(--sea-dark);
  background: var(--champagne-pale);
  border-color: rgba(180, 145, 88, 0.45);
}

.btn-light:hover {
  background: #ead9b8;
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 36px;
  padding: 0.42rem 0.76rem;
  color: var(--sea-dark);
  background: var(--white);
  border-color: var(--line-strong);
  font-size: 0.78rem;
}

.btn-sm:hover {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
  transform: translateY(-1px);
}

/* 页首与导航 */
.top-bar {
  position: relative;
  z-index: 32;
  color: var(--sea-dark);
  background: var(--champagne-pale);
  border-bottom: 1px solid rgba(180, 145, 88, 0.3);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 32px;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

.top-bar p,
.top-bar span { margin: 0; }

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar a { text-decoration: none; }

.top-bar a:hover {
  color: var(--sea);
  text-decoration: underline;
}

header {
  position: sticky;
  top: 0;
  z-index: 31;
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2.2rem);
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: max-content;
  color: var(--sea-dark);
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  display: grid;
  line-height: 1.05;
}

.logo-text span:first-child {
  color: var(--sea);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-text span:last-child {
  margin-top: 0.22rem;
  color: var(--champagne);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.115em;
}

#mainNav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.1rem, 0.8vw, 0.7rem);
}

#mainNav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 70px;
  padding: 0.3rem 0.32rem;
  color: #39545d;
  font-size: 0.82rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

#mainNav a::after {
  position: absolute;
  right: 0.32rem;
  bottom: 14px;
  left: 0.32rem;
  height: 2px;
  content: '';
  background: var(--champagne);
  opacity: 0;
  transform: scaleX(0.45);
  transition: transform 180ms ease, opacity 180ms ease;
}

#mainNav a:hover,
#mainNav a[aria-current=page],
#mainNav a.active { color: var(--sea); }

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions > a,
.header-actions > button { font-size: 0.78rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  content: '';
  background: var(--sea);
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded=true]::before {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded=true]::after {
  transform: translateY(-3.25px) rotate(-45deg);
}

.search-bar {
  position: relative;
  z-index: 20;
  display: block;
  padding: 0.7rem 0;
  background: var(--sea-mist);
  border-bottom: 1px solid var(--line);
}

.search-inner {
  display: flex;
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: auto;
}

.search-inner input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 0.58rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(45, 99, 119, 0.28);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search-inner button {
  min-width: 108px;
  padding-inline: 1rem;
  color: var(--white);
  background: var(--sea);
  border: 1px solid var(--sea);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  font-weight: 650;
}

.search-inner button:hover { background: var(--sea-dark); }

.breadcrumb {
  overflow: hidden;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid rgba(45, 99, 119, 0.1);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  overflow: auto hidden;
  font-size: 0.77rem;
  white-space: nowrap;
}

.breadcrumb a { color: var(--sea); }

/* 首屏：整张作品为画廊横幅背景，文字在温和海蓝渐变上阅读 */
.hero {
  padding: clamp(1.2rem, 3.5vw, 3.5rem) 0 clamp(2.6rem, 5.5vw, 6rem);
  background: linear-gradient(180deg, var(--paper) 0%, #f8f6ef 100%);
}

.hero-layout {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sea);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: var(--sea);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(22, 71, 87, 0.94) 0%, rgba(36, 91, 108, 0.84) 36%, rgba(45, 99, 119, 0.44) 62%, rgba(26, 67, 81, 0.2) 100%);
}

.hero-label {
  position: absolute;
  z-index: 1;
  top: clamp(1rem, 2.2vw, 1.65rem);
  right: clamp(1rem, 2.2vw, 1.65rem);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.36rem 0.65rem;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(26, 74, 90, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(7px);
}

.hero-corner { display: none; }

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 630px);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 3.4vw, 3rem) clamp(2rem, 4.5vw, 4rem);
  color: var(--white);
}

.hero-kicker { color: #ead1a0; }

.brand-heading {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.hero-heading {
  max-width: 100%;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(48px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

.hero-heading em {
  color: #f0d6a3;
  font-style: normal;
}

.hero-desc {
  max-width: 36ch;
  margin: 1.2rem 0 1.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.93rem, 1.2vw, 1.05rem);
  line-height: 1.78;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 480px);
  gap: 0.65rem;
}

.hero-actions > * { min-width: 0; }

.hero-actions .btn-primary,
.hero-actions .btn-blue {
  color: var(--white);
  background: var(--sea);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-blue {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.62);
}

.hero-actions .btn-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-actions .btn-outline:hover {
  color: var(--sea-dark);
  background: var(--white);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-blue:hover { background: var(--sea-dark); }

.section .btn-outline,
.app-actions .btn-outline,
.player-actions .btn-outline {
  color: var(--sea-dark);
  background: transparent;
  border-color: var(--line-strong);
}

.section .btn-outline:hover,
.app-actions .btn-outline:hover,
.player-actions .btn-outline:hover {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
}

/* 章节框架与柔和底色 */
.section {
  position: relative;
  padding: clamp(3.6rem, 7vw, 7.2rem) 0;
  scroll-margin-top: 130px;
}

.section-lilac { background: var(--sea-mist); }
.section-blue { background: #e9f2f3; }
.section-yellow { background: var(--champagne-pale); }
.section-mint { background: var(--mist); }
.section-coral { background: var(--warm); }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.65rem, 3vw, 2.8rem);
}

.section-copy { min-width: 0; }
.section-eyebrow { color: var(--champagne); }

.section-title {
  max-width: 20ch;
  margin: 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.section-lead {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.head-action {
  justify-self: end;
  white-space: nowrap;
}

/* 视频卡：图片比例保持 16:9，文字为自然的出版条目 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
}

.video-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 16px rgba(31, 78, 96, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.video-card:hover,
.video-card:focus-within {
  border-color: rgba(45, 99, 119, 0.34);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.video-thumb,
.video-info { display: block; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sea-mist);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.video-card:hover .video-thumb img,
.video-card:focus-within .video-thumb img { transform: scale(1.035); }

.video-badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  color: var(--sea-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 75, 90, 0.18);
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-card:hover .play-overlay,
.video-card:focus-within .play-overlay { opacity: 1; }

.play-btn {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 3px;
  color: var(--sea-dark);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 5px 17px rgba(16, 54, 66, 0.2);
  font-size: 1.08rem;
  line-height: 1;
}

.video-info { padding: 1rem 1rem 1.15rem; }

.video-title,
.work-title,
.article-title,
.topic-title,
.feature-title,
.contest-title,
.role-title,
.award-name {
  color: var(--sea-dark);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.012em;
}

.video-title { display: block; font-size: clamp(1.14rem, 1.55vw, 1.38rem); }
.video-desc { display: block; }

.video-desc,
.work-copy,
.article-excerpt,
.topic-text,
.feature-text,
.contest-copy,
.role-copy,
.player-copy,
.notice-copy,
.empty-note {
  margin: 0.58rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.video-meta {
  display: block;
  margin-top: 0.85rem;
  color: var(--champagne);
}

/* 作品墙：两列主画幅，六件作品始终可见 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
}

.filter-btn {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  color: var(--sea-dark);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.1vw, 1.9rem);
}

.work-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(31, 78, 96, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.work-card:first-child { grid-column: span 2; }

.work-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sea-mist);
}

.work-card:first-child .work-image { aspect-ratio: 2.05 / 1; }

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

.work-info {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  flex: 1;
  padding: clamp(0.9rem, 1.7vw, 1.3rem);
}

.work-number {
  display: inline-flex;
  align-items: flex-start;
  padding-top: 0.16rem;
  color: var(--champagne);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.work-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.7rem;
  margin-top: 0.82rem;
  color: var(--champagne);
}

.work-tags a { color: var(--sea); }

/* 获奖资料 */
.award-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.award-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 145, 88, 0.36);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(99, 76, 37, 0.045);
}

.award-card:nth-child(even) { background: rgba(252, 249, 241, 0.88); }

.award-year {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.award-digits {
  color: var(--champagne);
  font-family: var(--serif);
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.award-category {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.27rem 0.48rem;
  color: var(--sea-dark);
  background: var(--sea-mist);
  border-radius: 999px;
}

.award-name {
  margin: 1.15rem 0 0;
  font-size: 1.22rem;
}

.award-work {
  margin: 0.45rem 0;
  color: var(--sea-dark);
  font-size: 0.94rem;
  line-height: 1.6;
}

.award-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.award-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 650;
}

.award-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.award-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.award-table th,
.award-table td {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.award-table th {
  color: var(--sea-dark);
  background: var(--champagne-pale);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

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

/* 内容卡片、资讯与话题 */
.feature-grid,
.article-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.55rem);
}

.feature-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.4vw, 1.85rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.feature-card:nth-child(2) { background: rgba(243, 234, 216, 0.74); }
.feature-card:nth-child(3) { background: rgba(220, 235, 239, 0.73); }

.feature-index {
  display: block;
  margin-bottom: 2.35rem;
  color: var(--champagne);
}

.feature-title {
  margin: 0;
  font-size: clamp(1.28rem, 1.85vw, 1.62rem);
}

.article-card,
.topic-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sea-mist);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.article-card:hover .article-thumb img,
.article-thumb:focus-visible img { transform: scale(1.04); }

.article-info { padding: 1rem 1rem 1.15rem; }
.article-meta { margin: 0; color: var(--champagne); }

.article-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.14rem, 1.7vw, 1.46rem);
}

.article-title a { text-decoration: none; }
.article-title a:hover { color: var(--sea); }
.article-info .btn-sm { margin-top: 1rem; }

.topic-card {
  min-height: 215px;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  background: rgba(255, 255, 255, 0.58);
}

.topic-tag {
  display: inline-flex;
  padding: 0.27rem 0.5rem;
  color: var(--sea-dark);
  background: var(--champagne-pale);
  border-radius: 999px;
}

.topic-title {
  margin: 1.15rem 0 0;
  font-size: clamp(1.25rem, 1.95vw, 1.58rem);
}

/* 角色、伙伴与步骤 */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.role-card {
  display: flex;
  min-width: 0;
  min-height: 282px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 2vw, 1.55rem);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.role-card:nth-child(2n) { background: rgba(231, 240, 238, 0.74); }
.role-label { color: var(--champagne); }

.role-title {
  margin: 2rem 0 0;
  font-size: clamp(1.23rem, 1.85vw, 1.56rem);
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.partner-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.2vw, 1rem);
}

.partner-card {
  display: grid;
  min-width: 0;
  min-height: 138px;
  place-items: center;
  gap: 0.62rem;
  padding: 1rem;
  color: var(--sea-dark);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.partner-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.partner-card img {
  width: auto;
  max-width: 80%;
  height: 40px;
  object-fit: contain;
  opacity: 0.72;
}

.partner-card span { font-size: 0.8rem; font-weight: 600; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.step-card {
  min-width: 0;
  padding: 1.2rem 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 145, 88, 0.34);
  border-radius: var(--radius-sm);
}

.step-card:nth-child(even) { background: rgba(243, 234, 216, 0.77); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  color: var(--sea-dark);
  background: var(--champagne-pale);
  border: 1px solid rgba(180, 145, 88, 0.42);
  border-radius: 50%;
}

.step-card h3 {
  margin: 1.75rem 0 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.38;
}

.step-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.1rem 1.15rem 1.15rem;
  color: var(--sea-dark);
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.55vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 1.15rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--champagne);
  content: '+';
  font-family: var(--sans);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.35rem;
  text-align: center;
  transform: translateY(-50%);
}

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

.faq-answer {
  max-width: 74ch;
  padding: 0 1.15rem 1.2rem;
  color: var(--muted);
  line-height: 1.82;
}

/* 掌上影像 */
.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.83fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7.5rem);
}

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

.app-copy h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.015em;
}

.app-copy > p {
  max-width: 56ch;
  margin: 1.2rem 0;
  color: var(--muted);
  line-height: 1.85;
}

.app-points {
  display: grid;
  gap: 0.54rem;
  margin: 1.25rem 0;
}

.app-points p {
  position: relative;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--sea-dark);
}

.app-points p::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  content: '';
  background: var(--champagne);
  border-radius: 50%;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.qr-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.qr-inline img {
  width: 110px;
  height: 110px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.app-visual {
  display: grid;
  min-height: 460px;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf3f3, #f6ede0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-visual img,
.page-visual img[src*='app.webp'] {
  width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
}

/* 内页开场、赛事与联系 */
.page-hero {
  padding: clamp(2.8rem, 6vw, 6rem) 0;
  background: linear-gradient(120deg, var(--sea-mist), var(--paper));
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 6rem);
}

.page-intro { min-width: 0; }

.page-intro h1 {
  margin: 0 0 0.75rem;
  color: var(--champagne);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.page-title {
  max-width: 16ch;
  margin: 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 54px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.intro-text {
  max-width: 56ch;
  margin: 1.3rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.page-visual {
  display: grid;
  min-height: 380px;
  place-items: center;
  overflow: hidden;
  background: var(--champagne-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.page-visual.app-visual img,
.page-visual img.app-image { object-fit: contain; }

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 6rem);
}

.split-image {
  min-height: 380px;
  overflow: hidden;
  background: var(--sea-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

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

.split-copy h2 {
  margin: 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600;
  line-height: 1.32;
}

.split-copy > p {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.85;
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.contest-card {
  display: flex;
  min-width: 0;
  min-height: 290px;
  flex-direction: column;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(31, 78, 96, 0.04);
}

.contest-card:nth-child(3n + 2) { background: rgba(231, 240, 238, 0.7); }
.contest-card:nth-child(3n) { background: rgba(243, 234, 216, 0.72); }

.contest-tag {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0.31rem 0.5rem;
  color: var(--white);
  background: var(--sea);
  border-radius: 999px;
}

.contest-title {
  margin: 1.9rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.contest-meta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.1rem);
}

.contact-card {
  min-width: 0;
  min-height: 165px;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.contact-card:nth-child(3n + 2) { background: rgba(243, 234, 216, 0.72); }
.contact-card:nth-child(3n) { background: rgba(231, 240, 238, 0.74); }
.contact-label { color: var(--champagne); }

.contact-value {
  display: block;
  margin-top: 1.9rem;
  overflow-wrap: anywhere;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.65vw, 1.26rem);
  font-weight: 600;
  line-height: 1.42;
  text-decoration: none;
}

/* 长文阅读 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.article-main { min-width: 0; }

.article-title-main {
  max-width: 18ch;
  margin: 0.5rem 0 1.3rem;
  overflow-wrap: anywhere;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.012em;
  text-wrap: balance;
}

.article-cover {
  margin: 0 0 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.article-cover img { width: 100%; }

.article-body {
  max-width: 74ch;
  overflow-wrap: anywhere;
}

.article-section {
  padding: 0;
  margin: 0 0 1.5rem;
}

.article-body p {
  margin: 0 0 1.38rem;
  color: #344d54;
  font-size: 17px;
  line-height: 1.9;
}

.article-body h2,
.article-body h3 {
  margin: 2.35rem 0 0.85rem;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
}

.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.article-body h3 { font-size: clamp(1.25rem, 2vw, 1.62rem); }

.article-body ul,
.article-body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.35rem;
  color: #344d54;
  line-height: 1.85;
}

.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.article-tag-list a,
.article-tag-list span {
  padding: 0.32rem 0.58rem;
  color: var(--sea-dark);
  background: var(--champagne-pale);
  border: 1px solid rgba(180, 145, 88, 0.38);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 3rem;
}

.article-nav a {
  min-width: 0;
  padding: 1rem;
  overflow-wrap: anywhere;
  color: var(--sea-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.article-sidebar {
  position: sticky;
  top: 128px;
  min-width: 0;
}

.side-block {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(220, 235, 239, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.side-block:nth-child(even) { background: rgba(243, 234, 216, 0.72); }

.side-block h2,
.side-block h3 {
  margin: 0 0 0.7rem;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
}

.side-links {
  display: grid;
  gap: 0;
}

.side-links a {
  padding: 0.7rem 0;
  overflow-wrap: anywhere;
  color: var(--sea);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

/* 问答文章与关于页面 */
.faq-intro {
  max-width: 70ch;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.85;
}

.tip-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tip-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.tip-row:last-child { border-bottom: 0; }
.tip-index { color: var(--champagne); font-size: 0.9rem; }

.tip-row h3 {
  margin: 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.55vw, 1.24rem);
  font-weight: 600;
  line-height: 1.42;
}

.tip-row p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.tip-row a {
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}

.value-card {
  min-width: 0;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.value-card:nth-child(3n + 2) { background: rgba(243, 234, 216, 0.68); }
.value-card:nth-child(3n) { background: rgba(231, 240, 238, 0.7); }

.value-card h3 {
  margin: 1.8rem 0 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.4;
}

.value-card p { color: var(--muted); line-height: 1.75; }

/* 页脚：浅海蓝与暖白，不使用黑色底 */
footer {
  position: relative;
  padding: clamp(3rem, 5vw, 4.8rem) 0 1.3rem;
  color: #35545d;
  background: #dcebed;
  border-top: 1px solid rgba(45, 99, 119, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-brand,
.footer-col { min-width: 0; }
.footer-brand .logo-text span:first-child { color: var(--sea); }

.footer-brand p {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: #537078;
  font-size: 0.85rem;
  line-height: 1.75;
}

.footer-col h2,
.footer-col h3,
.footer-col h4 {
  margin: 0 0 0.8rem;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.footer-col ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col li { margin: 0.42rem 0; }

.footer-col a,
.footer-col span,
.footer-col p {
  overflow-wrap: anywhere;
  color: #45636b;
  font-size: 0.83rem;
}

.footer-col a:hover { color: var(--sea); }
.footer-col .btn-sm { margin-top: 0.8rem; background: rgba(255, 255, 255, 0.65); }

.footer-qrs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.qr-item {
  width: min(100%, 105px);
  color: #45636b;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

.qr-item img {
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  color: #587279;
  border-top: 1px solid rgba(45, 99, 119, 0.2);
  font-size: 0.75rem;
}

.footer-bottom p { margin: 0; }

.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-bottom button {
  color: var(--sea-dark);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(45, 99, 119, 0.28);
}

.back-top {
  position: fixed;
  z-index: 10;
  right: max(18px, 3vw);
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: var(--sea);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(31, 78, 96, 0.2);
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-top:hover { background: var(--sea-dark); }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* 弹窗：仅 open 状态显示；图片元素自身完整 contain，不作为容器选择 */
dialog {
  display: none;
  width: min(92vw, 980px);
  max-width: min(92vw, 980px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(18, 58, 70, 0.25);
}

dialog[open] { display: block; }

dialog::backdrop {
  background: rgba(24, 62, 73, 0.52);
  backdrop-filter: blur(3px);
}

.player-dialog,
.notice-dialog,
.image-dialog {
  position: relative;
  min-width: 0;
}

.player-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
}

.player-image {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 80vh;
  object-fit: contain;
  background: #e6eff0;
}

.player-details { padding: clamp(1.2rem, 3vw, 2rem); }

.player-title,
.notice-title {
  margin: 1.45rem 0 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.32;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--sea-dark);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(31, 78, 96, 0.12);
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-close:hover { color: var(--white); background: var(--sea); }

.notice-dialog {
  max-width: 620px;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--champagne-pale);
}

.notice-dialog .dialog-close { background: var(--white); }
.notice-dialog .btn-primary { margin-top: 1.3rem; }

.image-dialog {
  display: grid;
  max-height: 90vh;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #e9f1f2;
}

.gallery-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  margin: auto;
  object-fit: contain;
}

.gallery-caption {
  padding: 0.9rem 4rem 0.95rem 1rem;
  margin: 0;
  color: var(--sea-dark);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* 404 */
.error-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 3rem 0;
  background: linear-gradient(130deg, var(--sea-mist), var(--warm));
}

.error-card {
  width: min(calc(100% - (var(--gutter) * 2)), 700px);
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-card strong {
  display: block;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
}

.error-card h1,
.error-card h2 {
  margin: 1.4rem 0 0;
  color: var(--sea-dark);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.28;
}

.error-card p { max-width: 48ch; color: var(--muted); }

/* 平板：保留 JS 的 #mainNav.open 逻辑，搜索仍固定显示在导航下方 */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle { display: block; }

  #mainNav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.55rem var(--gutter) 1rem;
    background: rgba(251, 250, 245, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(31, 78, 96, 0.08);
  }

  #mainNav.open { display: grid; }

  #mainNav a {
    min-height: 45px;
    padding: 0.6rem 0.35rem;
    border-bottom: 1px solid rgba(45, 99, 119, 0.12);
  }

  #mainNav a::after {
    right: auto;
    bottom: 5px;
    left: 0.35rem;
    width: 38px;
  }

  .header-actions { display: none; }
  .hero-layout { min-height: 500px; }
  .hero-copy { width: min(100%, 580px); }

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

  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-wall,
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

/* 手机：海报式首屏，按钮单列；内容自然增高而不裁切 */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  html { scroll-padding-top: 118px; }
  body { font-size: 15px; }

  .top-bar .container {
    min-height: 30px;
    font-size: 0.65rem;
  }

  .top-bar-links { display: none; }
  .header-inner { min-height: 58px; }
  .logo-icon { width: 33px; height: 33px; }

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

  .search-bar { padding: 0.55rem 0; }
  .search-inner input { min-height: 42px; font-size: 0.84rem; }
  .search-inner button { min-width: 94px; padding-inline: 0.65rem; font-size: 0.76rem; }

  .breadcrumb-inner { min-height: 36px; font-size: 0.72rem; }

  .hero {
    padding: 0.9rem 0 2.8rem;
    background: var(--paper);
  }

  .hero-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100svh - 215px);
    border-radius: 13px;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(22, 71, 87, 0.6) 0%, rgba(25, 74, 90, 0.88) 47%, rgba(25, 70, 85, 0.95) 100%);
  }

  .hero-visual > img { object-position: center; }

  .hero-label {
    top: 0.85rem;
    right: 0.85rem;
    min-height: 25px;
    padding: 0.28rem 0.55rem;
    font-size: 0.63rem;
  }

  .hero-copy {
    width: 100%;
    min-height: calc(100svh - 215px);
    justify-content: flex-end;
    padding: 4.5rem 1.15rem 1.15rem;
  }

  .hero-kicker { margin-bottom: 0.6rem; font-size: 0.65rem; }
  .brand-heading { margin-bottom: 0.55rem; font-size: 0.96rem; }

  .hero-heading {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 36px);
    line-height: 1.24;
  }

  .hero-desc {
    max-width: 34ch;
    margin: 0.85rem 0 1rem;
    font-size: 0.9rem;
    line-height: 1.68;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.48rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-blue,
  .hero-actions .btn-outline,
  .hero-actions .btn-light {
    min-height: 44px;
    padding-block: 0.6rem;
  }

  .section { padding: 3.2rem 0; }

  .section-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
    margin-bottom: 1.45rem;
  }

  .section-title { max-width: 17ch; font-size: clamp(28px, 8vw, 34px); }
  .head-action { justify-self: start; }

  .video-grid,
  .feature-grid,
  .article-grid,
  .topic-grid,
  .contest-grid,
  .about-values,
  .contact-grid { grid-template-columns: 1fr; }

  .play-overlay {
    place-items: end end;
    padding: 0.65rem;
    background: linear-gradient(transparent 45%, rgba(28, 75, 90, 0.28));
    opacity: 1;
  }

  .play-btn { width: 48px; height: 48px; font-size: 0.92rem; }
  .video-info { padding: 0.9rem; }

  .work-grid { gap: 0.75rem; }
  .work-card:first-child .work-image { aspect-ratio: 1.45 / 1; }
  .work-info { gap: 0.55rem; padding: 0.78rem; }
  .work-title { font-size: 1.02rem; }
  .work-copy { font-size: 0.83rem; }
  .work-tags { gap: 0.2rem 0.45rem; font-size: 0.62rem; }

  .award-grid { grid-template-columns: 1fr; }
  .award-card { min-height: 0; }
  .award-year { min-height: 0; }

  .feature-index { margin-bottom: 1.6rem; }
  .role-grid,
  .partner-wall,
  .steps-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 0; }
  .role-title { margin-top: 1.35rem; }
  .partner-card { min-height: 108px; }

  .app-layout,
  .page-hero-grid,
  .split-layout { grid-template-columns: 1fr; gap: 1.5rem; }

  .app-visual { min-height: 330px; }
  .app-visual img,
  .page-visual img[src*='app.webp'] { max-height: 500px; }
  .page-visual,
  .split-image { min-height: 250px; }
  .page-title { max-width: 14ch; font-size: clamp(34px, 10vw, 44px); }

  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-title-main { max-width: 16ch; font-size: clamp(36px, 10vw, 42px); }
  .article-body p { font-size: 17px; line-height: 1.9; }
  .article-sidebar { position: static; }
  .article-nav { grid-template-columns: 1fr; }

  .tip-row {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    padding: 0.95rem;
  }

  .tip-row a {
    grid-column: 2;
    justify-self: start;
  }

  .faq-item summary { padding: 1rem 3rem 1rem 1rem; }
  .faq-answer { padding: 0 1rem 1.1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-brand { grid-column: span 2; }

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

  dialog {
    width: 94vw;
    max-width: 94vw;
    max-height: 92vh;
  }

  .player-dialog { grid-template-columns: 1fr; }
  .player-image { min-height: 220px; max-height: 50vh; }
  .player-details { padding: 1.1rem; }
  .gallery-image { max-height: 76vh; }
}

@media (max-width: 389px) {
  .top-bar .container {
    display: block;
    padding: 0.4rem 0;
    text-align: center;
  }

  .logo-text span:first-child { font-size: 1.15rem; }
  .search-inner button { min-width: 82px; }
  .hero-copy { padding-inline: 1rem; }
  .hero-heading { font-size: 32px; }
  .hero-desc { font-size: 0.86rem; }
  .section-title { font-size: 28px; }
  .work-info { grid-template-columns: 1fr; gap: 0.25rem; }
  .work-number { padding-top: 0; }
  .qr-inline { align-items: flex-start; flex-direction: column; }
  .footer-grid,
  .footer-brand { grid-template-columns: 1fr; grid-column: span 1; }
}

@media (min-width: 1440px) {
  .hero { padding-top: 4.5rem; }
  .hero-layout { min-height: 560px; }
  .hero-copy { padding-left: clamp(4.5rem, 6vw, 6rem); }
  .video-grid { gap: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
