/*
Theme Name: Zokiti Tech Growth
Theme URI: https://www.zokiti.cn/
Author: Zokiti
Author URI: https://www.zokiti.cn/
Description: 动态粒子科技官网主题，适用于软件开发、硬件开发、小智 AI 代理、知识产权申请与科技产品海外众筹服务。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zokiti
*/

:root {
  color-scheme: dark;
  --bg: #081115;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f4fbf8;
  --muted: #b8c7c2;
  --teal: #28d7c4;
  --amber: #f0b34f;
  --coral: #ff7863;
  --green: #7ed66f;
  --violet: #a58bff;
  --blue: #63a8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 8%, rgba(40, 215, 196, 0.18), transparent 28rem),
    radial-gradient(circle at 12% 25%, rgba(255, 120, 99, 0.13), transparent 24rem),
    linear-gradient(135deg, #071014 0%, #10232a 48%, #151614 100%);
  color: var(--text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    system-ui,
    sans-serif;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 0.8rem 0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 0 1 300px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40, 215, 196, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 215, 196, 0.32), rgba(99, 168, 255, 0.16));
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.4vw, 1.1rem);
  margin: 0;
  padding: 0;
  color: #d7e5e1;
  font-size: 0.92rem;
  list-style: none;
  flex: 1 1 auto;
}

.nav-item {
  position: relative;
  padding-bottom: 0.55rem;
}

.nav-item::after {
  position: absolute;
  top: 100%;
  right: -0.45rem;
  left: -0.45rem;
  height: 0.85rem;
  content: "";
}

.site-header .nav-heading {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 800;
}

.nav a,
.nav-title {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  content: "";
}

.nav-item:hover .nav-title::after,
.nav-title:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 0.08rem);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 17, 21, 0.96);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  visibility: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 180ms;
}

.nav-dropdown--business {
  min-width: 230px;
}

.nav-dropdown > a,
.nav-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-radius: 6px;
  padding: 0.45rem 0.62rem;
  color: #dcebe7;
  white-space: nowrap;
}

.nav-submenu {
  position: relative;
}

.nav-submenu > a::after {
  margin-left: 1rem;
  color: rgba(216, 235, 231, 0.72);
  content: "›";
}

.nav-submenu::after {
  position: absolute;
  top: -0.25rem;
  left: 100%;
  width: 0.75rem;
  height: calc(100% + 0.5rem);
  content: "";
}

.nav-dropdown > a:hover,
.nav-dropdown > a:focus-visible,
.nav-submenu:hover > a,
.nav-submenu:focus-within > a {
  background: rgba(40, 215, 196, 0.14);
  color: #fff;
}

.nav-flyout {
  position: absolute;
  top: -0.45rem;
  left: calc(100% + 0.45rem);
  z-index: 22;
  width: min(340px, 72vw);
  border: 1px solid rgba(40, 215, 196, 0.28);
  border-radius: 8px;
  background: rgba(8, 17, 21, 0.98);
  box-shadow: var(--shadow);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  visibility: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 0s linear 180ms;
}

