:root{
  --blue:#6DA3D9;
  --blue-deep:#4F86BC;
  --yellow:#F5C542;
  --yellow-deep:#E7A220;
  --ink:#2B2B3A;
  --text:#334155;
  --muted:#64748B;
  --bubble:#C5DDF3;
  --btn:#94C2ED;
  --red:#E94F4F;
  --card:#FFFFFF;
  --maxw:960px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:"Noto Sans SC",system-ui,sans-serif;
  color:var(--text);
  background:var(--blue);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}

/* ===== NAV ===== */
.nav{
  position:sticky;top:0;z-index:50;
  background:var(--blue);
  box-shadow:0 2px 0 rgba(43,43,58,.08);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px;
}
.logo{
  font-family:"ZCOOL KuaiLe",cursive;font-size:22px;color:#fff;
  letter-spacing:1px;
}
.nav-links{display:flex;gap:22px;}
.nav-links a{
  font-family:"ZCOOL KuaiLe",cursive;font-size:17px;color:#fff;
  opacity:.92;transition:transform .15s,opacity .15s;
}
.nav-links a:hover{opacity:1;transform:translateY(-2px);}
.nav-search{
  font-family:"ZCOOL KuaiLe",cursive;font-size:15px;color:#fff;opacity:.85;
}
@media(max-width:560px){
  .nav-links{display:none;}
}

