:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #16304a;
  --muted: #6e7f94;
  --brand: #16579d;
  --brand-deep: #0d3b6f;
  --line: rgba(16, 55, 99, 0.12);
  --shadow: 0 30px 70px rgba(13, 37, 66, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: min(1680px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(38, 118, 199, 0.18), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #edf3f9 100%);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-shell {
  width: 100%;
}

.site-header,
.section-grid,
.footer-top,
.footer-middle,
.footer-legal {
  width: var(--shell);
  margin: 0 auto;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 174px 1fr auto;
  align-items: center;
  gap: clamp(36px, 3.6vw, 84px);
  height: 62px;
  min-height: 62px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.brand-mark {
  position: relative;
  height: 62px;
}

.brand-mark .logo-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 174px;
  height: 101px;
  border-radius: 0;
}

.brand-mark .logo-mobile {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  gap: clamp(32px, 3.5vw, 80px);
  font-size: 17px;
  font-weight: 500;
  color: var(--brand);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
  transform: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* 下拉导航 */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 62px;
}

.nav-dropdown {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(248, 248, 246, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 200;
  padding: 48px 0 52px;
}

.nav-item:hover .nav-dropdown {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-dropdown a {
  display: block;
  height: auto;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  transform: translateX(var(--nav-offset, 0px));
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover {
  color: var(--brand);
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  min-height: 62px;
  gap: 12px;
}

.icon-button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button img,
.hotline img {
  width: 20px;
  height: 20px;
}

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.3s ease, opacity 0.2s ease;
}

.search-box.open {
  width: 260px;
  opacity: 1;
  pointer-events: auto;
}

.search-input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #aaa;
}

.search-submit {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.search-submit img {
  width: 16px;
  height: 16px;
  filter: invert(1) brightness(0);
}

.hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1;
}

.hotline span {
  display: inline-block;
  line-height: 1;
  transform: none;
}

.hero-section,
.global-section,
.franchise-section {
  position: relative;
  width: 100%;
}

.hero-section {
  min-height: min(57vw, 1123px);
  margin-top: 0;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.7s ease;
  width: 400%;
}

.hero-slide {
  width: 25%;
  flex-shrink: 0;
}

.hero-slide picture,
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-prev { left: 32px; }
.hero-next { right: 32px; }

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.hero-dot.is-active {
  background: #fff;
  border-color: #fff;
}


.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(4, 13, 24, 0.6));
}

.hero-copy {
  position: absolute;
  right: clamp(88px, 11vw, 280px);
  top: 33%;
  text-align: left;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  letter-spacing: 0.2em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  margin-bottom: 12px;
  opacity: 0.75;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 3.8vw, 72px);
  line-height: 1.14;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero-scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 20px;
  height: 38px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
}

.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: #fff;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin-top: 0;
}

.card-panel {
  min-height: 1300px;
}

.about-section {
  width: 100%;
  margin: 0;
}

.about-visual {
  overflow: hidden;
  position: relative;
  min-height: 1300px;
}

.about-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 5vw, 96px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    image-set(
      url("../assets/manling-home/backgrounds/about-right-panel-bg.png") type("image/png")
    ) right bottom/cover no-repeat;
}

.about-content h2,
.global-section h2 {
  margin: 0 0 6px;
  font-size: clamp(34px, 2.6vw, 52px);
}

.about-content .section-kicker {
  margin-bottom: 36px;
  color: #999;
  font-size: 20px;
  letter-spacing: 0.18em;
}

.about-content h3 {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-size: clamp(22px, 1.9vw, 34px);
}

.about-body {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.9vw, 34px);
  color: rgb(13, 59, 111);
}

.about-content .about-body p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: rgb(13, 59, 111);
}

.about-body::before {
  content: '';
  display: block;
  width: 3px;
  height: 56px;
  background: var(--brand);
  margin-bottom: 20px;
}

.about-content p,
.global-section p,
.footer-meta,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.cta-link {
  display: inline-flex;
  margin-top: 14px;
}

.cta-link img {
  width: 150px;
  height: 42px;
}

.global-section {
  display: grid;
  place-items: center;
  min-height: 980px;
  background:
    linear-gradient(180deg, rgba(4, 16, 34, 0.55), rgba(4, 16, 34, 0.16)),
    image-set(
      url("../assets/manling-home/backgrounds/global-bg.webp") type("image/webp"),
      url("../assets/manling-home/backgrounds/global-bg.png") type("image/png")
    ) center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.section-copy.center {
  padding: 120px 24px;
}

.section-kicker.light,
.global-section p {
  color: rgba(255, 255, 255, 0.8);
}

.franchise-section {
  min-height: 700px;
  background: #532d1b;
}

.franchise-photo {
  position: absolute;
  inset: 0;
  background:
    image-set(
      url("../assets/manling-home/backgrounds/store-photo.webp") type("image/webp"),
      url("../assets/manling-home/backgrounds/store-photo.png") type("image/png")
    ) center/cover no-repeat;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08)),
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 6px
    ),
    linear-gradient(180deg, #34373b 0%, #2d3034 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 74px 0 30px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 82%, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at 22% 70%, rgba(255, 255, 255, 0.025), transparent 18%);
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 430px 1fr;
  align-items: start;
  gap: 120px;
  padding-bottom: 54px;
}

