:root {
  --bg: #f7fbff;
  --paper: #ffffff;
  --paper-soft: #fffdf7;
  --ink: #19314f;
  --text: #24364f;
  --muted: #69788c;
  --line: #d9e7f4;
  --line-strong: #bad4ef;
  --blue: #2f80ed;
  --blue-dark: #1f5fb8;
  --cyan: #22b8cf;
  --green: #2fbf71;
  --yellow: #f6c944;
  --coral: #ff7a59;
  --pink: #ff8fb3;
  --violet: #7c6ff0;
  --danger: #d64545;
  --success: #168a4a;
  --warning: #bd7a00;
  --shadow-sm: 0 10px 24px rgba(37, 83, 130, 0.08);
  --shadow: 0 18px 42px rgba(37, 83, 130, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f0f8ff 0%, var(--bg) 44%, #fff8ed 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(186, 212, 239, 0.8);
  backdrop-filter: blur(16px);
}

.nav-shell,
.nav-links,
.section-head,
.hero-actions,
.action-row,
.filter-bar,
.media-section-title,
.admin-work-row,
.admin-hero {
  display: flex;
  align-items: center;
}

.nav-shell {
  min-height: 76px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.nav-links {
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  background: #e9f7ff;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.section {
  padding: 48px 0;
}

.narrow-page {
  width: min(760px, calc(100% - 32px));
}

.home-hero,
.page-hero,
.login-page {
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(47, 191, 113, 0.1) 48%, rgba(246, 201, 68, 0.16));
  border-bottom: 1px solid #d9e7f4;
}

.home-hero {
  padding: 72px 0 54px;
}

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

.page-hero-inner {
  display: grid;
  gap: 8px;
}

.hero-stage,
.login-grid,
.detail-page,
.work-form-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-stage {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.login-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: 52px 0;
}

.detail-page {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
}

.work-form-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
}

