:root {
  --bg-gray: #f2f2f2;
  --white: #ffffff;
  --text: #222222;
  --muted: #707070;
  --primary: #ff1f1f;
  --dark: #0d1521;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-gray);
  color: var(--text);
  font-family: "Poppins", "Noto Sans SC", sans-serif;
}

.container {
  width: min(1240px, 94%);
  margin: 0 auto;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.brand span {
  color: #111;
  font-size: 2rem;
  margin-left: 0.2rem;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  color: #222;
  text-decoration: none;
  font-size: 1.1rem;
}

.hotline {
  color: var(--primary);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.45) 58%, rgba(0, 0, 0, 0.25) 100%),
    url("https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 41, 94, 0.26), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-left {
  color: var(--white);
  max-width: 680px;
}

.hero-left h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.7vw, 4rem);
  font-weight: 500;
}

.hero-left p {
  margin: 2rem 0 2.2rem;
  color: #d6dae2;
  font-size: 1.3rem;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  background: var(--primary);
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

.stats {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(20, 20, 20, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1.8rem 0;
  text-align: center;
  border-right: 1px solid #ececec;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  font-size: 3rem;
  line-height: 1.15;
  color: var(--primary);
  font-weight: 500;
}

.stat-item span {
  color: #888;
  font-size: 1.4rem;
}

.service-area {
  padding: 5rem 0 2rem;
}

.service-area h2,
.order-wrap h2 {
  text-align: center;
  margin: 0 0 2.2rem;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 200px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.52)),
    linear-gradient(120deg, #10233f, #3f495b);
  color: var(--white);
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 10, 24, 0.3);
}

.service-card h3 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}

.service-card p {
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #e8edf5;
}

.order-area {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-area.show {
  display: flex;
}

.order-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
}

.order-wrap {
  background: var(--white);
  padding: 1.4rem;
  position: relative;
  z-index: 1;
  border-radius: 12px;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
}

.order-close-btn {
  position: absolute;
  right: 0.9rem;
  top: 0.75rem;
  border: none;
  background: #f0f0f0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 30px;
  cursor: pointer;
}

.order-tip {
  text-align: center;
  color: #666;
  margin: -0.9rem 0 1.6rem;
}

.order-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.order-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 1rem;
}

input,
select,
textarea {
  border: 1px solid #d3d3d3;
  padding: 0.82rem 0.9rem;
  font: inherit;
  border-radius: 2px;
  background: #fff;
}

button[type="submit"] {
  border: none;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.88rem;
  cursor: pointer;
}

.order-result {
  max-width: 760px;
  margin: 0.8rem auto 0;
  color: #117c35;
}

.site-footer {
  background: #111;
  color: #cfcfcf;
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.buy-bar.show {
  display: flex;
}

.buy-panel {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: none;
}

.buy-panel.show {
  display: block;
}

.buy-mask {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.46);
}

.buy-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 70px;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  max-height: 52vh;
  overflow: auto;
}

.buy-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.buy-sheet-head h3 {
  margin: 0;
  font-size: 1.22rem;
}

.close-btn {
  border: none;
  background: #f4f4f4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

.buy-sheet-desc {
  margin: 0.7rem 0;
  color: #444;
  line-height: 1.6;
}

.buy-sheet-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #666;
  line-height: 1.7;
}

.buy-left {
  min-width: 0;
}

.buy-price {
  margin: 0;
  color: #ff2f2f;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.buy-note {
  margin: 0.1rem 0 0;
  color: #666;
  font-size: 0.95rem;
}

.buy-now-btn {
  border: none;
  background: linear-gradient(120deg, #ff5a2c, #ff2f2f);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  html {
    font-size: 14px;
  }

  .menu {
    gap: 1.2rem;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .menu {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-bottom: 0.5rem;
  }

  .hero,
  .hero-content {
    min-height: 540px;
  }

  .stats {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(1240px, 92%);
  }

  .nav-wrap {
    gap: 0.6rem;
  }

  .brand,
  .brand span {
    font-size: 1.7rem;
  }

  .menu {
    gap: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 0.2rem 0 0.6rem;
  }

  .menu a {
    font-size: 1rem;
  }

  .hotline {
    font-size: 1.8rem;
  }

  .hero,
  .hero-content {
    min-height: 500px;
  }

  .hero-left h1 {
    font-size: 2.4rem;
  }

  .hero-left p {
    margin: 1.2rem 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

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

  .stat-item {
    padding: 1.2rem 0;
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item strong {
    font-size: 2.2rem;
  }

  .stat-item span {
    font-size: 1rem;
  }

  .service-area {
    padding-top: 3.2rem;
  }

  .service-card {
    min-height: 0;
    padding: 1.2rem;
  }

  .service-card h3 {
    font-size: 1.6rem;
  }

  .service-card p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .order-wrap {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .brand,
  .brand span {
    font-size: 1.45rem;
  }

  .hotline {
    font-size: 1.45rem;
  }

  .hero,
  .hero-content {
    min-height: 450px;
  }

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

  .stats {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #ececec;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .footer-wrap {
    font-size: 0.85rem;
  }

  .buy-price {
    font-size: 1.8rem;
  }

  .buy-note {
    font-size: 0.85rem;
  }

  .buy-now-btn {
    padding: 0.78rem 1.05rem;
    font-size: 0.96rem;
  }

  .buy-sheet {
    bottom: 66px;
    max-height: 58vh;
  }
}
