:root,
html[data-theme="classic-blue"] {
  --ink: #102033;
  --muted: #5d6c7d;
  --line: #d6e0eb;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --forest: #1f4e79;
  --forest-2: #2f75b5;
  --wood: #f58220;
  --wood-hover: #d96d12;
  --gold: #c9852c;
  --danger: #a43f3f;
  --shadow: 0 18px 44px rgba(16, 32, 51, .12);
  --header-border: rgba(216, 223, 218, .8);
  --nav-contact-border: rgba(31, 78, 121, .24);
  --nav-contact-bg: #eef5ff;
  --page-hero-bg: #edf5ff;
  --page-hero-line: #cfe0f5;
  --page-hero-muted: #4e6075;
  --focus-ring: rgba(47, 117, 181, .18);
  --admin-bg: #f6f7f4;
  --card-bg: #ffffff;
  --footer-bg: #102033;
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-smooth: cubic-bezier(.16, 1, .3, 1);
  --shadow-hover: 0 26px 58px rgba(16, 32, 51, .18);
}

html[data-theme="forest-green"] {
  --ink: #14231d;
  --muted: #627368;
  --line: #d7e3dc;
  --paper: #ffffff;
  --soft: #f4f8f3;
  --forest: #2f5f4f;
  --forest-2: #4f8a6e;
  --wood: #f58220;
  --wood-hover: #d96d12;
  --gold: #d49a38;
  --danger: #a43f3f;
  --shadow: 0 18px 44px rgba(20, 35, 29, .12);
  --header-border: rgba(215, 227, 220, .88);
  --nav-contact-border: rgba(47, 95, 79, .24);
  --nav-contact-bg: #eef7f1;
  --page-hero-bg: #eef7f1;
  --page-hero-line: #d2e6d9;
  --page-hero-muted: #536b5c;
  --focus-ring: rgba(79, 138, 110, .2);
  --admin-bg: #f6f7f2;
  --card-bg: #ffffff;
  --footer-bg: #182c24;
}

html[data-theme="copper-gray"] {
  --ink: #1f2930;
  --muted: #657078;
  --line: #dde0df;
  --paper: #ffffff;
  --soft: #f6f5f2;
  --forest: #40515c;
  --forest-2: #667985;
  --wood: #f58220;
  --wood-hover: #d96d12;
  --gold: #c79237;
  --danger: #a43f3f;
  --shadow: 0 18px 44px rgba(31, 41, 48, .12);
  --header-border: rgba(221, 224, 223, .9);
  --nav-contact-border: rgba(64, 81, 92, .24);
  --nav-contact-bg: #f3efea;
  --page-hero-bg: #f3f2ee;
  --page-hero-line: #ddded9;
  --page-hero-muted: #626d72;
  --focus-ring: rgba(64, 81, 92, .18);
  --admin-bg: #f5f4f0;
  --card-bg: #ffffff;
  --footer-bg: #222b31;
}

html[data-theme="teal-gold"] {
  --ink: #102a2d;
  --muted: #577174;
  --line: #cfe3e4;
  --paper: #ffffff;
  --soft: #f1f8f8;
  --forest: #146c72;
  --forest-2: #238a91;
  --wood: #f58220;
  --wood-hover: #d96d12;
  --gold: #d6a73a;
  --danger: #a43f3f;
  --shadow: 0 18px 44px rgba(16, 42, 45, .12);
  --header-border: rgba(207, 227, 228, .9);
  --nav-contact-border: rgba(20, 108, 114, .24);
  --nav-contact-bg: #e9f7f6;
  --page-hero-bg: #eaf7f6;
  --page-hero-line: #cae5e4;
  --page-hero-muted: #4d6d70;
  --focus-ring: rgba(20, 108, 114, .2);
  --admin-bg: #f3f8f7;
  --card-bg: #ffffff;
  --footer-bg: #102f33;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

body.site-shell {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 48%, var(--paper) 100%);
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--wood);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(16, 32, 51, .06);
}

.navbar {
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  transition: transform .22s var(--motion-ease);
}

.brand:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  box-shadow: 0 12px 22px rgba(31, 78, 121, .24);
  font-weight: 800;
  overflow: hidden;
}