/* ===== HERO ===== */
.hero{position:relative;padding:48px 20px 90px;text-align:center;overflow:hidden;}
.hero-inner{max-width:var(--maxw);margin:0 auto;}
.welcome{
  font-family:"ZCOOL KuaiLe",cursive;
  font-size:clamp(52px,11vw,104px);
  letter-spacing:4px;
  display:flex;justify-content:center;gap:2px;
  margin-bottom:30px;
}
.welcome span{
  background:linear-gradient(180deg,#FBE09A 0%,#E7A220 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  -webkit-text-stroke:2px var(--ink);
  display:inline-block;
  opacity:0;transform:translateY(-30px) rotate(-8deg) scale(.6);
  animation:drop .6s cubic-bezier(.2,1.4,.4,1) forwards;
  animation-delay:calc(var(--i)*.09s + .1s);
  text-shadow:0 4px 0 rgba(43,43,58,.12);
}
@keyframes drop{to{opacity:1;transform:translateY(0) rotate(0) scale(1);}}

.hero-stage{position:relative;display:inline-block;margin:6px auto 8px;}
.apple-deco{
  position:absolute;top:-6px;right:-2px;
  width:54px;height:54px;border-radius:50%;
  background:var(--red);display:grid;place-items:center;
  font-size:28px;box-shadow:0 6px 0 rgba(43,43,58,.18);
  transform:rotate(-8deg);z-index:3;
}
.avatar-wrap{position:relative;display:inline-block;}
.avatar{
  width:clamp(180px,42vw,244px);height:clamp(200px,47vw,280px);
  object-fit:cover;border-radius:120px 120px 110px 110px;
  border:5px solid var(--ink);
  box-shadow:0 14px 30px rgba(43,43,58,.22);
}
.bubble{
  position:absolute;left:50%;bottom:-22px;transform:translateX(-50%) rotate(-6deg);
  background:var(--bubble);color:var(--ink);
  font-family:"ZCOOL KuaiLe",cursive;font-size:16px;
  padding:12px 22px;border-radius:24px;white-space:nowrap;
  box-shadow:0 8px 18px rgba(43,43,58,.18);
}
.bubble-tail{
  position:absolute;left:34px;bottom:-9px;width:18px;height:18px;
  background:var(--bubble);border-radius:0 0 0 14px;
  transform:rotate(20deg);
}

.slogan{margin-top:42px;color:#fff;}
.slogan-cn{font-family:"ZCOOL KuaiLe",cursive;font-size:clamp(20px,5vw,26px);}
.slogan-en{font-size:14px;opacity:.85;margin-top:6px;letter-spacing:.5px;}

/* ===== WAVE DIVIDER ===== */
.wave{
  position:absolute;left:0;right:0;bottom:-1px;height:46px;
  background:
    radial-gradient(40px 46px at 20px 46px,transparent 39px,var(--card) 40px) repeat-x;
  background-size:40px 46px;
}
.wave-flip{top:-1px;bottom:auto;transform:scaleY(-1);
  background:radial-gradient(40px 46px at 20px 46px,transparent 39px,var(--card) 40px) repeat-x;
  background-size:40px 46px;}

/* ===== SECTIONS ===== */
.container{max-width:var(--maxw);margin:0 auto;padding:64px 20px;}
.section-title{
  font-family:"ZCOOL KuaiLe",cursive;font-size:clamp(26px,6vw,36px);
  color:#fff;text-align:center;margin-bottom:34px;
}
.section-title .en{font-size:.6em;opacity:.8;margin-left:6px;}

.card{
  background:var(--card);border-radius:24px;
  padding:26px 24px;
  box-shadow:0 8px 24px rgba(43,43,58,.10);
}
.card-h{
  font-family:"ZCOOL KuaiLe",cursive;font-size:20px;color:var(--text);
  margin-bottom:12px;
}

/* BIO */
.bio{background:var(--card);padding-top:10px;}
.bio-card{max-width:680px;margin:0 auto;}
.bio-text{font-size:15px;color:var(--text);margin-bottom:22px;}
.info-list{list-style:none;display:grid;gap:8px;}
.info-list li{
  display:flex;gap:14px;font-size:14px;
  border-bottom:1px dashed #E2E8F0;padding-bottom:8px;
}
.info-list li span{
  font-family:"ZCOOL KuaiLe",cursive;color:var(--blue-deep);min-width:64px;
}

/* SKILL */
.skill{background:var(--blue);position:relative;padding-bottom:80px;}
.skill-top{
  display:flex;align-items:center;gap:26px;justify-content:center;
  max-width:620px;margin:0 auto 30px;flex-wrap:wrap;
}
.skill-avatar{
  width:120px;height:120px;border-radius:50%;object-fit:cover;
  border:4px solid var(--ink);box-shadow:0 10px 22px rgba(43,43,58,.2);
}
.skill-soft{color:#fff;}
.soft-title{font-family:"ZCOOL KuaiLe",cursive;font-size:19px;margin-bottom:8px;}
.soft-row{font-family:"ZCOOL KuaiLe",cursive;font-size:16px;margin:4px 0;}
.stars{color:var(--yellow);letter-spacing:2px;}
.ability{max-width:680px;margin:0 auto;text-align:center;}
.ability-title{font-family:"ZCOOL KuaiLe",cursive;font-size:19px;color:#fff;margin-bottom:12px;}
.ability-title .en{font-size:.7em;opacity:.8;}
.ability-list{list-style:none;display:grid;gap:10px;text-align:left;
  max-width:420px;margin:0 auto;color:#fff;font-size:14px;}

/* WORK */
.work{background:var(--card);padding:70px 0;}
.work-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
}
@media(max-width:780px){.work-grid{grid-template-columns:1fr;max-width:360px;margin:0 auto;}}
.work-card{
  background:var(--card);border-radius:24px;overflow:hidden;
  box-shadow:0 8px 24px rgba(43,43,58,.10);
  display:flex;flex-direction:column;
  transition:transform .2s,box-shadow .2s;
}
.work-card:hover{transform:translateY(-6px);box-shadow:0 16px 32px rgba(43,43,58,.16);}
.work-cover{width:100%;height:200px;object-fit:cover;}
.work-title{font-family:"ZCOOL KuaiLe",cursive;font-size:14px;color:var(--text);
  padding:14px 16px 4px;}
.work-stats{font-size:12px;color:var(--muted);padding:0 16px 14px;}
.btn{
  margin:0 16px 18px;align-self:flex-start;
  font-family:"ZCOOL KuaiLe",cursive;font-size:13px;color:#fff;
  background:var(--btn);padding:9px 20px;border-radius:100px;
  transition:transform .15s,filter .15s;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.05);}

/* CONTACT */
.contact{background:var(--blue);padding:70px 0 90px;position:relative;}
.contact-head{position:relative;text-align:center;margin-bottom:26px;}
.hi{font-family:"ZCOOL KuaiLe",cursive;font-size:34px;color:#fff;}
.callme{font-family:"ZCOOL KuaiLe",cursive;font-size:clamp(38px,9vw,52px);
  color:#fff;letter-spacing:2px;}
.call-apple{position:absolute;right:calc(50% - 150px);top:0;
  width:42px;height:42px;border-radius:50%;background:var(--red);
  display:grid;place-items:center;font-size:22px;transform:rotate(-10deg);}
@media(max-width:560px){.call-apple{right:10px;}}
.contact-avatar{
  width:120px;height:120px;border-radius:50%;object-fit:cover;
  border:4px solid var(--ink);margin:0 auto 30px;
  box-shadow:0 10px 22px rgba(43,43,58,.2);
}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:680px;margin:0 auto;}
@media(max-width:620px){.contact-grid{grid-template-columns:1fr;}}
.row{font-size:17px;color:var(--text);padding:5px 0;}
.msg-card .input{
  width:100%;border:1px solid #D8E3EF;background:#fff;
  border-radius:12px;padding:12px 14px;font-size:14px;margin-bottom:12px;
  font-family:inherit;outline:none;
}
.msg-card .input:focus{border-color:var(--btn);}
.btn-solid{margin:0;align-self:flex-start;border:none;cursor:pointer;}

/* FOOTER */
.footer{background:var(--blue-deep);color:#fff;text-align:center;
  padding:26px 20px;font-family:"ZCOOL KuaiLe",cursive;font-size:15px;}

/* reveal animation */
.reveal{opacity:0;transform:translateY(28px);
  transition:opacity .6s ease,transform .6s ease;}
.reveal.in{opacity:1;transform:none;}

/* ===== SPOTLIGHT CARD (vanilla port of React Bits <SpotlightCard />) ===== */
/* Add class "spotlight" + optional data-spotlight-color to any element. */
.spotlight{
  position:relative;
  overflow:hidden;
  --mouse-x:50%;
  --mouse-y:50%;
  --spotlight-color:rgba(109,163,217,0.40);
  transition:box-shadow .3s ease, border-color .3s ease;
}
.spotlight::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity:0;
  transition:opacity .5s ease;
  pointer-events:none;
  z-index:0;
}
.spotlight:hover::before,
.spotlight:focus-within::before,
.spotlight.is-on::before{
  opacity:1;
}
.spotlight > *{position:relative;z-index:1;}
