/**
 * PicPlay 影像玩趣 — 创意影像/玩具品牌官网
 * 设计基调：白底 + 马卡龙色系 + 大圆角 + 杂志排版
 * 风格：Claymorphism + Editorial Magazine
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 马卡龙色系
   ============================================================ */
:root {
  /* === 品牌主色（马卡龙） === */
  --coral: #FF6B6B;
  --coral-light: #FFE0E0;
  --coral-dim: rgba(255, 107, 107, 0.12);

  --sky: #4ECDC4;
  --sky-light: #D4F5F2;
  --sky-dim: rgba(78, 205, 196, 0.12);

  --yellow: #FFE66D;
  --yellow-light: #FFF9E0;
  --yellow-dim: rgba(255, 230, 109, 0.15);

  --lavender: #A78BFA;
  --lavender-light: #EDE4FF;
  --lavender-dim: rgba(167, 139, 250, 0.12);

  --mint: #6EE7B7;
  --mint-light: #DCFAEE;
  --mint-dim: rgba(110, 231, 183, 0.12);

  /* === 辅助色 === */
  --warm-gray: #F5F0EB;
  --warm-gray-dark: #E8E0D8;
  --wood: #D4A574;
  --wood-light: #F0E0D0;

  /* === 中性色 === */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --text-light: #DFE6E9;

  /* === 边框 === */
  --border-light: #F0EDE8;
  --border-default: #E8E3DC;

  /* === 阴影 === */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-clay: 0 6px 20px rgba(0,0,0,0.06), inset -1px -2px 4px rgba(0,0,0,0.04);
  --shadow-clay-hover: 0 10px 30px rgba(0,0,0,0.08), inset -1px -2px 8px rgba(0,0,0,0.06);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.05);

  /* === 圆角（大圆角体系） === */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* === 间距 === */
  --section-py: 90px;
  --section-py-sm: 60px;
  --container-max: 1200px;
  --header-h: 72px;

  /* === 过渡 === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* === 字体 === */
  --font-heading: 'Fredoka', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ============================================================
   全局重置
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

::selection {
  background: rgba(255, 107, 107, 0.2);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6rem;
  background: var(--coral-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--gray {
  background: var(--warm-gray);
}

.section--off-white {
  background: var(--off-white);
}

/* ============================================================
   Header 头部 — 白色实底 + 彩色点缀
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
  font-family: var(--font-heading);
}

.header__logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--coral), var(--lavender));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header__logo-sub {
  font-size: 0.65rem;
  color: var(--coral);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  font-family: var(--font-heading);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--coral);
  background: var(--coral-dim);
}

/* 导航下拉 */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

.header__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
}

.header__dropdown a:hover {
  color: var(--coral);
  background: var(--coral-light);
}

/* Header CTA按钮 */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--coral), #FF8A80);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.header__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 360px;
  background: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: 24px;
  padding-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  transition: all var(--duration-fast);
}

.mobile-nav__link:hover {
  color: var(--coral);
  background: var(--coral-light);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  font-family: var(--font-heading);
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--coral), #FF8A80);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
  color: #fff;
}

.btn--sky {
  background: linear-gradient(135deg, var(--sky), #7EDDD6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.3);
}

.btn--sky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.4);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--coral);
  border: 2px solid var(--coral);
}
.btn--outline:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-sky {
  background: #fff;
  color: var(--sky);
  border: 2px solid var(--sky);
}

.btn--outline-sky:hover {
  background: var(--sky);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-default);
}

.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-light);
}

.btn--white {
  background: #fff;
  color: var(--coral);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   卡片系统 — 大圆角 + 彩色边框/色块
   ============================================================ */
.card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  --card-color: var(--coral);
}

.card:hover {
  border-color: var(--card-color);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card--coral { --card-color: var(--coral); }
.card--sky { --card-color: var(--sky); }
.card--yellow { --card-color: var(--sunflower, #F9CA24); }
.card--lavender { --card-color: var(--lavender); }
.card--mint { --card-color: var(--mint); }

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--warm-gray);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--card-color);
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.card__body {
  padding: 20px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card__meta i { color: var(--card-color); }

.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 8px;
}

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
  background: var(--warm-gray);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(45, 52, 54, 0.15) 0%,
    rgba(45, 52, 54, 0.05) 50%,
    rgba(45, 52, 54, 0.5) 100%);
}

/* 彩色圆点装饰 */
.hero__dots {
  position: absolute;
  top: 20%;
  right: 10%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  opacity: 0.5;
}

.hero__dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
}