.brand-mark::after {
  position: absolute;
  inset: -45%;
  content: "";
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
  transform: translateX(-60%) rotate(8deg);
  transition: transform .55s var(--motion-smooth);
}

.brand:hover .brand-mark::after {
  transform: translateX(60%) rotate(8deg);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: 0;
}

.nav-link {
  position: relative;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease, transform .18s var(--motion-ease);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link:not(.active)::after {
  position: absolute;
  right: .75rem;
  bottom: .3rem;
  left: .75rem;
  height: 2px;
  content: "";
  background: var(--wood);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--motion-ease);
}

.nav-link:not(.active):hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fff;
  background: var(--forest);
}

.nav-contact {
  border: 1px solid var(--nav-contact-border);
  color: var(--forest);
  background: var(--nav-contact-bg);
  padding-inline: 16px !important;
}

.nav-contact.active {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.logout-button {
  border: 0;
  background: transparent;
  color: var(--danger);
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2824, 35, 31, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.page-wrap {
  min-height: 68vh;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  color: #fff;
  background: #102033;
  isolation: isolate;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 6s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vh, 72px) 12px 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow {
  color: var(--gold);
}

.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-tags span {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .46);
}

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

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 3.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.14rem;
  color: rgba(255, 255, 255, .9);
  overflow-wrap: anywhere;
}

.hero-actions,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, .9);
  background: rgba(24, 35, 31, .18);
  backdrop-filter: blur(6px);
  transition: transform .2s var(--motion-ease), border-color .2s ease, background-color .2s ease;
}

.hero-tags span:hover {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.hero-dots button {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
  transition: background-color .2s ease, transform .2s var(--motion-ease), width .2s var(--motion-ease);
}

.hero-dots button:hover,
.hero-dots button:focus-visible {
  background: rgba(255, 255, 255, .86);
  transform: translateY(-1px);
}

.hero-dots button.is-active {
  width: 48px;
  background: var(--wood);
}

.btn {
  position: relative;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 18px;
  overflow: hidden;
  transition: transform .2s var(--motion-ease), box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .26) 50%, transparent 66% 100%);
  transform: translateX(-120%);
  transition: transform .55s var(--motion-smooth);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(16, 32, 51, .18);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  border-color: var(--wood);
  background: var(--wood);
}

.btn-primary:hover {
  border-color: var(--wood-hover);
  background: var(--wood-hover);
}

.btn-dark {
  border-color: var(--forest);
  background: var(--forest);
}

.btn-outline-dark {
  border-color: var(--forest);
  color: var(--forest);
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--soft);
}

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

.section-head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.section-head a {
  font-weight: 700;
}

.site-shell .section-head a,
.site-shell .service-card a,
.site-shell .case-card a,
.site-shell .news-card a,
.site-shell .news-row h3 a,
.site-shell .service-detail-card a,
.site-shell .footer-bottom a {
  background-image: linear-gradient(90deg, var(--wood), var(--forest-2));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 2px;
  transition: color .18s ease, background-size .24s var(--motion-ease);
}

.site-shell .section-head a:hover,
.site-shell .service-card a:hover,
.site-shell .case-card a:hover,
.site-shell .news-card a:hover,
.site-shell .news-row h3 a:hover,
.site-shell .service-detail-card a:hover,
.site-shell .footer-bottom a:hover {
  background-size: 100% 2px;
}

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

.service-card,
.case-card,
.news-card,
.info-panel,
.form-panel,
.auth-panel,
.admin-table,
.inquiry-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.site-shell .service-card,
.site-shell .case-card,
.site-shell .news-card,
.site-shell .info-panel,
.site-shell .form-panel,
.site-shell .contact-strip,
.site-shell .process-grid article,
.site-shell .service-detail-card img,
.site-shell .gallery-grid figure,
.site-shell .metric-list div {
  transition: transform .28s var(--motion-ease), box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}

.site-shell .service-card:hover,
.site-shell .case-card:hover,
.site-shell .news-card:hover,
.site-shell .info-panel:hover,
.site-shell .form-panel:hover,
.site-shell .contact-strip:hover,
.site-shell .gallery-grid figure:hover {
  border-color: rgba(168, 102, 45, .34);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-card {
  overflow: hidden;
}

.service-card img,
.case-card img,
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--soft);
  transition: transform .65s var(--motion-smooth), filter .35s ease;
}