.hero-copy h1,
.login-copy h1,
.admin-hero h1,
.page-hero h1 {
  font-size: 3rem;
  max-width: 760px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.compact-lead {
  margin-bottom: 0;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: #0e8d76;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 10px;
}

.section-kicker {
  margin-bottom: 8px;
}

.hero-actions,
.action-row {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.showcase-tile,
.type-card,
.work-card,
.panel,
.form-section,
.auth-panel,
.experience-box,
.detail-hero-card,
.guide-card,
.media-card,
.media-item,
.student-note,
.stat-card,
.admin-work-row,
.account-card,
.empty-state,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.showcase-tile {
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.showcase-tile:first-child {
  grid-row: span 2;
}

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

.showcase-tile span,
.type-code {
  color: rgba(25, 49, 79, 0.62);
  font-weight: 950;
}

.showcase-tile strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.showcase-tile small {
  color: var(--muted);
  font-weight: 650;
}

.tile-web,
.type-card-web,
.type-panel-web {
  background: #e8f7ff;
  border-color: #a7dbff;
}

.tile-mini,
.type-card-mini,
.type-panel-mini {
  background: #effcef;
  border-color: #afe7bf;
}

.tile-iot,
.type-card-iot,
.type-panel-iot {
  background: #fff3df;
  border-color: #ffd38a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(47, 128, 237, 0.14);
}

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

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: #e8f7ff;
  color: var(--blue-dark);
  border-color: #a7dbff;
}

.btn-ghost {
  background: #fff;
  color: var(--blue-dark);
  border-color: var(--line);
}

.btn-block {
  width: 100%;
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head-inline,
.media-section-title {
  align-items: flex-start;
}

.media-section-title {
  justify-content: space-between;
  gap: 16px;
}

.card-grid,
.type-card-grid,
.stats-grid,
.form-grid,
.meta-grid,
.form-main,
.form-side,
.detail-main,
.detail-side,
.video-stack,
.media-list,
.admin-account-grid,
.work-admin-list,
.login-feature-list {
  display: grid;
  gap: 16px;
}

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

.type-card {
  min-height: 190px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.type-card h3 {
  margin: 18px 0 8px;
}

.type-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.work-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.media-link img,
.work-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e8f7ff;
}

.work-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.work-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

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

.meta-line,
.muted,
.work-card-body p,
.empty-state span,
.guide-card p,
td small {
  color: var(--muted);
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.pill {
  color: #075985;
  background: #e0f2fe;
}

.student-note {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: #fff8e5;
  border-color: #ffe09a;
}

.filter-bar {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-panel {
  padding: 18px;
  background: #fff;
}

.filter-bar input {
  min-width: 260px;
  flex: 1;
}

label,
.field-block {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid #cfe0f1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid rgba(47, 128, 237, 0.16);
  border-color: var(--blue);
}

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

.panel,
.form-section,
.experience-box,
.guide-card,
.auth-panel {
  padding: 24px;
}

.lively-panel,
.studio-panel {
  background: rgba(255, 255, 255, 0.95);
}

.admin-shell,
.admin-dashboard {
  padding-top: 32px;
}

.admin-hero {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-hero-colorful,
.editor-hero {
  background: linear-gradient(135deg, #e8f7ff, #fff8e5 55%, #effcef);
}

.studio-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 850;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.25rem;
  color: var(--ink);
}

.stat-blue {
  background: #e8f7ff;
  border-color: #a7dbff;
}

.stat-green {
  background: #effcef;
  border-color: #afe7bf;
}

.stat-yellow {
  background: #fff8e5;
  border-color: #ffe09a;
}

.stat-coral {
  background: #fff0ea;
  border-color: #ffc0ad;
}

.work-admin-list {
  gap: 12px;
}

.admin-work-row {
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  box-shadow: none;
}

.work-row-main {
  min-width: 0;
  flex: 1;
}

.work-row-main h3 {
  margin: 8px 0 6px;
}

.work-row-main p {
  margin: 0;
  color: var(--muted);
}

.work-row-meta {
  display: grid;
  gap: 8px;
  min-width: 118px;
  color: var(--muted);
  font-weight: 750;
}

.compact {
  gap: 10px;
}

.link-danger {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.status-draft {
  color: var(--warning);
  background: #fff4d8;
}

.status-published {
  color: var(--success);
  background: #e5f8eb;
}

.status-offline {
  color: var(--muted);
  background: #edf2f7;
}

.admin-account-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.account-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  box-shadow: none;
}

.account-card span,
.account-card small {
  color: var(--muted);
}

.admin-dashboard-v2 {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-side-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 2px solid #cfe8f8;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 255, 0.9));
  box-shadow: 0 18px 38px rgba(37, 83, 130, 0.1);
}

.side-brand h2 {
  font-size: 2rem;
  margin: 10px 0 0;
}

.admin-side-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  min-height: 62px;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #d7eafa;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: #18406d;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  transform: translateX(4px);
  border-color: #89d2fb;
  background: #e8f7ff;
}

.admin-nav-item.is-active {
  color: #075985;
  box-shadow: 0 12px 22px rgba(47, 128, 237, 0.13);
}

.admin-nav-item::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 12px;
  border-radius: 999px;
  background: #b9dafc;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.admin-nav-item.is-active::before {
  background: #2f80ed;
}

.side-actions {
  display: grid;
  gap: 10px;
}

.admin-content-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.dashboard-section {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 2px solid #cfe8f8;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(37, 83, 130, 0.1);
}

.dashboard-tab[hidden] {
  display: none;
}

.dashboard-tab.is-active {
  animation: dashboardTabIn 0.22s ease both;
}

@keyframes dashboardTabIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-section::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(232, 247, 255, 0.7);
  border-radius: 24px;
  transform: rotate(16deg);
  pointer-events: none;
}

.dashboard-section > * {
  position: relative;
  z-index: 1;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-section-head h1,
.dashboard-section-head h2 {
  margin-bottom: 6px;
}

.visual-panel {
  background:
    linear-gradient(135deg, #e8f7ff, #fff8e5 55%, #effcef);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 20px;
  border: 2px solid #d4e8f7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(37, 83, 130, 0.08);
}

.metric-card span {
  color: #60748a;
  font-weight: 900;
}

.metric-card strong {
  color: #15304f;
  font-size: 2.3rem;
  line-height: 1;
}

.metric-blue {
  background: #dff5ff;
  border-color: #89d2fb;
}

.metric-green {
  background: #e5fbe9;
  border-color: #8fe8ac;
}

.metric-yellow {
  background: #fff0cf;
  border-color: #ffc66c;
}

.metric-pink {
  background: #ffdce8;
  border-color: #ffb0cb;
}

.metric-white {
  background: #ffffff;
  border-color: #cfe8f8;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chart-card {
  min-height: 380px;
  padding: 24px;
  border: 2px solid rgba(207, 232, 248, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.chart-card-head h2 {
  margin: 0;
  font-size: 1.24rem;
}

.chart-card-head span {
  color: #60748a;
  font-weight: 850;
}

.pie-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  justify-items: stretch;
  min-height: 300px;
}

.pie-wrap {
  position: relative;
  width: 300px;
  height: 300px;
}

.pie-chart {
  width: 300px;
  height: 300px;
  overflow: visible;
}

.pie-bg {
  fill: rgba(216, 234, 250, 0.88);
}

.pie-slice {
  filter: drop-shadow(0 8px 12px rgba(37, 83, 130, 0.12));
}

.pie-center {
  position: absolute;
  inset: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 83, 130, 0.12);
}

.pie-center strong {
  color: #15304f;
  font-size: 2.1rem;
  line-height: 1;
}

.pie-center span {
  color: #60748a;
  font-weight: 900;
}

.pie-legend {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pie-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(246, 251, 255, 0.92);
}

.pie-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #263d58;
  font-weight: 850;
  font-size: 1.08rem;
  white-space: nowrap;
}

.pie-legend-row span i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #72cfff;
}

.legend-mini_program span i {
  background: #7ee6a0;
}

.legend-video span i {
  background: #ffc96d;
}

.pie-legend-row strong {
  color: #15304f;
  font-size: 1.6rem;
  white-space: nowrap;
}

.admin-filter-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 2px solid #d7eafa;
  border-radius: 24px;
  background: rgba(232, 247, 255, 0.72);
}

.admin-filter-card .field-block {
  gap: 6px;
}

.account-group {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.account-group:first-of-type {
  margin-top: 0;
}

.account-group h3 {
  margin: 0;
  font-size: 1.36rem;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-super {
  background: #fff8e5;
  border-color: #ffe09a;
}

.account-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid #b9dafc;
  border-radius: 14px;
  background: #fff;
  color: #18406d;
  font-weight: 900;
  white-space: nowrap;
}

.storage-entry-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(224, 244, 255, 0.96), rgba(255, 243, 217, 0.88) 54%, rgba(231, 252, 236, 0.94));
}

.storage-entry-panel h2,
.storage-entry-panel p {
  margin-bottom: 0;
}

.cloud-hero {
  background:
    linear-gradient(135deg, #e8f7ff, #f2fff3 44%, #fff1d0);
}

.storage-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.storage-status-card,
.storage-config-form,
.storage-path-preview {
  border: 2px solid #cfe8f8;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(37, 83, 130, 0.1);
}

.storage-status-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, #ffffff, #f3fbff);
}

.storage-status-card h2 {
  margin: 0;
  font-size: 2.1rem;
}

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

.status-list p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d8eafa;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.status-list strong {
  color: #15304f;
}

.status-list span {
  color: #5a6d83;
  overflow-wrap: anywhere;
}

.storage-config-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cloud-section {
  box-shadow: none;
}

.image-cloud-section {
  background: #e8f7ff;
  border-color: #89d2fb;
}

.video-cloud-section {
  background: #fff0cf;
  border-color: #ffc66c;
}

.watermark-section {
  background: linear-gradient(135deg, #ffe9f2, #fff7cf 46%, #e4fbff);
  border-color: #ffadca;
}

.watermark-preview-box {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 156px;
  padding: 22px;
  border: 2px dashed #ffadca;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.45)),
    repeating-linear-gradient(-45deg, rgba(255, 173, 202, 0.22) 0 10px, transparent 10px 20px);
  color: #6a7b91;
  font-weight: 900;
}

.watermark-preview-box img {
  width: min(180px, 72%);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(168, 122, 22, 0.24));
}

.cloud-toggle {
  max-width: 620px;
}

.storage-path-preview {
  display: grid;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(224, 244, 255, 0.9), rgba(255, 243, 217, 0.72), rgba(231, 252, 236, 0.88));
}

