/**
 * T1 运维面板官网 — 与 C1 模板对齐的配色：浅灰底、琥珀强调、青绿点缀（见 c1-landing.css :root）。
 */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

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

:root {
  --ps-bg: #f4f6f9;
  --ps-surface: #ffffff;
  --ps-text: #0f172a;
  --ps-muted: #64748b;
  --ps-line: rgba(15, 23, 42, 0.1);
  /* C1：青绿强调（导航去橙色改为青绿系） */
  --ps-accent: #0d9488;
  --ps-accent-strong: #0f766e;
  --ps-accent-soft: #f0fdfa;
  /* C1：青绿点缀与成功态 */
  --ps-teal: #0d9488;
  --ps-teal-soft: #14b8a6;
  --ps-warn: #c2410c;
  /* 主按钮：青绿渐变 + 白色字 */
  --ps-cta-top: #14b8a6;
  --ps-cta-mid: #0d9488;
  --ps-cta-border: rgba(13, 148, 136, 0.35);
  --ps-cta-soft: #f0fdfa;
  --ps-btn-ink: #ffffff;
  --ps-bt-orange: #0d9488;
  --ps-radius: 14px;
  /* 宽屏内容宽 + 两侧留白（随视口略增） */
  --ps-max: 1680px;
  --ps-gutter: clamp(20px, 4vw, 56px);
  --ps-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --ps-font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ps-mono: "JetBrains Mono", ui-monospace, monospace;
  --ps-violet: #0d9488;
  --ps-pink: #db2777;
  --ps-amber-hot: #0d9488;
  --ps-rose-hot: #f43f5e;
  --ps-emerald-hot: #14b8a6;
  --ps-indigo-hot: #0e7490;
}

html { scroll-behavior: smooth; }

/* 子页可能未加 .ps-body，与面板壳共用时的基础排版 */
body {
  margin: 0;
  font-family: var(--ps-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ps-text);
  background: var(--ps-bg);
  -webkit-font-smoothing: antialiased;
}


.ps-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ps-shell--home {
  position: relative;
  background:
    linear-gradient(165deg, rgba(255, 251, 235, 0.65) 0%, transparent 42%),
    linear-gradient(135deg, transparent 0%, rgba(13, 148, 136, 0.04) 45%, transparent 72%),
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(245, 158, 11, 0.07), transparent 52%),
    var(--ps-bg);
}

.ps-shell--home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.06) 0%, transparent 40%);
  animation: ps-mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes ps-mesh-shift {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .ps-shell--home::before { animation: none; }
}

.ps-shell--home > * {
  position: relative;
  z-index: 1;
}

/* ========== 顶栏：整条条栏极淡浅色底 ========== */
.ps-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.88) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.38);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ps-header__inner {
  max-width: var(--ps-max);
  margin: 0 auto;
  padding: 14px var(--ps-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.ps-brand__mark {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 48%, #0f766e 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28), 0 4px 12px rgba(13, 148, 136, 0.2);
}

.ps-brand__mark--footer {
  width: auto;
  min-width: 40px;
  height: 32px;
  font-size: 11px;
  padding: 0 6px;
}

.ps-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.ps-brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ps-brand__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ps-muted);
  letter-spacing: 0.02em;
}

.ps-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 34, 0.35);
  z-index: 150;
}

.ps-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 8px;
  flex: 1 1 auto;
  margin-left: 80px;
}

.ps-nav__close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--ps-bg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ps-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  color: #3d465a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ps-nav a:hover,
.ps-nav a:focus-visible {
  background: var(--ps-accent-soft);
  color: var(--ps-accent-strong);
  outline: none;
}

.ps-nav a.is-active {
  color: var(--ps-accent-strong);
  background: rgba(13, 148, 136, 0.12);
}

.ps-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* 语言切换（与 landing.css 中 .landing-header .tp-lang-* 行为一致，配色对齐面板青绿主色） */
.ps-header {
  --tp-lang-header-theme: var(--ps-teal);
  --tp-lang-header-theme-mid: var(--ps-teal-soft);
  --tp-lang-header-black: #0f172a;
}

