/* ==========================================================================
   GPLPal 2026 Enterprise Core Design System (全站公共核心基础资产库)
   Contains: Design Tokens, Top Banner, Global Header, Footer, Ambient FX,
   Meteor Engine, Universal Buttons, Accordion Base, Trust & SSL Badges.
   ========================================================================== */

/* 1. 全局设计规范变量 (Design Tokens) */
:root {
  --gplpal-bg-void: #070b14;
  --gplpal-bg-surface: #0b1120;
  --gplpal-bg-card: #0d1527;
  --gplpal-border-subtle: rgba(255, 255, 255, 0.08);
  --gplpal-border-glow: rgba(245, 158, 11, 0.35);
  --gplpal-text-main: #ffffff;
  --gplpal-text-muted: #94a3b8;
  --gplpal-text-dim: #64748b;
  --gplpal-gold: #fbbf24;
  --gplpal-amber: #f59e0b;
  --gplpal-emerald: #10b981;
  --gplpal-sky: #38bdf8;
  --gplpal-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. 通用文字渐变工具类 */
.gplpal-h1-gradient,
.gplpal-title-gradient,
.gplpal-stream-text,
.gplpal-brand-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* 3. 通用发光脉冲圆点 */
.pulse-green-dot,
.gplpal-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gplpal-emerald);
  box-shadow: 0 0 8px var(--gplpal-emerald);
  display: inline-block;
  flex-shrink: 0;
}
.pulse-amber-dot,
.gplpal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gplpal-amber);
  box-shadow: 0 0 8px var(--gplpal-amber);
  display: inline-block;
  flex-shrink: 0;
}

/* 4. 通用环境背景、光晕与点阵网格 */
.gplpal-hero-grid-pattern,
.gplpal-tech-grid,
.gplpal-cosmic-grid,
.gplpal-hero-grid-dots,
.gplpal-cat-grid-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}