.storage-path-preview h2 {
  margin-bottom: 0;
}

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

.path-grid code {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(137, 210, 251, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #18406d;
  overflow-wrap: anywhere;
}

.storage-submit-row {
  display: flex;
  justify-content: flex-end;
}

.form-main,
.form-side,
.detail-main,
.detail-side {
  align-content: start;
}

.form-section {
  display: grid;
  gap: 18px;
}

.rainbow-section {
  background: #e8f7ff;
  border-color: #a7dbff;
}

.sunny-section {
  background: #fff8e5;
  border-color: #ffe09a;
}

.type-switcher {
  max-width: 460px;
}

.sticky-card {
  position: sticky;
  top: 96px;
}

.publish-card {
  background: #effcef;
  border-color: #afe7bf;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid #cfe0f1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.checkbox-card input {
  width: auto;
  margin: 0;
}

.media-list {
  gap: 14px;
}

.media-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.media-item-actions {
  display: flex;
  align-items: end;
}

.login-copy {
  display: grid;
  gap: 12px;
}

.login-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.06rem;
}

.login-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.login-feature-list span {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  background: rgba(255, 255, 255, 0.95);
}

.detail-hero-card {
  overflow: hidden;
}

.detail-cover-wrap {
  background: #e8f7ff;
}

.detail-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.detail-head {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.detail-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.meta-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.meta-grid strong,
.meta-grid span {
  display: block;
}

.meta-grid strong {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.qr-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.qr-image {
  width: 160px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.qr-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.video-player {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #132238;
  object-fit: contain;
}

.watermarked-video {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #132238;
  aspect-ratio: 16 / 9;
}

.watermarked-video .video-player {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-loading-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 54px;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(8, 22, 38, 0.82), rgba(9, 39, 67, 0.62));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-loading-text {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.video-loading-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.video-loading-bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72cfff, #7ee6a0);
  transition: width 0.25s ease;
}

.is-video-panel-hidden .video-loading-panel {
  opacity: 0;
  transform: translateY(8px);
}

.video-logo-watermark {
  position: absolute;
  width: min(22%, var(--watermark-width, 118px));
  min-width: 72px;
  opacity: var(--watermark-opacity, 0.62);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  z-index: 2;
}

.watermark-top-right {
  top: 14px;
  right: 14px;
}

.watermark-top-left {
  top: 14px;
  left: 14px;
}

.watermark-bottom-right {
  right: 14px;
  bottom: 14px;
}

.watermark-bottom-left {
  bottom: 14px;
  left: 14px;
}

.media-card {
  overflow: hidden;
}

.media-title {
  margin: 0;
  padding: 16px 16px 0;
  font-size: 1rem;
}

.media-figure {
  margin: 0;
}

.media-figure .media-title {
  padding: 14px 16px 16px;
}

.showcase-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.side-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.guide-card {
  display: grid;
  gap: 10px;
  background: #fff8e5;
  border-color: #ffe09a;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  box-shadow: none;
}

.wide-empty {
  grid-column: 1 / -1;
}

.flash-stack {
  margin-top: 16px;
}

.flash {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.flash-success {
  border-color: #afe7bf;
  color: var(--success);
}

.flash-error {
  border-color: #ffc0ad;
  color: var(--danger);
}

@media (max-width: 1040px) {
  .hero-stage,
  .login-grid,
  .detail-page,
  .work-form-layout {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }

  .studio-stats,
  .type-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 34px 0;
  }

  .nav-shell,
  .section-head,
  .media-section-title,
  .admin-hero,
  .action-box,
  .admin-work-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .hero-copy h1,
  .login-copy h1,
  .admin-hero h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .hero-showcase,
  .type-card-grid,
  .studio-stats,
  .two-col,
  .login-feature-list,
  .student-note {
    grid-template-columns: 1fr;
  }

  .showcase-tile:first-child {
    grid-row: auto;
  }

  .panel,
  .form-section,
  .experience-box,
  .guide-card,
  .auth-panel,
  .detail-head,
  .student-note,
  .admin-hero {
    padding: 18px;
  }

  .filter-bar input,
  .filter-bar select,
  .filter-bar button {
    width: 100%;
    min-width: 0;
  }

  .qr-layout {
    grid-template-columns: 1fr;
  }
}

/* Admin redesign */
.admin-body {
  background:
    linear-gradient(135deg, rgba(224, 244, 255, 0.95) 0%, rgba(255, 252, 243, 0.96) 48%, rgba(239, 252, 243, 0.95) 100%);
  font-size: 17px;
}

.admin-body .site-header {
  border-bottom: 2px solid #cfe8f8;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.admin-body .brand strong,
.admin-body h1,
.admin-body h2,
.admin-body h3 {
  color: #15304f;
}

.admin-body .nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
}

.admin-body .nav-links a:hover {
  background: #e8f7ff;
}

.admin-dashboard,
.admin-shell,
.narrow-page {
  padding-top: 34px;
}

.admin-hero,
.auth-panel,
.panel,
.form-section,
.account-card,
.admin-work-row,
.media-item,
.checkbox-card,
.empty-state {
  border: 2px solid #cfe8f8;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(37, 83, 130, 0.1);
}

.admin-hero {
  display: flex;
  align-items: center;
  padding: 32px;
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}

.admin-hero::after,
.auth-panel::after,
.studio-panel::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  transform: rotate(16deg);
  pointer-events: none;
}

.admin-hero-colorful,
.editor-hero,
.login-page {
  background:
    linear-gradient(135deg, rgba(224, 244, 255, 0.96), rgba(255, 243, 217, 0.88) 55%, rgba(231, 252, 236, 0.94));
}

.admin-body .eyebrow,
.admin-body .section-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #aad9f7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #075985;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.admin-hero h1,
.login-copy h1 {
  font-size: 3.3rem;
  letter-spacing: 0;
}

.admin-body .lead,
.admin-body .login-copy p,
.admin-body .muted,
.admin-body .work-row-main p {
  color: #52677f;
  line-height: 1.76;
}

.admin-body .btn {
  border-radius: 16px;
  min-height: 48px;
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.12);
}

.admin-body .btn-primary {
  background: #2f80ed;
}

.admin-body .btn-secondary {
  border-color: #8fe8ac;
  background: #e7fcec;
  color: #166534;
}

.admin-body .btn-ghost {
  border-color: #b9dafc;
  background: #ffffff;
  color: #18406d;
}

.studio-stats {
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-width: 2px;
  border-radius: 24px;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 34%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.stat-card span,
.stat-card strong {
  position: relative;
  z-index: 1;
}

.stat-blue {
  background: #dff5ff;
  border-color: #89d2fb;
}

.stat-green {
  background: #e5fbe9;
  border-color: #8fe8ac;
}

.stat-yellow {
  background: #fff0cf;
  border-color: #ffc66c;
}

.stat-coral {
  background: #ffdce8;
  border-color: #ffb0cb;
}

.studio-panel,
.lively-panel,
.auth-panel {
  position: relative;
  overflow: hidden;
}

.section-head {
  align-items: center;
}

.admin-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.45fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.admin-work-row.row-web {
  background: #e8f7ff;
  border-color: #89d2fb;
}

.admin-work-row.row-mini_program {
  background: #e7fcec;
  border-color: #8fe8ac;
}

.admin-work-row.row-video {
  background: #fff0cf;
  border-color: #ffc66c;
}

.work-row-main h3 {
  margin: 10px 0 8px;
  font-size: 1.34rem;
}

.admin-work-row .pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #075985;
  font-size: 0.86rem;
  font-weight: 950;
}

.row-mini_program .pill {
  color: #166534;
}

.row-video .pill {
  color: #9a5b00;
}

.work-row-meta {
  gap: 10px;
}

.status,
.work-row-meta span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.62);
}

