/* =========================================================
   宫崎骏手绘风 — 大谋智能飞行岛
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --paper: #fbf4e3;
  --paper-2: #f4e8c8;
  --ink: #3a2a1a;
  --ink-soft: #6a553e;
  --grass: #7fae5a;
  --grass-deep: #4f7d33;
  --sky: #a8d8f0;
  --sky-2: #cfe7f5;
  --sun: #ffd27a;
  --sunset: #f8b88b;
  --accent: #a04b3a;
  --accent-2: #c66a4d;
  --gold: #d4a14a;
  --line: rgba(58,42,26,0.18);
}

html { scroll-behavior: smooth; }

body{
  font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', 'Long Cang', 'Songti SC', serif;
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, #fff6d6 0%, transparent 35%),
    radial-gradient(circle at 80% 30%, #ffd9a8 0%, transparent 40%),
    linear-gradient(180deg, #cfe7f5 0%, #fbe6c5 40%, #f8d8b0 70%, #f4e8c8 100%);
  min-height: 100vh;
}

/* 飘动的云 */
.sky{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cloud{
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(0.5px);
  box-shadow:
    25px 5px 0 -2px #fff,
    -25px 5px 0 -2px #fff,
    10px -8px 0 -4px #fff,
    -10px -8px 0 -4px #fff,
    35px 0 0 -3px #fff;
  animation: drift 60s linear infinite;
}
.cloud-1{ width: 60px; height: 22px; top: 8%; left: -10%; animation-duration: 80s; }
.cloud-2{ width: 80px; height: 26px; top: 18%; left: -20%; animation-duration: 110s; opacity: 0.6;}
.cloud-3{ width: 50px; height: 18px; top: 30%; left: -15%; animation-duration: 70s; opacity: 0.5;}
.cloud-4{ width: 70px; height: 24px; top: 5%; left: -25%; animation-duration: 95s; opacity: 0.75;}
.cloud-5{ width: 40px; height: 16px; top: 45%; left: -10%; animation-duration: 120s; opacity: 0.55;}

@keyframes drift{
  from { transform: translateX(0); }
  to   { transform: translateX(130vw); }
}

/* ============= 顶部导航 + Hero ============= */
.floating-island{
  position: relative;
  z-index: 1;
  padding: 28px 6vw 60px;
}

.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 246, 214, 0.85);
  border: 2px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(58,42,26,0.08);
}
.logo{
  display: flex; align-items: center; gap: 10px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 26px;
  color: var(--accent);
}
.logo-mark{
  display: inline-block;
  font-size: 28px;
  animation: spin 8s linear infinite;
}
@keyframes spin{
  to { transform: rotate(360deg); }
}

.nav-links{
  display: flex; flex-wrap: wrap;
  list-style: none; gap: 18px;
}
.nav-links a{
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all .3s;
}
.nav-links a:hover{
  background: var(--accent);
  color: #fff6d6;
  transform: translateY(-2px);
}