.gplpal-glow-amber,
.gplpal-hero-glow-left,
.gplpal-faq-glow-left,
.gplpal-cat-glow-left,
.glow-1 {
  position: absolute;
  top: -80px; left: -80px;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.gplpal-glow-violet,
.gplpal-hero-glow-right,
.gplpal-faq-glow-right,
.gplpal-cat-glow-right,
.glow-2 {
  position: absolute;
  top: -60px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

/* 5. 通用硬件加速深空流星动效 */
.gplpal-meteor {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.4), transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.meteor-1 { top: 12%; left: 75%; animation: gplpalMeteor 6s linear infinite; animation-delay: 0s; width: 150px; }
.meteor-2 { top: 28%; left: 90%; animation: gplpalMeteor 5s linear infinite; animation-delay: 1.8s; width: 120px; }
.meteor-3 { top: 8%;  left: 40%; animation: gplpalMeteor 7s linear infinite; animation-delay: 3.5s; width: 170px; }
.meteor-4 { top: 40%; left: 65%; animation: gplpalMeteor 5.5s linear infinite; animation-delay: 4.8s; width: 130px; }

@keyframes gplpalMeteor {
  0%   { opacity: 0; transform: rotate(-35deg) translate3d(0, 0, 0); }
  15%  { opacity: 1; }
  35%  { opacity: 0.8; }
  45%  { opacity: 0; transform: rotate(-35deg) translate3d(-700px, 450px, 0); }
  100% { opacity: 0; transform: rotate(-35deg) translate3d(-700px, 450px, 0); }
}

/* 6. 顶部长驻状态栏 (Top Banner) */
body { padding-top: 44px !important; }
@media (max-width: 768px) { body { padding-top: 48px !important; } }

#gplpal-top-banner {
  position: fixed; top: 0; left: 0; width: 100%; height: 44px;
  background: #090d16; color: #ffffff; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--gplpal-font); font-size: 12.5px;
  border-bottom: 1px solid var(--gplpal-border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gplpal-banner-container {
  width: 100%; max-width: 1280px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gplpal-banner-left { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.gplpal-live-pulse { display: inline-flex; position: relative; width: 8px; height: 8px; }
.gplpal-live-pulse-core { width: 8px; height: 8px; background-color: var(--gplpal-emerald); border-radius: 50%; }
.gplpal-live-pulse-ring {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--gplpal-emerald); border-radius: 50%;
  animation: gplpalPing 2s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.75;
}
@keyframes gplpalPing { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.gplpal-radar-anchor {
  color: #e2e8f0; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; font-weight: 600; transition: color 0.2s;
}
.gplpal-radar-anchor:hover { color: var(--gplpal-sky); }
.gplpal-tag-fresh {
  background: rgba(16, 185, 129, 0.15); color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3); padding: 1px 7px;
  border-radius: 999px; font-size: 11px; font-family: monospace; font-weight: 700;
}
.gplpal-banner-center { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: #cbd5e1; }
.gplpal-price-pill {
  color: var(--gplpal-gold); font-weight: 900; font-family: monospace;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px; border-radius: 6px;
}
.gplpal-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gplpal-btn-radar {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); color: #f1f5f9;
  text-decoration: none; font-size: 11.5px; font-weight: 700; transition: all 0.2s;
}
.gplpal-btn-radar:hover { background: rgba(255, 255, 255, 0.15); color: #fff; transform: translateY(-1px); }
.gplpal-btn-plans {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  border-radius: 8px; background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #020617 !important; text-decoration: none; font-size: 11.5px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); transition: all 0.2s;
}
.gplpal-btn-plans:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); transform: translateY(-1px); }
.gplpal-banner-close {
  background: transparent; border: none; color: #64748b; font-size: 16px;
  line-height: 1; padding: 2px 4px; cursor: pointer; transition: color 0.2s;
}
.gplpal-banner-close:hover { color: #ffffff; }

/* 7. 通用高转化按钮系统 */
.gplpal-btn-amber-glow,
.gplpal-btn-box.btn-amber-glow,
.gplpal-submit-ticket-btn,
.gplpal-checkout-btn,
.gplpal-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #ffffff !important; border: none !important;
  padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 800;
  text-decoration: none; cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35); box-sizing: border-box;
}
.gplpal-btn-amber-glow:hover,
.gplpal-submit-ticket-btn:hover,
.gplpal-checkout-btn:hover,
.gplpal-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #090d16 !important; transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
}

.gplpal-btn-dark,
.btn-dark {
  background: #0f172a !important; color: #ffffff !important;
  padding: 13px 20px; border-radius: 10px; font-size: 14px; font-weight: 800;
  text-decoration: none; transition: all 0.2s; display: inline-flex;
  align-items: center; justify-content: center;
}
.gplpal-btn-dark:hover,
.btn-dark:hover {
  background: #1e293b !important; transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

/* 8. 通用手风琴折叠动画基类 (Details / Summary) */
details.gplpal-accordion-base summary,
.gplpal-p-faq-q,
.gplpal-trouble-q,
.gplpal-faq-q {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s ease;
}
details summary::-webkit-details-marker { display: none; }

.toggle-icon,
.p-faq-toggle,
.gplpal-faq-toggle {
  position: relative; width: 12px; height: 12px; flex-shrink: 0; margin-left: 10px;
}
.toggle-icon::before, .toggle-icon::after,
.p-faq-toggle::before, .p-faq-toggle::after,
.gplpal-faq-toggle::before, .gplpal-faq-toggle::after {
  content: ''; position: absolute; background-color: var(--gplpal-text-muted);
  border-radius: 2px; transition: transform 0.25s ease, background-color 0.25s ease;
}
.toggle-icon::before, .p-faq-toggle::before, .gplpal-faq-toggle::before { top: 5px; left: 0; width: 12px; height: 2px; }
.toggle-icon::after,  .p-faq-toggle::after,  .gplpal-faq-toggle::after  { top: 0; left: 5px; width: 2px; height: 12px; }

details[open] .toggle-icon::after,
details[open] .p-faq-toggle::after,
details[open] .gplpal-faq-toggle::after {
  transform: rotate(90deg); opacity: 0;
}
details[open] .toggle-icon::before,
details[open] .p-faq-toggle::before,
details[open] .gplpal-faq-toggle::before {
  background-color: var(--gplpal-amber);
}

/* 9. 通用银行级 256-Bit SSL 认证保障条 */
.gplpal-bottom-ssl-bar,
.gplpal-secure-checkout-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12.5px; color: var(--gplpal-text-dim);
  font-weight: 500; text-align: center; margin-top: 20px;
}
.gplpal-bottom-ssl-bar svg,
.gplpal-secure-checkout-bar svg {
  width: 15px; height: 15px; color: var(--gplpal-emerald); flex-shrink: 0;
}

/* 10. 全局页脚通用样式 (Global Footer) */
.gplpal-global-footer {
  width: 100%; background-color: #070b14;
  background: radial-gradient(circle at 50% 0%, #0d1527 0%, #070b14 75%);
  color: #94a3b8; font-family: var(--gplpal-font);
  box-sizing: border-box; padding: 75px 20px 35px 20px;
  border-top: 1px solid var(--gplpal-border-subtle);
}
.gplpal-footer-container { max-width: 1240px; margin: 0 auto; }
.gplpal-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 45px; margin-bottom: 50px; text-align: left;
}
.col-brand { padding-right: 20px; }
.gplpal-footer-logo { margin-bottom: 18px; }
.gplpal-footer-logo img { width: 160px; height: auto; display: block; }
.gplpal-footer-bio { font-size: 13.5px !important; color: #94a3b8 !important; line-height: 1.65 !important; margin: 0 0 20px 0 !important; }
.gplpal-server-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px; color: #cbd5e1; font-size: 11.5px; font-weight: 600; font-family: monospace;
}
.status-pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background-color: var(--gplpal-emerald); box-shadow: 0 0 8px var(--gplpal-emerald);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen { 75%, 100% { transform: scale(2); opacity: 0; } }

.gplpal-col-title {
  font-size: 13px !important; font-weight: 800 !important; color: #ffffff !important;
  letter-spacing: 1.2px !important; text-transform: uppercase !important; margin: 0 0 20px 0 !important;
}
.gplpal-footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.gplpal-footer-links li a { color: #94a3b8; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all 0.2s ease; display: inline-block; }
.gplpal-footer-links li a:hover { color: var(--gplpal-gold); transform: translateX(3px); }
.gplpal-footer-disclaimer {
  padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 30px; text-align: left;
}
.gplpal-footer-disclaimer p { font-size: 11.5px !important; color: #64748b !important; line-height: 1.7 !important; margin: 0 !important; }
.gplpal-footer-disclaimer strong { color: #94a3b8; }
.gplpal-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; font-size: 12.5px; color: #64748b;
}
.gplpal-copy-left strong { color: #ffffff; }
.gplpal-secure-right { display: inline-flex; align-items: center; gap: 8px; }
.gplpal-secure-right svg { width: 14px; height: 14px; color: var(--gplpal-emerald); }

.gplpal-backtotop {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: #1e293b; color: #ffffff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: all 0.2s ease; z-index: 9999;
}
.gplpal-backtotop:hover { background: #ea580c; transform: translateY(-3px); }

/* 11. 全局移动端自适应基准 */
@media (max-width: 1024px) {
  .gplpal-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .gplpal-banner-center { display: none; }
}
@media (max-width: 640px) {
  #gplpal-top-banner { height: 48px; font-size: 11.5px; }
  .gplpal-banner-container { padding: 0 10px; justify-content: space-between; }
  .gplpal-btn-radar { display: none; }
  .gplpal-btn-plans { padding: 4px 8px; font-size: 11px; }
  .gplpal-footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .gplpal-footer-bottom { flex-direction: column; text-align: center; }
  .gplpal-meteor { display: none !important; } /* 移动端完全禁用流星雨，极致节省电量与GPU */
}