/* My AI Mac · v2b：优势 / 适合谁 / 怎么用 / 安全 / 常见问题 / CTA / 页脚 / 在线客服 / 到货通知
   在 styles.css、v2a.css 之后引用；沿用两者已有的变量 */

/* ---------- 通用：区块节奏 ---------- */
.section.band {
  background: var(--v2-band, #eee8dc);
  padding-bottom: clamp(88px, 11vw, 150px);
}
@media (prefers-color-scheme: dark) {
  .section.band {
    --v2-band: #1a1814;
  }
}
.section-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-top .section-head {
  margin-bottom: 0;
}
.section-aside {
  font-size: 14px;
  color: var(--text-2);
}
@media (min-width: 960px) {
  .section-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
}

/* ---------- 四个优势（v1 卡片的差异） ---------- */
.features {
  gap: 12px;
}
.feature {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border-radius: 20px;
}
.feature-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 124px;
  border-radius: 0;
}
.feature-body {
  padding: 16px 16px 18px;
  align-self: center;
}
.feature h3 {
  font-size: 16.5px;
}
.feature p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .feature {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
  }
  .feature-media {
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .feature-body {
    padding: 22px 24px 26px;
    align-self: stretch;
  }
  .feature h3 {
    font-size: 19px;
  }
  .feature p {
    font-size: 15px;
  }
}
@media (min-width: 1120px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .feature-body {
    padding: 22px 22px 26px;
  }
}

/* ---------- 适合谁 ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--hairline);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.who-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eadfcd;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.who-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.who-body {
  padding: 14px 14px 16px;
}
.who-role {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.who-body p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
@media (min-width: 960px) {
  .who-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .who {
    border-radius: var(--radius);
  }
  .who-media {
    aspect-ratio: 3 / 2;
  }
  .who-body {
    padding: 20px 22px 24px;
  }
  .who-role {
    font-size: 18px;
  }
  .who-body p {
    margin-top: 6px;
    font-size: 14.5px;
  }
}
@media (hover: hover) {
  .who:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .who:hover .who-media img {
    transform: scale(1.04);
  }
}

/* ---------- 两种方式怎么用：Tab + 步骤 + 配图 ---------- */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--v2-tint);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  background: var(--v2-seg-on);
  color: var(--text);
  box-shadow:
    0 1px 2px rgba(31, 29, 26, 0.06),
    0 6px 16px -6px rgba(31, 29, 26, 0.16);
}
.tab-count {
  display: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--v2-tint);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.tab[aria-selected="true"] .tab-count {
  background: var(--primary-soft);
  color: var(--primary-ink);
}
@media (min-width: 480px) {
  .tab-count {
    display: inline-block;
  }
}
@media (min-width: 640px) {
  .tabs {
    display: inline-grid;
    grid-template-columns: auto auto;
  }
  .tab {
    padding: 0 24px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-entering {
    animation: rise 0.5s var(--ease) both;
  }
}
.how-banner {
  border-radius: 20px;
}
.how-banner.is-flow {
  aspect-ratio: 3 / 1;
  background: #eadfcd;
}
.steps {
  margin: -24px 10px 0;
  padding: 24px 20px 26px;
  gap: 24px;
  border-radius: 20px;
}
.how-banner.is-flow + .steps {
  margin-top: -12px;
}
.step:not(:last-child)::before {
  bottom: -24px;
}
.step p {
  font-size: 14.5px;
}
.step-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-top: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 720px) {
  .how-banner {
    border-radius: var(--radius-lg);
  }
  .how-banner.is-flow {
    aspect-ratio: 3 / 1;
  }
}
@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    gap: 32px;
    margin: -64px 32px 0;
    padding: 36px 36px 40px;
    border-radius: var(--radius);
  }
  .how-banner.is-flow + .steps {
    margin-top: -40px;
  }
  .step:not(:last-child)::before {
    right: -16px;
    bottom: auto;
  }
}