.ps-header .tp-lang-dropdown {
  position: relative;
}

.ps-header .tp-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tp-lang-header-black);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1);
  box-sizing: border-box;
  font-family: inherit;
}

.ps-header .tp-lang-btn:hover {
  border-color: var(--tp-lang-header-theme);
  color: var(--tp-lang-header-theme);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}

.ps-header .tp-lang-btn:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.ps-header .tp-lang-btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  background-color: var(--tp-lang-header-theme);
  -webkit-mask: url("../images/icon-language.svg") center / contain no-repeat;
  mask: url("../images/icon-language.svg") center / contain no-repeat;
}

.ps-header .tp-lang-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.ps-header .tp-lang-btn-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}

.ps-header .tp-lang-btn[aria-expanded="true"] .tp-lang-btn-caret {
  transform: rotate(180deg);
}

.ps-header .tp-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1050;
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.45rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.14), 0 0 0 1px rgba(13, 148, 136, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  min-width: 100%;
}

.ps-header .tp-lang-menu[hidden] {
  display: none !important;
}

.ps-header .tp-lang-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  padding: 0.5rem 0.65rem;
  color: var(--tp-lang-header-black);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  font-family: inherit;
  text-align: left;
}

.ps-header .tp-lang-item-ico {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  -webkit-mask: url("../images/icon-language.svg") center / contain no-repeat;
  mask: url("../images/icon-language.svg") center / contain no-repeat;
}

.ps-header .tp-lang-item-ico--zh {
  background-color: #64748b;
}

.ps-header .tp-lang-item-ico--en {
  background-color: #0d9488;
}

.ps-header .tp-lang-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-header .tp-lang-menu .tp-lang-item:hover,
.ps-header .tp-lang-menu .tp-lang-item:focus-visible {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(204, 251, 241, 0.5) 100%);
  color: var(--tp-lang-header-theme);
}

.ps-header .tp-lang-menu .tp-lang-item:hover .tp-lang-item-ico,
.ps-header .tp-lang-menu .tp-lang-item:focus-visible .tp-lang-item-ico {
  background-color: var(--tp-lang-header-theme);
}

.ps-header .tp-lang-menu .tp-lang-item.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(13, 148, 136, 0.07) 100%);
  color: var(--tp-lang-header-theme);
  font-weight: 600;
}

.ps-header .tp-lang-menu .tp-lang-item.active .tp-lang-item-ico {
  background-color: var(--tp-lang-header-theme);
}

@media (max-width: 991.98px) {
  .ps-header .tp-lang-dropdown .tp-lang-label {
    display: none;
  }
}

.ps-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--ps-line);
  background: #fff;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.ps-nav-toggle span {
  display: block;
  height: 2px;
  background: #1e293b;
  border-radius: 2px;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.ps-btn--ghost {
  background: transparent;
  color: #334155;
}

.ps-btn--ghost:hover {
  background: var(--ps-bg);
}

.ps-btn--icon.ps-btn--ghost {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.ps-btn--icon.ps-btn--ghost:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: #f0fdfa;
  color: var(--ps-teal) !important;
}

.ps-btn--primary {
  background: linear-gradient(180deg, var(--ps-cta-top) 0%, var(--ps-cta-mid) 100%);
  color: var(--ps-btn-ink) !important;
  border: 1px solid var(--ps-cta-border);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.25);
}

.ps-btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.3);
}

/* 立即安装：青绿渐变 */
.ps-btn--install {
  background: linear-gradient(180deg, var(--ps-cta-top) 0%, var(--ps-cta-mid) 100%);
  color: var(--ps-btn-ink) !important;
  border: 1px solid var(--ps-cta-border);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.25);
}

.ps-btn--install:hover {
  filter: brightness(1.07);
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.3);
}

