:root {
  --brand-blue: #12309a;
  --brand-blue-dark: #071241;
  --brand-red: #ff1010;
  --ink: #071241;
  --muted: #3b4d88;
  --paper: #ffffff;
  --soft: #f4f7ff;
  --soft-2: #eef4ff;
  --line: rgba(18, 48, 154, 0.14);
  --shadow: 0 24px 70px rgba(7, 18, 65, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 { font-size: clamp(38px, 5.8vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 24px; }

.site-header {
  background:
    radial-gradient(circle at 86% 26%, rgba(255, 16, 16, .10), transparent 28%),
    radial-gradient(circle at 58% 76%, rgba(18, 48, 154, .10), transparent 34%),
    linear-gradient(120deg, #ffffff 0%, #f2f6ff 44%, #dfe8ff 70%, #8fa1e0 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
}

.site-logo {
  width: clamp(154px, 17vw, 206px);
  height: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--brand-blue);
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-red);
  border-color: currentColor;
}

.hero {
  min-height: 650px;
  padding: 46px clamp(20px, 5vw, 72px) 88px;
  display: grid;
  align-items: center;
}

.hero-copy {
  max-width: 900px;
}

.hero-copy h1,
.case-detail-hero-copy h1 {
  max-width: 1120px;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--brand-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--brand-red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 1px solid var(--line);
}

.section {
  padding: 76px clamp(20px, 5vw, 72px);
}

.section.soft { background: var(--soft); }
.section.deep { background: var(--brand-blue-dark); color: #fff; }

.section.brand-blue {
  position: relative;
  overflow: hidden;
  background: var(--brand-blue);
  color: #fff;
}

.section.brand-red {
  background: var(--brand-red);
  color: #fff;
}

.section.brand-blue::after {
  content: attr(data-watermark);
  position: absolute;
  right: -2vw;
  bottom: -7vw;
  color: rgba(255,255,255,.10);
  font-size: clamp(84px, 19vw, 280px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: .02em;
  pointer-events: none;
}

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

.section-head p {
  max-width: 480px;
  color: var(--muted);
}

.deep .section-head p { color: #cbd6ff; }
.brand-blue .section-head p,
.brand-red .section-head p { color: rgba(255,255,255,.82); }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,.34);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 22px 26px;
  background: var(--brand-red);
  color: #fff;
}

.stat-number {
  display: block;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  opacity: .9;
}

.case-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(7, 18, 65, .28) transparent;
  scrollbar-width: thin;
}

.case-scroll[data-auto-scroll-ready="true"] {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.case-scroll::-webkit-scrollbar {
  height: 8px;
}

.case-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.case-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(7, 18, 65, .22);
}

.case-card {
  position: relative;
  flex: 0 0 min(78vw, 760px);
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  scroll-snap-align: start;
  background:
    linear-gradient(rgba(255,255,255,.02), rgba(7,18,65,.62)),
    linear-gradient(135deg, #f8fbff 0%, #aebcf0 28%, #12309a 62%, #ff1010 100%);
  box-shadow: 0 24px 60px rgba(18, 48, 154, .20);
}

.case-card img,
.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-card.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(7,18,65,.04), rgba(7,18,65,.70));
}

.case-card:nth-child(2n) {
  background:
    linear-gradient(rgba(0,0,0,.06), rgba(7,18,65,.60)),
    linear-gradient(135deg, #ffffff 0%, #dbe5ff 34%, #12309a 68%, #ff1010 100%);
}

.case-card:nth-child(3n) {
  background:
    linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.62)),
    linear-gradient(135deg, #ffffff 0%, #c8d4ff 30%, #314aae 70%, #ff1010 100%);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 6px;
  pointer-events: none;
}

.case-info {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  z-index: 3;
  color: #fff;
}

.case-info span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
}

.case-info h3 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.case-info p {
  max-width: 520px;
  color: #e8edff;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.category-pill.active {
  background: var(--brand-blue);
  color: #fff;
}

.case-feature-list {
  display: grid;
  gap: 28px;
}

