* { box-sizing: border-box; }
[hidden] { display: none !important; }

@keyframes mascot-float {
  0% { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-5px) rotate(4deg); }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #f4efe1;
  background-image:
    radial-gradient(rgba(32, 59, 50, 0.065) 1.5px, transparent 1.5px),
    radial-gradient(rgba(240, 108, 75, 0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: #203b32;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.wx-browser-tip {
  background: #203b32;
  color: #fff8ce;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  border-bottom: 3px solid #f6c857;
}
.wx-browser-tip b { color: #f6c857; }

.pip-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.pip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.pip-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pip-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2.5px solid #203b32;
  border-radius: 999px;
  background: #fffdf6;
  color: #203b32;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 4px 0 #203b32;
  transition: transform .14s ease;
}
.pip-back:hover { transform: translateY(-2px); }

.pip-logo-pill {
  padding: 7px 16px;
  border: 2.5px solid #203b32;
  border-radius: 999px;
  background: #fff1a8;
  font-size: 13.5px;
  font-weight: 900;
  box-shadow: 3px 4px 0 #203b32;
}

.platform-tabs {
  display: inline-flex;
  padding: 5px;
  gap: 6px;
  border: 2.5px solid #203b32;
  border-radius: 999px;
  background: #fffdf6;
  box-shadow: 3px 4px 0 #203b32;
}

.plat-tab {
  height: 38px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #526352;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all .15s ease;
}
.plat-tab:hover { color: #203b32; }
.plat-tab.is-active {
  background: #203b32;
  color: #fff8ce;
  border-color: #203b32;
}

/* ================= 视图一：Windows 原生桌面小挂件旗舰展台 ================= */
.pcs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.95fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .pcs-hero-grid { grid-template-columns: 1fr; }
  .platform-tabs { width: 100%; }
  .plat-tab { flex: 1; padding: 0 10px; font-size: 12px; }
}

.pcs-copy-card, .pcs-gallery-card, .pip-hero-card, .pip-config-card {
  position: relative;
  padding: 28px;
  border: 3.5px solid #203b32;
  border-radius: 30px 42px 30px 34px;
  background-color: #fffdf6;
  background-image: radial-gradient(rgba(32, 59, 50, 0.05) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  box-shadow: 8px 10px 0 #203b32;
}

.pip-comic-stamp {
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 3px 12px;
  border: 3px double #e55136;
  border-radius: 8px;
  background: rgba(255, 245, 238, .95);
  color: #e55136;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  transform: rotate(9deg);
  pointer-events: none;
}

.nw { display: inline-block; }

.pcs-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 92px;
  margin-bottom: 14px;
}
.pcs-pill-dark {
  padding: 4px 12px;
  border: 2px solid #203b32;
  border-radius: 999px;
  background: #203b32;
  color: #fff8ce;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.pcs-pill-light {
  padding: 4px 12px;
  border: 2px solid #203b32;
  border-radius: 999px;
  background: #dff5df;
  color: #203b32;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pcs-copy-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #203b32;
}
.pcs-lead {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #485849;
  font-weight: 600;
  text-wrap: pretty;
}

.pcs-dl-row {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .pcs-copy-card, .pcs-gallery-card, .pip-hero-card, .pip-config-card {
    padding: 20px 18px;
    border-radius: 24px 30px 24px 26px;
  }
  .pip-comic-stamp {
    top: 16px;
    right: 16px;
    padding: 2px 8px;
    font-size: 11px;
  }
  .pcs-kicker-row { padding-right: 76px; }
  .pcs-pill-dark, .pcs-pill-light { font-size: 11px; padding: 3px 10px; }
  .pcs-copy-card h1 { font-size: 25px; }
  .pcs-dl-row { grid-template-columns: 1fr; }
}

.pcs-btn-primary, .pcs-btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 14px;
  border: 3px solid #203b32;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 4px 6px 0 #203b32;
  transition: transform .14s ease, box-shadow .14s ease;
}
.pcs-btn-primary {
  background: linear-gradient(135deg, #ff7c5c 0%, #f06445 100%);
  color: #fffef7;
}
.pcs-btn-secondary {
  background: #fff9db;
  color: #203b32;
}
.pcs-btn-primary:hover, .pcs-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 6px 8px 0 #203b32;
}
.pcs-btn-main { font-size: 15px; font-weight: 900; white-space: nowrap; }
.pcs-btn-sub { font-size: 11.5px; font-weight: 700; opacity: .92; white-space: nowrap; }

