/*
Theme Name: LinkCore Supply Chain
Theme URI: https://example.com/linkcore
Author: Codex
Description: Custom WordPress theme for robotics and intelligent equipment supply chain services. Built with ACF-driven maintainable pages.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: linkcore
*/

:root {
  --lc-font: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  --lc-color-navy-950: #020815;
  --lc-color-navy-900: #031126;
  --lc-color-navy-800: #041c3d;
  --lc-color-blue-700: #1267d8;
  --lc-color-blue-600: #1678ff;
  --lc-color-blue-500: #1594ff;
  --lc-color-cyan-500: #22d7ff;
  --lc-color-violet-600: #684bdc;
  --lc-color-text: #10213d;
  --lc-color-muted: #5a6a82;
  --lc-color-soft: #f4f8fd;
  --lc-color-white: #ffffff;
  --lc-space-1: 4px;
  --lc-space-2: 8px;
  --lc-space-3: 12px;
  --lc-space-4: 16px;
  --lc-space-5: 20px;
  --lc-space-6: 24px;
  --lc-space-8: 32px;
  --lc-space-10: 40px;
  --lc-space-12: 48px;
  --lc-radius-xs: 2px;
  --lc-radius-sm: 4px;
  --lc-radius-md: 8px;
  --lc-shadow-card: 0 8px 24px rgba(9, 31, 63, .1);
  --lc-shadow-blue: 0 0 48px rgba(21, 148, 255, .34);
  --lc-max: 1728px;
  --lc-content: 1632px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lc-color-soft);
  color: var(--lc-color-text);
  font-family: var(--lc-font);
  letter-spacing: 0;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.lc-container {
  width: min(100% - 96px, var(--lc-content));
  margin: 0 auto;
}

.lc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 8, 21, .96);
  border-bottom: 1px solid rgba(68, 155, 255, .14);
  backdrop-filter: blur(14px);
}

.lc-site-header__inner {
  display: flex;
  align-items: center;
  height: 78px;
  gap: 64px;
}

.lc-brand {
  display: flex;
  align-items: center;
  min-width: 220px;
  color: var(--lc-color-white);
  font-weight: 700;
}

.lc-brand__mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin-right: 12px;
  border: 3px solid #d8f1ff;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}

.lc-brand__mark::after {
  position: absolute;
  inset: 10px 14px;
  content: "";
  border-left: 8px solid var(--lc-color-blue-500);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.lc-brand__text {
  display: grid;
  gap: 2px;
  font-size: 20px;
  line-height: 1;
}

.lc-brand__text small {
  color: #d9e8f6;
  font-size: 14px;
  font-weight: 600;
}

.lc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  gap: 58px;
  color: #e8f3ff;
  font-size: 15px;
  white-space: nowrap;
}

.lc-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.lc-nav a.is-active::after,
.lc-nav a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  content: "";
  background: var(--lc-color-blue-600);
}

.lc-header-tools {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d9e8f6;
  font-size: 14px;
}

.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--lc-radius-sm);
  background: var(--lc-color-blue-600);
  color: var(--lc-color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lc-btn--outline {
  background: rgba(2, 8, 21, .42);
  border-color: rgba(255, 255, 255, .75);
}

.lc-btn--wide {
  min-width: 208px;
}

.lc-section {
  padding: 34px 0;
}

.lc-section--dark {
  background: linear-gradient(180deg, #06285b, #03152f);
  color: var(--lc-color-white);
}

.lc-title {
  position: relative;
  margin: 0 0 26px;
  color: #111b4a;
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
}

.lc-section--dark .lc-title,
.lc-map .lc-title {
  color: var(--lc-color-white);
}

.lc-title::before,
.lc-title::after {
  display: inline-block;
  width: 92px;
  height: 1px;
  margin: 0 18px 8px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(22, 120, 255, .85));
}

.lc-title::after {
  background: linear-gradient(90deg, rgba(22, 120, 255, .85), transparent);
}

.lc-grid {
  display: grid;
  gap: 22px;
}

.lc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.lc-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.lc-card {
  min-height: 110px;
  padding: 24px;
  border: 1px solid rgba(16, 72, 145, .12);
  border-radius: var(--lc-radius-md);
  background: var(--lc-color-white);
  box-shadow: var(--lc-shadow-card);
}

.lc-card h3 {
  margin: 0 0 9px;
  color: #09204a;
  font-size: 18px;
  line-height: 1.35;
}

.lc-card p {
  margin: 0;
  color: var(--lc-color-muted);
  font-size: 13px;
  line-height: 1.65;
}

.lc-icon-ring {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  border: 1px solid var(--lc-color-blue-700);
  border-radius: 50%;
  color: var(--lc-color-blue-700);
  font-size: 28px;
  font-weight: 700;
}

.lc-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--lc-color-white);
  background:
    radial-gradient(circle at 71% 38%, rgba(15, 130, 255, .42), transparent 25%),
    linear-gradient(105deg, rgba(2, 8, 21, .98) 0%, rgba(2, 18, 43, .98) 44%, rgba(2, 9, 23, .98) 100%);
}

