/* =====================================================================
   ★ SOFT POP · 涂鸦卡通层 v3
   叠加在 craft 主题之上：手绘涂鸦 + 卡通贴纸 + 弹跳动效
   配色跟随 craft 低饱和色板（米白 #FCF9F7 / 墨黑 #181615 / 青蓝 #4BA2B4）
   不含头部与导航改造 —— 头部保持 craft 通栏毛玻璃
===================================================================== */

/* =====================================================================
   一、贴纸按钮：实心投影 + hover 上浮歪头 + 按下回弹
===================================================================== */
.btn {
  font-weight: 700; border-radius: 999px; letter-spacing: .3px;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .28s ease, background .2s ease, color .2s ease,
              border-color .2s ease;
}
.btn-primary {
  box-shadow: 0 4px 0 #24474e, 0 12px 24px rgba(3, 3, 2, .14);
}
.btn-primary:hover {
  background: #2a2624;
  transform: translateY(-3px) rotate(-1.5deg);
  box-shadow: 0 7px 0 #24474e, 0 20px 36px rgba(3, 3, 2, .18);
}
.btn-primary:active {
  transform: translateY(2px) rotate(0);
  box-shadow: 0 2px 0 #24474e, 0 6px 14px rgba(3, 3, 2, .12);
}
.btn-gold {
  background: linear-gradient(135deg, #5fb3c4, #4ba2b4);
  color: #fff; box-shadow: 0 4px 0 #2f5f68, 0 12px 24px rgba(75, 162, 180, .22);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #55aaba, #3d8f9f);
  transform: translateY(-3px) rotate(1.5deg);
  box-shadow: 0 7px 0 #2f5f68, 0 20px 36px rgba(75, 162, 180, .26);
}
.btn-gold:active { transform: translateY(2px) rotate(0); box-shadow: 0 2px 0 #2f5f68; }
.btn-outline {
  border: 2px solid var(--brand); color: var(--brand-deep); background: #fff;
  box-shadow: 0 4px 0 rgba(75, 162, 180, .2);
}
.btn-outline:hover {
  background: var(--brand-soft); border-color: var(--brand);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 7px 0 rgba(75, 162, 180, .18);
}
.btn-white { box-shadow: 0 4px 0 rgba(3, 3, 2, .16), 0 12px 24px rgba(3, 3, 2, .1); }
.btn-white:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 7px 0 rgba(3, 3, 2, .16), 0 20px 34px rgba(3, 3, 2, .12); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* =====================================================================
   二、虚线贴纸标签
===================================================================== */
.sec-tag {
  background: #fff; border: 2px dashed var(--brand); color: var(--brand-deep);
  font-weight: 700; padding: 7px 16px; border-radius: 999px;
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 rgba(75, 162, 180, .18);
  font-size: 12.5px; letter-spacing: 1.4px;
}
.sec-tag::before { width: 7px; height: 7px; background: var(--pop-coral); }
.hero-tag {
  background: #fff; border: 2px dashed var(--brand); transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 rgba(75, 162, 180, .18);
  font-weight: 700; color: var(--brand-deep);
}
.hero-tag i { background: var(--pop-coral); box-shadow: 0 0 0 4px rgba(230, 105, 96, .22); }
.hero-trust .trust-item {
  background: #fff; border: 1.5px dashed var(--line); border-radius: 999px;
  padding: 7px 15px; font-weight: 600; color: var(--ink-2);
}

/* =====================================================================
   三、区块标题：手绘波浪下划线
===================================================================== */
.sec-head .sec-title { position: relative; display: inline-block; padding-bottom: 6px; }
.sec-head .sec-title::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  width: 150px; height: 13px; opacity: .8; pointer-events: none; display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14'%3E%3Cpath d='M4 9c8-7 18-7 27-1s18 8 27 2 18-7 27-1 18 8 27 2' fill='none' stroke='%234BA2B4' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.sec-head.left .sec-title::after { left: 0; transform: none; }

/* =====================================================================
   四、波浪分隔线（浅色区块顶部）
===================================================================== */
.sec.bg-soft { position: relative; }
.sec.bg-soft::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; z-index: 1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'%3E%3Cpath d='M0 12Q50 -4 100 12T200 12V24H0Z' fill='%23FCF9F7'/%3E%3C/svg%3E") repeat-x center top / 200px 24px;
}

/* =====================================================================
   五、Hero：有机色块 + 漂浮星星 + 手绘箭头
===================================================================== */
.hero {
  background:
    radial-gradient(720px 440px at 92% -8%, rgba(75, 162, 180, .14), transparent 62%),
    radial-gradient(560px 360px at -6% 110%, rgba(221, 142, 64, .12), transparent 58%),
    linear-gradient(180deg, #fcf9f7 0%, #ffffff 62%);
}
.hero > .container { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 440px; height: 440px; right: -140px; top: -80px;
  background: radial-gradient(circle at 42% 40%, rgba(159, 199, 229, .3), rgba(209, 238, 249, .26) 58%, transparent 74%);
  border-radius: 58% 42% 47% 53% / 52% 48% 52% 48%;
  animation: blobMorph 14s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 1.5%; bottom: 14%; width: 52px; height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c1.1 4.7 3.3 6.9 8 8-4.7 1.1-6.9 3.3-8 8-1.1-4.7-3.3-6.9-8-8 4.7-1.1 6.9-3.3 8-8z' fill='%23DD8E40'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: floatDoodle 6s ease-in-out infinite; opacity: .8;
}
.hero-actions { position: relative; }
.hero-actions::after {
  content: ""; position: absolute; right: -14px; bottom: -32px; width: 84px; height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 46'%3E%3Cpath d='M4 34c20 3 42-8 62-24' fill='none' stroke='%23E66960' stroke-width='3.6' stroke-linecap='round'/%3E%3Cpath d='M56 4l12 7-12 8' fill='none' stroke='%23E66960' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: wiggle 2.6s ease-in-out infinite; pointer-events: none; opacity: .85;
}

/* 首页模拟卡：轻微歪头 + 软糖图标 */
.mock { transform: rotate(-1deg); border: 2px solid rgba(75, 162, 180, .22); }
.mock-top { background: #fff; }
.dots i:nth-child(1) { background: #e0a3a3; }
.dots i:nth-child(2) { background: #e5c58f; }
.dots i:nth-child(3) { background: #9dbf9f; }
.mini:nth-child(1) .mini-ic { background: linear-gradient(135deg, #cfe6ea, #8fc3ce); }
.mini:nth-child(2) .mini-ic { background: linear-gradient(135deg, #d3ecf7, #9fc7e5); }
.mini:nth-child(3) .mini-ic { background: linear-gradient(135deg, #f6e3c4, #e6c48f); }

/* =====================================================================
   六、流程数字：手绘圆圈（hover 歪头）
===================================================================== */
.svc-more .n {
  width: 40px; height: 40px; padding: 0; border: 0;
  display: grid; place-items: center;
  color: var(--brand-700); font-family: var(--font-display); font-weight: 800; font-size: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M33 5c15 0 27 12 26 26-1 15-13 27-28 27S5 46 5 31C5 17 15 7 28 5' fill='none' stroke='%234BA2B4' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.svc-more:hover .n { transform: rotate(8deg) scale(1.08); }
.pstep::before {
  font-family: var(--font-display); font-weight: 800;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4c16 1 28 13 27 28-1 16-13 28-29 27S2 47 3 32C4 16 16 3 32 4' fill='none' stroke='%234BA2B4' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-text-stroke: 0; color: var(--brand-700);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.pstep:hover::before { transform: rotate(8deg) scale(1.06); }

/* =====================================================================
   七、软糖多色图标（薄荷 / 奶黄 / 天蓝 / 丁香紫）
===================================================================== */
.svc-icon, .value-card .v-ic, .dept-card .d-ic, .info-card .ic,
.about-metrics .m .m-ic, .cap-head .cap-ic {
  border: 0; box-shadow: 0 3px 0 rgba(3, 3, 2, .08);
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.svc-card:nth-child(4n+1) .svc-icon,
.value-card:nth-child(4n+1) .v-ic,
.dept-card:nth-child(4n+1) .d-ic {
  background: linear-gradient(135deg, #d5e9ec, #9ac8d2); color: #2f5f68;
}
.svc-card:nth-child(4n+2) .svc-icon,
.value-card:nth-child(4n+2) .v-ic,
.dept-card:nth-child(4n+2) .d-ic {
  background: linear-gradient(135deg, #f7e6ca, #e6c48f); color: #8a6a2c;
}
.svc-card:nth-child(4n+3) .svc-icon,
.value-card:nth-child(4n+3) .v-ic,
.dept-card:nth-child(4n+3) .d-ic {
  background: linear-gradient(135deg, #d8eef8, #a5cbe8); color: #3d6c96;
}
.svc-card:nth-child(4n+4) .svc-icon,
.value-card:nth-child(4n+4) .v-ic,
.dept-card:nth-child(4n+4) .d-ic {
  background: linear-gradient(135deg, #e8dcf0, #c6b8e2); color: #6b5583;
}
.svc-card:hover .svc-icon,
.value-card:hover .v-ic,
.dept-card:hover .d-ic { transform: rotate(-8deg) scale(1.08); box-shadow: 0 5px 0 rgba(3, 3, 2, .1); }

.info-card .ic { background: linear-gradient(135deg, #d5e9ec, #9ac8d2); color: #2f5f68; }
.info-card:nth-child(2) .ic { background: linear-gradient(135deg, #f7e6ca, #e6c48f); color: #8a6a2c; }
.info-card:hover .ic { transform: rotate(-6deg) scale(1.06); }
.about-metrics .m:nth-child(1) .m-ic { background: linear-gradient(135deg, #d5e9ec, #9ac8d2); color: #2f5f68; }
.about-metrics .m:nth-child(2) .m-ic { background: linear-gradient(135deg, #f7e6ca, #e6c48f); color: #8a6a2c; }
.about-metrics .m:nth-child(3) .m-ic { background: linear-gradient(135deg, #e8dcf0, #c6b8e2); color: #6b5583; }
.cap-head .cap-ic { background: linear-gradient(135deg, #d5e9ec, #9ac8d2); color: #2f5f68; }

/* =====================================================================
   八、卡片：hover 歪头 + 贴纸投影
===================================================================== */
.svc-card:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  box-shadow: var(--shadow), 0 6px 0 rgba(75, 162, 180, .16);
}
.hub-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: var(--shadow-lg); }
.case-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.svc-more:hover {
  transform: translateY(-5px) rotate(-.8deg);
  box-shadow: var(--shadow), 0 5px 0 rgba(75, 162, 180, .14);
}
.value-card:hover { transform: translateY(-7px) rotate(-1deg); }
.dept-card:hover { transform: translateY(-7px) rotate(1deg); }
.tl-item:hover .tl-card { transform: translateY(-5px); box-shadow: var(--shadow); }

/* =====================================================================
   九、漫画感数字（数据条 / 数据卡）
===================================================================== */
.stat-num { text-shadow: 0 3px 0 rgba(75, 162, 180, .16); }
.about-metrics .m b { text-shadow: 0 3px 0 rgba(75, 162, 180, .16); }
.stat-chip .big { text-shadow: 0 3px 0 rgba(75, 162, 180, .16); }
.cap-flow li i { box-shadow: 0 2px 0 rgba(75, 162, 180, .18); }
.cap-flow li i::after { background: rgba(75, 162, 180, .32); }

/* =====================================================================
   十、深色区块涂鸦
===================================================================== */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: 4%; bottom: 12%; width: 44px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c1.1 4.7 3.3 6.9 8 8-4.7 1.1-6.9 3.3-8 8-1.1-4.7-3.3-6.9-8-8 4.7-1.1 6.9-3.3 8-8z' fill='%23DD8E40'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: floatDoodle 7s ease-in-out infinite; opacity: .85; pointer-events: none;
}
.cta-band::before {
  content: ""; position: absolute; left: -40px; top: -50px; width: 210px; height: 210px;
  border-radius: 58% 42% 47% 53% / 52% 48% 52% 48%;
  background: rgba(255, 255, 255, .07); pointer-events: none;
  animation: blobMorph 16s ease-in-out infinite;
}
.site-footer { position: relative; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; right: 3%; top: 16%; width: 58px; height: 58px;
  border: 3px dashed rgba(255, 255, 255, .14); border-radius: 50%;
  animation: spinSlow 22s linear infinite; pointer-events: none;
}

/* =====================================================================
   十一、表单：圆润软糖
===================================================================== */
.field input, .field select, .field textarea {
  border-radius: var(--r); border: 1.8px solid var(--line); background: var(--bg-2);
  padding: 12px 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(75, 162, 180, .16);
}

/* =====================================================================
   十二、弹跳入场
===================================================================== */
.reveal { transition: opacity .6s ease, transform .78s cubic-bezier(.34, 1.56, .64, 1); }

/* =====================================================================
   动画关键帧
===================================================================== */
@keyframes blobMorph {
  0%, 100% { border-radius: 58% 42% 47% 53% / 52% 48% 52% 48%; transform: translate(0, 0) rotate(0); }
  50%      { border-radius: 46% 54% 58% 42% / 56% 44% 56% 44%; transform: translate(-14px, 12px) rotate(6deg); }
}
@keyframes floatDoodle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(10deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* =====================================================================
   移动端：收敛涂鸦，避免溢出
===================================================================== */
@media (max-width: 900px) {
  .hero::before { width: 320px; height: 320px; right: -110px; }
  .hero-actions::after { display: none; }
}
@media (max-width: 680px) {
  .hero::before, .hero::after { display: none; }
  .sec-head .sec-title::after { width: 118px; }
  .svc-card:hover, .hub-card:hover, .case-card:hover, .svc-more:hover,
  .value-card:hover, .dept-card:hover { transform: translateY(-5px); }
  .sec-tag, .hero-tag { transform: none; }
  .btn:hover, .btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); }
}

/* =====================================================================
   无障碍：尊重减弱动效偏好
===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::after, .site-footer::after,
  .hero-actions::after, .float-chip, .svc-more .n, .pstep::before,
  .svc-icon, .value-card .v-ic, .dept-card .d-ic, .info-card .ic, .cta-band::before {
    animation: none !important;
  }
  .btn, .svc-card, .hub-card, .case-card, .svc-more, .value-card, .dept-card,
  .tl-card, .nav-link, .reveal, .site-nav {
    transition-duration: .01ms !important;
  }
  .svc-card:hover, .hub-card:hover, .case-card:hover, .svc-more:hover,
  .value-card:hover, .dept-card:hover, .tl-item:hover .tl-card,
  .btn:hover, .btn-gold:hover, .btn-primary:hover, .btn-white:hover, .btn-outline:hover,
  .svc-card:hover .svc-icon, .value-card:hover .v-ic, .dept-card:hover .d-ic,
  .info-card:hover .ic, .svc-more:hover .n, .pstep:hover::before {
    transform: none !important;
  }
}