.account-card {
  padding: 20px;
  border-color: #d4e8f7;
  background: linear-gradient(180deg, #ffffff, #f3fbff);
}

.login-page {
  min-height: calc(100vh - 76px);
  border-bottom: 0;
}

.login-grid {
  min-height: calc(100vh - 76px);
}

.login-feature-list span {
  border: 2px solid #cfe8f8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 30px rgba(37, 83, 130, 0.08);
}

.login-feature-list span:nth-child(1) {
  border-color: #89d2fb;
  background: #e8f7ff;
}

.login-feature-list span:nth-child(2) {
  border-color: #8fe8ac;
  background: #e7fcec;
}

.login-feature-list span:nth-child(3) {
  border-color: #ffc66c;
  background: #fff0cf;
}

.auth-panel {
  padding: 32px;
}

.form-section {
  padding: 26px;
}

.common-section {
  background:
    linear-gradient(135deg, rgba(224, 244, 255, 0.96), rgba(255, 243, 217, 0.9) 56%, rgba(231, 252, 236, 0.96));
  border-color: #c8e2f5;
}

.work-form-layout.theme-web .common-section {
  background: #e8f7ff;
  border-color: #89d2fb;
}

.work-form-layout.theme-mini_program .common-section {
  background: #e7fcec;
  border-color: #8fe8ac;
}

.work-form-layout.theme-video .common-section {
  background: #fff0cf;
  border-color: #ffc66c;
}

.type-panel-web {
  background: #e8f7ff;
  border-color: #89d2fb;
}

.type-panel-mini {
  background: #e7fcec;
  border-color: #8fe8ac;
}

.type-panel-iot {
  background: #fff0cf;
  border-color: #ffc66c;
}

.work-form-layout.theme-web .publish-card.common-section {
  background: #e8f7ff;
  border-color: #89d2fb;
}

.work-form-layout.theme-mini_program .publish-card.common-section {
  background: #e7fcec;
  border-color: #8fe8ac;
}

.work-form-layout.theme-video .publish-card.common-section {
  background: #fff0cf;
  border-color: #ffc66c;
}

.upload-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(232, 247, 255, 0.78);
  backdrop-filter: blur(10px);
}