.hero__dots span:nth-child(1) { background: var(--coral); }
.hero__dots span:nth-child(2) { background: var(--sky); }
.hero__dots span:nth-child(3) { background: var(--yellow); }
.hero__dots span:nth-child(4) { background: var(--lavender); }
.hero__dots span:nth-child(5) { background: var(--mint); }
.hero__dots span:nth-child(6) { background: var(--coral); }
.hero__dots span:nth-child(7) { background: var(--sky); }
.hero__dots span:nth-child(8) { background: var(--yellow); }
.hero__dots span:nth-child(9) { background: var(--lavender); }

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Swiper 分页器 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 56px;
  background: #fff;
}

/* ============================================================
   首页 — 分类球（Product Categories）
   ============================================================ */
.category-balls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.category-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.category-ball:hover {
  transform: translateY(-6px);
}

.category-ball__circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  transition: all var(--duration-normal) var(--ease-bounce);
  box-shadow: var(--shadow-clay);
  position: relative;
  overflow: hidden;
}

.category-ball:nth-child(1) .category-ball__circle {
  background: linear-gradient(135deg, var(--coral), #FF8A80);
}
.category-ball:nth-child(1) .category-ball__circle i::before {
  content: '\f030'; /* fa-camera-retro */
}
.category-ball:nth-child(2) .category-ball__circle {
  background: linear-gradient(135deg, var(--sky), #7EDDD6);
}
.category-ball:nth-child(2) .category-ball__circle i::before {
  content: '\f12e'; /* fa-puzzle-piece */
}
.category-ball:nth-child(3) .category-ball__circle {
  background: linear-gradient(135deg, var(--lavender), #C4B5FD);
}
.category-ball:nth-child(3) .category-ball__circle i::before {
  content: '\f03e'; /* fa-photo-film */
}
.category-ball:nth-child(4) .category-ball__circle {
  background: linear-gradient(135deg, var(--mint), #A7F3D0);
}
.category-ball:nth-child(4) .category-ball__circle i::before {
  content: '\f06b'; /* fa-gift */
}

.category-ball:hover .category-ball__circle {
  box-shadow: var(--shadow-clay-hover);
  transform: scale(1.05);
}

.category-ball__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-ball__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 140px;
}

.category-ball__circle::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   首页 — 热门产品区
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--warm-gray);
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__body {
  padding: 18px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-card__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--coral);
}

.product-card__btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: all var(--duration-fast);
}

.product-card__btn:hover {
  background: var(--coral);
  color: #fff;
}

/* 彩色标记条 */
.product-card__color-bar {
  height: 5px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.product-card:nth-child(1) .product-card__color-bar { background: var(--coral); }
.product-card:nth-child(2) .product-card__color-bar { background: var(--sky); }
.product-card:nth-child(3) .product-card__color-bar { background: var(--lavender); }
.product-card:nth-child(4) .product-card__color-bar { background: var(--mint); }

/* ============================================================
   首页 — 创意影像画廊
   ============================================================ */
.gallery-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--warm-gray);
}

.gallery-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-showcase-item:hover img {
  transform: scale(1.06);
}

.gallery-showcase-item__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.gallery-showcase-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.gallery-showcase-item__author {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ============================================================
   首页 — 亲子生活
   ============================================================ */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lifestyle-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: all var(--duration-normal);
  cursor: pointer;
}

.lifestyle-card:hover {
  border-color: var(--lavender);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.lifestyle-card__image {
  width: 45%;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.lifestyle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-card__content {
  padding: 28px;
  flex: 1;
}

.lifestyle-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.lifestyle-card:nth-child(1) .lifestyle-card__tag {
  color: var(--sky);
  background: var(--sky-light);
}
.lifestyle-card:nth-child(2) .lifestyle-card__tag {
  color: var(--lavender);
  background: var(--lavender-light);
}
.lifestyle-card:nth-child(3) .lifestyle-card__tag {
  color: var(--mint);
  background: var(--mint-light);
}
.lifestyle-card:nth-child(4) .lifestyle-card__tag {
  color: var(--coral);
  background: var(--coral-light);
}

.lifestyle-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.lifestyle-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   首页 — 客户评价
   ============================================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--duration-normal);
}

.review-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.review-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--yellow-light);
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__stars {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

.review-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   首页 — 新闻区（左图右文）
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  cursor: pointer;
}

.news-item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.news-item__thumb {
  width: 160px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--warm-gray);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__info {
  flex: 1;
  min-width: 0;
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================================
   CTA 区
   ============================================================ */
.cta-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--coral), var(--lavender), var(--sky));
  background-size: 200% 200%;
  animation: ctaShift 8s ease-in-out infinite;
}

@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
}

