/* ============ Reset & Base ============ */
*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit;
  border: none; outline: none;
}

/* ============ Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Navbar ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center;
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-img {
  height: 64px; width: auto;
  display: block;
}
.footer-logo-img {
  height: 56px; width: auto; max-width: 240px;
  margin-bottom: 12px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: .95rem; font-weight: 400; color: #555;
  position: relative; padding: 4px 0;
}
.nav-links a:after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width .3s;
}
.nav-links a:hover:after,
.nav-links a.active:after { width: 100%; }
.nav-links a:hover { color: #2563eb; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #333; border-radius: 2px;
  transition: all .3s;
}

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124,58,237,.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(59,130,246,.1) 0%, transparent 50%);
}
.hero-bg:before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(255,255,255,.03)' stroke-width='1'/%3E%3C/g%3E%3C/defs%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 80px 24px 48px; max-width: 800px; margin: 0 auto;
  text-align: center;
}
.hero-text { width: 100%; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
  color: #fff; line-height: 1.15;
  margin-bottom: 24px; letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.7); line-height: 1.8;
  margin-bottom: 0;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-qrcode {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  margin: 12px 0;
}
.hero-qrcode img {
  width: 160px; height: 160px; border-radius: 12px;
  background: #fff; padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-qrcode p {
  color: rgba(255,255,255,.7); font-size: .85rem;
}
@media (max-width: 768px) {
  .hero-content { padding: 100px 24px 60px; gap: 20px; }
  .hero-qrcode img { width: 120px; height: 120px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 50px; font-weight: 500;
  font-size: 1rem; cursor: pointer; transition: all .3s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.45);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: .8rem; z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(8px); opacity: .5; }
}

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-alt { background: #eef2f7; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 8px 22px; border-radius: 50px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  color: #2563eb; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 18px; letter-spacing: 2px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
  color: #1a1a2e; margin-bottom: 24px; letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  opacity: .7;
}
.section-desc {
  font-size: 1.05rem; color: #888; max-width: 560px;
  margin: 0 auto; line-height: 1.8;
}

/* ============ About ============ */
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  display: flex; align-items: center; gap: 20px;
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(37,99,235,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,.12);
}
.stat-card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.stat-card-icon svg { width: 24px; height: 24px; }
.stat-card-body { display: flex; flex-direction: column; gap: 4px; }
.stat-card-num {
  display: flex; align-items: baseline; gap: 2px;
}
.stat-card-label {
  font-size: .85rem; color: #999; font-weight: 500;
}
.stat { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: #2563eb; }
.stat-label { display: block; font-size: .85rem; color: #999; margin-top: 4px; }

.about-body { margin-top: 64px; }
.about-text {
  max-width: 800px; margin: 0 auto 64px;
  text-align: center;
  padding-bottom: 48px;
  border-bottom: 1px solid #eef0f6;
  position: relative;
}
.about-text::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 2px;
}
.about-text h3 {
  font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px; text-align: center; letter-spacing: 1px;
}
.about-text p { color: #666; line-height: 1.9; margin-bottom: 14px; font-size: .95rem; text-align: center; }
.about-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1100px) { .about-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .about-cards { grid-template-columns: 1fr; } }
.about-card {
  padding: 28px 20px; border-radius: 16px;
  background: #fff; border: 1px solid #eee;
  transition: all .3s; text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 0 0 3px 3px;
  transition: width .4s ease;
}
.about-card:hover::before { width: 100%; }
.about-card:hover {
  border-color: rgba(37,99,235,.2);
  box-shadow: 0 16px 40px rgba(37,99,235,.1);
  transform: translateY(-6px);
}
.about-card-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px auto;
  color: #2563eb;
  transition: all .3s ease;
}
.about-card-icon svg { width: 32px; height: 32px; }
.about-card:hover .about-card-icon {
  color: #7c3aed;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; color: #2563eb; margin-bottom: 8px; letter-spacing: .5px; }
.about-card p { font-size: .88rem; color: #555; line-height: 1.8; font-weight: 400; }
.toystar-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.toystar-tag {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border: 1px solid rgba(37,99,235,.15);
  font-size: .92rem;
  font-weight: 600;
  color: #1a1a2e;
  transition: all .25s;
  cursor: default;
}
.toystar-tag:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .toystar-cloud { gap: 10px; }
  .toystar-tag { padding: 8px 16px; font-size: .85rem; }
}

/* ============ Services ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  padding: 36px 28px 40px; border-radius: 20px;
  background: #fff; border: 1px solid #eee;
  transition: all .4s; position: relative; overflow: hidden;
}
.service-card:before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #2563eb, #7c3aed);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover:before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(37,99,235,.15);
  box-shadow: 0 20px 60px rgba(37,99,235,.08);
  transform: translateY(-8px);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
}
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px auto; color: #2563eb;
  transition: all .3s ease;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.4rem; font-weight: 600; color: #1a1a2e; margin-bottom: 12px; text-align: center; }
.service-card p { font-size: .88rem; color: #444; line-height: 1.6; margin-bottom: 20px; font-weight: 500; text-align: center; }
.service-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; }
.service-tags li {
  padding: 6px 0; text-align: center;
  border-radius: 50px;
  background: #f0f4ff; color: #2563eb;
  font-size: .75rem; font-weight: 500;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 900px; margin: 0 auto;
  align-items: stretch;
}
.contact-left { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #eee;
  font-size: .95rem;
}
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.08));
  flex-shrink: 0;
  color: #2563eb;
}
.contact-icon svg {
  width: 18px; height: 18px;
}
.contact-label {
  font-weight: 600; color: #1a1a2e;
  white-space: nowrap; min-width: 28px;
}
.contact-value { color: #555; }
.contact-right {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px; border-radius: 16px;
  background: #f8fafc; border: 1px solid #eee;
}
.contact-right h4 { font-size: 1rem; font-weight: 600; color: #1a1a2e; margin-bottom: 16px; }
.contact-qr { width: 100px; border-radius: 8px; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.footer { background: #0f172a; color: rgba(255,255,255,.7); padding: 80px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand h3 {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-qrcode { width: 90px; border-radius: 8px; margin-top: 12px; }
.footer-links h4,
.footer-contact h4 {
  font-size: .95rem; font-weight: 600; color: #fff;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.5); transition: color .3s; }
.footer-links a:hover { color: #60a5fa; }
.footer-contact p { font-size: .9rem; margin-bottom: 8px; color: rgba(255,255,255,.5); }
.footer-bottom {
  padding: 24px 0; text-align: center;
  font-size: .85rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #60a5fa; }

/* ============ Back to Top ============ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  border: none; box-shadow: 0 4px 20px rgba(37,99,235,.35);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .3s; display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-links.open { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 70px 0; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; text-align: left; }
  .stat { display: flex; align-items: center; gap: 12px; }
  .stat-num { font-size: 1.5rem; display: inline; }
  .stat-plus { font-size: 1rem; }
  .stat-label { display: inline; font-size: .85rem; }
}