.upload-progress-overlay[hidden] {
  display: none;
}

.upload-progress-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 2px solid #8fd2ff;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(232, 247, 255, 0.96), rgba(255, 245, 211, 0.96)),
    #fff;
  box-shadow: 0 24px 56px rgba(40, 95, 145, 0.22);
}

.upload-progress-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.upload-progress-card p {
  margin: 0 0 18px;
  color: #5b6f8c;
  line-height: 1.8;
}

.upload-progress-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(137, 210, 251, 0.88);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52c7ff, #77e39c, #ffc66c);
  transition: width 0.2s ease;
}

.upload-progress-card strong {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  color: #0d2b4f;
}

.field-block input,
.field-block select,
.field-block textarea {
  border: 2px solid #cfe0f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  border-color: #89d2fb;
  box-shadow: 0 0 0 4px rgba(137, 210, 251, 0.2);
}

.media-section-title {
  align-items: center;
}

.media-item {
  border-color: rgba(137, 210, 251, 0.55);
  background: rgba(255, 255, 255, 0.76);
}

.checkbox-card {
  border-color: #8fe8ac;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1040px) {
  .admin-work-row {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-v2 {
    grid-template-columns: 1fr;
  }

  .admin-side-card {
    position: static;
  }

  .admin-side-nav,
  .side-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-filter-card {
    grid-template-columns: 1fr;
  }

  .pie-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .storage-layout {
    grid-template-columns: 1fr;
  }

  .storage-status-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-side-nav,
  .side-actions,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section-head,
  .storage-entry-panel,
  .account-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Visitor redesign */
.front-body {
  background:
    linear-gradient(180deg, #f0fbff 0%, #fffdf7 48%, #f7fbff 100%);
  font-size: 18px;
}

.front-body .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(120, 191, 239, 0.38);
}

.front-hero,
.gallery-hero,
.front-detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(118, 166, 221, 0.28);
}

.front-hero::before,
.gallery-hero::before,
.front-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.13), transparent 34%),
    linear-gradient(45deg, transparent 0 68%, rgba(255, 122, 89, 0.14) 68% 100%),
    repeating-linear-gradient(135deg, rgba(47, 128, 237, 0.05) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.front-hero {
  padding: 82px 0 62px;
}

.front-hero-grid,
.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.front-hero-copy {
  display: grid;
  gap: 16px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(153, 197, 241, 0.9);
  box-shadow: 0 10px 22px rgba(40, 88, 136, 0.08);
  color: #23517f;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.front-label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid #aad9f7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f6993;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.front-hero h1,
.gallery-hero h1,
.front-detail-hero h1 {
  margin: 0;
  color: #15304f;
}

.front-hero h1 {
  max-width: 760px;
  font-size: 4.5rem;
}

.front-hero p,
.gallery-hero p,
.detail-title-panel p {
  max-width: 680px;
  margin: 0;
  color: #51647a;
  font-size: 1.18rem;
  line-height: 1.72;
}

.front-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.front-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.front-stat-strip div {
  padding: 12px;
  border: 1px solid rgba(173, 212, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(24, 75, 120, 0.06);
}

.front-stat-strip strong,
.front-stat-strip span {
  display: block;
}

.front-stat-strip strong {
  color: #15304f;
  font-size: 1.72rem;
}

.front-stat-strip span {
  color: #64758a;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(196px, 196px);
  gap: 18px;
  transform: none;
}

.board-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 196px;
  padding: 24px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  box-shadow: 0 20px 38px rgba(31, 95, 184, 0.14);
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px 16px;
  height: 40%;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34));
  z-index: 0;
}