.site-shell .service-card:hover img,
.site-shell .case-card:hover img,
.site-shell .news-card:hover img,
.site-shell .gallery-grid figure:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.055);
}

.service-card div,
.case-card div,
.news-card div {
  padding: 22px;
}

.service-card h3,
.case-card h3,
.news-card h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
}

.service-card p,
.case-card p,
.news-card p,
.news-row p {
  color: var(--muted);
}

.split-feature,
.content-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 36px;
  align-items: start;
}

.split-feature h2,
.content-grid h2,
.cta-inner h2 {
  font-size: 2.1rem;
  font-weight: 800;
}

.metric-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.metric-list div {
  padding: 20px;
  border-left: 4px solid var(--wood);
  background: var(--card-bg);
}

.site-shell .metric-list div:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 34px rgba(16, 32, 51, .1);
}

.metric-list dt {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--forest);
}

.metric-list dd {
  margin: 0;
  color: var(--muted);
}

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

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

.case-card {
  overflow: hidden;
}

.case-card span,
.news-card time,
.news-row time {
  color: var(--wood);
  font-size: .9rem;
  font-weight: 700;
}

.cta-band {
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%),
    linear-gradient(90deg, var(--forest), var(--forest-2));
  overflow: hidden;
}

.cta-band::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 26%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-16deg);
  animation: band-sweep 7s var(--motion-smooth) infinite;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-inner p {
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
}

.news-list,
.news-page-list,
.inquiry-list {
  display: grid;
  gap: 18px;
}

.news-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.news-row h3,
.news-row p {
  margin: 0 0 6px;
}

.page-hero {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .48), transparent 44%),
    var(--page-hero-bg);
  border-bottom: 1px solid var(--page-hero-line);
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--forest), var(--wood), var(--forest-2));
  transform: translateX(-55%);
  animation: hero-line 4.8s var(--motion-smooth) infinite;
}

.compact-hero {
  padding: 82px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: 2.6rem;
  font-weight: 800;
}

.page-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--page-hero-muted);
}

.image-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  overflow: hidden;
}

.image-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgba(10, 20, 28, .18), rgba(10, 20, 28, .02));
  pointer-events: none;
}

.image-hero .container {
  position: relative;
  z-index: 1;
}

.image-hero p:last-child {
  color: rgba(255, 255, 255, .86);
}

.info-panel,
.form-panel {
  padding: 28px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wood);
}

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

.process-grid article {
  border-top: 4px solid var(--forest-2);
  padding: 22px;
  background: var(--card-bg);
}

.site-shell .process-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.process-grid span {
  color: var(--wood);
  font-weight: 800;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .96)),
    var(--soft);
}

.service-detail-grid {
  display: grid;
  gap: 28px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.service-detail-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.site-shell .service-detail-card:hover img {
  box-shadow: var(--shadow-hover);
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-4px) scale(1.01);
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-bg);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 10px 14px;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
}

.news-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.news-card img {
  height: 100%;
  min-height: 190px;
}

.article-layout {
  max-width: 900px;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 28px;
}

.article-body {
  font-size: 1.05rem;
}

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

label span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.image-preview-card,
.image-upload-field {
  display: block;
}