.pcs-safe-note {
  margin: 0 0 20px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f5f2e6;
  font-size: 12px;
  line-height: 1.55;
  color: #5a6859;
  font-weight: 700;
  text-wrap: pretty;
}

.pcs-key-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1160px) {
  .pcs-key-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pcs-chip {
  padding: 10px;
  border: 2px solid #203b32;
  border-radius: 14px;
  background: #faf8ef;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pcs-chip b { font-size: 12.5px; font-weight: 900; color: #203b32; white-space: nowrap; }
.pcs-chip span { font-size: 11px; font-weight: 700; color: #5c6b5b; white-space: nowrap; }

/* 右侧皮肤预览画廊 */
.pcs-gallery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pcsg-head { margin-bottom: 12px; }
.pcsg-title { font-size: 15px; font-weight: 900; color: #203b32; }

.pcsg-stage {
  flex: 1;
  min-height: 230px;
  padding: 20px;
  border: 2.5px solid #203b32;
  border-radius: 22px;
  background: #e4ece3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background .2s ease;
}
.pcsg-stage[data-theme="dark"] { background: #18202c; }
.pcsg-stage[data-theme="matcha"] { background: #e3f1e5; }

.pcsg-stage img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  display: block;
  border-radius: 14px;
}

.pcsg-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 480px) {
  .pcsg-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.swatch-btn {
  height: 38px;
  padding: 0 6px;
  border: 2px solid #203b32;
  border-radius: 12px;
  background: #fffdf6;
  color: #203b32;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: all .12s ease;
}
.swatch-btn:hover { transform: translateY(-1px); background: #fff9db; }
.swatch-btn.is-active {
  background: #ffe58f;
  box-shadow: 2px 3px 0 #203b32;
}
.pcsg-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #4f5f50;
  text-align: center;
  text-wrap: balance;
}

/* 底部三步配对条 */
.pcs-steps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .pcs-steps-strip { grid-template-columns: 1fr; }
}
.pcss-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 3px solid #203b32;
  border-radius: 22px;
  background: #fffdf6;
  box-shadow: 4px 5px 0 #203b32;
}
.pcss-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 2.5px solid #203b32;
  border-radius: 12px;
  background: #ffe58f;
  color: #203b32;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcss-item strong { display: block; font-size: 14.5px; font-weight: 900; margin-bottom: 4px; }
.pcss-item p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #546455; font-weight: 600; }

/* ================= 视图二：手机 / 网页画中画控制台 ================= */
.pip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 920px) {
  .pip-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.95fr);
    gap: 26px;
  }
}

.pip-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.pip-mascot-box {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border: 3px solid #203b32;
  border-radius: 22px;
  background: #fff7c9;
  box-shadow: 4px 5px 0 #203b32;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mascot-float 1.9s ease-in-out infinite alternate;
}
.pip-head-copy { flex: 1; min-width: 0; }
.pip-speech-bubble {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 12px;
  border: 2px solid #203b32;
  border-radius: 999px 999px 999px 4px;
  background: #dff5df;
  color: #203b32;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0 #203b32;
}
.pip-hero-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.pip-hero-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #4f5e50; }

