/* 官网内页统一沉浸风（登录/服务/价格/关于/入驻） */
:root {
  --ps-line: rgba(255,255,255,0.12);
  --ps-muted: rgba(255,255,255,0.7);
  --ps-dim: rgba(255,255,255,0.45);
}

* { box-sizing: border-box; }
body.ps-body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }

.ps-outer { min-height: 100vh; padding: 12px; background: #000; }
@media (min-width: 768px) { .ps-outer { padding: 16px; } }

.ps-shell {
  min-height: calc(100vh - 24px);
  border-radius: 16px;
  border: 1px solid var(--ps-line);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255,255,255,0.06), transparent 55%),
    #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .ps-shell { min-height: calc(100vh - 32px); }
}

.ps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ps-line);
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .ps-nav { padding: 24px 40px; }
}

.ps-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.ps-logo { width: 40px; height: 40px; }
.ps-brand span {
  font-size: 11px;
  letter-spacing: 0.35em;
  font-weight: 300;
}

.ps-nav-links {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .ps-nav-links { display: flex; }
}
.ps-nav-links a {
  text-decoration: none;
  color: var(--ps-muted);
  font-size: 13px;
  padding: 8px 12px;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}
.ps-nav-links a:hover,
.ps-nav-links a.active {
  background: #fff;
  color: #000;
}

.ps-nav-actions { display: flex; gap: 10px; align-items: center; }

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}
.ps-btn-solid { background: #fff; color: #000; }
.ps-btn-solid:hover { background: rgba(255,255,255,0.9); color: #000; }
.ps-btn-border {
  position: relative;
  background: #fff;
  color: #fff;
}
.ps-btn-border::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #000;
  z-index: 0;
  clip-path: polygon(11px 0%, calc(100% - 11px) 0%, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0% calc(100% - 11px), 0% 11px);
}
.ps-btn-border > * { position: relative; z-index: 1; }

.ps-main {
  flex: 1;
  padding: 28px 24px 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .ps-main { padding: 40px 40px 56px; }
}

.ps-footer {
  border-top: 1px solid var(--ps-line);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ps-dim);
  font-size: 12px;
}
.ps-footer-links { display: flex; gap: 14px; }
.ps-footer a { color: var(--ps-muted); text-decoration: none; }
.ps-footer a:hover { color: #fff; }

/* 通用内容块 */
.ps-hero {
  text-align: center;
  margin-bottom: 36px;
}
.ps-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.ps-hero p { margin: 0; color: var(--ps-muted); font-size: 14px; }

.ps-price-wrap { max-width: 960px; margin: 0 auto; }
.ps-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  overflow: hidden;
}
.ps-price-table th,
.ps-price-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}
.ps-price-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ps-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}
.ps-price-table tr:last-child td { border-bottom: none; }
.ps-price-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.ps-price-name { color: #fff; font-weight: 600; white-space: nowrap; }
.ps-price-desc { color: var(--ps-muted); font-size: 13px; }
.ps-price-amt strong {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ps-price-amt span {
  margin-left: 4px;
  color: var(--ps-dim);
  font-size: 12px;
}
.ps-price-act { text-align: right; white-space: nowrap; }
.ps-btn-sm { padding: 6px 14px; font-size: 12px; }
.ps-price-sub {
  margin: 40px 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}
.ps-price-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ps-dim);
}
@media (max-width: 720px) {
  .ps-price-table th:nth-child(2),
  .ps-price-table td:nth-child(2) { display: none; }
  .ps-price-table th, .ps-price-table td { padding: 12px 10px; }
  .ps-price-amt strong { font-size: 16px; }
}

.ps-card {
  border: 1px solid var(--ps-line);
  background: rgba(255,255,255,0.03);
  padding: 22px;
  margin-bottom: 16px;
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
}
.ps-card h2, .ps-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}
.ps-card p { margin: 0; color: var(--ps-muted); font-size: 14px; line-height: 1.7; }

