/* ============================================================
   商务与合作 · about/partners.html 专用
   叠在 aw.css 之上，不重复定义 token；首屏 / 数据条 / 跑马灯 / 大字导语 /
   引言 / 推荐位 全部复用 aw.css 里的类，这里只放本页独有的几块：
   碰撞图形 · 三种碰撞卡 · 四条理由 · 伙伴版图 · 加入流程 · 联系与表单
   ============================================================ */

/* ---------- 首屏：文字下方的两颗按钮 ---------- */
.pa-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- 首屏图形：两个圆相交，交点是一颗青柠火花 ----------
   两个轨道点各绕自己的圆公转，交点处一圈圈涟漪向外散开；
   都是纯 CSS 动画，离屏由 aw.js 之外的 IntersectionObserver 停掉（partners.js）。 */
.pa-orbit { transform-box: view-box; animation: paOrbit 9s linear infinite; }
.pa-orbit--l { transform-origin: 318px 300px; }
.pa-orbit--r { transform-origin: 482px 300px; animation-duration: 11.5s; animation-direction: reverse; }
.pa-ring {
  transform-box: view-box;
  transform-origin: 400px 300px;
  animation: paRing 3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.pa-ring--2 { animation-delay: 1.5s; }
.pa-lens { animation: paLens 3s ease-in-out infinite; }
.about-hero__art.is-off .pa-orbit,
.about-hero__art.is-off .pa-ring,
.about-hero__art.is-off .pa-lens,
.about-hero__art.is-off .art-blink { animation-play-state: paused; }

@keyframes paOrbit { to { transform: rotate(360deg); } }
@keyframes paRing  { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(7.5); opacity: 0; } }
@keyframes paLens  { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- 三种碰撞方式：三张海报卡 ----------
   封面是生成的平涂底 + 写实 3D 物件海报（assets/img/gen/partners/），
   海报自带的重体中文标题就是卡片的视觉标题，正文只讲「怎么合作」。 */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-x);
  margin-top: 8px;
}
.way {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.way:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 0.5px var(--line), 0 24px 48px -30px rgba(34, 34, 34, 0.45);
}
.way__cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey);
}
.way__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.way:hover .way__cover img { transform: scale(1.035); }
.way__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 22px;
}
.way__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--mut-2); }
.way__title { font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: -0.012em; }
.way__desc { font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); }
.way__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.way__go i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.way__go i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.way:hover .way__go i { background: var(--violet); transform: translateX(4px); }

@media (max-width: 1000px) {
  .ways { grid-template-columns: 1fr; }
  .way { flex-direction: row; }
  .way__cover { flex: 0 0 42%; aspect-ratio: auto; }
  .way:hover { transform: none; }
}
@media (max-width: 640px) {
  .way { flex-direction: column; }
  .way__cover { flex: none; aspect-ratio: 4 / 3; }
}

/* ---------- 为什么发起：四条理由（线上站 /partners 的口径） ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-x);
  margin-top: 60px;
  border-top: 0.5px solid var(--line);
}
.reason { position: relative; padding: 26px 0 6px; }
/* 进场时每格顶上画出一小段紫罗兰短线，节奏跟着 --d 走 */
.reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.5px;
  width: 36px;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0s) + 0.25s);
}
.reason.is-in::before { transform: scaleX(1); }
.reason__n { font-family: var(--mono); font-size: 12px; color: var(--mut-2); }
.reason h3 {
  margin-top: 12px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.reason p { margin-top: 10px; font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); }

@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .reasons { grid-template-columns: 1fr; } }

/* ---------- 我们在寻找：伙伴版图 ----------
   五块已有的版图 + 一块虚线的空格「留给你」，呼应标题「恰好补全这块版图」。 */
.map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-x);
  margin-top: 30px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 216px;
  padding: 22px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 0.5px var(--line), 0 20px 40px -28px rgba(34, 34, 34, 0.4);
}
.tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0.5px var(--line);
  color: var(--violet);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tile__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile__ico { background: var(--violet); color: #fff; }
.tile__k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mut-2); }
.tile h3 { font-size: 20px; font-weight: 600; line-height: 26px; }
.tile p { font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); }
.tile--you {
  justify-content: space-between;
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(34, 34, 34, 0.3);
}
.tile--you:hover { box-shadow: none; border-color: var(--ink); }
.tile--you .tile__ico { background: var(--accent); box-shadow: none; color: var(--ink); }
.tile--you:hover .tile__ico { background: var(--accent); color: var(--ink); }
.tile--you .button { align-self: flex-start; margin-top: 6px; }

