/*
Theme Name: Yann
Theme URI: https://www.yanlogic.com/yann-theme
Author: YanLogic
Author URI: https://www.yanlogic.com
Description: A modern, clean, multilingual WordPress theme with mobile-first design and semantic markup. 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yann
Tags: blog, two-columns, responsive-layout, accessibility-ready, translation-ready, mobile-first, clean, modern
*/

/* ==========================================================================
   1. CSS Variables (Design Tokens)
   ========================================================================== */
:root {
  /* Colors - Core */
  --color-primary: #ffffff;
  --color-secondary: #ADCBFA;
  --color-accent: #e74c3c;

  /* Text */
  --color-text: #EAEAEA;
  --color-text-light: #cccccc;
  --color-text-primary: #E5E7EB;
  --color-text-secondary: #9CA3AF;

  /* Backgrounds */
  --color-bg: #030303;
  --color-bg-light: #1a1a1a;
  --color-bg-dark: #1c1c1c;
  --color-bg-primary: #0E0F12;
  --color-bg-secondary: #1A1C1F;

  /* Structural & Borders */
  --color-border: #333333;
  --grid-line: #1a1a1a;

  /* Brand Specific */
  --brand-red: #c00000;

  /* Accents / Tactical */
  --color-accent-primary: #FF6A00;
  --color-accent-primary-dark: #E05A00;
  --color-accent-warning: #CFAE70;
  --color-accent-warning-dark: #E0B000;

  /* Utility Colors */
  --color-utility-military: #2F343A;
  --color-utility-steel: #3A3F45;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Layout */
  --container-max-width: 1200px;
  --content-max-width: 800px;
  --border-radius: 4px;

  /* Transitions */
  --transition-base: all 0.3s ease;

  /* ==========================================================================
     Aegis Eagle / Platinum Theme Variables (from ai.css)
     ========================================================================== */
  --ae-bg-start: #dce1e6;
  --ae-bg-end: #eff2f5;
  --ae-surface: #ffffff;
  --ae-text-main: #1a1a1a;
  --ae-text-body: #3b4045;
  --ae-text-muted: #7f8c8d;
  --ae-primary: #0f1c2e;
  --ae-gold: #c5a059;
  --ae-gold-dim: rgba(197, 160, 89, 0.12);
  --ae-border: #e1e4e8;
  --ae-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   2. Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* 移动端菜单打开时锁定背景滚动 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-warning);
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
}

a:hover {
  color: var(--color-accent-primary-dark);
}

/* Background Effects */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
  opacity: 0.6;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  /* color: var(--color-accent-warning-dark); */
}

h1 {
  font-size: 2rem;
  color: var(--color-primary);
}

