:root {
  --primary: #D4728C;
  --primary-hover: #E8A0BF;
  --primary-light: #FBF5F7;
  --dark: #3D3D3D;
  --text: #3D3D3D;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --container: 1280px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 40px rgba(61, 61, 61, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

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

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

.btn--white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ---------- 头部 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0)
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero__subtitle {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero__tags {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
  letter-spacing: 2px;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.hero__arrow:hover {
  background: var(--primary);
}

.hero__arrow--prev {
  left: 24px;
}

.hero__arrow--next {
  right: 24px;
}

.hero__dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__dot.is-active {
  width: 32px;
  background: var(--primary);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--primary-light);
}

.section__head {
  text-align: center;
  margin-bottom: 52px;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__title--left {
  text-align: left;
}

.section__sub {
  color: var(--muted);
  font-size: 16px;
}

.section__more {
  text-align: center;
  margin-top: 44px;
}

.link-more {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-more:hover {
  color: var(--primary-hover);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

/* ---------- 产品卡片 ---------- */
.product-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.product-card__media {
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 案例卡片 ---------- */
.case-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.case-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-card__media img {
  transform: scale(1.06);
}

.case-card__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 13px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.case-card__body {
  padding: 18px 20px;
}

.case-card__body h3 {
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 优势卡片 ---------- */
.adv-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.adv-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  font-size: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.adv-card:hover .adv-card__icon {
  background: var(--primary);
  color: var(--white);
}

.adv-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 关于我们 ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__lead {
  margin: 16px 0 28px;
  color: var(--muted);
}

.about__media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(212, 114, 140, 0.15);
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat__label {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 招商加盟 ---------- */
.franchise {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.franchise__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.franchise__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(212, 114, 140, 0.92),
    rgba(232, 160, 191, 0.82)
  );
}

.franchise__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.franchise__content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.franchise__tags {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: 2px;
  opacity: 0.95;
}

.franchise__desc {
  font-size: 15px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ---------- 新闻卡片 ---------- */
.news-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.news-card__media {
  overflow: hidden;
  aspect-ratio: 20 / 13;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 20px;
}

.news-card__date {
  font-size: 13px;
  color: var(--primary);
}

.news-card__body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.5;
}

.news-card__body p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 在线咨询 ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  flex-shrink: 0;
}

.contact__item h4 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact__item p {
  font-size: 16px;
  font-weight: 600;
}

.contact__qr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact__qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact__qr-text h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact__qr-text p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--dark);
  color: #c9c9c9;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: var(--primary-hover);
}

.footer__col--brand p {
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.8;
}

.brand--footer .brand__name {
  color: var(--white);
}

.brand--footer .brand__sub {
  color: #a5a5a5;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    width: 72%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    padding: 90px 32px 32px;
    gap: 8px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid #f1f1f1;
  }

  .nav__link::after {
    display: none;
  }

  .header__phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__title {
    font-size: 40px;
  }

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

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

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

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 28px;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

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

  .contact__qr {
    flex-direction: column;
    text-align: center;
  }

  .franchise__content h2 {
    font-size: 28px;
  }
}