.lc-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(28, 136, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 136, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%);
}

.lc-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  min-height: 560px;
  gap: 54px;
  align-items: center;
}

.lc-hero h1 {
  margin: 0 0 22px;
  color: var(--lc-color-white);
  font-size: 54px;
  line-height: 1.26;
}

.lc-hero h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
}

.lc-hero p {
  max-width: 660px;
  margin: 0 0 13px;
  color: #dbeaff;
  font-size: 16px;
  line-height: 1.7;
}

.lc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.lc-hero-visual {
  position: relative;
  min-height: 500px;
}

.lc-orbit {
  position: absolute;
  left: 5%;
  right: 4%;
  bottom: 58px;
  height: 258px;
  border: 2px solid rgba(41, 174, 255, .55);
  border-radius: 50%;
  box-shadow: var(--lc-shadow-blue), inset 0 0 34px rgba(34, 215, 255, .2);
  transform: rotate(-2deg);
}

.lc-orbit::before,
.lc-orbit::after {
  position: absolute;
  inset: 34px 52px;
  content: "";
  border: 1px solid rgba(34, 215, 255, .34);
  border-radius: 50%;
}

.lc-orbit::after {
  inset: 76px 120px;
}

.lc-machine-arm {
  position: absolute;
  left: 43%;
  top: 64px;
  width: 270px;
  height: 260px;
  transform: translateX(-30%) rotate(-7deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .38));
}

.lc-machine-arm span {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, #eef5ff, #849ab7);
}

.lc-arm-base {
  left: 85px;
  bottom: 0;
  width: 96px;
  height: 56px;
  border-radius: 12px 12px 6px 6px;
}

.lc-arm-joint-a,
.lc-arm-joint-b {
  border: 18px solid #cbd9ea;
  background: #f1f6ff;
  border-radius: 50%;
}

.lc-arm-joint-a {
  left: 78px;
  bottom: 45px;
  width: 104px;
  height: 104px;
}

.lc-arm-joint-b {
  left: 150px;
  top: 52px;
  width: 84px;
  height: 84px;
}

.lc-arm-link-a {
  left: 110px;
  top: 94px;
  width: 56px;
  height: 134px;
  border-radius: 28px;
  transform: rotate(19deg);
}

.lc-arm-link-b {
  left: 148px;
  top: 50px;
  width: 132px;
  height: 38px;
  border-radius: 24px;
  transform: rotate(-17deg);
}

.lc-arm-tool {
  right: -10px;
  top: 22px;
  width: 76px;
  height: 42px;
  border-radius: 10px;
}

.lc-hero-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid var(--lc-color-blue-500);
  border-radius: 50%;
  background: rgba(1, 32, 77, .88);
  color: var(--lc-color-white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 28px rgba(21, 148, 255, .42);
}

.lc-hero-node:nth-of-type(3) { left: 4%; top: 38%; }
.lc-hero-node:nth-of-type(4) { left: 16%; top: 9%; }
.lc-hero-node:nth-of-type(5) { right: 10%; top: 11%; }
.lc-hero-node:nth-of-type(6) { right: 0; top: 42%; }
.lc-hero-node:nth-of-type(7) { left: 49%; bottom: 8%; }

