/* =========================================================
   萌翻导航 · 全局样式
   Author: MengFan Nav Team
   Description: 可爱萌系配色 + 网址导航布局 + 响应式适配
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --primary: #ff8ba7;
  --primary-dark: #f26a8d;
  --primary-light: #ffe3ea;
  --secondary: #a78bfa;
  --secondary-light: #ece6ff;
  --accent: #ffd166;
  --teal: #4ecdc4;
  --bg: #fff7f9;
  --bg-soft: #fff0f4;
  --text: #4a3f5c;
  --text-light: #8a7f9e;
  --white: #ffffff;
  --border: #ffe1e8;
  --shadow: 0 10px 30px rgba(255, 139, 167, 0.14);
  --shadow-lg: 0 18px 45px rgba(167, 139, 250, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
ul {
  list-style: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}
/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(255, 139, 167, 0.12);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 1px;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 22px;
  box-shadow: var(--shadow);
}
.main-nav ul {
  display: flex;
  gap: 8px;
}
.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary-dark);
  cursor: pointer;
  line-height: 1;
}
/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  padding: 100px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 139, 167, 0.25), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.22), transparent 42%),
    linear-gradient(160deg, #fff5f8 0%, #fff9fe 60%, #f6f2ff 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(2px);
}
.hero::before {
  width: 180px;
  height: 180px;
  top: 40px;
  right: 8%;
  background: var(--accent);
  opacity: 0.28;
}
.hero::after {
  width: 120px;
  height: 120px;
  bottom: 30px;
  left: 6%;
  background: var(--teal);
  opacity: 0.22;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats strong {
  font-size: 28px;
  color: var(--primary-dark);
  display: block;
  line-height: 1.2;
}
.hero-stats span {
  font-size: 14px;
  color: var(--text-light);
}
.hero-visual {
  text-align: center;
}
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.hero-bounce {
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
/* ---------- 通用 Section ---------- */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-light);
  font-size: 16px;
}
/* ---------- 特性卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary-dark);
}
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
}
/* ---------- 分类导航卡片 ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.cat-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}
.cat-head h3 {
  font-size: 20px;
  color: var(--text);
}
.cat-head span {
  display: block;
  font-size: 13px;
  color: var(--text-light);
}
.cat-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cat-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}
.cat-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(4px);
}
/* ---------- 精选 / 热门推荐 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.site-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.site-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
.site-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.site-body {
  padding: 20px;
}
.site-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.site-body p {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}
.site-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
/* ---------- 资讯 / 新闻 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
}
.news-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.news-body p {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
}
.news-more {
  margin-top: 16px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
}
.news-more:hover {
  color: var(--secondary);
}
/* ---------- 文章详情布局 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.article h2 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 14px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 24px;
}
.article-content h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}
.article-content p {
  margin-bottom: 16px;
  color: var(--text);
}
.article-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.article-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-content li {
  margin-bottom: 8px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.side-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.side-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.side-list li:last-child {
  border-bottom: none;
}
.side-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.side-list a:hover {
  color: var(--primary-dark);
}
/* ---------- 产品服务 ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.prod-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.prod-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.prod-ico {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}
.prod-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.prod-card p {
  font-size: 14.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prod-tags span {
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}
/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  transition: background 0.3s ease;
}
.faq-q:hover {
  background: var(--bg-soft);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 16px;
  transition: transform 0.35s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-light);
  font-size: 14.5px;
}
/* ---------- CTA ---------- */
.cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -90px;
  left: -60px;
}
.cta::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  bottom: -70px;
  right: -40px;
}
.cta h2 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.cta p {
  font-size: 17px;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 34px;
  position: relative;
  z-index: 2;
}
.cta .btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}
.cta .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}
/* ---------- 联系表单 ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: var(--primary-dark);
}
.info-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.info-card p {
  font-size: 14px;
  color: var(--text-light);
}
/* ---------- 页脚 ---------- */
.site-footer {
  background: #2f2a41;
  color: #c9c0dd;
  padding-top: 70px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand .brand {
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand p {
  color: #a89fc3;
  line-height: 1.8;
}
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #a89fc3;
  transition: color 0.3s ease;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: #8d84a8;
  font-size: 13px;
}
/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s ease;
  z-index: 99;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ---------- 动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}
/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.4s ease;
    padding: 18px 20px;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .article { padding: 24px; }
  .article h2 { font-size: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cat-links { grid-template-columns: 1fr; }
}
