:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #dfe7ee;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --blue: #1677c8;
  --green: #27a46f;
  --yellow: #f1b83b;
  --red: #e85c4a;
  --shadow: 0 14px 38px rgba(21, 42, 64, .12);
}

/* Template C — colorful playful toy brand */
:root {
  --ink: #2b2140;
  --muted: #756a86;
  --line: #f0dff1;
  --paper: #fffdf8;
  --mist: #fff2f5;
  --blue: #7556e8;
  --green: #20b99a;
  --yellow: #ffbf3f;
  --red: #ff647c;
  --shadow: 0 16px 40px rgba(111, 64, 145, .16);
}

body { background: #fffdf8; }
.site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff647c, #ffbf3f, #20b99a, #7556e8) 1;
}
.brand-mark {
  border-radius: 14px 7px 14px 7px;
  background: linear-gradient(145deg, #ff647c, #7556e8);
  transform: rotate(-3deg);
}
.nav a { font-weight: 800; }
.nav a:hover { border-radius: 18px; }
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,191,63,.28), transparent 22%),
    radial-gradient(circle at 86% 20%, rgba(117,86,232,.20), transparent 24%),
    linear-gradient(135deg, #fff8ed, #fff 52%, #f7efff);
}
.hero h1 { color: #4d2b7d; }
.toy { border-radius: 28px; }
.section-head h2 { color: #6a3fc4; }
.product-card, .news-card, .category-item { border-radius: 24px; }
.product-card:nth-child(3n+1) { border-top: 5px solid #ff647c; }
.product-card:nth-child(3n+2) { border-top: 5px solid #ffbf3f; }
.product-card:nth-child(3n+3) { border-top: 5px solid #20b99a; }
.button { border-radius: 18px; }
.button.primary { background: linear-gradient(90deg, #ff647c, #7556e8); }


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 13px;
  border-radius: 6px;
  color: #344054;
  font-size: 15px;
}

.nav a:hover { background: var(--mist); color: var(--blue); }

.lang-toggle, .button {
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle {
  padding: 9px 12px;
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 28px;
  padding: 58px clamp(18px, 6vw, 78px) 48px;
  background: linear-gradient(115deg, #f7fbff 0%, #fff 54%, #fff7e2 100%);
}

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

.eyebrow, .section-head p {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 86px); line-height: .98; margin-bottom: 22px; }
h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 14px; }
h3 { font-size: 22px; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.72; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.primary { background: var(--blue); color: #fff; }
.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.hero-media {
  position: relative;
  min-height: 430px;
}

.toy {
  position: absolute;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.toy::before, .toy::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.toy-a {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 54px;
  background: var(--yellow);
}

.toy-a::before { width: 70px; height: 70px; background: #fff; left: 36px; top: 42px; }
.toy-a::after { width: 38px; height: 38px; background: var(--red); right: 42px; bottom: 48px; }

.toy-b {
  width: 260px;
  height: 170px;
  right: 4%;
  top: 128px;
  background: var(--blue);
  transform: rotate(8deg);
}

.toy-b::before { width: 58px; height: 58px; background: #fff; left: 46px; bottom: 28px; }
.toy-b::after { width: 58px; height: 58px; background: #fff; right: 46px; bottom: 28px; }

.toy-c {
  width: 210px;
  height: 150px;
  left: 30%;
  bottom: 30px;
  background: var(--green);
  transform: rotate(2deg);
}

.toy-c::before { width: 52px; height: 52px; background: #fff; left: 36px; top: 30px; }
.toy-c::after { width: 52px; height: 52px; background: #fff; right: 36px; top: 30px; }

.section {
  padding: 72px clamp(18px, 6vw, 78px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.band { background: var(--mist); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21,42,64,.06);
}

.product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.6;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.blue .product-visual { background: var(--blue); }
.yellow .product-visual { background: var(--yellow); color: #462f00; }
.green .product-visual { background: var(--green); }

.category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-list div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-list strong, .category-list span { display: block; }
.category-list span { color: var(--muted); margin-top: 8px; line-height: 1.55; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.video-box {
  display: grid;
  place-items: center;
  min-height: 310px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #31566f);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

time { color: var(--red); font-weight: 800; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats span {
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats strong { display: block; color: var(--blue); font-size: 46px; }
.stats small { color: var(--muted); }

.contact {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 78px);
  color: #667085;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .brand { min-width: auto; }
  .nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-media { min-height: 320px; order: -1; }
  .product-grid, .category-list, .news-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 10px;
    padding: 12px 14px 0;
    background: #fff;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; }

  .lang-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 9px 11px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 0 10px 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a {
    flex: 0 0 auto;
    padding: 10px 9px 6px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-media { min-height: 260px; }
  .toy-a { width: 150px; height: 150px; }
  .toy-b { width: 180px; height: 120px; }
  .toy-c { width: 150px; height: 110px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .stats { grid-template-columns: 1fr; }
}

/* Keep Template C visual overrides after the shared responsive rules. */
body { background: #fffdf8; }
.site-header {
  background: rgba(255, 253, 248, .96);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff647c, #ffbf3f, #20b99a, #7556e8) 1;
}
.brand-mark {
  border-radius: 14px 7px 14px 7px;
  background: linear-gradient(145deg, #ff647c, #7556e8);
  transform: rotate(-3deg);
}
.nav a { font-weight: 800; }
.nav a:hover { border-radius: 18px; }
.hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,191,63,.28), transparent 22%),
    radial-gradient(circle at 86% 20%, rgba(117,86,232,.20), transparent 24%),
    linear-gradient(135deg, #fff8ed, #fff 52%, #f7efff);
}
.hero h1 { color: #4d2b7d; }
.toy { border-radius: 28px; }
.section-head h2 { color: #6a3fc4; }
.product-card, .news-card, .category-item { border-radius: 24px; }
.product-card:nth-child(3n+1) { border-top: 5px solid #ff647c; }
.product-card:nth-child(3n+2) { border-top: 5px solid #ffbf3f; }
.product-card:nth-child(3n+3) { border-top: 5px solid #20b99a; }
.button { border-radius: 18px; }
.button.primary { background: linear-gradient(90deg, #ff647c, #7556e8); }
