/*
Theme Name: UUShop Server Guide
Theme URI: https://www.uushop.asia/
Author: UUShop
Description: 服务器购买导航站主题，面向云服务器、VPS、独立服务器和高防服务器选购入口。
Version: 1.0.0
Text Domain: uushop
*/

:root {
  --uu-bg: #f5f7f8;
  --uu-surface: #ffffff;
  --uu-ink: #0b1623;
  --uu-muted: #64748b;
  --uu-line: #dce3ea;
  --uu-deep: #07111e;
  --uu-teal: #0f766e;
  --uu-green: #15803d;
  --uu-amber: #c68b32;
  --uu-cyan: #9cc9d3;
  --uu-wrap: 1200px;
  --uu-shadow: 0 16px 40px rgba(11, 22, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--uu-ink);
  background: var(--uu-bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; }
.uu-wrap { width: min(var(--uu-wrap), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link { position:absolute; left:16px; top:-80px; z-index:1000; padding:10px 14px; background:#fff; border:1px solid var(--uu-line); border-radius:6px; }
.skip-link:focus { top:16px; }

.uu-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 247, 248, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 227, 234, .88);
}
.uu-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.uu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.uu-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #e8fbf7;
  background: linear-gradient(135deg, #07111e, #0f766e);
  border: 1px solid rgba(156, 201, 211, .45);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 17, 30, .16);
}
.uu-mark svg { width: 24px; height: 24px; stroke: currentColor; }
.uu-brand strong {
  display: block;
  color: var(--uu-deep);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
}
.uu-brand span span {
  display: block;
  margin-top: 3px;
  color: var(--uu-muted);
  font-size: 12px;
  white-space: nowrap;
}
.uu-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uu-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1e293b;
  font-weight: 760;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.uu-nav a:hover, .uu-nav .current-menu-item > a { background: #e9eef3; color: var(--uu-deep); }

.uu-hero {
  background: var(--uu-deep);
  color: #fff;
  overflow: hidden;
}
.uu-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .82fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 58px;
}
.uu-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d8b577;
  font-size: 13px;
  font-weight: 850;
}
.uu-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.uu-hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}
.uu-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #c8d5e1;
  font-size: 19px;
}
.uu-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px;
  max-width: 700px;
  padding: 8px;
  border: 1px solid rgba(156, 201, 211, .24);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.uu-search input {
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font: inherit;
}
.uu-search input::placeholder { color: #9fb1c4; }
.uu-search button, .uu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #06131f;
  background: #d8b577;
  border: 0;
  border-radius: 6px;
  font-weight: 860;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.uu-search button:hover, .uu-btn:hover { background: #e4c58c; transform: translateY(-1px); }
.uu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.uu-tags a {
  padding: 7px 11px;
  color: #dbe8f4;
  border: 1px solid rgba(219, 232, 244, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: 13px;
}

.uu-visual {
  position: relative;
  min-height: 420px;
}
.uu-visual svg { display: block; width: 100%; }
.uu-live-panel {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: min(330px, 80%);
  padding: 18px;
  border: 1px solid rgba(156, 201, 211, .34);
  border-radius: 8px;
  background: rgba(11, 22, 35, .88);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.uu-live-panel strong { display: block; margin-bottom: 12px; color: #fff; font-size: 18px; }
.uu-live-panel span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #c8d5e1;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.uu-live-panel span:last-child { border-bottom: 0; }
.uu-live-panel b { color: #8dd6c9; font-weight: 850; }

.uu-section { padding: 64px 0; }
.uu-section-head {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, .25fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.uu-section h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; color: var(--uu-deep); }
.uu-section-head p { margin: 0; color: var(--uu-muted); }
.uu-band { background: #fff; border-block: 1px solid var(--uu-line); }

.uu-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.uu-filter button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--uu-line);
  border-radius: 999px;
  background: #fff;
  color: #1f2a38;
  font-weight: 760;
  cursor: pointer;
}
.uu-filter button.is-active { background: var(--uu-deep); color: #fff; border-color: var(--uu-deep); }

.uu-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.uu-provider {
  display: grid;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--uu-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11,22,35,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.uu-provider:hover { transform: translateY(-3px); box-shadow: var(--uu-shadow); border-color: rgba(15,118,110,.38); }
.uu-provider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.uu-provider h3 { margin: 0; font-size: 21px; line-height: 1.25; color: var(--uu-deep); }
.uu-badge { padding: 4px 8px; border-radius: 999px; color: #065f46; background: #dcfce7; font-size: 12px; font-weight: 780; white-space: nowrap; }
.uu-provider p { margin: 14px 0; color: var(--uu-muted); }
.uu-provider dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: auto 0 18px; }
.uu-provider dt { color: var(--uu-muted); font-size: 12px; }
.uu-provider dd { margin: 2px 0 0; color: #172033; font-weight: 820; }
.uu-provider-actions { display: flex; gap: 10px; align-items: center; }
.uu-provider-actions a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 820;
}
.uu-provider-actions a:first-child { background: var(--uu-deep); color: #fff; }
.uu-provider-actions a:last-child { border: 1px solid var(--uu-line); color: var(--uu-teal); }

.uu-category-grid, .uu-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.uu-category, .uu-guide {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--uu-line);
  border-radius: 8px;
  background: #fff;
}
.uu-category svg { width: 34px; height: 34px; color: var(--uu-teal); stroke: currentColor; }
.uu-category h3, .uu-guide h3 { margin: 14px 0 8px; color: var(--uu-deep); font-size: 20px; }
.uu-category p, .uu-guide p { margin: 0; color: var(--uu-muted); }
.uu-guide { background: #f8fafc; }
.uu-guide a { display: inline-flex; margin-top: 14px; color: var(--uu-teal); font-weight: 820; }

.uu-checklist {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .45fr);
  gap: 18px;
}
.uu-checklist-main {
  padding: 28px;
  color: #fff;
  background: var(--uu-deep);
  border-radius: 8px;
}
.uu-checklist-main h2 { color: #fff; }
.uu-checklist-main p { color: #c8d5e1; }
.uu-checklist-main ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.uu-checklist-main li { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.05); }
.uu-rank {
  padding: 24px;
  border: 1px solid var(--uu-line);
  border-radius: 8px;
  background: #fff;
}
.uu-rank h3 { margin: 0 0 16px; font-size: 20px; }
.uu-rank ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.uu-rank li { counter-increment: rank; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--uu-line); }
.uu-rank li:last-child { border-bottom: 0; }
.uu-rank li::before { content: counter(rank); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--uu-teal); font-weight: 850; }

.uu-main { padding: 52px 0; }
.uu-post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.uu-post-card, .uu-article, .uu-sidebar-box {
  padding: 24px;
  border: 1px solid var(--uu-line);
  border-radius: 8px;
  background: #fff;
}
.uu-post-card h2, .uu-post-card h3 { margin: 0 0 10px; font-size: 24px; color: var(--uu-deep); }
.uu-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--uu-muted); font-size: 13px; }
.uu-meta span { padding: 4px 8px; border: 1px solid var(--uu-line); border-radius: 999px; background: #f8fafc; }
.uu-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.uu-article h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.uu-article-content { color: #273244; font-size: 17px; line-height: 1.86; }
.uu-article-content h2 { margin: 34px 0 12px; font-size: 26px; color: var(--uu-deep); }
.uu-article-content ul, .uu-article-content ol { padding-left: 1.2em; }
.uu-sidebar { display: grid; gap: 14px; align-content: start; }
.uu-sidebar-box h2, .uu-sidebar-box h3 { margin: 0 0 12px; color: var(--uu-deep); }
.uu-sidebar-box ul { margin: 0; padding-left: 18px; color: var(--uu-muted); }
.uu-empty { padding: 30px; border: 1px dashed var(--uu-line); border-radius: 8px; background: #fff; color: var(--uu-muted); }

.uu-footer {
  padding: 38px 0;
  color: #c8d5e1;
  background: var(--uu-deep);
}
.uu-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.uu-footer strong { display: block; color: #fff; font-size: 18px; }
.uu-footer p { margin: 6px 0 0; color: #95a6b7; }
.uu-footer a { color: #d8b577; }

@keyframes uuPulse {
  0%, 100% { opacity: .72; transform: scaleX(.86); }
  50% { opacity: 1; transform: scaleX(1); }
}
.uu-flow-line { transform-origin: center; animation: uuPulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1020px) {
  .uu-topbar, .uu-hero-inner, .uu-section-head, .uu-checklist, .uu-content-layout, .uu-footer-inner { grid-template-columns: 1fr; }
  .uu-nav ul { justify-content: flex-start; flex-wrap: wrap; }
  .uu-provider-grid, .uu-category-grid, .uu-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .uu-hero-inner { min-height: auto; }
}
@media (max-width: 700px) {
  .uu-wrap { width: min(100% - 32px, var(--uu-wrap)); }
  .uu-topbar { padding: 14px 0; gap: 12px; }
  .uu-brand strong { font-size: 19px; }
  .uu-brand span span { white-space: normal; }
  .uu-nav a { min-height: 38px; padding: 7px 9px; font-size: 13px; }
  .uu-hero-inner { padding: 46px 0 38px; gap: 30px; }
  .uu-hero h1 {
    max-width: 100%;
    font-size: clamp(31px, 9.4vw, 40px);
    line-height: 1.08;
  }
  .uu-hero p { font-size: 17px; }
  .uu-search { grid-template-columns: 1fr; }
  .uu-provider-grid, .uu-category-grid, .uu-guide-grid, .uu-post-list, .uu-checklist-main ul { grid-template-columns: 1fr; }
  .uu-visual { min-height: 330px; }
  .uu-live-panel { position: relative; width: 100%; margin-top: 14px; }
  .uu-section { padding: 44px 0; }
}