.case-feature {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 0;
  overflow: hidden;
  min-height: 500px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.case-visual {
  position: relative;
  min-height: 500px;
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(7,18,65,.62)),
    linear-gradient(135deg, #ffffff 0%, #dbe5ff 28%, #12309a 66%, #ff1010 100%);
}

.case-visual.has-image {
  background: #dfe8ff;
}

.case-visual.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(7,18,65,.04), rgba(7,18,65,.22));
}

.case-feature:nth-child(2n) .case-visual {
  background:
    linear-gradient(rgba(0,0,0,.04), rgba(7,18,65,.62)),
    linear-gradient(135deg, #f8fbff 0%, #c8d4ff 34%, #314aae 72%, #ff1010 100%);
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
}

.case-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
}

.case-meta {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.case-meta strong {
  display: block;
  color: var(--brand-blue);
}

.case-highlights {
  display: grid;
  gap: 10px;
}

.case-highlights > strong {
  color: var(--brand-blue);
}

.case-highlights div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.case-note {
  padding: 18px;
  border-left: 4px solid var(--brand-red);
  background: var(--soft);
  color: var(--muted);
}

.case-detail-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  color: #fff;
  background: var(--brand-blue-dark);
}

.case-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7,18,65,.08), rgba(7,18,65,.78));
}

.case-detail-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.case-detail-hero-copy .lead {
  color: rgba(255,255,255,.88);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: stretch;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-panel,
.detail-aside {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 20px;
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid var(--line);
}

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

.detail-meta-grid div {
  display: grid;
  align-content: start;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-meta-grid .wide {
  grid-column: 1 / -1;
}

.detail-meta-grid span {
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 900;
}

.detail-meta-grid strong {
  margin-top: 6px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.detail-highlights {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-highlights h3 {
  margin-bottom: 12px;
  color: var(--brand-blue);
  font-size: 18px;
}

.detail-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
}

.detail-note strong {
  color: var(--brand-blue);
}

.detail-note p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

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

.gallery-item {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft-2);
  box-shadow: 0 14px 36px rgba(7, 18, 65, .08);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-4,
.grid-3,
.split {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: 1.05fr .95fr; align-items: center; }

.service-card,
.info-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 18, 65, .06);
}

.service-card p,
.info-card p {
  margin-top: 12px;
  color: var(--muted);
}

.brand-blue .info-card {
  position: relative;
  z-index: 1;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}

.brand-blue .info-card p { color: rgba(255,255,255,.78); }

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

.overview-card {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 18, 65, .06);
}

.overview-card h3 {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 8px;
  background: var(--brand-red);
  color: #fff;
  font-size: 22px;
}

.overview-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.overview-card li { margin: 8px 0; }

.brand-panel {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 16, 16, .12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #edf3ff 52%, #cdd9ff 100%);
  box-shadow: var(--shadow);
}

.brand-panel img {
  width: min(100%, 360px);
  margin-bottom: 24px;
}

.image-panel {
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft-2);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
}

.about-profile-section {
  padding: 76px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.about-profile-inner {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 28px auto 0;
}

.about-team-figure {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #8b8f9b;
  box-shadow: var(--shadow);
}

.about-team-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.about-profile-copy {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(18, 48, 154, .10);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 18, 65, .12);
}

.about-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.75;
}

.about-stats {
  margin-top: 0;
  box-shadow: 0 24px 60px rgba(255, 16, 16, .16);
}

.credentials-section {
  background:
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.credentials-intro {
  max-width: 860px;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.72;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.credential-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(18, 48, 154, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 18, 65, .10);
}

.credential-card.wide {
  grid-column: auto;
}

.credential-card a {
  display: block;
}

.credential-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 28px;
  background:
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.credential-card.wide img {
  object-fit: contain;
  padding-inline: 22px;
}

.credential-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 26px;
}

.credential-card h3 {
  min-height: 54px;
  font-size: 20px;
}

.credential-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 20px;
  border-left: 4px solid var(--brand-red);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.contact-box,
.form-box {
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin-top: 18px;
  border: 1px dashed rgba(18, 48, 154, .32);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
}