.ps-btn--install-light {
  background: #fff !important;
  color: var(--ps-accent-strong) !important;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.ps-btn--install-light:hover {
  background: var(--ps-cta-soft) !important;
}

.ps-link-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-muted);
  text-decoration: none;
  padding: 8px 10px;
}

.ps-link-login:hover {
  color: var(--ps-teal);
}

@media (max-width: 1040px) {
  .ps-nav-toggle { display: inline-flex; }
  .ps-nav-backdrop { display: block; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .ps-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 56px 20px 24px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 160;
    overflow-y: auto;
    margin-left: 0;
  }
  .ps-nav__close { display: block; }
  html.ps-nav-open .ps-nav { transform: translateX(0); }
  html.ps-nav-open .ps-nav-backdrop { opacity: 1; pointer-events: auto; }
  .ps-nav a { padding: 12px 14px; }
}

/* ========== 首页模块 ========== */
.ps-main { flex: 1; }

.ps-hero {
  max-width: var(--ps-max);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 80px) var(--ps-gutter) 48px;
}

.ps-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.ps-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ps-hero__figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.08),
    0 8px 24px rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #fff 0%, #fffbeb 100%);
}

.ps-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .ps-hero__grid { grid-template-columns: 1fr; }
}

.ps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  background: linear-gradient(90deg, #0d9488, #14b8a6, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-kicker__icon {
  display: flex;
  filter: drop-shadow(0 2px 6px rgba(13, 148, 136, 0.28));
}

.ps-text-gradient {
  background: linear-gradient(105deg, #0f172a 0%, #334155 38%, #d97706 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ps-hero__lead {
  margin: 0 0 26px;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--ps-muted);
  max-width: 36rem;
}

.ps-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.ps-hero__note {
  font-size: 13px;
  color: var(--ps-muted);
  max-width: 32rem;
}

.ps-hero__note code {
  font-family: var(--ps-mono);
  font-size: 12px;
  background: var(--ps-accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: #b45309;
}

.ps-strip {
  max-width: var(--ps-max);
  margin: 0 auto;
  padding: 0 var(--ps-gutter) 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .ps-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ps-strip { grid-template-columns: 1fr; }
}

.ps-strip__item {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: 18px 14px 16px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ps-strip__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--ps-radius) var(--ps-radius) 0 0;
}