.hero{
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.kicker{
  font-family: 'Long Cang', cursive;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero-title{
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.25;
  color: var(--ink);
}
.hero-title .ink{
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero-title .ink::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'><path d='M0 4 Q 25 0 50 4 T 100 4' stroke='%23d4a14a' stroke-width='2' fill='none'/></svg>") repeat-x;
  background-size: 100px 8px;
  opacity: 0.7;
}

.hero-sub{
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-cta{
  margin-top: 28px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Ma Shan Zheng', cursive;
  border: 2px solid transparent;
  transition: all .3s;
  cursor: pointer;
}
.btn-primary{
  background: var(--accent);
  color: #fff6d6;
  border-color: var(--accent);
  box-shadow: 0 6px 0 #7a3729;
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #7a3729;
  background: var(--accent-2);
}
.btn-primary:active{
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7a3729;
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{
  background: var(--ink);
  color: #fff6d6;
}

.hero-art{
  position: relative;
  display: flex;
  justify-content: center;
}
.totoro-island{
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 12px 20px rgba(58,42,26,0.15));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.fairy{ animation: floaty 3s ease-in-out infinite; transform-origin: center; }
.bird{ animation: drift 12s linear infinite; }

/* 魔法清单滚动条 */
.magic-ticker{
  margin-top: 60px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(255,246,214,0.6), transparent);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
  padding: 14px 0;
}
.ticker-track{
  display: inline-flex; gap: 28px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--ink-soft);
  font-size: 18px;
}
@keyframes ticker{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============= 通用 section ============= */
.section{
  position: relative; z-index: 1;
  padding: 90px 6vw;
}
.section-parchment{
  background: rgba(251, 244, 227, 0.65);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}
.section-sunset{
  background: linear-gradient(180deg, rgba(248,184,139,0.25) 0%, rgba(251,244,227,0.6) 100%);
}

.section-head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-title{
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(30px, 4vw, 46px);
  color: var(--ink);
  margin: 10px 0 14px;
}
.section-sub{
  color: var(--ink-soft);
  font-size: 16px;
}

/* 卡片 */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.card{
  position: relative;
  background: #fff8e6;
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow:
    0 8px 0 rgba(58,42,26,0.06),
    0 18px 40px rgba(58,42,26,0.08);
  transition: all .35s;
  overflow: hidden;
}
.card::before{
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(160,75,58,0.35);
  border-radius: 18px;
  pointer-events: none;
}
.card:hover{
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow:
    0 14px 0 rgba(58,42,26,0.08),
    0 26px 50px rgba(58,42,26,0.14);
}
.card-num{
  position: absolute; top: 18px; right: 22px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 44px;
  color: rgba(160,75,58,0.25);
}
.card h3{
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--accent);
}
.card p{
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 14px;
}
.tags{
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.tags li{
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(160,75,58,0.12);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(160,75,58,0.25);
}
.card-illu{
  position: absolute;
  right: 16px; bottom: 12px;
  font-size: 36px;
  opacity: 0.7;
  filter: drop-shadow(0 4px 6px rgba(58,42,26,0.15));
}
.card-illu.big{ font-size: 48px; }

/* ============= AI 蜕变流程 ============= */
.transformation{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.trans-step{
  background: #fff8e6;
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: transform .3s;
}
.trans-step:hover{ transform: translateY(-6px); }
.trans-icon{
  font-size: 44px;
  margin-bottom: 8px;
  display: inline-block;
  animation: floaty 4s ease-in-out infinite;
}
.trans-step h4{
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 6px;
}
.trans-step p{
  color: var(--ink-soft);
  font-size: 14px;
}
.trans-arrow{
  align-self: center;
  font-size: 28px;
  color: var(--accent);
  font-family: 'Ma Shan Zheng', cursive;
}

/* ============= 培训卡 ============= */
.training-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 980px;
  margin: 0 auto;
}
.training-card{
  text-align: center;
  padding: 36px 28px 30px;
}
.training-card .btn{
  margin-top: 12px;
}
.price-tag{
  position: absolute;
  top: 22px; left: 26px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 0 rgba(58,42,26,0.15);
}
.train-note{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============= 关于 ============= */
.about-block{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text p{
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.signature{
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--accent);
  font-size: 18px;
  margin-top: 12px;
}
.about-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat{
  background: #fff8e6;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 22px 12px;
  text-align: center;
  transition: transform .3s;
}
.stat:hover{ transform: rotate(-2deg) scale(1.03); }
.stat-num{
  display: block;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 36px;
  color: var(--accent);
}
.stat-label{
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============= 画廊 ============= */
.gallery{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.gallery-item{
  background: #fff8e6;
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding-bottom: 10px;
  transition: transform .35s;
}
.gallery-item:hover{ transform: translateY(-6px) rotate(0.6deg); }
.gallery-art{
  aspect-ratio: 10/7;
  display: flex;
}
.gallery-art svg{ width: 100%; height: 100%; display: block; }
.gallery-item figcaption{
  text-align: center;
  padding: 12px 0 6px;
  font-family: 'Ma Shan Zheng', cursive;
  color: var(--ink);
  font-size: 18px;
}

/* ============= 联系 ============= */
.contact-form{
  max-width: 720px;
  margin: 0 auto;
  background: #fff8e6;
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(58,42,26,0.1);
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label{
  display: block;
  margin-bottom: 14px;
}
.contact-form label span{
  display: block;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 10px 14px;
  background: #fffaf0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border .2s;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160,75,58,0.15);
}
.contact-form .btn{ margin-top: 6px; }

/* ============= 页脚 + 风筝 ============= */
.site-footer{
  position: relative;
  text-align: center;
  padding: 60px 6vw 40px;
  background: linear-gradient(180deg, transparent, rgba(160,75,58,0.18));
  border-top: 2px dashed var(--line);
}
.kite{
  position: absolute;
  top: 10px; right: 12%;
  font-size: 56px;
  animation: floaty 5s ease-in-out infinite, drift2 18s linear infinite;
  filter: drop-shadow(0 6px 8px rgba(58,42,26,0.15));
}
@keyframes drift2{
  0%   { transform: translate(0, 0) rotate(-6deg); }
  50%  { transform: translate(-30px, -10px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}
.footer-text p{
  color: var(--ink-soft);
  font-size: 14px;
  margin: 4px 0;
}
.footer-text a{ color: var(--accent); }

/* ============= 响应式 ============= */
@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; }
  .nav-links{ gap: 8px; }
  .nav-links a{ font-size: 13px; padding: 4px 8px; }
  .transformation{
    grid-template-columns: 1fr 1fr;
  }
  .trans-arrow{ display: none; }
  .about-block{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
}
