:root {
  --pink: #ff2da8;
  --pink-dark: #c60073;
  --ink: #151421;
  --muted: #666579;
  --line: #eeeaf2;
  --soft: #fff4fb;
  --cyan: #12b8b3;
  --yellow: #f7b731;
  --shadow: 0 18px 45px rgba(21, 20, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  font-size: 24px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 28px;
  color: #343244;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  content: "";
}

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

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 56px 5vw 42px;
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

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

.primary-btn,
.ghost-btn,
.online-btn,
.promo-panel button,
.contact-form button,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--pink);
  font-weight: 800;
  cursor: pointer;
}

.primary-btn,
.promo-panel button,
.contact-form button,
.online-btn {
  color: #fff;
  background: var(--pink);
}

.ghost-btn,
.pagination button {
  color: var(--pink-dark);
  background: #fff;
}

.hero-media {
  position: relative;
  height: min(62vh, 620px);
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media span,
.launch-grid span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(21, 20, 33, 0.78);
  border-left: 4px solid var(--pink);
  font-weight: 900;
}

.stats-section,
.section,
.promo-section,
.site-footer {
  padding: 72px 5vw;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #fbfbfd;
  border-block: 1px solid var(--line);
}

.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  color: var(--pink);
  font-size: 36px;
  line-height: 1.1;
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
}

.intro-grid > div:first-child,
.daily-card,
.about-grid article,
.contact-form,
.contact-info,
.product-feature-grid article,
.news-card,
.catalog-card,
.promo-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 20, 33, 0.05);
}

.intro-grid > div:first-child,
.daily-card,
.about-grid article,
.contact-info,
.promo-panel {
  padding: 26px;
}

.daily-card {
  background: linear-gradient(150deg, var(--soft), #fff);
}

.daily-card strong {
  display: block;
  color: var(--pink);
  font-size: 74px;
  line-height: 1;
}

.product-feature-grid,
.news-grid,
.launch-grid,
.about-grid,
.catalog-grid,
.article-grid {
  display: grid;
  gap: 20px;
}

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

.product-feature-grid article {
  overflow: hidden;
}

.product-feature-grid img {
  height: 210px;
}

.product-feature-grid h3,
.product-feature-grid p {
  padding-inline: 20px;
}

.product-feature-grid h3 {
  margin-top: 18px;
}

.product-feature-grid p {
  padding-bottom: 20px;
  color: var(--muted);
}

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

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 190px;
  overflow: hidden;
}

.news-card div {
  padding: 20px;
}

.news-card span,
.catalog-card .type {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pink-dark);
  font-weight: 900;
}

.news-card p,
.catalog-card p,
.article-card p,
.about-grid p,
.contact-info p,
.timeline span {
  color: var(--muted);
}

.rich-news p + p,
.article-card p + p,
.promo-section p + p {
  margin-top: 10px;
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 20, 33, 0.05);
}

.article-card img {
  height: 260px;
}

.article-body {
  padding: 22px;
}

.article-body span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pink-dark);
  font-weight: 900;
}

.article-body ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detailed-launch span {
  line-height: 1.45;
}

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

.launch-grid a {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
}

.promo-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 30px;
  align-items: center;
  background: linear-gradient(90deg, var(--soft), #fff);
  border-block: 1px solid var(--line);
}

.promo-section p {
  max-width: 900px;
  color: var(--muted);
}

.promo-panel strong,
.promo-panel span {
  display: block;
}

.promo-panel strong {
  color: var(--pink);
  font-size: 32px;
}

.promo-panel button {
  margin-top: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 16px;
  border-left: 4px solid var(--pink);
  background: #fbfbfd;
  border-radius: 8px;
}

.timeline time {
  color: var(--ink);
  font-weight: 900;
}

.product-page {
  background: #fff;
}

.filters {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tag {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.tag.active {
  color: #fff;
  border-color: var(--pink);
  background: var(--pink);
}

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

.catalog-card {
  overflow: hidden;
}

.catalog-card img {
  height: 190px;
}

.catalog-card .body {
  padding: 18px;
}

.meta-row,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--pink-dark);
  font-weight: 800;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

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

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.map-embed {
  height: 330px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .filters,
  .catalog-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 12px;
  }

  .hero,
  .intro-grid,
  .promo-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    height: 420px;
  }

  .stats-section,
  .product-feature-grid,
  .news-grid,
  .launch-grid,
  .timeline,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-inline: 18px;
  }

  .hero,
  .stats-section,
  .section,
  .promo-section,
  .site-footer {
    padding-inline: 18px;
  }

  .hero-media {
    min-height: 300px;
    height: 320px;
  }

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

  .timeline li {
    grid-template-columns: 1fr;
  }

  .daily-card strong {
    font-size: 56px;
  }

  .site-footer {
    flex-direction: column;
  }
}
