/* 个人主页 B 版 · 概念「A → B」
   Will 做的每件事，都是把一样东西变成另一样。整页只有一个图形语言：左边的字 → 右边带颜色的字。
   风格跟 WIL Studio 页同一套（style.css）：浅色、玻璃感、同一个圆角、Gelato 点缀色。 */

.wb {
  --c-orange: var(--m-orange);
  --t-orange: color-mix(in srgb, var(--m-orange) 18%, white);
  --x-purple: #6B3FD6;
  --x-orange: #A4541A;
}
.wb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 会“翻”的字：旧字往上走，新字从下面上来，宽度跟着变 ---------- */
.wb-roll { display: inline-grid; overflow: clip; overflow-clip-margin: .14em; transition: width .6s var(--spring); }
.wb-roll-w { grid-area: 1 / 1; justify-self: start; white-space: nowrap; will-change: transform, opacity; }

/* ---------- 小标：A → B ---------- */
.wb-kick {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  font-size: 15px; font-weight: 650; color: var(--ink-2);
}
.wb-kick span:last-child { color: var(--ink); }
.wb-kick i { position: relative; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.wb-kick i::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-top: 2px solid; border-right: 2px solid; transform: translateY(-50%) rotate(45deg); }
.wb-kick-dark { background: rgba(255, 255, 255, .12); box-shadow: none; color: #C9C9D0; }
.wb-kick-dark span:last-child { color: #fff; }

/* ---------- 1 开头 ---------- */
.wb-hero { position: relative; min-height: calc(100svh - 68px); display: grid; align-items: center; overflow: clip; text-align: center; }
.wb-hero .blobs { inset: -10% -5%; }
.wb-hero .b-sales { width: 42vw; height: 42vw; left: 6vw; top: 2%; opacity: .32; }
.wb-hero .b-marketing { width: 36vw; height: 36vw; right: 4vw; top: 24%; opacity: .3; }
.wb-hero .b-account { width: 30vw; height: 30vw; left: 34vw; bottom: -4%; opacity: .24; }
.blobs.follow { transition: transform 1.6s var(--spring); }
.wb-hero-in { position: relative; z-index: 1; display: grid; justify-items: center; padding-top: 32px; padding-bottom: 88px; }

.wb-hi {
  display: inline-flex; align-items: baseline; padding: 8px 18px; border-radius: var(--r);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--lift);
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 600;
}
.wb-hi .wb-roll { font-weight: 700; }

h1.wb-name {
  margin: 16px 0 0; padding-bottom: .09em; white-space: nowrap;
  font-size: min(208px, 17vw); line-height: .92; letter-spacing: -0.055em; font-weight: 800;
  /* 进场时一道 Gelato 色的光从左扫到右，扫完变回墨色 */
  background: linear-gradient(100deg, var(--ink) 0 41%, var(--hi-1) 46%, var(--hi-2) 50%, var(--hi-3) 54%, var(--ink) 59% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js h1.wb-name { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(14px); }
.js .wb-hero.on h1.wb-name {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--spring), transform 1.3s var(--spring), filter 1s var(--spring);
  animation: wb-sheen 2s .2s cubic-bezier(.45, 0, .2, 1) backwards;
}
@keyframes wb-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.wb-say { margin-top: clamp(10px, 1.6vw, 22px); font-size: clamp(26px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
:lang(zh-Hans) .wb-say { letter-spacing: -0.01em; }
.wb-say-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .28em; }
.wb-end { display: inline-flex; align-items: center; gap: .08em; white-space: nowrap; }
.wb-slot { display: inline-flex; align-items: center; padding: .12em .36em; border-radius: var(--r); line-height: 1.2; }
.wb-slot-a { background: #fff; box-shadow: var(--lift); }
.wb-slot-b { --sb-t: var(--t-sales); --sb-x: var(--x-sales); background: var(--sb-t); color: var(--sb-x); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); transition: background-color .7s, color .7s; }
.wb-slot-b[data-c="1"] { --sb-t: var(--t-marketing); --sb-x: var(--x-marketing); }
.wb-slot-b[data-c="2"] { --sb-t: var(--t-account); --sb-x: var(--x-account); }
.wb-say-mochi { display: inline-flex; align-self: flex-end; margin: 0 0 -.06em -.08em; }
.wb-say-mochi .mochi { --ms: 1.5em; display: block; }

.wb-sub { margin-top: clamp(18px, 2vw, 26px); max-width: 34em; }
.wb-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 30px; }

/* 名字出来之后，其他一层一层跟上 */
.js .wb-hero-in > :not(h1) { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.js .wb-hero.on .wb-hero-in > :not(h1) { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--spring), transform 1.1s var(--spring), filter .9s var(--spring); }
.js .wb-hero.on .wb-say { transition-delay: 480ms; }
.js .wb-hero.on .wb-sub { transition-delay: 640ms; }
.js .wb-hero.on .wb-actions { transition-delay: 780ms; }

/* ---------- 2 关于：左边照片跟着走，右边五行 ---------- */
.wb-about { display: grid; grid-template-columns: minmax(240px, .72fr) 1.6fr; gap: 14px; align-items: start; }
.wb-photo { position: sticky; top: 92px; margin: 0; }
.wb-photo-in {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: #fff; box-shadow: var(--lift);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--ink-2); font-weight: 600;
}
.wb-photo-in .blob { width: 75%; height: 60%; opacity: .45; }
.wb-photo-in .b-sales { left: -25%; top: -15%; }
.wb-photo-in .b-marketing { right: -25%; bottom: -15%; }
.wb-photo-in svg { position: relative; width: 46%; height: auto; aspect-ratio: 1028 / 352; fill: var(--ink); }
.wb-photo-note { position: relative; font-size: 15px; }
.wb-id { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 12px 16px; font-size: 15px; }
.wb-id b { font-weight: 700; }
.wb-id span { color: #58585E; }

.wb-rows { background: #fff; border-radius: var(--r); box-shadow: var(--lift); padding: 6px clamp(20px, 3.2vw, 44px); }
.wb-row { --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales); display: grid; gap: 12px; padding: clamp(24px, 3vw, 38px) 0; }
.wb-row:nth-child(2) { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.wb-row:nth-child(3) { --c: var(--c-account); --t: var(--t-account); --x: var(--x-account); }
.wb-row:nth-child(4) { --c: var(--c-purple); --t: var(--t-purple); --x: var(--x-purple); }
.wb-row:nth-child(5) { --c: var(--c-orange); --t: var(--t-orange); --x: var(--x-orange); }
.wb-row + .wb-row { border-top: 1px solid rgba(0, 0, 0, .07); }
.wb-row-top { display: flex; align-items: center; gap: 12px; }
.wb-num { padding: 3px 9px; border-radius: var(--r); background: var(--t); color: var(--x); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
h3.wb-label { font-size: 16px; font-weight: 650; letter-spacing: 0; color: var(--ink-2); }
.wb-pair { display: flex; flex-wrap: wrap; align-items: center; gap: .12em .34em; font-size: clamp(30px, 4.3vw, 58px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.15; }
:lang(zh-Hans) .wb-pair { letter-spacing: -0.01em; }
.wb-from { color: #A1A1A8; transition: color .5s; }
.wb-row:hover .wb-from { color: var(--ink); }
.wb-arrow { position: relative; flex: 0 1 2.4em; min-width: 1.1em; height: 1em; transition: transform .6s var(--spring); }
.wb-row:hover .wb-arrow { transform: translateX(.1em); }
.wb-arrow::before {
  content: ""; position: absolute; left: 0; right: .1em; top: 50%; height: max(2.5px, .07em); transform: translateY(-50%) scaleX(0); transform-origin: left;
  border-radius: 2px; background: var(--c); transition: transform .9s var(--spring) 200ms;
}
.wb-arrow::after {
  content: ""; position: absolute; right: .08em; top: 50%; width: .28em; height: .28em;
  border-top: max(2.5px, .07em) solid var(--c); border-right: max(2.5px, .07em) solid var(--c);
  transform: translate(-.6em, -50%) rotate(45deg); opacity: 0; transition: transform .9s var(--spring) 200ms, opacity .4s 200ms;
}
.wb-row.in .wb-arrow::before, html:not(.js) .wb-arrow::before { transform: translateY(-50%); }
.wb-row.in .wb-arrow::after, html:not(.js) .wb-arrow::after { transform: translate(0, -50%) rotate(45deg); opacity: 1; }
.wb-to { display: inline-flex; padding: .06em .3em; border-radius: var(--r); background: var(--t); color: var(--x); }
.js .wb-row .wb-to { opacity: 0; transform: translateX(-.3em) scale(.94); filter: blur(8px); }
.js .wb-row.in .wb-to { opacity: 1; transform: none; filter: none; transition: opacity .7s 480ms, transform .9s var(--pop) 480ms, filter .7s 480ms; }
.wb-text { max-width: 34em; color: #3A3A3E; }

/* ---------- 3 作品：一叠卡片，滚到的时候摊开 ---------- */
.wb-deck-wrap { padding: 10px 0 30px; }
.wb-deck { display: flex; gap: 14px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wb-card {
  --c: var(--c-sales);
  position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; aspect-ratio: 9 / 16;
  border-radius: var(--r); background: #17181B; color: #fff; text-decoration: none; box-shadow: var(--lift);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px;
  translate: var(--fx, 0px) var(--fy, 0px); rotate: var(--fr, 0deg); z-index: var(--fz, 0);
  transition: transform .6s var(--spring), box-shadow .6s var(--spring), translate .3s ease-out, rotate .3s ease-out;
}
.wb-card:nth-child(2) { --c: var(--c-marketing); }
.wb-card:nth-child(3) { --c: var(--c-account); }
.wb-card:nth-child(4) { --c: var(--c-purple); }
.wb-card:nth-child(5) { --c: var(--c-grey); }
.wb-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--lift-hi); }
.wb-card:active { transform: scale(.98); transition-duration: .15s; }
.wb-card::before { content: ""; position: absolute; width: 140%; height: 70%; left: -20%; top: -10%; border-radius: 50%; background: var(--c); filter: blur(50px); opacity: .55; transition: transform 1.4s var(--spring); }
.wb-card:hover::before { transform: translateY(18%) scale(1.15); }
.wb-card-n { position: absolute; left: 18px; top: 16px; font-size: 13px; font-weight: 700; opacity: .75; font-variant-numeric: tabular-nums; }
.wb-play {
  position: absolute; left: 50%; top: 42%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: var(--r);
  background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform .6s var(--pop), background-color .3s;
}
.wb-play::after { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.wb-card:hover .wb-play { transform: scale(1.12); background: rgba(255, 255, 255, .3); }
.wb-card-slot { position: absolute; left: 0; right: 0; top: calc(42% + 42px); text-align: center; font-size: 13px; opacity: .7; }
.wb-card-tag { position: relative; font-size: 13px; font-weight: 600; opacity: .8; }
.wb-card-title { position: relative; font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.wb-all { margin-top: 18px; }

/* ---------- 4 免费资源 ---------- */
.wb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.wb-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--inset-2); font-size: 15px; font-weight: 600; }
.wb-steps b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-size: 13px; }
.wb-steps li:not(:last-child)::after {
  content: "→"; position: absolute; z-index: 1; right: -21px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  display: grid; place-items: center; border-radius: var(--r); background: #fff; box-shadow: var(--lift); font-size: 13px; font-weight: 700;
}
.wb-list { background: #fff; border-radius: var(--r); box-shadow: var(--lift); padding: 6px clamp(18px, 2.6vw, 32px); }
.wb-item { --t: var(--t-sales); --x: var(--x-sales); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 22px 0; }
.wb-item:nth-child(2) { --t: var(--t-marketing); --x: var(--x-marketing); }
.wb-item:nth-child(3) { --t: var(--t-account); --x: var(--x-account); }
.wb-item + .wb-item { border-top: 1px solid rgba(0, 0, 0, .07); }
.wb-item .mochi { --ms: 64px; grid-column: 1; grid-row: 1 / span 2; }
.wb-item h3 { grid-column: 2; grid-row: 1; font-size: clamp(19px, 1.8vw, 24px); }
.wb-item p { grid-column: 2; grid-row: 2; color: #3A3A3E; }
.wb-tag { grid-column: 3; grid-row: 1 / span 2; padding: 6px 12px; border-radius: var(--r); background: var(--t); color: var(--x); font-size: 14px; font-weight: 650; white-space: nowrap; }
.wb-free-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }

/* ---------- 5 想帮你的生意装 AI？ ---------- */
.wb-studio {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 32px;
  min-height: 440px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r); background: var(--ink); color: var(--on-ink);
  text-decoration: none; box-shadow: var(--lift);
}
.js .wb-studio.rv.in:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.wb-studio:active { scale: .995; }
.wb-studio .blob { opacity: .5; }
.wb-studio .b-sales { width: 460px; height: 460px; right: -120px; top: -180px; }
.wb-studio .b-marketing { width: 380px; height: 380px; left: 30%; bottom: -220px; }
.wb-studio .b-account { width: 300px; height: 300px; right: 20%; bottom: -160px; opacity: .35; }
.wb-studio-text { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.wb-studio-text .lead { color: #D5D5DA; }
.wb-go { transition: transform .5s var(--spring); }
.wb-studio:hover .wb-go { transform: translateX(5px); }
.wb-studio-crew { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: flex-end; gap: clamp(8px, 1.6vw, 20px); padding: 0 12px 6px; }
.wb-studio-crew::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: var(--r); background: rgba(255, 255, 255, .12); }
.wb-crew-spot { position: relative; z-index: 1; }
.wb-crew-spot .mochi { --ms: clamp(64px, 8vw, 96px); display: block; margin-bottom: calc(var(--ms) * -0.11); }
.wb-studio .m-shadow { fill: rgba(0, 0, 0, .4); }

/* ---------- 6 社交 ---------- */
.wb-social-sec { padding-bottom: clamp(96px, 12vw, 160px); }
.wb-social-sec h2 { margin-bottom: 28px; }
.wb-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wb-social {
  --c: var(--c-sales); --t: var(--t-sales); --x: var(--x-sales);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 220px;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: #fff; box-shadow: var(--lift); text-decoration: none;
}
.wb-social:nth-child(2) { --c: var(--c-marketing); --t: var(--t-marketing); --x: var(--x-marketing); }
.js .wb-social.rv.in { transition: opacity .9s var(--spring), transform .8s var(--spring), filter .9s var(--spring), box-shadow .6s var(--spring), background-color .5s; transition-delay: var(--d, 0ms); }
.js .wb-social.rv.in:hover { transition-delay: 0ms; transform: translateY(-4px); box-shadow: var(--lift-hi); background: var(--t); }
.wb-social:active { scale: .99; }
.wb-social .handle { font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; transition: color .4s; }
.wb-social .text { color: #58585E; }
.wb-social .go { position: absolute; right: clamp(18px, 2.4vw, 28px); top: clamp(18px, 2.4vw, 28px); width: 52px; height: 52px; border-radius: var(--r); background: var(--inset); display: grid; place-items: center; font-size: 22px; transition: transform .6s var(--spring), background-color .4s; }
.wb-social:hover .handle { color: var(--x); }
.wb-social:hover .go { background: var(--c); transform: translate(3px, -3px); }

/* ---------- 平板 ---------- */
@media (max-width: 900px) {
  .wb-about { grid-template-columns: 1fr; }
  .wb-photo { position: relative; top: 0; }
  .wb-photo-in { aspect-ratio: 16 / 10; }
  /* 作品改成横向滑动，不摊牌 */
  .wb-deck-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .wb-deck-wrap::-webkit-scrollbar { display: none; }
  .wb-deck { width: max-content; max-width: none; }
  .wb-card { flex: none; width: min(62vw, 250px); scroll-snap-align: center; translate: none; rotate: none; }
  .wb-studio { grid-template-columns: 1fr; }
  .wb-studio-crew { justify-content: flex-start; }
}
/* ---------- 手机 ---------- */
@media (max-width: 640px) {
  .wb-hero-in { padding-top: 20px; padding-bottom: 72px; }
  .wb-actions .btn { width: 100%; }
  .wb-photo-in { aspect-ratio: 4 / 3; }
  .wb-steps { grid-template-columns: 1fr; gap: 10px; }
  .wb-steps li:not(:last-child)::after { right: auto; left: 18px; top: auto; bottom: -19px; margin: 0; rotate: 90deg; }
  .wb-item { grid-template-columns: auto minmax(0, 1fr); }
  .wb-item .mochi { --ms: 44px; align-self: start; }
  .wb-tag { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; }
  .wb-socials { grid-template-columns: 1fr; }
  .wb-social { min-height: 150px; }
  .wb-social .go { width: 44px; height: 44px; font-size: 18px; }
}

/* 系统要求减少动画时：字不翻、卡不摊、箭头直接画好；网址加 ?motion 可以强制打开 */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion).js h1.wb-name, html:not(.force-motion).js .wb-hero-in > :not(h1), html:not(.force-motion).js .wb-row .wb-to { opacity: 1; transform: none; filter: none; animation: none; }
  html:not(.force-motion) .wb-arrow::before { transform: translateY(-50%); transition: none; }
  html:not(.force-motion) .wb-arrow::after { transform: translate(0, -50%) rotate(45deg); opacity: 1; transition: none; }
  html:not(.force-motion) .wb-roll { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .wb-hi, .wb-id { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