.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .ps-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .ps-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.ps-field { margin-bottom: 16px; }
.ps-field label {
  display: block;
  font-size: 12px;
  color: var(--ps-muted);
  margin-bottom: 8px;
}
.ps-field input,
.ps-field select,
.ps-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ps-line);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font: inherit;
}
.ps-field input::placeholder,
.ps-field textarea::placeholder { color: rgba(255,255,255,0.35); }

.ps-alert {
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  border: 1px solid rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.12);
  color: #f87171;
}
.ps-alert.ok {
  border-color: rgba(163,230,53,0.35);
  background: rgba(163,230,53,0.12);
  color: #a3e635;
}

.ps-login-wrap {
  max-width: 420px;
  margin: 40px auto 0;
}
.ps-login-wrap .ps-card { padding: 28px; }
.ps-login-wrap h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-align: center;
}
.ps-login-wrap .sub {
  text-align: center;
  color: var(--ps-dim);
  font-size: 13px;
  margin-bottom: 24px;
}
.ps-login-wrap .ps-btn { width: 100%; padding: 14px; }
.ps-login-wrap .hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ps-dim);
  line-height: 1.6;
}
.ps-login-wrap .hint a { color: #fff; }

/* 兼容旧 class（若模板未全改） */
.ps-main .container { max-width: 100%; padding: 0; }
.ps-main .text-muted,
.ps-main .text-primary { color: var(--ps-muted) !important; }
.ps-main .btn-portal-primary,
.ps-main .btn-primary {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}
.ps-main .form-control,
.ps-main .form-select {
  background: rgba(0,0,0,0.45) !important;
  border: 1px solid var(--ps-line) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
.ps-main .card,
.ps-main .portal-login-card,
.ps-main .feature-box,
.ps-main .dest-card,
.ps-main .testimonial-card {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--ps-line) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.ps-main .section-title { color: #fff !important; }
.ps-main .section-subtitle { color: var(--ps-muted) !important; }
.ps-main .alert-danger {
  background: rgba(248,113,113,0.12) !important;
  color: #f87171 !important;
  border-color: rgba(248,113,113,0.35) !important;
}

/* 入驻申请页强制皮肤（保留原表单字段） */
.ps-main .apply-page,
.ps-main .apply-hero,
.ps-main .apply-body,
.ps-main .apply-shell,
.ps-main .apply-section {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}
.ps-main .apply-hero {
  border: 1px solid var(--ps-line);
  padding: 28px;
  margin-bottom: 18px;
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
}
.ps-main .apply-title,
.ps-main .apply-section h2,
.ps-main .apply-eyebrow { color: #fff !important; }
.ps-main .apply-lead,
.ps-main .apply-section p,
.ps-main .apply-hint,
.ps-main .apply-label { color: var(--ps-muted) !important; }
.ps-main .apply-input,
.ps-main .apply-shell input,
.ps-main .apply-shell select,
.ps-main .apply-shell textarea {
  background: rgba(0,0,0,0.45) !important;
  border: 1px solid var(--ps-line) !important;
  color: #fff !important;
  border-radius: 0 !important;
}
.ps-main .apply-section {
  border: 1px solid var(--ps-line);
  padding: 20px;
  margin-bottom: 14px;
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}
.ps-main .apply-form button[type="submit"],
.ps-main .apply-shell .btn {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}
.ps-main .apply-alert {
  border: 1px solid var(--ps-line) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #fff !important;
}
.ps-main .apply-alert-success { border-color: rgba(163,230,53,0.4) !important; }
.ps-main .apply-alert-error {
  border-color: rgba(248,113,113,0.4) !important;
  color: #f87171 !important;
  background: rgba(248,113,113,0.12) !important;
}
.ps-main .page-banner,
.ps-main .bg-portal-light {
  background: transparent !important;
  color: #fff !important;
}
.ps-main .service-price-card {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--ps-line) !important;
  color: #fff !important;
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
}