/* ---------- 安全与隐私 ---------- */
.sec-layout {
  display: grid;
  gap: 16px;
}
.sec-media {
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  background: #2e2b4d;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.sec-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sec-list {
  list-style: none;
  margin: 0;
  padding: 4px 18px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--hairline);
}
.sec-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
.sec-item + .sec-item {
  border-top: 1px solid var(--hairline);
}
.sec-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.sec-ic svg {
  width: 20px;
  height: 20px;
}
.sec-item small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
}
@media (min-width: 960px) {
  .sec-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .sec-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
  }
  .sec-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius);
  }
  .sec-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    font-size: 16px;
  }
  .sec-ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .sec-ic svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- 两列常见问题 ---------- */
.faq-cols {
  display: grid;
  gap: 12px;
}
.faq-cols .faq-list {
  padding: 2px 18px;
  border-radius: 20px;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--hairline);
}
.faq-cols .faq-item summary {
  padding: 18px 0;
  gap: 16px;
  font-size: 15.5px;
}
.faq-cols .faq-a {
  padding: 0 40px 20px 0;
  font-size: 14.5px;
  line-height: 1.8;
}
.faq-cols .faq-ic {
  width: 26px;
  height: 26px;
}
.faq-q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.faq-q::before {
  content: "Q";
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-ink);
  letter-spacing: 0.02em;
}
@media (min-width: 960px) {
  .faq-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .faq-cols .faq-list {
    padding: 4px 28px;
    border-radius: var(--radius);
  }
  .faq-cols .faq-item summary {
    padding: 22px 0;
    font-size: 16.5px;
  }
  .faq-cols .faq-a {
    font-size: 15px;
    padding-left: 23px;
  }
}

/* ---------- 收尾 CTA ---------- */
.cta {
  padding: 52px 20px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 32px auto 0;
}
.cta-meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 13px;
  color: #c9c7f2;
}
.cta-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-meta svg {
  width: 15px;
  height: 15px;
  color: #b7d3b6;
}
.btn-ghost-light {
  --h: 56px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .cta {
    padding: 88px 48px;
  }
  .cta-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .cta-actions .btn {
    min-width: 168px;
  }
}

/* ---------- 多列页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding: 48px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--v2-band, #eee8dc);
  border-top: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .site-footer {
    --v2-band: #1a1814;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 16px;
}
.footer-brand {
  grid-column: 1 / -1;
}
.footer-brand p {
  margin-top: 10px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.footer-col li {
  color: var(--text-2);
}
.footer-col a,
.link-btn {
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover,
.link-btn:hover {
  color: var(--text);
  text-decoration: none;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--text-2);
}
@media (min-width: 840px) {
  .site-footer {
    padding-bottom: 36px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- 在线客服：悬浮按钮 ---------- */
.chat-fab {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #1f1d1a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 32px -12px rgba(31, 29, 26, 0.55),
    0 4px 10px -4px rgba(31, 29, 26, 0.3);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s,
    background-color 0.2s;
}
.chat-fab:hover {
  background: #34312c;
}
.chat-fab:active {
  transform: scale(0.96);
}
.chat-fab svg {
  width: 22px;
  height: 22px;
  flex: none;
}
html.chat-open .chat-fab {
  opacity: 0;
  transform: scale(0.85) translateY(8px);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .chat-fab {
    background: #f3eee6;
    color: #1f1d1a;
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.7);
  }
  .chat-fab:hover {
    background: #fff;
  }
}
@media (min-width: 960px) {
  .chat-fab {
    right: 24px;
    bottom: 24px;
  }
}

/* ---------- 在线客服：聊天窗（手机全屏，桌面右下浮窗） ---------- */
.chat {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
}
@supports (height: 100dvh) {
  .chat {
    height: 100dvh;
  }
}
.chat.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease),
    visibility 0s;
}
.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 8px 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
}
.chat-avatar {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}
.chat-avatar svg {
  width: 18px;
  height: 18px;
}
.chat-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-title strong {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}
.chat-title span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chat-close:hover {
  background: var(--v2-tint);
  color: var(--text);
}
.chat-close svg {
  width: 20px;
  height: 20px;
}
.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.chat-day {
  align-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--v2-tint);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.6;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 84%;
}
.msg-in {
  align-self: flex-start;
}
.msg-out {
  align-self: flex-end;
  align-items: flex-end;
}
.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-in .bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 6px;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--hairline);
}
.msg-out .bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg-in .bubble a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.msg-out .bubble a {
  color: #fff;
  text-decoration: underline;
}
.msg-time {
  padding: 0 6px;
  font-size: 12px;
  color: var(--text-2);
}
@media (prefers-reduced-motion: no-preference) {
  .msg.is-new {
    animation: v2-msg-in 0.35s var(--ease) both;
  }
}
@keyframes v2-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .typing i {
    animation: v2-typing 1.2s ease-in-out infinite;
  }
  .typing i:nth-child(2) {
    animation-delay: 0.15s;
  }
  .typing i:nth-child(3) {
    animation-delay: 0.3s;
  }
}
@keyframes v2-typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    box-shadow 0.2s,
    color 0.2s;
}
.chip:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary-ink);
}

