/* Shared layout and visual system for the static corporate site. */
:root {
  --blue: #0a66c2;
  --blue-dark: #083b73;
  --teal: #009b8e;
  --orange: #ff8a2b;
  --ink: #1d2733;
  --muted: #667385;
  --line: #dbe4ee;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --soft-green: #eef8f5;
  --shadow: 0 18px 45px rgba(21, 42, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 238, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  color: #394758;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: #edf6ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--blue-dark);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 68svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 22, 42, 0.85) 0%, rgba(5, 22, 42, 0.64) 42%, rgba(5, 22, 42, 0.14) 100%),
    linear-gradient(0deg, rgba(5, 22, 42, 0.18), rgba(5, 22, 42, 0.08));
}

.hero-content {
  min-height: 68svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ce0d2;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: #172332;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: #172332;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 12px 28px rgba(10, 102, 194, 0.25);
}

.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.btn-pay {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #f05f2d);
  box-shadow: 0 16px 30px rgba(255, 138, 43, 0.28);
}

.payment-action {
  margin: 0 0 10px;
}

.section {
  padding: 76px 0;
}

.intro-strip {
  padding: 24px 0;
  background: var(--soft-green);
}

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

.stat-row div {
  min-height: 86px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0, 155, 142, 0.18);
  border-radius: 8px;
}

.stat-row strong {
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  font-weight: 650;
  text-align: right;
}

.section-head {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-head p:last-child,
.split-layout p,
.contact-grid p,
.quote-layout p {
  color: var(--muted);
  font-size: 17px;
}

.service-grid,
.solution-grid,
.case-grid {
  display: grid;
  gap: 22px;
}

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

.solution-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.solution-item,
.case-card,
.order-panel,
.guarantee-panel,
.quote-form,
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 290px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.case-card:hover,
.solution-item:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 102, 194, 0.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

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

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.support-band,
.advantage-band {
  background: linear-gradient(180deg, #f7fbff 0%, #eef8f5 100%);
}

.about-band {
  background: #f7f8fa;
}

.split-layout,
.contact-grid,
.quote-layout,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.support-list,
.advantage-grid,
.timeline {
  display: grid;
  gap: 14px;
}

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

.support-list div,
.advantage-grid div,
.timeline div {
  min-height: 94px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.support-list strong,
.advantage-grid strong,
.timeline strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 18px;
}

.support-list span,
.advantage-grid span,
.timeline span {
  color: var(--muted);
}

.solution-item {
  min-height: 210px;
  padding: 24px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-card h3,
.case-card p {
  padding: 0 22px;
}

.case-card h3 {
  margin-top: 20px;
}

.case-card p {
  padding-bottom: 24px;
}

.case-visual {
  height: 170px;
  background-size: cover;
  background-position: center;
}

.case-visual.retail {
  background:
    linear-gradient(135deg, rgba(10, 102, 194, 0.84), rgba(0, 155, 142, 0.78)),
    url("assets/hero-tech.png") center/cover;
}

.case-visual.factory {
  background:
    linear-gradient(135deg, rgba(8, 59, 115, 0.82), rgba(255, 138, 43, 0.7)),
    url("assets/hero-tech.png") center/cover;
}

.case-visual.finance {
  background:
    linear-gradient(135deg, rgba(29, 39, 51, 0.7), rgba(10, 102, 194, 0.72)),
    url("assets/hero-tech.png") center/cover;
}

.contact-band {
  background: #fff;
}

.contact-panel {
  padding: 26px;
  display: grid;
  gap: 14px;
  box-shadow: none;
}

.contact-panel a:not(.btn),
.contact-lines a,
.contact-lines span,
.payment-contact a,
.payment-contact span {
  color: #394758;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.quote-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #2c3e50;
  font-weight: 750;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

.form-note,
.payment-feedback {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 750;
}

.form-note.is-error,
.payment-feedback.is-error {
  color: #d9481f;
}

.payment-page {
  background: linear-gradient(180deg, #f6f9fc 0%, #fff 48%);
}

.payment-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 86px;
}

.payment-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.payment-heading h1 {
  color: #172332;
  font-size: clamp(38px, 5vw, 56px);
}

.payment-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.payment-layout {
  align-items: stretch;
}

.order-panel,
.guarantee-panel {
  padding: 30px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-title h2,
.guarantee-panel h2 {
  margin: 0;
  font-size: 24px;
}

.secure-badge {
  padding: 6px 10px;
  color: var(--teal);
  background: #eaf8f6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.order-list {
  margin: 0 0 24px;
}

.order-list div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.order-list dt {
  color: var(--muted);
}

.order-list dd {
  margin: 0;
  color: #172332;
  font-weight: 800;
}

.amount-row dd {
  color: #e85f22;
  font-size: 32px;
  line-height: 1.1;
}

.copy-btn {
  margin-left: 10px;
  padding: 4px 9px;
  color: var(--blue);
  background: #edf6ff;
  border: 1px solid rgba(10, 102, 194, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.guarantee-panel {
  background:
    linear-gradient(145deg, rgba(10, 102, 194, 0.08), rgba(0, 155, 142, 0.08)),
    #fff;
}

.guarantee-panel ul {
  margin: 18px 0 28px;
  padding-left: 20px;
  color: var(--muted);
}

.guarantee-panel li + li {
  margin-top: 12px;
}

.payment-contact {
  padding-top: 22px;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.payment-contact strong {
  color: var(--blue-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #1d2733;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.admin-page {
  min-height: 100vh;
  background: #f4f8fb;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-shell.compact {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

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

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

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand strong {
  color: var(--blue-dark);
  font-size: 18px;
}

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

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

.admin-actions a,
.admin-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #394758;
  font-weight: 750;
}

.admin-tabs a.active {
  border-color: rgba(10, 102, 194, 0.28);
  background: #edf6ff;
  color: var(--blue);
}

.admin-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #2c3e50;
  font-weight: 750;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

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

.admin-card-head h1 {
  margin: 0;
  color: #172332;
  font-size: clamp(28px, 4vw, 42px);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #172332;
  background: #f7fbff;
  font-weight: 850;
}

.admin-table td {
  color: #394758;
  font-size: 14px;
}

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

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #f7fbff;
  border-radius: 8px;
}

.settings-form {
  display: grid;
  gap: 20px;
}

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

.settings-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.settings-section h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.settings-section label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #2c3e50;
  font-weight: 750;
}

.settings-section label:last-child {
  margin-bottom: 0;
}

.settings-section textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}

.settings-section textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

@media (max-width: 960px) {
  .service-grid,
  .case-grid,
  .solution-grid,
  .split-layout,
  .contact-grid,
  .quote-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container,
  .nav-shell,
  .payment-shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 64px;
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .hero,
  .hero-content {
    min-height: 72svh;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 22, 42, 0.9), rgba(5, 22, 42, 0.52));
  }

  .section {
    padding: 54px 0;
  }

  .intro-strip {
    padding: 16px 0;
  }

  .stat-row,
  .solution-grid,
  .advantage-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .stat-row div {
    min-height: 76px;
  }

  .service-card {
    min-height: auto;
  }

  .quote-form,
  .order-panel,
  .guarantee-panel {
    padding: 22px;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-top,
  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .stat-row div {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-row span {
    text-align: left;
  }
}