.footer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-phone-icon {
  width: 15px;
  height: 17px;
  opacity: 0.8;
}

.footer-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 26px;
}

.footer-contact {
  padding-top: 6px;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 26px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(38px, 3vw, 56px);
  line-height: 1;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-meta {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 15px;
  line-height: 2.1;
}

.footer-qr-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-qr-wrap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.8;
  font-size: 15px;
}

.footer-qr-name {
  font-size: 24px;
}

.footer-qr {
  width: 108px;
  height: 108px;
  border-radius: 4px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: end;
  column-gap: clamp(60px, 6vw, 120px);
}

.footer-nav h3 {
  margin: 0 0 24px;
  padding-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-nav a {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 18px;
  white-space: nowrap;
  transform: translateY(2px);
}

.footer-nav h3 a {
  color: rgba(255, 255, 255, 1);
}

.footer-middle,
.footer-legal {
  width: var(--shell);
  margin: 0 auto;
}

.footer-middle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.friend-links {
  color: rgba(255, 255, 255, 0.42);
  font-size: 15px;
}

.friend-links a {
  margin: 0 10px;
}

.footer-logo {
  width: 158px;
  height: auto;
  opacity: 0.96;
}

.footer-legal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: scale(1.1);
}

.copyright {
  text-align: right;
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    height: auto;
    min-height: auto;
    padding: 22px 0 14px;
  }

  .brand-mark {
    height: auto;
  }

  .brand-mark .logo-badge {
    position: static;
    width: 148px;
    height: auto;
  }

  .main-nav {
    flex-wrap: wrap;
    min-height: auto;
  }

  .main-nav a {
    height: auto;
    padding: 6px 0;
  }

  .header-actions {
    min-height: auto;
  }

  .section-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .about-content {
    padding: clamp(32px, 4vw, 64px);
  }

  .global-section {
    min-height: 560px;
  }

  .section-copy.center {
    padding: 60px 24px;
  }

  .franchise-section {
    min-height: 400px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-middle,
  .footer-legal {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    justify-content: start;
    row-gap: 12px;
  }
}

@media (max-width: 768px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  /* ---- Header & Nav ---- */
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    gap: 0;
    width: 100%;
  }

  .brand-mark {
    height: auto;
    display: flex;
    align-items: center;
  }

  .brand-mark .logo-badge {
    display: none;
  }

  .brand-mark .logo-mobile {
    display: block;
    width: 100px;
    height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    gap: 0;
    z-index: 100;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    height: auto;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-item > a {
    height: auto;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #f5f8ff;
    padding: 0;
    min-width: auto;
  }

  .nav-item.open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 11px 36px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 14px;
  }

  /* ---- Hero ---- */
  .hero-section {
    min-height: 55vw;
    background-position: 38% center;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    top: 25%;
  }

  .hero-copy .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 40px);
  }

  .hero-scroll {
    width: 16px;
    height: 30px;
    margin-left: -8px;
    bottom: 16px;
  }

  /* ---- About ---- */
  .section-grid {
    gap: 0;
  }

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

  .about-visual {
    max-height: 260px;
    overflow: hidden;
  }

  .about-content {
    padding: 28px 20px 36px;
  }

  .about-content h2 {
    font-size: 26px;
  }

  .about-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .about-content p {
    font-size: 14px;
  }

  .cta-link img {
    width: 130px;
    height: 36px;
  }

  /* ---- Global ---- */
  .global-section {
    min-height: 320px;
  }

  .global-section h2 {
    font-size: 26px;
  }

  .section-copy.center {
    padding: 48px 20px;
  }

  /* ---- Franchise ---- */
  .franchise-section {
    min-height: 220px;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-top {
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-phone {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .footer-meta {
    font-size: 12px;
    margin-bottom: 24px;
    line-height: 1.9;
  }

  .footer-qr {
    width: 80px;
    height: 80px;
  }

  .footer-qr-wrap {
    gap: 16px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 24px;
  }

  .footer-nav h3 {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .footer-nav a {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer-middle {
    flex-direction: column;
    gap: 12px;
  }

  .footer-middle,
  .footer-legal {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .friend-links {
    font-size: 11px;
  }

  .footer-logo {
    width: 100px;
  }

  .social-links {
    gap: 20px;
    font-size: 12px;
  }

  .copyright {
    text-align: left;
    font-size: 11px;
  }
}