h2 {
  font-size: 1.75rem;
  color: var(--color-secondary);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

/* Common Link Hover Styles */
.tlink,
.site-title,
.main-menu a,
.pll-switcher-select,
.header-search-trigger {
  color: var(--color-primary);
  opacity: 0.8;
  text-transform: uppercase;
  transition: color 0.3s;
}

.tlink:hover,
.site-title:hover,
.main-menu a:hover,
.pll-switcher-select:hover,
.header-search-trigger:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* ==========================================================================
   4. Layout Structure
   ========================================================================== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding: var(--spacing-md);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   5. Components: Header & Topbar
   ========================================================================== */

/* --- 5.1 Top Bar (Mobile Hidden by default) --- */
.topbar {
  display: none;
  /* Mobile hidden */
  background-color: #1a1a1a;
  color: #ccc;
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
}

.topbar__inner {
  display: block;
}

.topbar__left {
  display: none;
}

.topbar__right {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Language Switcher in Topbar */
.topbar__lang {
  position: relative;
  padding-left: 32px;
}

.topbar__lang::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.8;
}

.topbar__lang:hover::before {
  opacity: 1;
}

.topbar__lang select {
  background-color: transparent;
  border: none;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  padding-right: 15px;
}

.topbar__lang select option {
  color: #333;
}

.topbar__lang select option:hover {
  color: #fff;
  cursor: pointer;
}

.topbar__link {
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.topbar__link .icon {
  margin-right: 5px;
}

/* --- 5.2 Main Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Pure Version Dark Style overrides default white */
  background-color: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

/* Desktop Header Parts (Hidden on Mobile) */
.header-desktop {
  display: none;
}

.header-search-trigger {
  display: none;
}

/* --- 5.3 Mobile Header (Default Visible) --- */
.header-mobile {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
  justify-content: space-between;
}

.header-mobile__brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.header-mobile__logo img {
  height: 32px;
  width: auto;
}

/* Mobile Language Switcher */
.header-mobile__lang {
  margin-right: 20px;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.site-header__mobile-lang select,
.header-mobile__lang select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 24px 4px 8px;
  font-size: 13px;
  color: #fff;
  /* Modified for dark header */
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 10px;
}

.site-header__mobile-lang select option {
  color: #000;
}

/* Mobile Hamburger Toggle */
.header-mobile__toggle,
.header-mobile__trigger {
  display: block;
  background: transparent;
  border: none;
  padding: 15px;
  /* Hit area */
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
}

.hamburger-box {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
  vertical-align: middle;
}

/* Hamburger Lines (Clean Lines) */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 24px !important;
  height: 2px !important;
  /* Default 2px */
  background-color: #ffffff;
  /* White for dark header */
  border-radius: 2px;
  position: absolute;
  left: 0;
  content: "";
  transition: none;
}

.hamburger-inner::before {
  top: -6px;
}

.hamburger-inner {
  top: 6px;
  margin: 0;
}

.hamburger-inner::after {
  top: 6px;
}

/* Hamburger Active State */
.header-mobile__toggle.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.header-mobile__toggle.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.header-mobile__toggle.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(90deg);
}

