/* wpsoiu.com.cn 共享样式 */
:root {
  --bg-primary: #0b0d12;
  --bg-secondary: #13161f;
  --bg-card: #1a1e28;
  --bg-card-hover: #222733;
  --border: #2a303e;
  --border-light: #3a4152;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00e5ff;
  --accent-hover: #00d4e6;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-container: 1200px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --lh-base: 1.75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.container { max-width: var(--space-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.flex-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-accent { color: var(--accent); }
.badge { display: inline-block; padding: 6px 14px; background: var(--accent-glow); color: var(--accent); border-radius: 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 1rem; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.2rem); font-weight: 800; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); margin-bottom: 2rem; text-wrap: balance; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; font-weight: 700; }
p { color: var(--text-secondary); margin-bottom: 1rem; text-wrap: pretty; }
.lead { font-size: 1.15rem; color: var(--text-primary); opacity: 0.9; }

/* Header / Footer */
header, footer { background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: 60px; padding: 48px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
nav ul { display: flex; gap: 8px; }
nav a { font-size: 0.95rem; color: var(--text-secondary); padding: 8px 14px; border-radius: var(--radius-sm); }
nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
nav a[aria-current="page"] { color: var(--accent); background: var(--accent-glow); font-weight: 500; }
.mobile-toggle { display: none; font-size: 1.5rem; }
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); padding: 16px; border-bottom: 1px solid var(--border); }
  nav.open ul { display: flex; }
  .mobile-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; background: var(--accent); color: #000; font-weight: 600;
  border-radius: var(--radius-md); cursor: pointer; transition: all 0.25s ease;
  font-size: 1rem; text-decoration: none; user-select: none;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-card-hover); }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.card-actions { margin-top: 16px; }

/* Table */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(255,255,255,0.03); color: var(--text-primary); font-weight: 600; white-space: nowrap; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
td a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
td a:hover { color: var(--accent-hover); }

/* Steps */
.step-list { counter-reset: step-num; }
.step-list li { position: relative; padding-left: 44px; margin-bottom: 20px; }
.step-list li::before { counter-increment: step-num; content: counter(step-num); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--accent); }

/* FAQ */
details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s; }
details:hover { border-color: var(--border-light); }
summary { padding: 18px 24px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s ease; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 24px 20px; color: var(--text-secondary); line-height: 1.8; }

/* SVG Animations */
.draw-anim path, .draw-anim circle, .draw-anim rect, .draw-anim line, .draw-anim polygon, .draw-anim polyline, .draw-anim ellipse {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes drawPath {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes breatheSoft {
  0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 4px var(--accent)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px var(--accent)); }
}
.draw-anim path, .draw-anim circle, .draw-anim rect, .draw-anim line, .draw-anim polygon, .draw-anim polyline, .draw-anim ellipse {
  animation: drawPath 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards, breatheSoft 5s ease-in-out infinite 2.5s;
}
.draw-anim .delay-1 { animation-delay: 0.1s, 2.6s; }
.draw-anim .delay-2 { animation-delay: 0.3s, 2.8s; }
.draw-anim .delay-3 { animation-delay: 0.5s, 3.0s; }

@media (prefers-reduced-motion: reduce) {
  .draw-anim path, .draw-anim circle, .draw-anim rect, .draw-anim line, .draw-anim polygon, .draw-anim polyline, .draw-anim ellipse {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Utility */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 48px 0; }
.highlight-box { background: var(--accent-glow); border: 1px solid var(--accent); border-radius: var(--radius-md); padding: 24px; margin: 24px 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.link-arrow:hover { gap: 10px; }