.chat-form {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}
.chat-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 128px;
  padding: 11px 16px;
  border: 0;
  border-radius: 22px;
  background: var(--v2-tint);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  resize: none;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    box-shadow 0.2s,
    background-color 0.2s;
}
.chat-input::placeholder {
  color: var(--text-2);
  opacity: 0.85;
}
.chat-input:focus {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.chat-send {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease),
    background-color 0.2s;
}
.chat-send:hover {
  background: var(--primary-hover);
}
.chat-send:active {
  transform: scale(0.94);
}
.chat-send:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.chat-send svg {
  width: 20px;
  height: 20px;
}
.chat-note {
  flex: none;
  padding: 0 16px 8px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
}

@media (max-width: 639px) {
  html.chat-open,
  html.chat-open body {
    overflow: hidden;
  }
}
@media (min-width: 640px) {
  .chat {
    inset: auto 24px 24px auto;
    width: 380px;
    height: min(640px, calc(100vh - 48px));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px var(--hairline);
    transform-origin: bottom right;
    transform: translateY(16px) scale(0.97);
  }
  @supports (height: 100dvh) {
    .chat {
      height: min(640px, calc(100dvh - 48px));
    }
  }
  .chat-head {
    padding-top: 12px;
  }
  .chat-form {
    padding-bottom: 12px;
  }
}

/* ---------- 到货通知弹窗 ---------- */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}
.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}
.modal.is-open {
  visibility: visible;
  transition: visibility 0s;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open .modal-backdrop {
  opacity: 1;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-height: calc(100% - 40px);
  overflow-y: auto;
  padding: 32px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.modal-panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: var(--hairline-2);
}
.modal.is-open .modal-panel {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--v2-tint);
  color: var(--text);
}
.modal-close svg {
  width: 18px;
  height: 18px;
}
.modal-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.modal-icon svg {
  width: 24px;
  height: 24px;
}
.modal-title {
  padding-right: 36px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.modal-desc {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--v2-head);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
  font: inherit;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    box-shadow 0.2s,
    background-color 0.2s;
}
.input::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}
.input:focus {
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1.5px var(--primary),
    0 0 0 4px var(--primary-soft);
}
.input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px var(--v2-hot);
}
.form-msg {
  min-height: 1.5em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.form-msg.is-error {
  color: var(--v2-hot-ink);
}
.form-msg.is-ok {
  color: var(--v2-sage-ink);
}
.done {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 0 4px;
  text-align: center;
}
.done-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--v2-sage-soft);
  color: var(--v2-sage-ink);
}
.done-ic svg {
  width: 26px;
  height: 26px;
}
.done p {
  font-size: 14.5px;
  color: var(--text-2);
}
@media (min-width: 640px) {
  .modal {
    align-items: center;
    padding: 24px;
  }
  .modal-panel {
    width: 420px;
    max-height: calc(100vh - 48px);
    padding: 32px 32px 28px;
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition:
      transform 0.35s var(--ease),
      opacity 0.25s;
  }
  .modal.is-open .modal-panel {
    opacity: 1;
  }
  .modal-panel::before {
    display: none;
  }
}

/* ---------- 提示条：手机上避开悬浮按钮 ---------- */
.toast {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 960px) {
  .toast {
    bottom: 32px;
  }
}

/* ---------- 深色模式：插图略微压暗 ---------- */
@media (prefers-color-scheme: dark) {
  .who-media img,
  .sec-media img {
    filter: brightness(0.92);
  }
  .who-media,
  .how-banner.is-flow {
    background: #2a251f;
  }
}