.nav-submenu:hover .nav-flyout,
.nav-submenu:focus-within .nav-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.nav-flyout h3 {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.nav-flyout p {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.nav-flyout .flyout-link {
  display: inline-flex;
  min-height: 34px;
  border: 1px solid rgba(40, 215, 196, 0.35);
  border-radius: 6px;
  padding: 0.35rem 0.62rem;
  color: var(--teal);
  font-weight: 800;
}

.nav-flyout .flyout-link:hover,
.nav-flyout .flyout-link:focus-visible {
  background: rgba(40, 215, 196, 0.14);
  color: #fff;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}

.header-call,
.btn,
.wp-block-search__button,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-call {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.52rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.15rem, 6.2vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.72rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.lead,
.feature-copy p,
.contact-copy p,
.service-card p,
.timeline p,
.post-card p,
.article-meta,
.entry-content {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin-bottom: 1.7rem;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.btn,
.wp-block-search__button,
.comment-form input[type="submit"] {
  min-width: 142px;
  border: 1px solid transparent;
  padding: 0.82rem 1.05rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary,
.wp-block-search__button,
.comment-form input[type="submit"] {
  background: linear-gradient(135deg, var(--teal), #63a8ff);
  color: #041014;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.metrics div {
  padding: 1rem;
}

.metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics dt {
  font-size: 1.42rem;
  font-weight: 900;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(10, 29, 35, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(40, 215, 196, 0.26);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(600px) rotateX(56deg) rotateZ(-9deg);
  content: "";
}

.visual-card {
  position: absolute;
  z-index: 1;
  width: min(58%, 330px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.78);
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.visual-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.visual-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.visual-card.software {
  top: 12%;
  left: 8%;
  border-color: rgba(40, 215, 196, 0.42);
}

.visual-card.hardware {
  top: 35%;
  right: 7%;
  border-color: rgba(99, 168, 255, 0.42);
}

.visual-card.ip {
  right: 18%;
  bottom: 11%;
  border-color: rgba(240, 179, 79, 0.42);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(40, 215, 196, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 18s linear infinite;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 30px rgba(40, 215, 196, 0.8);
  content: "";
}

.orbit::before {
  top: -7px;
  left: 50%;
}

.orbit::after {
  right: 28px;
  bottom: 16px;
  background: var(--coral);
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.section,
.feature-band,
.contact-section,
.blog-section,
.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.7rem;
}

.service-grid,
.project-grid,
.post-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-grid,
.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.timeline article,
.post-card,
.article-shell,
.sidebar-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.service-card,
.project-card,
.timeline article,
.post-card {
  min-height: 220px;
  padding: 1.25rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.project-card:hover,
.timeline article:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 215, 196, 0.45);
  background: var(--surface-strong);
}

.project-section {
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.project-card {
  background: linear-gradient(135deg, rgba(40, 215, 196, 0.12), rgba(255, 255, 255, 0.065));
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(40, 215, 196, 0.16);
  color: var(--teal);
}

.icon-badge.accent {
  background: rgba(99, 168, 255, 0.16);
  color: var(--blue);
}

.icon-badge.warm {
  background: rgba(240, 179, 79, 0.16);
  color: var(--amber);
}

.icon-badge.green {
  background: rgba(126, 214, 111, 0.16);
  color: var(--green);
}

.icon-badge.coral {
  background: rgba(255, 120, 99, 0.16);
  color: var(--coral);
}

.icon-badge.violet {
  background: rgba(165, 139, 255, 0.16);
  color: var(--violet);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-copy {
  max-width: 560px;
}

.feature-points {
  display: grid;
  gap: 0.8rem;
}

.feature-points div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 84px;
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(40, 215, 196, 0.14), rgba(255, 255, 255, 0.06));
  padding: 1rem;
}

.feature-points strong {
  color: #fff;
}

.feature-points span {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline span {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--coral);
  font-weight: 900;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  font-size: 1.18rem;
}

.post-card time,
.article-meta {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-card .read-more {
  margin-top: auto;
  color: var(--teal);
  font-weight: 800;
}

.archive-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0 1rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.2rem;
}

.content-layout > .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-shell,
.sidebar-box {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.entry-content h2,
.entry-content h3 {
  color: var(--text);
  margin-top: 1.8rem;
}

.entry-content img,
.wp-block-image img {
  border-radius: 8px;
}

.wp-block-search__input,
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  color: var(--text);
}

.wp-block-search {
  display: grid;
  gap: 0.7rem;
}

.nav-links,
.post-navigation,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.nav-links a,
.page-numbers {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.58rem 0.82rem;
  background: rgba(255, 255, 255, 0.06);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-panel a,
.contact-panel div {
  min-height: 118px;
  padding: 1.15rem;
  background: rgba(9, 25, 31, 0.88);
}

.contact-panel span,
.contact-panel strong {
  display: block;
}

.contact-panel span {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-panel strong {
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    left: 0;
    transform: translate(0, 8px);
  }

  .nav-flyout {
    top: 0;
    left: calc(100% + 0.5rem);
    width: min(310px, 60vw);
  }

  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    transform: translate(0, 0);
  }

  .hero,
  .feature-band,
  .contact-section,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: 460px;
  }

  .service-grid,
  .project-grid,
  .timeline,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .feature-band,
  .contact-section,
  .site-footer,
  .blog-section,
  .content-wrap,
  .archive-hero {
    width: min(100% - 24px, 1180px);
  }

  .header-call {
    width: 100%;
  }

  .nav {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav-item,
  .nav a {
    flex: 0 0 auto;
  }

  .nav-dropdown {
    min-width: 220px;
  }

  .nav-flyout {
    position: static;
    display: none;
    width: auto;
    margin: 0.25rem 0.25rem 0.45rem;
    transform: none;
  }

  .nav-submenu:hover .nav-flyout,
  .nav-submenu:focus-within .nav-flyout {
    display: block;
    transform: none;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .metrics,
  .service-grid,
  .project-grid,
  .timeline,
  .post-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-card,
  .project-card,
  .timeline article,
  .post-card {
    min-height: auto;
  }

  .feature-points div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .visual-card {
    width: 72%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .service-card,
  .timeline article,
  .post-card,
  .nav a::after {
    transition: none;
  }

  .orbit {
    animation: none;
  }

  #particle-canvas {
    display: none;
  }
}