.ps-strip__item--violet::before { background: linear-gradient(90deg, #0d9488, #5eead4); }
.ps-strip__item--cyan::before { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.ps-strip__item--amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.ps-strip__item--rose::before { background: linear-gradient(90deg, #e11d48, #fb7185); }

.ps-strip__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.ps-strip__ico {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: #475569;
}

.ps-strip__item--violet .ps-strip__ico { color: #0f766e; }
.ps-strip__item--cyan .ps-strip__ico { color: #0d9488; }
.ps-strip__item--amber .ps-strip__ico { color: #c2410c; }
.ps-strip__item--rose .ps-strip__ico { color: #e11d48; }

.ps-strip__item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.ps-strip__item > span:last-of-type {
  font-size: 13px;
  color: var(--ps-muted);
}

.ps-section {
  max-width: var(--ps-max);
  margin: 0 auto;
  padding: 48px var(--ps-gutter) 56px;
}

.ps-section__head {
  max-width: min(900px, 100%);
  margin-bottom: 36px;
}

.ps-section__head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ps-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ps-teal);
  margin: 0 0 10px;
}

.ps-eyebrow--hot {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(240, 253, 250, 0.9));
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ps-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps-section__intro {
  margin: 0;
  color: var(--ps-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ps-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 880px) {
  .ps-grid-3 { grid-template-columns: 1fr; }
  .ps-grid-2 { grid-template-columns: 1fr; }
}

.ps-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(12, 24, 48, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ps-card:hover {
  box-shadow: 0 16px 40px rgba(12, 24, 48, 0.09);
  transform: translateY(-3px);
}

.ps-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ps-accent-soft);
  color: var(--ps-accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ps-card__icon--tone-violet {
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
  color: #0f766e;
}

.ps-card__icon--tone-cyan {
  background: linear-gradient(145deg, #cffafe, #a5f3fc);
  color: #0e7490;
}

.ps-card__icon--tone-amber {
  background: linear-gradient(145deg, #ffedd5, #fde68a);
  color: #c2410c;
}

.ps-card__icon--tone-rose {
  background: linear-gradient(145deg, #ffe4e6, #fecdd3);
  color: #be123c;
}

.ps-card__icon--tone-emerald {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  color: #047857;
}

.ps-card__icon--tone-indigo {
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  color: #4338ca;
}

.ps-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ps-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ps-muted);
  line-height: 1.6;
}

.ps-list-check {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ps-list-check li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #475569;
}

.ps-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ps-teal);
  font-weight: 800;
}

.ps-templates-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

@media (max-width: 960px) {
  .ps-templates-layout {
    grid-template-columns: 1fr;
  }
}

.ps-templates-visual {
  margin: 0;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff 0%, #f0fdfa 35%, #fffbeb 100%);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.ps-templates-visual img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.ps-templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .ps-templates { grid-template-columns: 1fr; }
}

.ps-template {
  border-radius: var(--ps-radius);
  padding: 24px 20px;
  background: linear-gradient(165deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.ps-template::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.1), transparent 70%);
  pointer-events: none;
}

.ps-template h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-template__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ps-template--ollama .ps-template__dot {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.ps-template--claw .ps-template__dot {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.ps-template--agent .ps-template__dot {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.ps-template p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ps-muted);
  line-height: 1.55;
}

.ps-template__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0d9488;
}

.ps-band {
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.9) 0%, transparent 45%),
    linear-gradient(180deg, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.04), transparent);
  border-radius: 20px;
}

.ps-arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .ps-arch { grid-template-columns: 1fr; }
}

.ps-arch__node {
  text-align: center;
  padding: 20px;
  border-radius: var(--ps-radius);
  border: 1px dashed rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.ps-arch__node:nth-child(1) { border-color: rgba(13, 148, 136, 0.4); }
.ps-arch__node:nth-child(2) { border-color: rgba(217, 119, 6, 0.4); }
.ps-arch__node:nth-child(3) { border-color: rgba(245, 158, 11, 0.45); }

.ps-arch__node strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.ps-arch__node span {
  font-size: 13px;
  color: var(--ps-muted);
}

/* ========== 安装方法（标签 + 深色代码块 + 复制） ========== */
.ps-install-wrap {
  max-width: var(--ps-max);
  margin: 0 auto;
  padding: 32px var(--ps-gutter) 8px;
}

.ps-install-hero {
  margin-bottom: 28px;
}

.ps-install-hero--with-art {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 40%);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  margin-bottom: 28px;
}

.ps-install-hero__text {
  min-width: 0;
}

.ps-install-hero__art {
  margin: 0;
}

.ps-install-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 12px 28px rgba(13, 148, 136, 0.2));
}

@media (max-width: 900px) {
  .ps-install-hero--with-art {
    grid-template-columns: 1fr;
  }
  .ps-install-hero__art {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

.ps-install-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.ps-install-brand {
  color: var(--ps-accent-strong);
}

.ps-install-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ps-muted);
  line-height: 1.65;
  max-width: 52rem;
}

.ps-install-card {
  position: relative;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  padding: 24px var(--ps-gutter) 28px;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(12, 24, 48, 0.06);
  overflow: hidden;
}

.ps-install-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f59e0b, #14b8a6, #0d9488);
}

.ps-install-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-size: 17px;
  color: #1e293b;
}

.ps-install-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #f59e0b, var(--ps-bt-orange));
}

.ps-install-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ps-muted);
  line-height: 1.7;
}

.ps-install-links {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.8;
}

.ps-install-links a {
  color: var(--ps-teal);
  font-weight: 600;
  text-decoration: none;
  margin-right: 16px;
}