.qr-image {
  width: 180px;
  height: 180px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--brand-blue);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

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

.cta-band {
  padding: 64px clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(120deg, var(--brand-red) 0%, #e8111a 42%, var(--brand-blue) 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner p {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  font-weight: 700;
}

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

.cta-actions .button.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.34);
}

.footer {
  padding: 42px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer img {
  width: 150px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  display: grid;
  gap: 4px;
  text-align: center;
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
}

.footer-copy a {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 700;
}

.footer-copy a:hover {
  color: #fff;
}

.footer img.qr-footer {
  width: 92px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  filter: none;
}

.empty-state {
  width: 100%;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background: var(--soft);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.admin-header-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.danger {
  color: var(--brand-red);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.admin-sidebar,
.admin-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 18, 65, .08);
}

.admin-sidebar {
  overflow: hidden;
}

.admin-sidebar-head,
.admin-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-head {
  align-items: flex-start;
  flex-direction: column;
}

.admin-sidebar h1 {
  font-size: 34px;
}

.admin-editor-head {
  align-items: center;
}

.admin-editor-head p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-case-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 14px;
}

.admin-case-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-case-item.active {
  border-color: var(--brand-red);
  background: #fff;
  box-shadow: 0 12px 28px rgba(255, 16, 16, .12);
}

.admin-case-item img {
  width: 78px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft-2);
}

.admin-case-item strong,
.admin-case-item small {
  display: block;
}

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

.admin-case-item small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.admin-message {
  min-height: 24px;
  margin: 18px 22px 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-message.success {
  color: #157347;
}

.admin-message.error {
  color: var(--brand-red);
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 22px;
  padding: 22px;
}

.admin-image-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.admin-image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft-2);
  box-shadow: 0 12px 36px rgba(7, 18, 65, .10);
}

.upload-box {
  min-height: 78px;
  place-items: center;
  border: 1px dashed rgba(18, 48, 154, .36);
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-blue);
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.gallery-admin {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.gallery-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-upload-button {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.gallery-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

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

.gallery-admin-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.gallery-admin-item img {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-admin-item strong,
.gallery-admin-item small {
  display: block;
}

.gallery-admin-item small {
  color: var(--muted);
  word-break: break-all;
}

.gallery-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-admin-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.gallery-admin-actions .button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.admin-fields {
  display: grid;
  gap: 14px;
}

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

.form-grid.compact {
  align-items: end;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.check-row input {
  width: 18px;
  height: 18px;
}

.field-help {
  margin-top: -4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .grid-4,
  .grid-3,
  .case-overview,
  .split,
  .case-feature,
  .contact-grid,
  .case-detail-layout,
  .case-gallery,
  .admin-shell,
  .admin-form,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .stats-bar { grid-template-columns: 1fr; }

  .case-feature,
  .case-visual {
    min-height: 380px;
  }

  .case-detail-hero {
    min-height: 520px;
  }

  .about-profile-section {
    padding-top: 48px;
  }

  .about-profile-inner,
  .about-profile-copy,
  .about-stats {
    max-width: none;
    width: 100%;
  }

  .about-copy-grid {
    grid-template-columns: 1fr;
  }

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

  .credential-card.wide {
    grid-column: auto;
  }

  .case-detail-layout {
    gap: 28px;
  }

  .detail-aside {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .gallery-item.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .admin-case-list {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 56px;
  }

  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .case-card { flex-basis: 86vw; min-height: 380px; }
  .case-feature {
    min-height: auto;
  }
  .case-feature .case-visual {
    min-height: 240px;
  }
  .case-feature h2 {
    font-size: clamp(28px, 8vw, 36px);
  }
  .case-feature .case-detail {
    gap: 18px;
    padding: 24px;
  }
  .case-feature .lead {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .case-feature .case-meta {
    display: none;
  }
  .case-feature .case-highlights {
    display: none;
  }
  .case-feature .actions {
    margin-top: 6px;
  }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-card.wide { grid-column: auto; }
  .credential-card img { height: 240px; }
  .credential-card.wide img { object-fit: contain; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .admin-header,
  .admin-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