.board-card > * {
  position: relative;
  z-index: 1;
}

.board-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 52px rgba(31, 95, 184, 0.18);
}

.board-card-large {
  grid-row: span 2;
  min-height: 320px;
}

.board-card span {
  color: rgba(21, 48, 79, 0.62);
  font-weight: 950;
  font-size: 0.98rem;
}

.board-card strong {
  color: #15304f;
  font-size: 1.75rem;
  line-height: 1.25;
}

.board-card small {
  color: #4f6276;
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.58;
}

.board-web {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    #bde9ff;
  border-color: #89d2fb;
}

.board-mini {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    #c9f6d5;
  border-color: #8fe8ac;
}

.board-iot {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    #ffe0a6;
  border-color: #ffc66c;
}

.board-note {
  background: #ffd9e5;
  border-color: #ffb0cb;
}

.board-note span {
  color: #9a4166;
}

.front-section {
  padding: 56px 0;
}

.front-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.front-section-head h2 {
  margin: 8px 0 0;
  font-size: 2.7rem;
}

.front-section-head p {
  max-width: 420px;
  margin: 0;
  color: #64758a;
  font-size: 1.02rem;
}

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

.route-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: 250px;
  padding: 34px 36px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  box-shadow: 0 16px 30px rgba(37, 83, 130, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px rgba(37, 83, 130, 0.18);
}