.image-preview-card > span,
.image-upload-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.image-preview-frame {
  display: grid;
  min-height: 180px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.image-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-frame-sm {
  min-height: 86px;
}

.image-preview-empty {
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.image-compress-status {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #cfd8d2;
  min-height: 46px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s var(--motion-ease);
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 .18rem var(--focus-ring);
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  padding: 48px 0 20px;
  color: rgba(255, 255, 255, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 38%),
    var(--footer-bg);
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 14px);
  opacity: .8;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong,
.footer-bottom a {
  color: #fff;
}

.footer-grid span {
  display: block;
  color: rgba(255, 255, 255, .56);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.admin-shell {
  background: var(--admin-bg);
}

.admin-page {
  padding: 48px 0 72px;
}

.narrow-container {
  max-width: 980px;
}

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

.admin-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

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

.admin-stats a {
  display: grid;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card-bg);
}

.admin-stats strong {
  font-size: 2rem;
}

.admin-stats span {
  color: var(--muted);
}

.admin-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.admin-table {
  padding: 8px;
}

.admin-table span {
  color: var(--muted);
}

.admin-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

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

.theme-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.theme-option:hover,
.theme-option:has(input:checked) {
  border-color: var(--forest);
  box-shadow: 0 0 0 .18rem var(--focus-ring);
}

.theme-option:hover {
  transform: translateY(-1px);
}

.theme-option input {
  margin-top: 5px;
}

.theme-option-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.theme-option-body strong {
  color: var(--ink);
  font-size: 1.04rem;
}

.theme-option-body span {
  color: var(--muted);
}

.theme-swatches {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.theme-swatches i {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 32, 51, .12);
  border-radius: 8px;
}

.form-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
}

.admin-auth {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding: 48px 12px;
  background: var(--soft);
}

.auth-panel {
  width: min(460px, 100%);
  padding: 34px;
}

.auth-panel h1 {
  font-size: 2rem;
  font-weight: 800;
}

.auth-panel form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.admin-subsection {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.image-form {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 1fr 110px 120px;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-image-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.admin-image-grid figcaption {
  min-height: 28px;
  color: var(--muted);
}

.inquiry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px auto;
  gap: 18px;
  padding: 22px;
}

.inquiry-main h2 {
  margin: 8px 0;
  font-size: 1.2rem;
}

.inquiry-main small {
  color: var(--muted);
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
  background: var(--forest-2);
  font-size: .82rem;
  font-weight: 700;
}

.detail-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-bottom: 0;
}

.detail-list.compact div {
  grid-template-columns: 54px minmax(0, 1fr);
}

.inquiry-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

@keyframes band-sweep {
  0%,
  42% {
    left: -30%;
  }

  74%,
  100% {
    left: 104%;
  }
}

@keyframes hero-line {
  0% {
    transform: translateX(-58%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(58%);
  }
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-shell .hero .eyebrow,
  .site-shell .hero h1,
  .site-shell .hero-copy,
  .site-shell .hero-actions,
  .site-shell .hero-tags,
  .site-shell .hero-dots,
  .site-shell .page-hero .container {
    animation: fade-slide-up .78s var(--motion-smooth) both;
  }

  .site-shell .hero h1 {
    animation-delay: .08s;
  }

  .site-shell .hero-copy {
    animation-delay: .16s;
  }

  .site-shell .hero-actions {
    animation-delay: .24s;
  }

  .site-shell .hero-tags {
    animation-delay: .32s;
  }

  .site-shell .hero-dots {
    animation-delay: .4s;
  }

  .motion-ready .site-shell .reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .72s var(--motion-smooth), transform .72s var(--motion-smooth);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .motion-ready .site-shell .reveal-on-scroll.reveal-left {
    transform: translateX(-28px);
  }

  .motion-ready .site-shell .reveal-on-scroll.reveal-right {
    transform: translateX(28px);
  }

  .motion-ready .site-shell .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0);
  }
}

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

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

@media (max-width: 991px) {
  .hero {
    min-height: 72vh;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .service-grid,
  .case-grid,
  .gallery-grid,
  .process-grid,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-feature,
  .content-grid,
  .contact-layout,
  .service-detail-card,
  .news-card,
  .inquiry-item {
    grid-template-columns: 1fr;
  }

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

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

  .motion-ready .site-shell .reveal-on-scroll.reveal-left,
  .motion-ready .site-shell .reveal-on-scroll.reveal-right {
    transform: translateY(28px);
  }

  .hero {
    min-height: 76vh;
  }

  .hero-inner {
    padding: 64px 12px 52px;
  }

  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-tags,
  .hero-dots {
    width: 100%;
    max-width: 330px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section-head,
  .cta-inner,
  .contact-strip,
  .admin-title,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-grid,
  .case-grid,
  .all-cases,
  .gallery-grid,
  .process-grid,
  .form-grid,
  .theme-options,
  .admin-stats,
  .admin-image-grid,
  .footer-grid,
  .news-row,
  .detail-list.compact {
    grid-template-columns: 1fr;
  }

  .news-row {
    gap: 8px;
  }

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

  .admin-page {
    padding: 34px 0 52px;
  }
}