.lc-capability {
  min-height: 180px;
  color: var(--lc-color-white);
  background: linear-gradient(145deg, rgba(4, 78, 159, .96), rgba(3, 25, 65, .96));
  border-color: rgba(65, 174, 255, .35);
}

.lc-capability:nth-child(2) {
  background: linear-gradient(145deg, rgba(0, 130, 137, .95), rgba(4, 43, 78, .96));
}

.lc-capability:nth-child(4) {
  background: linear-gradient(145deg, rgba(89, 69, 184, .95), rgba(24, 24, 78, .96));
}

.lc-capability h3,
.lc-capability p {
  color: var(--lc-color-white);
}

.lc-metric {
  display: block;
  margin-top: 22px;
  color: var(--lc-color-cyan-500);
  font-size: 30px;
  line-height: 1.1;
}

.lc-image-card {
  padding: 0;
  overflow: hidden;
}

.lc-image-card__media {
  height: 150px;
  background:
    linear-gradient(135deg, rgba(13, 99, 174, .22), rgba(255, 255, 255, .08)),
    repeating-linear-gradient(90deg, #9fbad3 0 18px, #d6e4ef 18px 36px);
}

.lc-image-card__body {
  padding: 18px;
}

.lc-system-band {
  background:
    radial-gradient(circle at 50% 48%, rgba(22, 165, 255, .46), transparent 20%),
    linear-gradient(180deg, #031a3d, #020b19);
  color: var(--lc-color-white);
}

.lc-system-map {
  display: grid;
  grid-template-columns: 1fr 360px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 300px;
}

.lc-system-list {
  display: grid;
  gap: 16px;
}

.lc-system-list .lc-card {
  min-height: 74px;
  padding: 18px 22px;
  background: rgba(8, 48, 104, .88);
  border-color: rgba(72, 169, 255, .32);
}

.lc-system-list h3,
.lc-system-list p {
  color: var(--lc-color-white);
}

.lc-wire-robot {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(48, 177, 255, .44);
  border-radius: 50%;
  color: var(--lc-color-cyan-500);
  font-size: 112px;
  box-shadow: inset 0 0 42px rgba(34, 215, 255, .24), 0 0 36px rgba(21, 148, 255, .2);
}

.lc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.lc-tags span {
  min-width: 82px;
  padding: 8px 10px;
  border-radius: var(--lc-radius-sm);
  background: #f1f5fa;
  color: #435168;
  font-size: 13px;
  text-align: center;
}

.lc-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.lc-step {
  padding: 18px 12px;
  border-radius: var(--lc-radius-md);
  background: var(--lc-color-white);
  text-align: center;
  box-shadow: var(--lc-shadow-card);
}

.lc-step strong {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--lc-color-blue-600);
  color: var(--lc-color-white);
}

.lc-solution-card {
  min-height: 154px;
  color: var(--lc-color-white);
  background:
    linear-gradient(135deg, rgba(2, 18, 43, .96), rgba(14, 102, 177, .78)),
    var(--lc-color-navy-900);
}

.lc-solution-card h3,
.lc-solution-card p {
  color: var(--lc-color-white);
}

.lc-map {
  padding: 48px 0;
  color: var(--lc-color-white);
  background:
    radial-gradient(circle at 74% 44%, rgba(34, 215, 255, .44), transparent 18%),
    linear-gradient(180deg, #032a63, #031126);
}

.lc-map__inner {
  display: grid;
  grid-template-columns: .36fr .64fr;
  gap: 44px;
  align-items: center;
}

.lc-map h2 {
  margin: 0 0 20px;
  color: var(--lc-color-white);
  font-size: 32px;
  line-height: 1.35;
}

.lc-world {
  min-height: 250px;
  border: 1px solid rgba(72, 169, 255, .26);
  border-radius: var(--lc-radius-md);
  background:
    radial-gradient(circle at 62% 46%, rgba(34, 215, 255, .56), transparent 8%),
    linear-gradient(rgba(68, 155, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 155, 255, .12) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.lc-about-row {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 48px;
  align-items: center;
}

.lc-about-row h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.lc-about-row p {
  margin: 0;
  color: var(--lc-color-muted);
  line-height: 1.8;
}

.lc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lc-stat {
  padding: 22px 16px;
  border-radius: var(--lc-radius-sm);
  background: var(--lc-color-white);
  text-align: center;
  box-shadow: var(--lc-shadow-card);
}

.lc-stat strong {
  display: block;
  color: var(--lc-color-blue-700);
  font-size: 34px;
  line-height: 1.1;
}

.lc-footer-cta,
.lc-site-footer {
  color: var(--lc-color-white);
  background: var(--lc-color-navy-900);
}

.lc-footer-cta {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.lc-footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.lc-footer-cta h2 {
  margin: 0 0 8px;
  color: var(--lc-color-white);
  font-size: 30px;
}

.lc-footer-cta p {
  margin: 0;
  color: #c4d4e8;
}

.lc-site-footer {
  padding: 36px 0 26px;
}

.lc-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr) 180px;
  gap: 34px;
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.85;
}

.lc-footer-grid h4 {
  margin: 0 0 12px;
  color: var(--lc-color-white);
  font-size: 16px;
}

.lc-qr {
  display: grid;
  place-items: center;
  height: 132px;
  border-radius: var(--lc-radius-sm);
  background:
    linear-gradient(45deg, #fff 25%, transparent 25% 75%, #fff 75%),
    linear-gradient(45deg, #111 25%, transparent 25% 75%, #111 75%);
  background-color: #fff;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  color: #111;
  font-weight: 700;
}

.lc-page-hero {
  padding: 92px 0;
  color: var(--lc-color-white);
  background:
    radial-gradient(circle at 74% 38%, rgba(21, 148, 255, .36), transparent 22%),
    linear-gradient(105deg, #020815, #05275a);
}

.lc-page-hero h1 {
  margin: 0 0 16px;
  font-size: 48px;
}

.lc-page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeaff;
  font-size: 18px;
  line-height: 1.7;
}

.lc-contact-form {
  display: grid;
  gap: 16px;
}

.lc-field {
  display: grid;
  gap: 8px;
}

.lc-field input,
.lc-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd8ea;
  border-radius: var(--lc-radius-sm);
  background: #fff;
}

.lc-field textarea {
  min-height: 132px;
  resize: vertical;
}

.lc-form-message {
  padding: 12px 14px;
  border-radius: var(--lc-radius-sm);
  background: #eaf6ff;
  color: #0d4b98;
}

@media (max-width: 1280px) {
  .lc-nav {
    gap: 28px;
  }

  .lc-hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 980px) {
  body.admin-bar .lc-site-header {
    top: 46px;
  }

  .lc-container {
    width: min(100% - 32px, 760px);
  }

  .lc-site-header__inner {
    height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 18px;
  }

  .lc-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .lc-hero__inner,
  .lc-system-map,
  .lc-map__inner,
  .lc-about-row {
    grid-template-columns: 1fr;
  }

  .lc-grid--3,
  .lc-grid--4,
  .lc-grid--5,
  .lc-process,
  .lc-stats,
  .lc-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lc-container {
    width: min(100% - 24px, 520px);
  }

  .lc-brand {
    min-width: 0;
  }

  .lc-header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .lc-hero,
  .lc-hero__inner {
    min-height: auto;
  }

  .lc-hero__inner {
    padding: 56px 0;
  }

  .lc-hero h1,
  .lc-page-hero h1 {
    font-size: 32px;
  }

  .lc-hero-visual {
    min-height: 360px;
  }

  .lc-machine-arm {
    left: 36%;
    transform: scale(.72) rotate(-7deg);
  }

  .lc-hero-node {
    width: 78px;
    height: 78px;
    font-size: 12px;
  }

  .lc-title {
    font-size: 24px;
  }

  .lc-title::before,
  .lc-title::after {
    width: 42px;
    margin-inline: 10px;
  }

  .lc-grid--3,
  .lc-grid--4,
  .lc-grid--5,
  .lc-process,
  .lc-stats,
  .lc-footer-grid {
    grid-template-columns: 1fr;
  }

  .lc-actions,
  .lc-footer-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }
}