.pip-stage-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 14px;
  margin-bottom: 16px;
  border: 2.5px dashed rgba(32, 59, 50, .28);
  border-radius: 22px;
  background: #f6f2e4;
}
.pip-stage {
  position: relative;
  width: 260px;
  height: 148px;
  border: 3px solid #203b32;
  border-radius: 18px;
  overflow: hidden;
  background: #faf5e6;
  box-shadow: 5px 6px 0 #203b32;
}
.pip-stage-caption { margin-top: 10px; font-size: 12px; font-weight: 800; color: #5b6b5a; }
.inview-render-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
#pip-video { position: relative; z-index: 2; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 1; background: transparent; }

.pip-mode-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.mode-btn { height: 46px; border: 2.5px solid #203b32; border-radius: 15px; background: #faf8ef; color: #203b32; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.mode-btn.is-active { background: #fff1a8; font-weight: 900; box-shadow: 3px 4px 0 #203b32; }

.pip-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pip-primary-btn { flex: 1.8; min-width: 210px; height: 52px; border: 3px solid #203b32; border-radius: 16px; background: linear-gradient(135deg, #ff7c5c 0%, #f06445 100%); color: #fffef7; font-size: 15px; font-weight: 900; box-shadow: 4px 5px 0 #203b32; cursor: pointer; }
.pip-secondary-btn { flex: 1; min-width: 125px; height: 52px; border: 3px solid #203b32; border-radius: 16px; background: #d9f5da; color: #203b32; font-size: 13.5px; font-weight: 900; box-shadow: 4px 5px 0 #203b32; cursor: pointer; }
.pip-secondary-btn.is-butter { background: #fff3bd; }

.pip-status { margin: 14px 0 0 !important; padding: 11px 14px; border: 2px dashed rgba(32, 59, 50, .28); border-radius: 14px; background: #f3f8ee; font-size: 13px !important; font-weight: 800; color: #203b32 !important; text-align: center; }
.pip-status.is-warn { background: #fff2ea; border: 2px solid #d85b37; color: #b53818 !important; }

.cfg-head { margin-bottom: 14px; }
.pip-config-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.cfg-sub { font-size: 12px; font-weight: 700; color: #667566; }

.pair-sync-box { padding: 16px; margin-bottom: 20px; border: 3px solid #203b32; border-radius: 22px; background: linear-gradient(145deg, #fff9db 0%, #fffdf6 100%); box-shadow: 4px 5px 0 #203b32; }
.psb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.psb-title { font-size: 14.5px; font-weight: 900; color: #203b32; }
.psb-badge { flex-shrink: 0; white-space: nowrap; padding: 2px 10px; border: 2px solid #203b32; border-radius: 999px; background: #edeae0; font-size: 11.5px; font-weight: 900; }
.psb-badge.is-online { background: #ccf2d0; color: #185a2c; }
.psb-desc { margin: 0 0 10px; font-size: 12px; line-height: 1.55; color: #4c5b4b; }
.psb-input-row { display: flex; gap: 8px; }
#pair-code-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 2.5px solid #203b32; border-radius: 12px; background: #ffffff; font-size: 14.5px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: #203b32; }
.psb-bind-btn { flex-shrink: 0; height: 40px; padding: 0 15px; border: 2.5px solid #203b32; border-radius: 12px; background: #f06445; color: #fffef7; font-size: 13px; font-weight: 900; box-shadow: 2px 3px 0 #203b32; cursor: pointer; }
.psb-live-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 2px dashed #203b32; border-radius: 14px; background: #ffffff; }
.psb-code-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; background: #fff1a8; border: 1.5px solid #203b32; font-size: 12px; font-weight: 900; font-family: Consolas, monospace; }
.psb-unbind-btn { height: 30px; padding: 0 12px; border: 2px solid #203b32; border-radius: 10px; background: #fff0ea; color: #b53818; font-size: 12px; font-weight: 900; cursor: pointer; }
.psb-live-meta { margin: 8px 0 0; font-size: 12px; font-weight: 800; color: #1f5f32; }
.psb-msg { margin: 8px 0 0; font-size: 12px; font-weight: 800; color: #b53818; }

.cfg-quick-salaries { padding: 12px; border: 2px solid #203b32; border-radius: 16px; background: #faf6e8; margin-bottom: 14px; }
.cfg-quick-label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.cfg-preset-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cfg-preset-btn { height: 34px; border: 2px solid #203b32; border-radius: 10px; background: #fffdf7; color: #203b32; font-size: 12px; font-weight: 900; cursor: pointer; }
.cfg-preset-btn:hover, .cfg-preset-btn.is-picked { background: #f6c857; box-shadow: 2px 2px 0 #203b32; }

.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 480px) { .cfg-grid { grid-template-columns: 1fr; } }
.cfg-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; }
.cfg-grid input { height: 40px; padding: 0 10px; border: 2px solid #203b32; border-radius: 11px; background: #ffffff; font-size: 14px; font-weight: 800; color: #203b32; }
.cfg-inline { display: flex; align-items: center; gap: 6px; }
.cfg-inline input { flex: 1; min-width: 0; }
.cfg-save-btn { width: 100%; height: 46px; border: 2.5px solid #203b32; border-radius: 14px; background: #516b46; color: #fffef7; font-size: 14.5px; font-weight: 900; box-shadow: 3px 4px 0 #203b32; cursor: pointer; }