.cta-keywords {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-keywords span {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
}

/* ============================================================
   Footer — 彩色/浅色背景，四列
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: var(--text-light);
}

.footer__top-line {
  height: 4px;
  background: linear-gradient(90deg,
    var(--coral), var(--sky), var(--yellow), var(--lavender), var(--mint));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 16px 0;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-light);
  opacity: 0.7;
  transition: all var(--duration-fast);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--coral);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer__contact-item i {
  color: var(--coral);
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 1;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
  text-align: center;
}

/* 友情链接 */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.friend-links__label {
  font-size: 0.82rem;
  color: var(--text-light);
  opacity: 0.6;
  flex-shrink: 0;
}

.friend-links a {
  font-size: 0.82rem;
  color: var(--text-light);
  opacity: 0.5;
  transition: all var(--duration-fast);
}

.friend-links a:hover {
  opacity: 1;
  color: var(--sky);
}

/* 底部版权栏 */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.8rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a { color: var(--text-light); }
.footer__bottom a:hover { color: var(--coral); }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--warm-gray);
  margin-top: var(--header-h);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--text-primary);
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(45, 52, 54, 0.5) 0%,
    rgba(45, 52, 54, 0.3) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-banner__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
}

/* 面包屑 */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================================
   列表页通用
   ============================================================ */
.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 36px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar a {
  display: inline-flex;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-heading);
  transition: all var(--duration-fast);
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--coral);
  border-color: var(--coral);
  background: var(--coral-light);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.detail__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail__meta-row i { color: var(--coral); margin-right: 4px; }

/* 产品参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 16px;
  background: var(--off-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--duration-fast);
}

.detail__param:hover {
  border-color: var(--coral);
  background: #fff;
  transform: translateY(-2px);
}

.detail__param-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail__param-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 16px; }
.detail__body h2, .detail__body h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

/* 上下篇 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.detail__pager a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.detail__pager a:hover { color: var(--coral); }

/* 相关推荐 */
.related-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 56px 0 24px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   联系页面
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast);
}

.contact-info__item:hover {
  border-color: var(--sky);
  transform: translateX(4px);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 联系表单 */
.contact-form-card {
  padding: 36px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.contact-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-group label .required {
  color: var(--coral);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--off-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.form-control:focus {
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px var(--sky-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636E72' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 700px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 15px 20px 15px 44px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.search-input-wrap input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-dim);
}

.search-result-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
  cursor: pointer;
}

.search-result-item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.search-result-item__thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--warm-gray);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.pagination a:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.pagination .active {
  background: var(--coral);
  color: #fff;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   作品集/评价网格 (Masonry-like Gallery)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--warm-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  transform: translateY(-2px);
}

/* ============================================================
   在线客服按钮（右下角彩色圆形）
   ============================================================ */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 136px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4);
  transition: all var(--duration-normal) var(--ease-bounce);
  animation: servicePulse 2.5s ease-in-out infinite;
}

.online-service:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(78, 205, 196, 0.5);
}

@keyframes servicePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(78, 205, 196, 0.6); }
}

/* ============================================================
   动画效果
   ============================================================ */

/* 彩色飘带旋转 */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 浮动 */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-element {
  animation: floatUpDown 5s ease-in-out infinite;
}

/* 弹入 */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* 渐显上移 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 呼吸发光 */
@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 107, 0.2); }
  50% { box-shadow: 0 0 24px rgba(255, 107, 107, 0.4); }
}

/* 摇摆 */
@keyframes gentleWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* ============================================================
   装饰性彩色元素
   ============================================================ */
.color-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.color-blob--coral {
  width: 300px;
  height: 300px;
  background: var(--coral);
}

.color-blob--sky {
  width: 250px;
  height: 250px;
  background: var(--sky);
}

.color-blob--lavender {
  width: 280px;
  height: 280px;
  background: var(--lavender);
}

.color-blob--yellow {
  width: 200px;
  height: 200px;
  background: var(--yellow);
}

/* 彩色分割线 */
.color-divider {
  width: 60px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--coral), var(--lavender));
  margin: 0 auto;
}

/* ============================================================
   产品详情 — 大图轮播
   ============================================================ */
.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.detail-gallery .swiper-slide {
  aspect-ratio: 16/9;
}

.detail-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情页 Tab 切换 */
.detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border-light);
  flex-wrap: wrap;
}

.detail-tab {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-heading);
}

.detail-tab:hover { color: var(--text-primary); }

