/* Panda Yueyi — 支付宝蓝色系（主色 #1677FF） */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-soft: #e6f4ff;
  --primary-soft-strong: #bae0ff;
  --primary-border: #91caff;
  --primary-ink: #0958d9;
  --border: #e6e8eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(22, 119, 255, 0.06);
  --max: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(22, 119, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--primary);
}

.brand img {
  height: 76px;
  width: auto;
  max-width: min(380px, 70vw);
  flex-shrink: 0;
  object-fit: contain;
}

.brand span {
  line-height: 1.25;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.2rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  font-size: 0.85rem;
}

.lang-switch a {
  font-weight: 600;
  color: var(--muted);
}

.lang-switch a.is-active {
  color: var(--primary);
}

main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero .lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row--spaced {
  margin-top: 1.5rem;
}

.section--after-block {
  margin-top: 2rem;
}

.hero-slogan--below-header {
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn-primary:active {
  background: var(--primary-active);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08);
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.page-intro--tight {
  margin-bottom: 1rem;
}

.section {
  margin-bottom: 2.25rem;
}

.section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.list-check {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.list-check li {
  margin-bottom: 0.45rem;
}

.note-box {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: var(--primary-ink);
  margin-top: 1rem;
}

dl.facts {
  display: grid;
  gap: 0.65rem 2rem;
  margin: 0;
}

dl.facts dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

dl.facts dd {
  margin: 0.15rem 0 0;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 32rem;
  box-shadow: var(--shadow);
}

.contact-block p {
  margin: 0 0 0.75rem;
}

.contact-block a {
  font-weight: 600;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(22, 119, 255, 0.1);
  margin-top: auto;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer strong {
  color: var(--text);
}

.hero-slogan {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-ink);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.section-block {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-block h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section-block .section-lede {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}

.subsection-title:first-child {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data-table th,
table.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

table.data-table th {
  font-weight: 600;
  background: #f8fafc;
  color: var(--text);
  white-space: nowrap;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tbody tr:hover td {
  background: #fafafa;
}

/* 三列对比表：维度 | 传统外包 | 盼达悦奕 — 高可读分色 */
.table-wrap--matrix {
  margin-top: 0.5rem;
}

table.compare-matrix {
  width: 100%;
  min-width: 36rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

table.compare-matrix thead th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #fff;
  border: none;
  border-bottom: 3px solid rgba(15, 23, 42, 0.2);
  vertical-align: middle;
}

table.compare-matrix thead th:first-child {
  background: #1e293b;
  width: 6.5rem;
}

table.compare-matrix thead th:nth-child(2) {
  background: #475569;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
}

table.compare-matrix thead th:nth-child(3) {
  background: var(--primary);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2);
}

table.compare-matrix tbody th,
table.compare-matrix tbody td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

table.compare-matrix tbody td {
  border-left: 1px solid var(--border);
}

table.compare-matrix tbody tr:last-child th,
table.compare-matrix tbody tr:last-child td {
  border-bottom: none;
}

table.compare-matrix tbody th[scope="row"] {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text);
  border-right: 2px solid #cbd5e1;
}

table.compare-matrix tbody td:nth-child(2) {
  background: #f8fafc;
  color: var(--text);
  max-width: 22rem;
}

table.compare-matrix tbody td:nth-child(3) {
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 500;
  max-width: 24rem;
}

table.compare-matrix tbody tr:hover th[scope="row"] {
  background: #e2e8f0;
}

table.compare-matrix tbody tr:hover td:nth-child(2) {
  background: #f1f5f9;
}

table.compare-matrix tbody tr:hover td:nth-child(3) {
  background: var(--primary-soft-strong);
}

@media (max-width: 640px) {
  table.compare-matrix thead th:first-child {
    width: 5.25rem;
  }

  table.compare-matrix tbody th,
  table.compare-matrix tbody td {
    padding: 0.85rem 0.9rem;
    font-size: 0.9rem;
  }
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.process-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.scenario-list {
  margin: 0;
  padding-left: 1.1rem;
}

.scenario-list li {
  margin-bottom: 0.5rem;
}

.scenario-list strong {
  color: var(--text);
}

.brand-story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.brand-story p {
  margin: 0 0 0.65rem;
}

.brand-story p:last-child {
  margin-bottom: 0;
}

.tagline-footer {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem !important;
}

@media (max-width: 640px) {
  .lang-switch {
    border-left: none;
    padding-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* 侧边浮动：联系 / 微信客服二维码
   注意：父级不能使用 transform，否则子元素 position:fixed 会相对父级，弹窗无法相对视口居中 */
.float-contact {
  position: fixed;
  z-index: 1000;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

@media (max-width: 640px) {
  .float-contact {
    top: auto;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    height: auto;
    align-items: flex-end;
  }
}

.float-contact__btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 0.5rem;
  min-width: 3rem;
  border: none;
  border-radius: 10px 0 0 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.35);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

@media (max-width: 640px) {
  .float-contact__btn {
    border-radius: 999px;
    flex-direction: row;
    padding: 0.65rem 1rem;
    min-width: unset;
    letter-spacing: 0.04em;
  }
}

.float-contact__btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.4);
}

.float-contact__btn:active {
  background: var(--primary-active);
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .float-contact__btn:active {
    transform: scale(0.97);
  }
}

.float-contact__btn:focus-visible {
  outline: 2px solid var(--primary-soft-strong);
  outline-offset: 2px;
}

.float-contact__btn[aria-expanded="true"] {
  background: var(--primary-active);
}

.float-contact__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.float-contact__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1;
}

@media (max-width: 640px) {
  .float-contact__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}

.float-contact--en .float-contact__label {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  letter-spacing: 0.02em;
}

.float-contact--en .float-contact__btn {
  border-radius: 999px;
  flex-direction: row;
  padding: 0.65rem 1.05rem;
  letter-spacing: 0.02em;
}

body.float-contact--open {
  overflow: hidden;
}

.float-contact__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.float-contact__backdrop[hidden] {
  display: none !important;
}

.float-contact__modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.float-contact__modal[hidden] {
  display: none !important;
}

.float-contact__modal-box {
  pointer-events: auto;
  position: relative;
  width: min(100%, 240px);
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(22, 119, 255, 0.14), 0 8px 24px rgba(15, 23, 42, 0.14);
  animation: float-contact-pop 0.2s ease-out;
}

@keyframes float-contact-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.float-contact__action[hidden] {
  display: none !important;
}

.float-contact__action {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.85rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: #07c160;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}

.float-contact__action:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.float-contact__action:active {
  transform: scale(0.99);
}

.float-contact__close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-contact__close:hover {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.float-contact__title {
  margin: 0 1.75rem 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.float-contact__qr {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 0;
  width: 160px;
  max-width: 100%;
  margin: 0 auto;
}

.float-contact__qr img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.float-contact__hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
