/*
Theme Name: Drones
Theme URI: https://www.shopagg.com/
Author: ShopAGG
Author URI: https://www.shopagg.com/
Description: 极简黑白风格的 B2B 无人机及无人机系统网站主题，设计灵感源自高端工业产品网站。
Version: 1.0.0
License: MIT
*/

:root {
  --drones-blue: #0b5cff;
  --drones-ink: #050505;
  --drones-muted: #5f6673;
  --drones-border: #e5e7eb;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

img,
video {
  max-width: 100%;
}

.font-condensed {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: 0;
}

.drones-logo-text {
  position: relative;
  display: inline-block;
  font-family: "Arial Black", "Arial Narrow", Impact, sans-serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: currentColor;
}

.drones-logo-text::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.04em;
  bottom: -0.15em;
  height: 2px;
  background: currentColor;
  transform: skewX(-18deg);
}

.drones-nav-link {
  position: relative;
}

.drones-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.drones-nav-link:hover::after {
  transform: scaleX(1);
}

.drones-hero {
  height: clamp(560px, 62.5vw, 900px);
  min-height: calc(100svh - 80px);
}

.drones-hero__media {
  position: absolute;
  inset: 0;
}

.drones-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.26)),
    linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 42%);
  pointer-events: none;
}

.drones-hero__copy {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 5;
  width: min(760px, calc(100% - 2rem));
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.72);
}

.drones-hero__copy h1 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.drones-hero__line {
  display: block;
  width: 120px;
  height: 3px;
  margin: 1.25rem auto 1rem;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
}

.drones-hero__copy p {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(0.9rem, 1.3vw, 1.25rem);
  line-height: 1.6;
}

.drones-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: none;
}

.drones-hero-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.drones-hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

.why-tab {
  background: #fff;
  color: #111827;
}

.why-tab.is-active {
  background: var(--drones-blue);
  color: #fff;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.drones-input {
  width: 100%;
  border: 1px solid var(--drones-border);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--drones-ink);
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.drones-input:focus {
  border-color: var(--drones-blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12);
}

.drones-input::placeholder {
  color: #9ca3af;
}

.product-swiper-button {
  color: #050505 !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--drones-border);
}

.product-swiper-button::after {
  font-size: 14px !important;
  font-weight: 900;
}

.rich-content {
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.85;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: #050505;
  font-weight: 800;
  line-height: 1.2;
  margin: 1.4em 0 0.6em;
}

.rich-content p {
  margin: 0 0 1em;
}

.rich-content img {
  height: auto;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-content th,
.rich-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
}

@media (max-width: 767px) {
  .drones-hero {
    min-height: 620px;
  }

  .drones-hero__copy {
    bottom: 10%;
  }

  .rich-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(11, 92, 255, 0.26);
  outline-offset: 2px;
}

.site-float-contact {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 45;
}

.site-float-contact__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #050505;
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-float-contact__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(340px, calc(100vw - 2rem));
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-float-contact.is-open .site-float-contact__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-float-contact__title {
  margin: 0;
  color: #050505;
  font-weight: 900;
}

.site-float-contact__desc {
  margin: 0.5rem 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-float-contact__item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f3f4f6;
  color: #111827;
  font-size: 0.875rem;
}

.site-float-contact__item strong {
  grid-column: 2;
  font-weight: 600;
}

.site-float-contact__cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  background: var(--drones-blue);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