.detail-tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root {
    --section-py: 64px;
    --section-py-sm: 48px;
  }

  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .category-balls {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-py: 48px;
    --section-py-sm: 36px;
  }

  /* === 防溢出：确保所有内容不超出视口 === */
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  img, video, canvas, iframe {
    max-width: 100%;
    height: auto;
  }

  /* === 全局居中修正 === */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  /* === 移动端Section标题居中 === */
  .section-tag,
  .section-title,
  .section-subtitle {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* === Header 移动端 === */
  .header__inner {
    padding: 0 16px;
  }

  .header__cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* === Hero === */
  .hero {
    height: 85vh;
    min-height: 480px;
  }

  .hero__dots {
    display: none;
  }

  .hero__content {
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero__actions .btn {
    width: auto;
    min-width: 160px;
  }

  .hero__scroll-indicator {
    display: none;
  }

  /* === 内页 === */
  .inner-banner {
    height: 220px;
  }

  .inner-banner__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* === 产品分类球 === */
  .category-balls {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .category-ball__circle {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .category-ball__name {
    font-size: 0.9rem;
  }

  /* === 产品/网格 === */
  .product-grid,
  .gallery-showcase,
  .review-grid,
  .list-grid,
  .related-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .product-card,
  .gallery-showcase-item,
  .review-card {
    width: 100%;
    max-width: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* === 亲子生活 === */
  .lifestyle-card {
    flex-direction: column;
  }

  .lifestyle-card__image {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .lifestyle-card__content {
    padding: 20px;
  }

  /* === 新闻 === */
  .news-item {
    flex-direction: column;
  }

  .news-item__thumb {
    width: 100%;
    height: 180px;
  }

  /* === CTA === */
  .cta-keywords {
    gap: 10px;
  }

  .cta-keywords span {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* === Footer === */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .friend-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* === 联系页 === */
  .contact-form-card {
    padding: 24px 16px;
  }

  /* === 搜索 === */
  .search-result-item {
    flex-direction: column;
  }

  .search-result-item__thumb {
    width: 100%;
    height: 160px;
  }

  .search-form-row {
    flex-direction: column;
  }

  /* === 详情页 === */
  .detail {
    padding: 0;
  }

  .detail__params {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail__pager {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .detail-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .detail-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  /* === 面包屑 === */
  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* === 固定按钮 === */
  .back-top {
    right: 12px;
    bottom: 60px;
    width: 40px;
    height: 40px;
  }

  .online-service {
    right: 12px;
    bottom: 110px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  /* === 关于页 === */
  .detail__body {
    padding: 0 4px;
    font-size: 0.9rem;
  }

  /* === 留言咨询表单 === */
  .form-group label {
    font-size: 0.82rem;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  /* === 列表页Header === */
  .list-header {
    padding: 0 4px;
  }
}

@media (max-width: 374px) {
  body { font-size: 15px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* July 16: compact mobile presentation; keep the existing playful identity. */
@media(max-width:767px){
 :root{--section-py:32px;--section-py-sm:26px}.container{padding-left:16px;padding-right:16px}
 [data-aos]{opacity:1!important;transform:none!important;transition:none!important}.hero{height:420px;min-height:420px;max-height:420px}.hero__content{padding:0 20px}.hero__title{font-size:29px;line-height:1.45;text-wrap:balance}.hero__subtitle{font-size:13px;line-height:1.8}.hero__actions{flex-direction:row;gap:10px;justify-content:center;flex-wrap:wrap}.hero__actions .btn{font-size:13px;padding:12px 17px;width:auto}.hero-pagination{margin-top:22px}.section-title{font-size:25px;line-height:1.4}.section-subtitle{font-size:13px;line-height:1.7}.section-tag{font-size:10px}
 .section [style*="margin-bottom:48px"],.section [style*="margin-bottom:32px"]{margin-bottom:22px!important;gap:10px!important}.section [style*="margin-top:32px"]{margin-top:20px!important}
 .category-balls{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.category-ball{gap:8px;min-width:0}.category-ball__circle{width:54px;height:54px;font-size:21px}.category-ball__name{font-size:13px}.category-ball__desc{font-size:10px;line-height:1.6}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{min-width:0;border-radius:16px}.product-card__image{aspect-ratio:1/1}.product-card__body{padding:12px}.product-card__title{font-size:15px;line-height:1.5;display:block;-webkit-line-clamp:unset;overflow:visible}.product-card__meta{font-size:11px;margin-bottom:10px}.product-card__footer{gap:8px;flex-wrap:wrap}.product-card__price{font-size:18px}.product-card__btn{font-size:10px;padding:7px 8px;min-height:32px;display:flex;align-items:center}
 .gallery-showcase,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-showcase-item:first-child{grid-column:1/-1;aspect-ratio:16/9}.gallery-showcase-item{aspect-ratio:1/1}.gallery-showcase-item__info{padding:12px}.gallery-showcase-item__title{font-size:14px;line-height:1.5}.gallery-showcase-item__author{font-size:11px}
 .lifestyle-grid{gap:14px}.lifestyle-card{flex-direction:row;align-items:stretch}.lifestyle-card__image{width:30%;aspect-ratio:auto;min-height:155px}.lifestyle-card__image img{height:100%;object-fit:cover}.lifestyle-card__content{padding:15px;min-width:0}.lifestyle-card__tag{font-size:10px}.lifestyle-card__title{font-size:17px;line-height:1.5}.lifestyle-card__desc{font-size:12px;line-height:1.8}
 .review-grid{gap:14px}.review-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 12px;padding:16px;text-align:left}.review-card__avatar{width:44px;height:44px;grid-row:1/4;margin:0}.review-card__stars{font-size:11px;margin:0}.review-card__text{font-size:13px;line-height:1.8;margin:0}.review-card__name{font-size:12px;margin:0;grid-column:2}
 .news-list{gap:14px}.news-item{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;padding:12px;align-items:start}.news-item__thumb{width:85px;height:96px;aspect-ratio:auto}.news-item__info{min-width:0;padding:0}.news-item__title{font-size:15px;line-height:1.5}.news-item__desc{font-size:12px;line-height:1.7}.news-item__date{font-size:11px}
 .cta-section{padding:32px 0}.cta-section__title{font-size:25px;line-height:1.5}.cta-section__subtitle{font-size:13px;line-height:1.7}.cta-keywords{gap:8px;flex-wrap:wrap;margin:18px 0}.cta-keywords span{font-size:11px;padding:5px 10px}.cta-section .btn{font-size:14px!important;padding:12px 22px!important}
 .footer__grid{grid-template-columns:minmax(0,1fr) 100px;gap:20px 12px;padding:28px 16px}.footer__grid>div{min-width:0}.footer__grid>div:nth-child(-n+2){grid-column:1/-1}.footer__brand-desc{font-size:12px;margin:10px 0}.footer__col-title{font-size:14px;margin-bottom:10px}.footer__links{display:flex;flex-direction:row;flex-wrap:wrap;gap:0 16px}.footer__links a{font-size:12px;min-height:44px;display:flex;align-items:center}.footer__contact-item{font-size:12px;gap:6px;overflow-wrap:anywhere}.footer__qrcode{width:100px;height:100px}.footer__bottom-inner{font-size:11px;overflow-wrap:anywhere}.friend-links{font-size:11px;padding:15px 16px}
 .inner-banner{height:155px!important}.inner-banner__title{font-size:26px}.inner-banner__subtitle{font-size:12px}.breadcrumb{white-space:normal;flex-wrap:wrap;font-size:11px}.detail__title{font-size:24px}.detail__body{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.detail__body img{max-width:100%!important;height:auto!important}.detail__body table{display:block;max-width:100%;overflow:auto}.detail__params{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail__param{min-width:0;padding:12px;overflow-wrap:anywhere}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .section>.container>[style*="grid-template-columns:repeat(3"]{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.section>.container>[style*="grid-template-columns:repeat(4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.contact-grid{gap:24px}.contact-form-card{padding:20px}.form-control{font-size:16px;min-width:0;max-width:100%}.form-group{min-width:0}form [style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:0!important}form [style*="display:flex"]{flex-wrap:wrap}.search-form-row input{min-width:0}.pagination{flex-wrap:wrap}.pagination a{min-width:44px;min-height:44px}
 .header:has(.hamburger.active){z-index:130}.mobile-nav{top:var(--header-h);width:calc(100vw - 44px);max-width:340px;z-index:125}.mobile-nav:not(.open){visibility:hidden}.mobile-nav__inner{padding:16px}.mobile-nav__link,.mobile-nav__item{font-size:15px;min-height:48px;padding:12px;border-bottom:1px solid var(--border-light)}.mobile-nav__sub.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px;background:var(--off-white)}.mobile-nav__sub a{font-size:12px;min-height:44px;padding:10px 8px}.mobile-nav__sub a:first-child{grid-column:1/-1}
}
@media(max-width:359px){.hero__title{font-size:26px}.category-ball__circle{width:46px;height:46px}.category-ball__name{font-size:12px}.product-card__body{padding:10px}.product-card__title{font-size:14px}.news-item{grid-template-columns:70px minmax(0,1fr);gap:10px}.news-item__thumb{width:70px}}

@media(max-width:767px){.detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible}.detail-tab{min-width:0;min-height:44px;font-size:12px;padding:12px 3px;text-align:center}}