/* --- 5.4 Mobile Navigation Dropdown --- */
.mobile-nav,
.site-header__nav.is-open {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.mobile-nav.is-open,
.site-header__nav.is-open {
  display: block;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: slideDown 0.3s ease-out;
}

.mobile-menu,
.site-header__nav.is-open .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu li a,
.site-header__nav.is-open .main-menu a {
  display: block;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  font-size: 16px;
}

.mobile-menu li a:hover {
  color: #000;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 5.5 Search Panel (BEM) --- */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #050505;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
  padding: 40px 0;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel__inner {
  max-width: 800px;
  margin: 0 auto;
}

.search-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-panel__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-panel__close {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  transition: 0.3s;
}

.search-panel__close:hover {
  color: #fff;
}

.search-panel__form {
  position: relative;
  width: 100%;
}

.search-panel__input {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50px;
  padding: 18px 60px 18px 25px;
  color: #fff;
  font-size: 1.2rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-panel__input:focus {
  border-color: var(--color-accent-warning-dark);
  background-color: #222;
  box-shadow: 0 0 15px rgba(192, 0, 0, 0.2);
}

.search-panel__input::placeholder {
  color: #555;
}

.search-panel__submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent-warning-dark);
  border: none;
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.search-panel__submit:hover {
  background-color: var(--color-accent-warning-dark);
  transform: translateY(-50%) scale(1.05);
}

/* ==========================================================================
   6. Page Components (Hero, Services, Stats)
   ========================================================================== */

/* --- 6.1 Hero Section --- */
.hero {
  height: 75vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(3, 3, 3, 1) 100%),
    url('./assets/images/guard.webp') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero__content {
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  background: var(--color-accent-warning-dark);
  color: var(--color-primary);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(192, 0, 0, 0.4);
}

.hero__title {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero__sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 15px;
  letter-spacing: 1px;
  font-weight: 300;
}

/* --- 6.2 Stats Bar --- */
.stats {
  padding: 60px 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 5px;
  background: linear-gradient(to bottom, #fff, #999);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-num small {
  font-size: 1.5rem;
  -webkit-text-fill-color: #666;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.stat-divider {
  display: none;
  font-size: 3rem;
  color: #222;
  font-weight: 100;
  transform: skew(-20deg);
}

/* --- 6.3 Services --- */
.services {
  background-color: #030303;
}

.services__grid,
.sv-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.sv-card {
  position: relative;
  display: block;
  height: 450px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.95));
  transition: 0.5s ease;
  z-index: 1;
}

.sv-content {
  position: absolute;
  bottom: 40px;
  left: 30px;
  z-index: 2;
  transition: 0.5s ease;
  padding-right: 20px;
}

.sv-label {
  font-size: 0.8rem;
  color: var(--color-accent-primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.sv-title {
  font-size: 2rem;
  color: var(--color-secondary);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0;
}

.sv-card:hover .sv-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.sv-card:hover .sv-content,
.sv-card:hover .sv-title {
  /* transform: translateY(-15px); */
  color: var(--color-primary);
}

/* --- 6.4 Trusted Minimal --- */
.trusted-minimal {
  padding: 60px 0;
  background-color: #000;
  text-align: center;
  border-top: 1px solid #111;
}

.tm-label {
  font-size: 0.7rem;
  color: #444;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.tm-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.tm-name {
  font-size: 1.1rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: default;
}

.tm-name:hover {
  color: #fff;
}

/* --- 6.5 Footer Contact CTA --- */
.footer-contact,
.cta-section {
  padding: 2rem 0;
  background-color: #0f1c2e;
  text-align: center;
  border-top: 4px solid var(--ae-gold);
}

.fc-title {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.fc-sub {
  color: #555;
  font-size: 1rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.fc-link {
  display: inline-block;
  color: #fff;
  font-size: 0.9rem;
  border: 1px solid #333;
  padding: 15px 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.fc-link:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

/* ==========================================================================
   7. Page Templates & Standard Elements
   ========================================================================== */

/* --- 7.1 Page Header (Mobile First) --- */
.page-header {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(3, 3, 3, 1) 100%),
    url('assets/images/page_bg.webp') center/cover;
}

.page-header__content {
  position: relative;
  z-index: 2;
  /* width: 100%; */
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* H1 徽章 */
.page-header__badge {
  display: inline-block;
  background: #CFAE70;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 16px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

/* H2 大标题 */
.page-header__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 0 0 15px 0;
  max-width: 980px;
}

/* P 描述文本 */
.page-header__desc {
  font-size: 1.1rem;
  color: #999;
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

.breadcrumbs {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 20px;
}

.breadcrumbs .current {
  color: #CFAE70;
  font-weight: 700;
}

.page-main {
  background-color: #111;
  color: #cccccc;
  padding: 60px 0;
  min-height: 50vh;
}

.page-container {
  max-width: 900px;
}


/* ==========================================================================
   7.1.1 Gutenberg Block Styles (Dark Theme)
   ========================================================================== */

/* Entry Content - 包裹 Gutenberg 输出 */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 25px;
  line-height: 1.2;
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
}

.entry-content h4 {
  font-size: 1.2rem;
  color: #CFAE70;
}

/* Paragraphs */
.entry-content p {
  margin-bottom: 1.5em;
}

/* Links */
.entry-content a {
  text-underline-offset: 3px;
}


/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content ul li::marker {
  color: #CFAE70;
}

/* Blockquote */
.entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid #CFAE70;
  margin: 2em 0;
  padding: 1em 1.5em;
  background: rgba(207, 174, 112, 0.05);
  font-style: italic;
  color: #bbb;
}

.wp-block-quote cite {
  display: block;
  margin-top: 1em;
  font-size: 0.9em;
  color: #888;
  font-style: normal;
}

/* Buttons */
.wp-block-button__link {
  background-color: #CFAE70;
  color: #000;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  background-color: #fff;
  color: #000;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid #CFAE70;
  color: #CFAE70;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #CFAE70;
  color: #000;
}

/* Columns */
.wp-block-columns {
  gap: 40px;
  margin: 2em 0;
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 1px solid #333;
  margin: 3em 0;
}

.wp-block-separator.is-style-wide {
  border-top-width: 2px;
}

.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
}

.wp-block-separator.is-style-dots::before {
  content: "···";
  color: #CFAE70;
  font-size: 1.5em;
  letter-spacing: 1em;
}


.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #888;
  text-align: center;
}

/* Cover Block */
.wp-block-cover {
  margin: 2em 0;
  min-height: 300px;
}

/* Group Block with Background */
.wp-block-group.has-background {
  padding: 2em;
  margin: 2em 0;
}

/* Table */
.wp-block-table {
  margin: 2em 0;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 12px 15px;
  border: 1px solid #333;
  text-align: left;
}

.wp-block-table th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}

.wp-block-table tbody tr:hover {
  background: rgba(207, 174, 112, 0.05);
}

/* Code Block */
.wp-block-code {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5em;
  margin: 2em 0;
  overflow-x: auto;
}

.wp-block-code code {
  color: #CFAE70;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

/* Preformatted */
.entry-content pre {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5em;
  overflow-x: auto;
  color: #ccc;
}

/* Gallery */
.wp-block-gallery {
  margin: 2em 0;
}

/* ==========================================================================
   7.1.0 Gutenberg Block Base Styles (替代 wp-block-library)
   ========================================================================== */

/* --- Columns Block --- */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 1.75em;
}

@media (min-width: 782px) {
  .wp-block-columns {
    flex-wrap: nowrap;
  }
}

.wp-block-column {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.wp-block-column iframe {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 781px) {
  .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* --- Buttons Block --- */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-button__link {
  display: inline-block;
  padding: 14px 40px;
  background: #CFAE70;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  background: #fff;
  color: #000;
}

/* --- Image Block --- */
.wp-block-image {
  margin-bottom: 1em;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.feature-icon img {
  width: 28px;
  height: 28px;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* --- Heading Block --- */
h3.wp-block-heading,
.wp-block-heading {
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* --- Paragraph Block --- */
.wp-block-paragraph {
  margin-bottom: 1em;
}

/* --- Separator Block --- */
.wp-block-separator {
  border: none;
  border-top: 1px solid #333;
  margin: 2em 0;
}

/* ==========================================================================
   7.1.1 Custom Gutenberg Block Classes
   ========================================================================== */

/* Stats Bar - 添加类名 "stats-bar" 到栏目块 */
.stats-bar {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 40px 20px;
  text-align: center;
  /* 全屏宽度 */
  max-width: none;
  margin: 0 auto 60px;
}

/* 普通内容块居中限制宽度 */
.entry-content>*:not(.stats-bar):not(.alignfull):not(.alignwide) {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.stats-bar .wp-block-column {
  position: relative;
}

/* 列之间的分隔线 */
.stats-bar .wp-block-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #333, transparent);
}

/* 数字样式 */
.stats-bar h2,
.stats-bar h3,
.stats-bar .wp-block-heading {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1;
}

/* 金色符号 (+ K 等) */
.stat-accent {
  color: #CFAE70;
}

/* 标签样式 */
.stats-bar p {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .stats-bar {
    padding: 30px 20px;
  }

  .stats-bar .wp-block-column:not(:last-child)::after {
    display: none;
  }

  .stats-bar h2,
  .stats-bar h3,
  .stats-bar .wp-block-heading {
    font-size: 2rem;
  }
}

/* Feature Cards - 更新为匹配 Demo 样式 */
.feature-cards {
  gap: 30px;
  margin: 40px auto 60px;
  max-width: 1200px;
  padding: 0 20px;
}

.has-text-align-center {
  text-align: center;
}

.feature-cards .wp-block-column {
  background: #111;
  border: 1px solid #1a1a1a;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-cards .wp-block-column:hover {
  border-color: #CFAE70;
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 174, 112, 0.1);
  border-radius: 50%;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #CFAE70;
}

.feature-cards h3,
.feature-cards h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 0;
}

.feature-cards p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Section Label (Used in Block Patterns) */
.section-label {
  font-size: 11px;
  color: #CFAE70;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  display: block;
  line-height: 1.2;
}

/* CTA Section - 添加类名 "cta-section" 到 Group 块 */
.cta-section {
  padding: 3rem 0 4rem;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 15px;
  margin-top: 0;
}


/* --- 7.2 Post Excerpt / Archive Entry --- */
.post-excerpt {
  background-color: #1a1a1a;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.post-excerpt:hover {
  background-color: #1f1f1f;
  border-top-color: #c00000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-thumbnail {
  margin: -30px -30px 20px -30px;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(30%) contrast(1.1);
  transition: 0.3s;
}

.post-excerpt:hover .post-thumbnail img {
  filter: grayscale(0%);
}

.entry-header {
  margin-bottom: 15px;
}

.entry-title {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.entry-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.entry-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.entry-meta span {
  margin-right: 10px;
}

.entry-meta a {
  text-decoration: none;
}

.entry-summary {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.entry-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #222;
}

.read-more {
  display: inline-block;
  color: var(--color-accent-warning-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.3s;
}

/* --- 7.3 Search Results --- */
.search-entry {
  background-color: #1a1a1a;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 2px solid #333;
  transition: all 0.3s ease;
}

.search-entry:hover {
  border-left-color: #c00000;
  background-color: #1f1f1f;
  transform: translateX(5px);
}

.search-entry-title {
  margin-top: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.search-entry-title a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.search-entry-title a:hover {
  color: #c00000;
}

.search-entry-summary {
  color: #999;
  margin: 15px 0 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-text-arrow {
  color: #c00000;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.btn-text-arrow:hover {
  color: #fff;
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed #333;
  background-color: #0e0e0e;
}

.search-retry-form {
  max-width: 400px;
  margin: 30px auto 0;
}

.search-retry-form input[type="search"] {
  width: 100%;
  padding: 15px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
}

/* --- 7.4 Pagination & Nav --- */
.post-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #222;
}

.nav-links {
  display: flex;
  justify-content: space-between;
}

.nav-previous a,
.nav-next a {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
  color: #c00000;
}

.pagination {
  margin-top: 60px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  color: #666;
  text-decoration: none;
  border: 1px solid #333;
  transition: 0.3s;
}

.pagination .current,
.pagination .page-numbers:hover {
  background-color: #c00000;
  border-color: #c00000;
  color: #fff;
}

/* ==========================================================================
   8. Buttons & Utilities
   ========================================================================== */

/* Buttons */
.btn--primary {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-accent-primary-dark);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn--primary:hover {
  background-color: var(--color-primary);
  color: var(--color-accent-primary);
}

.header-cta.btn--solid {
  background-color: #c00000;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header-cta.btn--solid:hover {
  background-color: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 0, 0, 0.4);
}

/* Screen Reader Text (Modern Implementation) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
  color: #ffffff;
  padding: var(--spacing-xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-xl);
  background: var(--color-bg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.widget--footer {
  margin-bottom: 0;
}

.widget--footer .widget__title,
.footer-column__title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: capitalize;
}

.widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_nav_menu li {
  margin-bottom: 0.5rem;
}

.widget_nav_menu a {
  color: #d1d5db;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget_nav_menu a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-social__icon:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.footer-social__icon span {
  display: block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Social Icons SVG Data */
.icon-tiktok {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z'/%3E%3C/svg%3E");
}

.icon-facebook {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.icon-x {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.icon-youtube {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.icon-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.icon-pinterest {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z'/%3E%3C/svg%3E");
}

.footer-social__icon:hover .icon-tiktok,
.footer-social__icon:hover .icon-facebook,
.footer-social__icon:hover .icon-x,
.footer-social__icon:hover .icon-youtube,
.footer-social__icon:hover .icon-instagram,
.footer-social__icon:hover .icon-pinterest {
  filter: brightness(0);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
}

.footer-copyright p {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.site-footer a {
  color: #d1d5db;
}

.site-footer a:hover {
  color: #ffffff;
}

.margin-top-0,
.entry-content .margin-top-0 {
  margin-top: 0;
}

/* ==========================================================================
   10. Media Queries
   ========================================================================== */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .hero {
    height: 75vh;
  }

  /* Typography & Layout */
  .hero__title {
    font-size: 5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-content {
    padding: var(--spacing-lg);
  }

  .stats__grid {
    gap: 60px;
  }

  .stat-divider {
    display: block;
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 5fr 2fr;
    gap: var(--spacing-xl);
  }

  .cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Topbar Visibility */
  .topbar {
    display: block;
    font-size: 13px;
  }

  .topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .topbar__left {
    display: block;
  }

  .topbar__right {
    justify-content: flex-end;
    gap: 20px;
  }

  /* Page Template Extension */
  .breadcrumbs {
    font-size: 0.9rem;
  }

  .page-main {
    padding: 100px 0;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .hero {
    height: 85vh;
  }

  /* Layout */
  .site-content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 3fr 2fr;
  }

  /* Header Logic Switch: Mobile Hidden, Desktop Visible */
  .header-mobile {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header-desktop {
    display: flex;
    align-items: center;
    padding: 0 20px;
  }

  .header-desktop__logo img {
    height: 40px;
    width: auto;
  }

  .header-desktop__nav {
    margin-left: 60px;
    margin-right: auto;
  }

  .header-desktop__actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .topbar__lang {
    display: block;
    margin-left: 10px;
    border-left: 1px solid #444;
  }

  .header-search-trigger {
    display: flex;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    align-items: center;
    transition: color 0.2s;
  }

  .header-cta {
    display: inline-block;
  }

  /* Desktop Menu */
  .main-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
  }

  .main-menu li {
    position: relative;
  }

  /* Standard dropdown for non-Services menus */
  .main-menu>li>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #111;
    border: 1px solid #222;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* padding: 15px 0; */
    margin-top: 16px;
    z-index: 1000;
    list-style: none;
  }

  .main-menu>li:hover>ul {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }

  /* =============================================
     HOVER 桥接 - 解决 header padding 导致的 hover 间隙问题
     ============================================= */

  /* 给所有带子菜单的菜单项添加一个透明桥接区域 */
  .main-menu>li.menu-item-has-children {
    position: relative;
  }

  .main-menu>li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 30px;
    /* Increased height for robust hover bridge */
    background: transparent;
    pointer-events: auto;
  }

  /* 当菜单项或桥接区域被 hover 时，显示下拉菜单 */
  .main-menu>li.menu-item-has-children:hover::after {
    display: block;
  }

  /* =============================================
     MEGA MENU - 三列布局 (Services)
     ============================================= */

  /* Mega Menu 容器 - 紧贴 site-header 下方，横跨全宽 */
  .main-menu>li.menu-services>ul,
  .main-menu>li.menu-item--mega>ul {
    position: fixed;
    top: 58px;
    /* site-header 实际高度 */
    left: 0;
    right: 0;
    width: 100vw;
    min-height: 350px;
    margin-top: 0;
    /* 重置通用下拉菜单的 margin-top */
    background: rgba(17, 17, 17, 0.98);
    border: none;
    /* border-top: 1px solid #333; */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 0;
    display: none;
  }

  .main-menu>li.menu-services:hover>ul,
  .main-menu>li.menu-item--mega:hover>ul {
    display: block;
    animation: fadeIn 0.25s ease-out;
  }

  /* 左侧区域 - 二级菜单 (固定280px宽，居中对齐) */
  .main-menu>li.menu-services>ul>li,
  .main-menu>li.menu-item--mega>ul>li {
    position: static;
    list-style: none;
    width: 280px;
    margin-left: calc((100vw - 1000px) / 2);
  }

  /* 大屏幕限制最大宽度 */
  @media (max-width: 1100px) {

    .main-menu>li.menu-services>ul>li,
    .main-menu>li.menu-item--mega>ul>li {
      margin-left: 50px;
    }
  }

  .main-menu>li.menu-services>ul>li>a,
  .main-menu>li.menu-item--mega>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 25px;
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .main-menu>li.menu-services>ul>li>a:hover,
  .main-menu>li.menu-item--mega>ul>li>a:hover,
  .main-menu>li.menu-services>ul>li.menu-item-has-children.is-active>a,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children.is-active>a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #CFAE70;
  }

  /* 二级菜单项带子菜单的箭头指示 */
  .main-menu>li.menu-services>ul>li.menu-item-has-children>a::after,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children>a::after {
    content: "›";
    font-size: 16px;
    opacity: 0.5;
    margin-left: auto;
  }

  /* 中间区域 - 三级菜单 */
  .main-menu>li.menu-services>ul>li>ul,
  .main-menu>li.menu-item--mega>ul>li>ul {
    position: absolute;
    left: calc((100vw - 1000px) / 2 + 280px);
    top: 0;
    bottom: 0;
    width: 400px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    padding: 25px 30px;
    display: none;
    list-style: none;
    overflow-y: auto;
  }

  @media (max-width: 1100px) {

    .main-menu>li.menu-services>ul>li>ul,
    .main-menu>li.menu-item--mega>ul>li>ul {
      left: 330px;
      width: calc(100vw - 330px - 320px - 50px);
    }
  }

  /* 默认显示第一个带子菜单项的三级菜单（仅当没有任何 is-active 时） */
  .main-menu>li.menu-services>ul>li.menu-item-has-children:first-of-type>ul,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children:first-of-type>ul {
    display: block;
  }

  /* 当有任何项被标记为 is-active 时，只显示 is-active 项的子菜单 */
  .main-menu>li.menu-services>ul>li.menu-item-has-children.is-active~li.menu-item-has-children:first-of-type>ul,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children.is-active~li.menu-item-has-children:first-of-type>ul {
    display: none;
  }

  /* is-active 项的子菜单显示 */
  .main-menu>li.menu-services>ul>li.menu-item-has-children.is-active>ul,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children.is-active>ul {
    display: block;
  }


  /* 当有 is-active 标记时，隐藏非活动项的子菜单 */
  .main-menu>li.menu-services>ul.has-active>li.menu-item-has-children:not(.is-active)>ul,
  .main-menu>li.menu-item--mega>ul.has-active>li.menu-item-has-children:not(.is-active)>ul {
    display: none;
  }

  /* is-active 项的高亮样式 */
  .main-menu>li.menu-services>ul>li.menu-item-has-children.is-active>a,
  .main-menu>li.menu-item--mega>ul>li.menu-item-has-children.is-active>a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #CFAE70;
  }



  /* 三级菜单项 */
  .main-menu>li.menu-services>ul>li>ul>li,
  .main-menu>li.menu-item--mega>ul>li>ul>li {
    list-style: none;
  }

  .main-menu>li.menu-services>ul>li>ul>li>a,
  .main-menu>li.menu-item--mega>ul>li>ul>li>a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
  }

  .main-menu>li.menu-services>ul>li>ul>li>a::before,
  .main-menu>li.menu-item--mega>ul>li>ul>li>a::before {
    content: '■';
    font-size: 6px;
    margin-right: 12px;
    color: #CFAE70;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .main-menu>li.menu-services>ul>li>ul>li>a:hover,
  .main-menu>li.menu-item--mega>ul>li>ul>li>a:hover {
    color: #fff;
    padding-left: 5px;
  }

  .main-menu>li.menu-services>ul>li>ul>li>a:hover::before,
  .main-menu>li.menu-item--mega>ul>li>ul>li>a:hover::before {
    opacity: 1;
  }

  /* 右侧区域 - 图片/推广区 */
  .main-menu>li.menu-services>ul::after,
  .main-menu>li.menu-item--mega>ul::after {
    content: '';
    position: absolute;
    right: calc((100vw - 1000px) / 2);
    top: 0;
    bottom: 0;
    width: 320px;
    background:
      linear-gradient(to right, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.3) 50%, transparent 100%),
      url('./assets/images/guard.webp') center/cover no-repeat;
    /* border-left: 1px solid rgba(255, 255, 255, 0.1); */
    pointer-events: none;
  }

  @media (max-width: 1100px) {

    .main-menu>li.menu-services>ul::after,
    .main-menu>li.menu-item--mega>ul::after {
      right: 50px;
    }
  }

  /* Standard Dropdown Styles (non-mega) */
  .main-menu ul ul {
    top: 0;
    left: 100%;
  }

  .main-menu ul li a {
    font-size: 14px;
    padding: 10px 20px;
    white-space: nowrap;
    font-weight: 400;
    color: #aaa;
    display: block;
  }

  .main-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .main-menu>li.menu-item-has-children>a::after {
    content: " ▾";
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.6;
  }

  .main-menu ul li.menu-item-has-children>a::after {
    content: " ›";
    font-size: 12px;
    margin-left: 5px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   15. Service Page Components
   ========================================================================== */

/* --- 15.1 Service Hero Header --- */
.service-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 15, 20, 0.95) 0%, rgba(20, 25, 35, 0.9) 100%),
    url('./assets/images/guard.webp') center/cover;
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid var(--color-accent-warning);
}

.service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(3, 3, 3, 0.8) 100%);
  pointer-events: none;
}

.service-hero__content {
  position: relative;
  z-index: 2;
}

.service-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

.service-hero__breadcrumb a {
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.service-hero__breadcrumb a:hover {
  color: var(--color-accent-warning);
}

.service-hero__breadcrumb .sep {
  opacity: 0.5;
  font-size: 0.75rem;
}

.service-hero__breadcrumb .current {
  color: var(--color-accent-warning);
  font-weight: 500;
}

.service-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.service-hero__desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- 15.2 Service Layout (Sidebar + Content) --- */
.service-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

/* --- 15.3 Service Sidebar --- */
.service-sidebar {
  order: 2;
}

.service-sidebar__section {
  background: #0d0f12;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-sidebar__title {
  background: var(--color-accent-warning);
  color: var(--color-bg);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.service-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-sidebar__list li a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s;
  font-size: 0.95rem;
}

.service-sidebar__list li:last-child a {
  border-bottom: none;
}

.service-sidebar__list li a:hover,
.service-sidebar__list li a.is-active {
  background: rgba(207, 174, 112, 0.1);
  color: var(--color-accent-warning);
  padding-left: 1.75rem;
}

.service-sidebar__list li a.is-active {
  font-weight: 600;
  border-left: 3px solid var(--color-accent-warning);
}

/* --- 15.4 Service Content --- */
.service-content {
  order: 1;
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.service-content h2 {
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent-warning);
}

.service-content h2:first-child {
  margin-top: 0;
}

.service-content h3 {
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.service-content p {
  margin-bottom: 1.5rem;
}

.service-content ul,
.service-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

.service-content strong {
  color: var(--color-primary);
}

/* --- 15.5 Service CTA Box --- */
.service-cta-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border: 1px solid var(--color-accent-warning);
  border-radius: var(--border-radius);
  text-align: center;
}

.service-cta-box__title {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-cta-box__text {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.service-cta-box__btn {
  display: inline-block;
  background: var(--color-accent-warning);
  color: var(--color-bg);
  padding: 0.875rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.service-cta-box__btn:hover {
  background: var(--color-accent-warning-dark);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(207, 174, 112, 0.3);
}

/* Form variant */
.service-cta-box--form {
  text-align: left;
  padding: 2rem;
}

.service-cta-box--form .service-cta-box__title,
.service-cta-box--form .service-cta-box__text {
  text-align: center;
}

.service-cta-box__form {
  margin-top: 1.5rem;
}

/* --- 15.6 Desktop Layout --- */
@media (min-width: 900px) {
  .service-hero {
    padding: 5rem 0 4rem;
  }

  .service-hero__title {
    font-size: 3.5rem;
  }

  .service-hero__breadcrumb {
    font-size: 0.9rem;
  }

  .service-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    padding: 4rem 0;
  }

  .service-sidebar {
    order: 1;
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
  }

  .service-content {
    order: 2;
    flex: 1;
    min-width: 0;
  }

  .service-content h2 {
    font-size: 1.8rem;
  }

  .service-cta-box {
    padding: 3rem;
  }

  .service-cta-box__title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   16. Tactical Sidebar (Services Menu Block)
   Exact copy from demo/menu-5.html
   ========================================================================== */

/* Corner Decorations */
.tactical-sidebar::before,
.tactical-sidebar::after,
.tactical-sidebar__bottom::before,
.tactical-sidebar__bottom::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #c5a059;
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
}

.tactical-sidebar::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.tactical-sidebar::after {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.tactical-sidebar__bottom::before {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.tactical-sidebar__bottom::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Background Texture */
.tactical-sidebar__top,
.tactical-sidebar__bottom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Nav List */
.tactical-sidebar__nav {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Pulse Animation */
@keyframes hudPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
    border-width: 1px;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
    border-width: 0px;
  }
}


/* Footer (All Services) */
.tactical-sidebar__footer {
  margin-top: auto;
  padding: 15px 20px 0;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  position: relative;
  z-index: 1;
}



.tactical-sidebar__footer-link:hover {
  color: #fff;
  text-shadow: 0 0 8px #c5a059;
}


/* Notice */
.tactical-sidebar__notice {
  padding: 12px 20px;
  background: #141414;
  border-left: 3px solid #c5a059;
  color: #888;
  font-size: 0.85rem;
}