/*
Theme Name: 海纳顺鑫官网
Theme URI: https://www.bjhnsx.com/
Author: 北京海纳顺鑫
Author URI: https://www.bjhnsx.com/
Description: 北京海纳顺鑫官网，聚焦工业门、自动门、出入口解决方案
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bjhnsx
Tags: business, enterprise, corporate, modern
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1f38;
  --panel: rgba(8, 22, 43, 0.72);
  --panel-solid: #0f2443;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ecf4ff;
  --muted: #9eb2ca;
  --red: #df2537;
  --red-soft: #ff5b63;
  --blue: #0f6bff;
  --blue-soft: #5eb2ff;
  --cyan: #79d8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1200px, calc(100vw - 40px));
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(223, 37, 55, 0.2), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(15, 107, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #08111e 0%, #081a31 38%, #06101d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 80px 0;
}

.section-title {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title h2,
.hero-copy h1 {
  margin: 0;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.section-title h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.section-title p,
.hero-copy p,
.card p,
.stat-label,
.timeline-item p,
.footer-copy,
.info-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 12, 24, 0.78);
  backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-shell {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(223, 37, 55, 0.92), rgba(15, 107, 255, 0.96));
  box-shadow: 0 18px 34px rgba(10, 50, 121, 0.32);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-badge::before,
.brand-badge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 12px;
  transform: skewX(-16deg);
}

.brand-badge::after {
  inset: 14px;
  border-color: rgba(255, 255, 255, 0.34);
}

.brand-text strong,
.nav-link,
.button,
.product-tag,
.menu-toggle,
.hero-kicker span,
.stat-value {
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(236, 244, 255, 0.72);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(236, 244, 255, 0.86);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
  background: linear-gradient(90deg, var(--red-soft), var(--blue-soft));
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f42e40, #0f6bff);
  box-shadow: 0 18px 40px rgba(15, 72, 178, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.menu-toggle {
  display: none;
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 16px);
  display: flex;
  align-items: stretch;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    radial-gradient(circle at 15% 20%, rgba(223, 37, 55, 0.38), transparent 26%),
    radial-gradient(circle at 88% 30%, rgba(15, 107, 255, 0.4), transparent 24%),
    linear-gradient(120deg, #05111c 14%, #12345e 44%, #08111c 100%);
  opacity: 0.58;
  animation: pulseBackground 10s linear infinite alternate;
}

.hero-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 17, 28, 0.8);
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video.loaded + .hero-loading {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(15, 107, 255, 0.3);
  border-top-color: #0f6bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hero-fallback::before,
.hero-fallback::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 100%);
  transform: rotate(8deg) translateX(-55%);
  animation: scanBeam 7s ease-in-out infinite;
}

.hero-fallback::after {
  transform: rotate(-8deg) translateX(55%);
  animation-duration: 9s;
  animation-delay: -4s;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.88) 10%, rgba(4, 12, 24, 0.58) 44%, rgba(6, 19, 37, 0.84) 100%),
    linear-gradient(180deg, rgba(2, 8, 16, 0.08), rgba(2, 8, 16, 0.7));
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: auto;
  padding: 20px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 38px;
  align-items: end;
}

.hero-copy {
  max-width: 900px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 64px);
  max-width: 100%;
  text-transform: uppercase;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(16px, 1.8vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
  max-width: 720px;
}

.stat-card,
.card,
.contact-panel,
.footer-panel,
.about-panel,
.quote-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 28, 53, 0.92), rgba(8, 20, 36, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stat-card {
  padding: 22px 20px;
  border-radius: 18px;
}

.stat-card::before,
.card::before,
.contact-panel::before,
.footer-panel::before,
.about-panel::before,
.quote-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%, transparent 70%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.stat-value {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(223, 37, 55, 0.18), rgba(8, 24, 46, 0.92) 30%, rgba(15, 107, 255, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card h3,
.card h3,
.timeline-item h3,
.about-panel h3,
.contact-panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  letter-spacing: 0.02em;
}

.hero-card p {
  margin-top: 14px;
  color: rgba(236, 244, 255, 0.78);
  line-height: 1.85;
}

.hero-highlight {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.hero-highlight div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(236, 244, 255, 0.86);
}

.hero-highlight div strong {
  font-weight: 800;
  color: #fff;
}

.feature-strip {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.feature-wrap {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 30px 24px;
  border-radius: var(--radius-lg);
}

.card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(223, 37, 55, 0.92), rgba(15, 107, 255, 0.92));
  box-shadow: 0 14px 30px rgba(12, 42, 95, 0.3);
}

.card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.products-grid,
.solutions-grid,
.case-grid,
.service-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 15, 28, 0.2), rgba(4, 15, 28, 0.86)),
    var(--card-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(121, 216, 255, 0.48);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(223, 37, 55, 0.2), transparent 32%, transparent 64%, rgba(15, 107, 255, 0.24));
  z-index: -1;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.product-card h3 {
  margin: 18px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.98;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  max-width: 240px;
}

.product-list,
.service-list,
.contact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-list li,
.service-list li,
.contact-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(236, 244, 255, 0.78);
  line-height: 1.75;
}

.product-list li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.24s ease;
}

.product-list li a:hover {
  color: #fff;
  border-bottom-color: rgba(236, 244, 255, 0.5);
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.case-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(236, 244, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.case-list li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.24s ease;
}

.case-list li a:hover {
  color: #fff;
  border-bottom-color: rgba(236, 244, 255, 0.5);
}

.product-list li::before,
.service-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-soft), var(--blue-soft));
  box-shadow: 0 0 0 5px rgba(94, 178, 255, 0.08);
}

.solutions-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.solution-main {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(223, 37, 55, 0.1), rgba(9, 23, 42, 0.94) 32%, rgba(15, 107, 255, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.solution-main .matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.matrix-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 24px 24px 24px 78px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 24, 45, 0.92), rgba(6, 17, 31, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  padding: 28px;
  border-radius: 26px;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(5, 17, 31, 0.14), rgba(5, 17, 31, 0.92)),
    var(--case-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.case-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.05;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.about-panel,
.contact-panel,
.footer-panel {
  border-radius: 30px;
  padding: 34px;
}

.about-panel .stats-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.stats-inline .mini-stat {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
}

.mini-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.quote-box {
  height: 100%;
  border-radius: 30px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(223, 37, 55, 0.16), rgba(9, 22, 43, 0.92) 30%, rgba(15, 107, 255, 0.16) 100%);
}

.quote-box blockquote {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.quote-box p {
  margin: 18px 0 0;
  color: rgba(236, 244, 255, 0.7);
  line-height: 1.9;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-panel .button {
  margin-top: 26px;
}

.info-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #fff;
}

.footer {
  padding: 36px 0 48px;
}

.footer-panel {
  padding: 28px 30px;
}

.footer-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: start;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-bottom a {
  color: rgba(236, 244, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(236, 244, 255, 0.56);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseBackground {
  0% {
    transform: scale(1);
    filter: saturate(1);
  }
  100% {
    transform: scale(1.08);
    filter: saturate(1.2);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scanBeam {
  0% {
    transform: rotate(8deg) translateX(-65%);
  }
  50% {
    transform: rotate(8deg) translateX(15%);
  }
  100% {
    transform: rotate(8deg) translateX(65%);
  }
}

/* 文章详情页样式 */
.hero-single {
  min-height: 70vh;
}