.ps-install-links a:hover {
  text-decoration: underline;
}

.ps-install-tabs {
  margin-top: 8px;
}

.ps-install-tabs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ps-line);
  margin-bottom: 16px;
}

.ps-install-tabs__row button {
  appearance: none;
  border: none;
  background: none;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
}

.ps-install-tabs__row button:hover {
  color: #1e293b;
  background: rgba(13, 148, 136, 0.06);
}

.ps-install-tabs__row button[aria-selected="true"] {
  color: var(--ps-accent-strong);
  border-bottom-color: var(--ps-accent-strong);
  background: var(--ps-cta-soft);
}

.ps-install-panel[hidden] {
  display: none !important;
}

.ps-install-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  .ps-install-code-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .ps-install-code {
    flex: 1;
    min-width: 0;
  }
}

.ps-install-code {
  margin: 0;
  padding: 16px 18px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-family: var(--ps-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-install-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ps-cta-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ps-btn-ink);
  background: linear-gradient(180deg, var(--ps-cta-top) 0%, var(--ps-cta-mid) 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
  align-self: flex-start;
}

.ps-install-copy:hover {
  filter: brightness(1.04);
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
}

.ps-install-copy.is-done::after {
  content: " ✓";
}

.ps-install-divider {
  margin: 36px 0;
  border: none;
  border-top: 1px dashed var(--ps-line);
}

.ps-install-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #111827;
}

.ps-install-card--split .ps-install-desc {
  margin-bottom: 16px;
}

/* FAQ */
.ps-faq {
  max-width: 760px;
  margin: 0 auto;
}

.ps-faq-item {
  border-bottom: 1px solid var(--ps-line);
}

.ps-faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 8px 18px 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ps-text);
}

.ps-faq-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--ps-muted);
}

.ps-faq-item.is-open .ps-faq-arrow {
  transform: rotate(180deg);
}

.ps-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.ps-faq-a p {
  margin: 0 0 18px;
  padding-right: 12px;
  font-size: 14px;
  color: var(--ps-muted);
  line-height: 1.65;
}

/* 腰封 CTA */
.ps-cta {
  margin-top: auto;
  padding: 48px var(--ps-gutter);
  text-align: center;
  background: linear-gradient(115deg, #0f766e 0%, #0d9488 42%, #d97706 100%);
  color: #fff;
}

.ps-cta--install {
  background: linear-gradient(118deg, #fbbf24 0%, #f59e0b 40%, #0d9488 100%);
}

.ps-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}

.ps-cta p {
  margin: 0 0 22px;
  opacity: 0.95;
  font-size: 1.05rem;
}

.ps-cta .ps-btn--primary {
  background: #fff;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ps-cta .ps-btn--primary:hover {
  background: #fffbeb;
}

.ps-cta--install .ps-btn--install-light:hover {
  background: #fff !important;
  filter: brightness(1.03);
}

/* 页脚 */
.ps-footer {
  padding: 44px var(--ps-gutter) 24px;
  background: #0c1222;
  color: #a8b0c4;
  font-size: 14px;
}

.ps-footer__inner {
  max-width: var(--ps-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .ps-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .ps-footer__inner { grid-template-columns: 1fr; }
}

.ps-footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8ecf5;
}

.ps-footer a {
  color: #c5ccdc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.ps-footer a:hover {
  color: #fff;
}

.ps-footer__brand {
  padding-right: 20px;
}

.ps-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.ps-footer__bottom {
  max-width: var(--ps-max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
}

.ps-footer__legal a {
  display: inline;
  margin-right: 16px;
  color: #8b95ab;
}

/* 返回顶部 */
.ps-back-top {
  position: fixed;
  right: var(--ps-gutter);
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ps-line);
  background: #fff;
  box-shadow: var(--ps-shadow);
  cursor: pointer;
  font-size: 18px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ps-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 与 landing.css 同页时的外壳补偿 */
.ps-shell.landing-wrap {
  background: transparent;
}