@media (max-width: 1000px) { .map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .map { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- 加入流程：四步横向时间轴，进场时线自左向右画出 ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-x);
  margin-top: 46px;
  padding-top: 28px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(90deg, var(--violet), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease) 0.2s;
}
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step__dot {
  position: absolute;
  left: 0;
  top: -32px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.42s + 0.25s);
}
.steps.is-in .step__dot {
  background: var(--violet);
  box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 5px rgba(94, 106, 210, 0.13);
}
.steps.is-in .step:last-child .step__dot {
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.25), 0 0 0 5px rgba(217, 242, 79, 0.32);
}
.step__n { font-family: var(--mono); font-size: 12px; color: var(--mut-2); }
.step h3 { margin-top: 10px; font-size: 20px; font-weight: 600; line-height: 26px; }
.step p { margin-top: 8px; font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); max-width: 30ch; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; padding-top: 0; }
  .steps::before, .steps::after, .step__dot { display: none; }
  .step { padding-top: 18px; border-top: 0.5px solid var(--line); }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 联系：左边直接联系的渠道，右边一张表单卡 ----------
   站点是纯静态的，表单不经过服务器：点「用邮件发送」由 partners.js 把内容
   拼成一封邮件交给访客自己的邮件客户端（收件人 hi@interface-design.cn）。 */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px var(--gap-x);
  align-items: start;
  margin-top: 40px;
}
.channels { display: flex; flex-direction: column; }
.channel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 0.5px solid var(--line);
}
.channel:last-child { border-bottom: 0.5px solid var(--line); }
.channel__k { padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mut-2); }
.channel__v { font-size: 18px; font-weight: 500; line-height: 26px; overflow-wrap: anywhere; }
.channel__v a { border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.channel__v a:hover { border-color: var(--ink); }
.channel__v small { display: block; margin-top: 2px; font-size: 13px; font-weight: 300; line-height: 20px; color: var(--mut); }
.channel--lime .channel__k { color: var(--ink); }
.channel--lime .channel__k::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: 1px;
}

.form {
  position: relative;
  padding: 28px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > label,
.field > span { font-size: 12px; font-weight: 500; line-height: 18px; color: var(--mut); }
.field > label em, .field > span em { font-style: normal; color: var(--violet); }
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--ink);
  background: var(--ground);
  border: 0;
  border-radius: var(--r-ui);
  padding: 10px 14px;
  box-shadow: inset 0 0 0 0.5px var(--line);
  outline: none;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--mut-2); }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field textarea { min-height: 112px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 0.5px var(--line);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 0.5px var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:checked + span::before { opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.form__acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form__hint { font-size: 12px; line-height: 18px; color: var(--mut-2); max-width: 40ch; }

/* 发出之后的状态：整张卡换成一段回执 */
.form__done { display: none; }
.form[data-state="done"] .form__body { display: none; }
.form[data-state="done"] .form__done { display: block; }
.form__done h3 { font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: -0.012em; }
.form__done h3 i { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--accent); vertical-align: 2px; }
.form__done p { margin-top: 10px; font-size: 14px; font-weight: 300; line-height: 24px; color: var(--mut); max-width: 48ch; }
.form__done .form__acts { margin-top: 24px; }
.form__copy[data-ok] { background: var(--accent); color: var(--ink); }

@media (max-width: 1000px) {
  .talk { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { padding: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .channel { grid-template-columns: 82px minmax(0, 1fr); }
  .channel__v { font-size: 16px; }
}

/* ---------- 小屏：区块标题右侧的说明另起一行（同 join.css） ---------- */
@media (max-width: 860px) {
  .pa .sec__head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- 减少动效 / 无 JS ---------- */
@media (prefers-reduced-motion: reduce) {
  .pa-orbit, .pa-ring, .pa-lens { animation: none; }
  .pa-ring { opacity: 0.4; }
  .reason::before, .steps::after { transform: scaleX(1); transition: none; }
  .step__dot { transition: none; }
  .way, .way__cover img, .way__go i, .tile, .tile__ico { transition: none; }
}
.no-js .reason::before, .no-js .steps::after { transform: scaleX(1); }
.no-js .form__hint--js { display: none; }

/* ---------- 视觉化改造（2026-09-05）----------
   原来「01 + 标题 + 三行灰字」的四栏已换成 vibe.css 的彩色卡；
   这里给版图六格的线性图标接上色板，给流程四步接上 emoji 圆章。 */
.tile[data-c] .tile__ico { background: var(--vb-b); color: var(--vb-f); border-color: transparent; }
.tile[data-c] .tile__ico svg { stroke: currentColor; }
.tile[data-c]:hover .tile__ico { transform: rotate(-8deg) scale(1.08); }
.tile__ico { transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }

.step[data-c] .step__dot { background: var(--vb-f); }

@media (prefers-reduced-motion: reduce) {
  .tile__ico, .step .vb-ico { transition: none; }
}