.hero-single .hero-copy {
  max-width: 900px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.hero-kicker span {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(129, 200, 255, 0.15);
  border: 1px solid rgba(129, 200, 255, 0.3);
}

.hero-kicker span:last-child {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(236, 244, 255, 0.7);
}

.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-content iframe,
.single-content video,
.single-content embed,
.single-content object {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 16px 0;
}

.single-content iframe {
  min-height: 280px;
}

@media (max-width: 768px) {
  .single-content iframe {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .single-content iframe {
    min-height: 180px;
  }
}

.single-content h2 {
  margin: 40px 0 20px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--cyan);
  font-weight: 600;
}

.single-content h3 {
  margin: 30px 0 16px;
  font-size: clamp(20px, 2.5vw, 26px);
  color: rgba(255, 255, 255, 0.95);
}

.single-content p {
  margin: 16px 0;
  line-height: 1.9;
  color: rgba(236, 244, 255, 0.8);
  font-size: 16px;
}

.single-content ul,
.single-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.single-content li {
  margin: 10px 0;
  line-height: 1.8;
  color: rgba(236, 244, 255, 0.8);
}

.single-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.24s ease;
}

.single-content a:hover {
  border-bottom-color: var(--cyan);
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.single-content blockquote {
  margin: 30px 0;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(129, 200, 255, 0.1), rgba(223, 37, 55, 0.1));
  border-left: 3px solid var(--cyan);
  font-style: italic;
  color: rgba(236, 244, 255, 0.9);
  font-size: 18px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .solutions-grid,
  .about-grid,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-wrap,
  .products-grid,
  .case-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side {
    max-width: 640px;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 28px, 1200px);
    --nav-height: 74px;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 18px;
    padding: 22px;
    background: rgba(4, 13, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-cta {
    margin: 6px 0 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 70px;
  }

  .hero-grid {
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 78px);
  }

  .hero-stats,
  .about-panel .stats-inline,
  .solution-main .matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 88px 0;
  }

  .feature-wrap,
  .products-grid,
  .case-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-card,
  .card,
  .about-panel,
  .contact-panel,
  .footer-panel,
  .quote-box,
  .solution-main,
  .timeline-item {
    padding: 24px;
  }

  .product-card,
  .case-card {
    min-height: 300px;
  }

  .timeline-item {
    padding-left: 24px;
  }

  .timeline-item::before {
    position: static;
    margin-bottom: 16px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text span {
    font-size: 10px;
  }
}

