:root {
  --navy: #071b34;
  --navy-2: #0c2746;
  --navy-3: #153a5f;
  --steel: #5f7185;
  --muted: #7b8793;
  --line: rgba(212, 222, 232, 0.72);
  --white: #ffffff;
  --paper: #f5f7fa;
  --gold: #d6b66f;
  --gold-2: #f0d68a;
  --cyan: #65c3d9;
  --danger: #c64a4a;
  --ok: #2f9f70;
  --shadow: 0 18px 55px rgba(7, 27, 52, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #102033;
  background: var(--paper);
  font-family: var(--font, Inter, "Microsoft YaHei", Arial, sans-serif);
}

body.locked {
  overflow: hidden;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

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

.site {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 27, 52, 0.78);
  backdrop-filter: blur(16px);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark,
.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, #f2d68b, #67c5d9);
  font-weight: 900;
}

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

.brand-title {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 340px);
}

.brand-sub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.64);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid rgba(7, 27, 52, 0.16);
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  box-shadow: 0 14px 30px rgba(7, 27, 52, 0.22);
}

.btn.gold {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #061c34;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.outline {
  background: transparent;
  border-color: rgba(7, 27, 52, 0.22);
}

.btn.danger {
  color: #fff;
  border-color: transparent;
  background: var(--danger);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn svg,
.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 116px clamp(18px, 5vw, 72px) 70px;
  color: #fff;
  background: var(--hero-cover, url("/assets/share-cover.svg")) center / cover no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #12395d;
  mix-blend-mode: multiply;
  opacity: 0.96;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: 180px;
  background: linear-gradient(0deg, #0a2848, rgba(10, 40, 72, 0));
  pointer-events: none;
}

.hero-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  margin: 22px 0 0;
  max-width: 670px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #f4f8fb;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hotline-card {
  padding: 22px;
  border: 1px solid rgba(240, 214, 138, 0.4);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(214, 182, 111, 0.16), rgba(101, 195, 217, 0.08));
}

.hotline-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hotline-number {
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: var(--gold-2);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-stat {
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

.mini-stat span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  position: relative;
}

.section.dark {
  background: var(--navy);
  color: #fff;
}

.section.white {
  background: #fff;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

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

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.metrics-grid,
.cards-grid,
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric,
.card,
.guarantee,
.timeline-item,
.flow-step,
.lookup-box,
.admin-card,
.table-wrap,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.dark .metric,
.dark .card,
.dark .guarantee,
.dark .timeline-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.metric {
  padding: 24px;
  min-height: 150px;
}

.metric strong {
  display: block;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  color: var(--navy);
}

.dark .metric strong {
  color: var(--gold-2);
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  align-items: start;
}

.timeline-year {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.timeline-item h3,
.card h3,
.guarantee h3,
.flow-step h3,
.admin-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 20px;
}

.timeline-item p,
.card p,
.guarantee p,
.flow-step p,
.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(0deg, rgba(5, 18, 34, 0.88), rgba(5, 18, 34, 0));
  font-weight: 800;
}

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

.card,
.guarantee,
.flow-step {
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(214, 182, 111, 0.38), rgba(101, 195, 217, 0.26));
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.repair-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.form-panel,
.lookup-box {
  padding: clamp(20px, 4vw, 30px);
}

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

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

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

.field label {
  font-size: 13px;
  font-weight: 800;
  color: #21344a;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  border-radius: 8px;
  border: 1px solid #d8e0e8;
  padding: 10px 12px;
  background: #fff;
  color: #102033;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(21, 58, 95, 0.12);
}

.upload-preview,
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  position: relative;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #dbe3eb;
  background: #edf2f6;
}

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

.thumb button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 27, 52, 0.8);
}

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

.lookup-box h3 {
  margin: 0 0 12px;
}

.lookup-result {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.order-card {
  border-radius: 8px;
  border: 1px solid #dce4ec;
  padding: 14px;
  background: #fff;
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  color: var(--navy);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(214, 182, 111, 0.18);
  color: #7b5b16;
  font-size: 12px;
  font-weight: 900;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.message {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--steel);
  line-height: 1.5;
  font-size: 13px;
}

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

.contacts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.contacts-strip a,
.contacts-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f0f4f7;
  color: var(--navy);
  font-weight: 800;
}

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

.review {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.review strong {
  display: block;
  margin-top: 16px;
  color: var(--gold-2);
}

.review p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.footer {
  padding: 56px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #05182e;
}

.footer-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.footer .hotline-number {
  margin-top: 14px;
}

.qr-mini {
  width: 128px;
  border-radius: 8px;
  border: 6px solid #fff;
  background: #fff;
}

.anchor-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 45;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}

.anchor-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 27, 52, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.anchor-dots button.active {
  height: 24px;
  background: var(--gold);
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 46;
  display: grid;
  gap: 10px;
}

.float-actions .icon-btn {
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(7, 27, 52, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible,
.motion-off .reveal {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 16, 30, 0.68);
}

.modal {
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e9ee;
}

.modal h3 {
  margin: 0;
}

.modal-body {
  padding: 20px;
}

.qr-modal-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.qr-modal-grid img {
  width: var(--qr-size, 260px);
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #dbe3eb;
}

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

.contact-list a,
.contact-list span {
  padding: 12px;
  border-radius: 8px;
  background: #f2f5f8;
  font-weight: 800;
  color: var(--navy);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #eef3f7;
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: #fff;
  background: var(--navy);
  overflow: auto;
}

.admin-side nav {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.admin-side button,
.admin-side a {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
}

.admin-side button.active,
.admin-side button:hover,
.admin-side a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  padding: 24px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

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

.admin-card {
  padding: 18px;
}

.admin-card strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce4ec;
  box-shadow: var(--shadow);
}

.admin-form .field.full,
.admin-form .admin-actions {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 110px 92px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce4ec;
}

.table-wrap {
  overflow: auto;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e4ebf1;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--navy);
  background: #f6f8fa;
  font-weight: 900;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.small-btn {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--navy);
  background: #eef3f7;
  border: 1px solid #d6e0e8;
  font-size: 12px;
  font-weight: 800;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), #123456);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.login-card h1 {
  margin: 0 0 10px;
}

.login-card p {
  color: var(--muted);
}

.notice {
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
}

.empty {
  padding: 22px;
  border: 1px dashed #cbd6df;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 980px) {
  .nav-links,
  .anchor-dots {
    display: none;
  }

  .hero-grid,
  .repair-layout,
  .footer-grid,
  .qr-modal-grid {
    grid-template-columns: 1fr;
  }

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

  .cards-grid,
  .guarantee-grid,
  .reviews {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .admin-side {
    position: static;
    height: auto;
  }

  .admin-side nav {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand-sub,
  .hide-sm {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .hero {
    padding: 96px 16px 58px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-mini-grid,
  .metrics-grid,
  .gallery-grid,
  .cards-grid,
  .guarantee-grid,
  .reviews,
  .form-grid,
  .admin-form,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    min-height: 210px;
  }

  .admin-main {
    padding: 14px;
  }

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

  .contact-row {
    grid-template-columns: 1fr;
  }

  .float-actions {
    right: 12px;
    bottom: 12px;
  }
}

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