.route-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -36px;
  width: 140px;
  height: 140px;
  border: 18px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  transform: rotate(18deg);
}

.route-number {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #15304f;
  font-weight: 950;
}

.route-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 2.08rem;
  line-height: 1.2;
}

.route-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 22ch;
  color: #42576f;
  font-size: 1.09rem;
  line-height: 1.72;
}

.route-blue {
  background: #dff5ff;
  border-color: #9ddcff;
}

.route-green {
  background: #e5fbe9;
  border-color: #9ee9b4;
}

.route-orange {
  background: #fff0cf;
  border-color: #ffd279;
}

.front-featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(236, 252, 255, 0.72));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.gallery-grid-featured .front-work-card:nth-child(3n + 2) {
  transform: none;
}

.front-work-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 2px solid #d7e8f8;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(37, 83, 130, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.front-work-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, #55c2ff, #65d98a 55%, #ffd36c);
  z-index: 2;
}

.front-work-card::after {
  content: "";
  position: absolute;
  inset: 16px -12px -12px 16px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(132, 187, 236, 0.18), rgba(255, 214, 107, 0.12));
  z-index: 0;
}

.front-work-card > * {
  position: relative;
  z-index: 1;
}

.front-work-media::before,
.front-work-media::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 44px;
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 3px 8px rgba(20, 43, 68, 0.08);
  z-index: 2;
}

.front-work-media::before {
  left: 18px;
  transform: rotate(-10deg);
}

.front-work-media::after {
  right: 18px;
  transform: rotate(10deg);
}

.front-work-card:hover {
  transform: translateY(-7px);
  border-color: #91d7ff;
  box-shadow: 0 24px 46px rgba(37, 83, 130, 0.17);
}

.gallery-grid-featured .front-work-card:nth-child(3n + 2):hover {
  transform: translateY(-7px);
}

.front-work-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.38;
  background: #eaf8ff;
}

.front-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.front-work-card:hover .front-work-media img {
  transform: scale(1.05);
}

.front-work-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
}

.front-work-body h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.34;
}

.front-work-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  flex: 1;
  color: #5c6e83;
  font-size: 1.06rem;
  line-height: 1.74;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.front-work-body small {
  margin-top: auto;
  color: #708095;
  font-size: 1rem;
  font-weight: 780;
}

.section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 2px solid #b9dafc;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eff8ff);
  box-shadow: 0 14px 28px rgba(70, 132, 197, 0.12);
  color: #18406d;
  font-size: 1.02rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-button:hover {
  transform: translateY(-3px);
  border-color: #8fc9ff;
  box-shadow: 0 18px 32px rgba(70, 132, 197, 0.18);
}

.front-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: #e9f7ff;
  color: #075985;
  font-size: 0.84rem;
  font-weight: 950;
}

.front-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 2px dashed #b9d8ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #15304f;
}

.front-empty span {
  color: #64758a;
}

