/* ============================================================
   style-tech-speed.css — 性能优化技术（独立布局：速度圆环 + 提速措施对开）
   OMICA 网站建设 · 极简卫浴风
   ============================================================ */

/* ---------- Hero：速度圆环 ---------- */
.tsp-hero { position: relative; background: var(--ink); color: #fff; padding: 178px 0 84px; overflow: hidden; }
.tsp-hero::before { content: ""; position: absolute; right: -220px; top: -220px; width: 660px; height: 660px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 64%); pointer-events: none; }
.tsp-hero::after { content: ""; position: absolute; left: -160px; bottom: -220px; width: 480px; height: 480px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.16); pointer-events: none; }
.tsp-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.tsp-hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .34em; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.tsp-hero-kicker::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.7); }
.tsp-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.28; color: #fff; }
.tsp-hero-desc { margin: 24px 0 34px; font-size: 16px; line-height: 2; color: rgba(255,255,255,.72); max-width: 540px; }
.tsp-speed { position: relative; justify-self: center; width: min(400px, 40vw); height: min(400px, 40vw); }
.tsp-speed-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); animation: tspSpin 46s linear infinite; }
.tsp-speed-ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.tsp-speed-ring.outer { inset: -8%; border-style: dashed; animation-direction: reverse; }
@keyframes tspSpin { to { transform: rotate(360deg); } }
.tsp-speed-disc { position: absolute; inset: 18%; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.tsp-speed-disc img { width: 100%; height: 100%; object-fit: cover; }
.tsp-speed-badge { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 34%); width: 110px; height: 110px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.tsp-speed-badge b { font-size: 22px; font-weight: 800; }
.tsp-speed-badge span { font-size: 10.5px; color: var(--gray-600); letter-spacing: .1em; margin-top: 2px; }

/* ---------- 提速措施对开 ---------- */
.tsp-opt { background: var(--white); position: relative; overflow: hidden; }
.tsp-opt::after { content: ""; position: absolute; right: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 1px dashed var(--gray-300); pointer-events: none; }
.tsp-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; position: relative; z-index: 2; }
.tsp-opt-card { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 26px 24px; background: var(--gray-50); transition: all var(--transition); }
.tsp-opt-card:hover { border-color: var(--ink); transform: translateX(6px); }
.tsp-opt-num { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.tsp-opt-card h3 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.tsp-opt-card p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.85; }

/* ---------- 量测 ---------- */
.tsp-metric { background: var(--gray-50); overflow: hidden; position: relative; }
.tsp-metric::before { content: ""; position: absolute; left: -160px; bottom: -160px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(27,27,27,.05), transparent 62%); pointer-events: none; }
.tsp-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; }
.tsp-metric-item { text-align: center; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 30px 20px; transition: all var(--transition); }
.tsp-metric-item:nth-child(2), .tsp-metric-item:nth-child(4) { transform: translateY(20px); }
.tsp-metric-item:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tsp-metric-item:nth-child(2):hover, .tsp-metric-item:nth-child(4):hover { transform: translateY(-4px); }
.tsp-metric-item b { display: block; font-size: 28px; font-weight: 800; color: var(--ink); }
.tsp-metric-item span { display: block; font-size: 13px; color: var(--gray-600); margin-top: 8px; }

/* ---------- CTA ---------- */
.tsp-sec-cta { background: var(--ink); color: #fff; overflow: hidden; }
.tsp-sec-cta::before { content: ""; position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%); width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.tsp-sec-cta .cta-inner p { color: rgba(255,255,255,.72); }
.tsp-sec-cta .cta-contact { color: rgba(255,255,255,.85); }
.tsp-sec-cta .cta-contact a { color: #fff; }
.tsp-sec-cta .cta-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.6); background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); box-shadow: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tsp-hero { padding-top: 148px; }
  .tsp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .tsp-speed { width: min(340px, 72vw); height: min(340px, 72vw); }
  .tsp-opt-grid { grid-template-columns: 1fr; }
  .tsp-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .tsp-metric-item:nth-child(2), .tsp-metric-item:nth-child(4) { transform: none; }
}
@media (max-width: 640px) {
  .tsp-hero { padding: 132px 0 56px; }
  .tsp-metric-grid { grid-template-columns: 1fr; }
}