/* FAQ页面样式 */
.hero-faq {
  min-height: 60vh;
}

.faq-section {
  padding: 60px 0;
}

/* FAQ搜索框 */
.faq-search-wrapper {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.faq-search-box:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 216, 255, 0.5);
  box-shadow: 0 0 20px rgba(15, 107, 255, 0.2);
}

.faq-search-icon {
  color: var(--cyan);
  flex-shrink: 0;
  margin-right: 12px;
}

.faq-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 12px 0;
}

.faq-search-input::placeholder {
  color: rgba(236, 244, 255, 0.5);
}

.faq-search-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* FAQ分类标签 */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.faq-category-btn {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  letter-spacing: 0.04em;
}

.faq-category-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(121, 216, 255, 0.4);
  transform: translateY(-2px);
}

.faq-category-btn.active {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 107, 255, 0.3);
}

/* FAQ列表 */
.faq-list {
  display: grid;
  gap: 16px;
  margin-bottom: 60px;
}

.faq-item {
  background: linear-gradient(180deg, rgba(12, 28, 53, 0.92), rgba(8, 20, 36, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(121, 216, 255, 0.3);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-question-text {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  letter-spacing: 0.02em;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 20px;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-content {
  padding: 0 28px 28px;
  color: rgba(236, 244, 255, 0.85);
  line-height: 1.8;
  font-size: 16px;
}

.faq-answer-content p {
  margin: 0 0 12px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer-content li {
  margin-bottom: 8px;
  position: relative;
}

.faq-answer-content li::marker {
  color: var(--cyan);
}

/* FAQ统计信息 */
.faq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(12, 28, 53, 0.92), rgba(8, 20, 36, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.faq-stat-item {
  text-align: center;
}

.faq-stat-number {
  display: block;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-family: "Rajdhani", sans-serif;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--red-soft), var(--blue-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* FAQ CTA */
.faq-cta {
  text-align: center;
  padding: 50px;
  background: linear-gradient(180deg, rgba(223, 37, 55, 0.16), rgba(9, 22, 43, 0.92) 30%, rgba(15, 107, 255, 0.16) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.faq-cta h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-weight: 700;
  color: #fff;
}

.faq-cta p {
  margin: 0 0 24px;
  color: rgba(236, 244, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ响应式设计 */
@media (max-width: 768px) {
  .faq-categories {
    gap: 8px;
  }

  .faq-category-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-question-text {
    font-size: 16px;
  }

  .faq-answer-content {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .faq-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .faq-cta {
    padding: 36px 24px;
  }
}

@media (max-width: 640px) {
  .faq-search-box {
    padding: 6px 12px;
  }

  .faq-search-input {
    font-size: 15px;
  }

  .faq-question-text {
    font-size: 15px;
  }

  .faq-answer-content {
    font-size: 14px;
  }
}
