/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #e91e63;
  --color-primary-dark: #c2185b;
  --color-primary-light: #fce4ec;
  --color-accent: #ff4081;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-bg: #fff;
  --color-bg-soft: #faf8f9;
  --color-bg-warm: #fff5f8;
  --color-border: #f0e0e6;
  --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.08);
  --shadow-md: 0 8px 24px rgba(233, 30, 99, 0.12);
  --shadow-lg: 0 16px 48px rgba(233, 30, 99, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.logo__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(233, 30, 99, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 80px 0;
  max-width: 680px;
}

.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--intro {
  background: var(--color-bg);
}

.section--values {
  background: var(--color-bg-warm);
  padding: 60px 0;
}

.section--advantages {
  background: var(--color-bg-soft);
}

.section--services {
  background: var(--color-bg);
}

.section--gallery {
  background: var(--color-bg-soft);
}

.section--message {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 80px 0;
}

.section--contact {
  background: var(--color-bg-warm);
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head--center {
  text-align: center;
}

.section-head h2,
.intro__text h2,
.services__content h2,
.contact__info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-head--center p {
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Intro ===== */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro__text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  text-align: justify;
}

.intro__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===== Values ===== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-card__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: 12px;
}

.advantage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.advantage-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  color: var(--color-text-light);
  border-bottom: 1px dashed var(--color-border);
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.services__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.services__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.services__media img:first-child {
  margin-top: 24px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--wide img {
  height: 220px;
}

/* ===== Message ===== */
.message blockquote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.message blockquote p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 2;
  margin-bottom: 16px;
  opacity: 0.95;
}

.message blockquote footer {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 24px;
  font-style: italic;
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.contact-list span,
.contact-list a {
  color: var(--color-text-light);
  font-size: 1rem;
}

.contact-list a:hover {
  color: var(--color-primary);
}

.contact__qr {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.qr-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition);
}

.qr-card:hover {
  transform: translateY(-4px);
}

.qr-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.qr-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== Footer ===== */
.footer {
  background: #2a1a22;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__brand p {
  font-size: 0.9rem;
}

.footer__meta {
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer__meta a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__meta a:hover {
  color: var(--color-accent);
}

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 999;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .intro,
  .services,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro__image {
    order: -1;
  }

  .values {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .services__media {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .logo__text {
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .hero__content {
    padding: 60px 0;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item img,
  .gallery-item--wide img {
    height: 200px;
  }

  .contact__qr {
    flex-direction: column;
    align-items: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__meta {
    text-align: center;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
  }

  .services__media {
    grid-template-columns: 1fr;
  }

  .services__media img:first-child {
    margin-top: 0;
  }

  .qr-card img {
    width: 140px;
    height: 140px;
  }
}

@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .hero__img {
    display: none;
  }

  .hero__video {
    display: block;
  }
}