.inspire-band {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 38px;
  border: 2px solid #ffe09a;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 248, 229, 0.96), rgba(232, 247, 255, 0.9));
  box-shadow: 0 16px 32px rgba(179, 117, 0, 0.08);
  text-align: center;
}

.inspire-band h2 {
  margin: 0;
  max-width: 860px;
  font-size: 2.5rem;
  line-height: 1.25;
}

.inspire-band p {
  margin: 0;
  color: #5d6e82;
  font-size: 1.05rem;
  line-height: 1.78;
}

.gallery-hero {
  padding: 54px 0 42px;
}

.gallery-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.gallery-hero h1 {
  font-size: 3.7rem;
}

.front-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px auto;
  gap: 12px;
  padding: 16px;
  border: 2px solid #cce5f8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px rgba(37, 83, 130, 0.08);
}

.type-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.type-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 2px solid #cfe5f7;
  border-radius: 8px;
  background: #fff;
  color: #51647a;
  font-size: 0.98rem;
  font-weight: 900;
}

.type-chip.is-active,
.type-chip:hover {
  border-color: #85d0ff;
  background: #e8f7ff;
  color: #075985;
}

.front-detail-hero {
  padding: 54px 0 40px;
}

.detail-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.detail-title-panel {
  display: grid;
  gap: 16px;
}

.detail-title-panel h1 {
  font-size: 3.8rem;
}

.detail-cover-card {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: #e8f7ff;
  box-shadow: 0 24px 44px rgba(37, 83, 130, 0.16);
  transform: none;
}

.detail-cover-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.detail-layout-front {
  display: block;
  width: min(1080px, calc(100% - 96px));
  margin: 0 auto;
}

.detail-main-front,
.detail-side-front,
.detail-video-list {
  display: grid;
  gap: 18px;
}

.detail-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.detail-meta-strip div {
  padding: 16px;
  border: 2px solid #d6e9f8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 22px rgba(37, 83, 130, 0.07);
}

.detail-meta-strip strong,
.detail-meta-strip span {
  display: block;
}

.detail-meta-strip strong {
  color: #718096;
  font-size: 0.88rem;
}

.detail-meta-strip span {
  font-size: 1.02rem;
}

.detail-section-card,
.detail-guide-card {
  padding: 26px;
  border: 2px solid #d6e9f8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(37, 83, 130, 0.09);
}

.detail-section-card h2,
.detail-guide-card h2 {
  font-size: 2rem;
}

.detail-section-card p,
.detail-guide-card p {
  font-size: 1.06rem;
  line-height: 1.76;
}

.action-show-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #e8f7ff;
  border-color: #9ddcff;
}

.detail-media-card {
  overflow: hidden;
  border: 2px solid #d6e9f8;
  border-radius: 8px;
  background: #f9fdff;
}

.detail-media-card h3 {
  margin: 0;
  padding: 16px 16px 0;
  font-size: 1.28rem;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 20px;
}

.detail-image-card {
  overflow: hidden;
  margin: 0;
  max-width: 900px;
  justify-self: center;
  width: 100%;
  border: 2px solid #d6e9f8;
  border-radius: 8px;
  background: #fff;
}

.detail-image-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #f6fbff;
}

.detail-image-card figcaption {
  padding: 12px 14px;
  color: #15304f;
  font-size: 1rem;
  font-weight: 850;
}

.detail-guide-card {
  position: sticky;
  top: 96px;
  background: #fff8e5;
  border-color: #ffe09a;
}

@media (max-width: 1040px) {
  .front-hero-grid,
  .detail-hero-grid,
  .detail-layout-front {
    grid-template-columns: 1fr;
  }

  .front-filter {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-guide-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .front-hero,
  .gallery-hero,
  .front-detail-hero {
    padding: 42px 0 34px;
  }

  .front-hero h1,
  .gallery-hero h1,
  .detail-title-panel h1 {
    font-size: 2.8rem;
  }

  .hero-board,
  .front-stat-strip,
  .route-grid,
  .gallery-grid,
  .front-filter,
  .inspire-band,
  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout-front {
    width: min(100% - 24px, 1080px);
  }

  .board-card-large {
    grid-row: auto;
    min-height: 180px;
  }

  .gallery-grid-featured .front-work-card:nth-child(3n + 2),
  .gallery-grid-featured .front-work-card:nth-child(3n + 2):hover {
    transform: none;
  }

  .front-section-head,
  .action-show-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .front-filter .btn {
    width: 100%;
  }
}
