/* ==========================================================================
   网亚学校机房管理软件系统 — Business Tech Design System (wangya-tech)
   ========================================================================== */

:root {
  --bg-dark: #071226;
  --bg-dark-2: #0D1E3A;
  --bg-light: #F6F9FC;
  --bg-white: #FFFFFF;

  --primary: #1677FF;
  --primary-hover: #0E62DB;
  --primary-soft: rgba(22, 119, 255, 0.08);
  --cyan: #06B6D4;
  --cyan-soft: rgba(6, 182, 212, 0.12);

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;

  --border: #E2E8F0;
  --border-dark: rgba(148, 163, 184, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 18, 38, 0.16);
  --shadow-blue: 0 10px 28px rgba(22, 119, 255, 0.28);

  --container: 1280px;
  --header-h: 74px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  color: var(--text-main);
  margin: 0 0 0.65em;
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.24);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(22, 119, 255, 0.35);
}
.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
}
.btn-ghost:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(7, 18, 38, 0.18);
}
.btn-white:hover {
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.brand-logo-light .brand-title { color: #fff; }
.brand-logo-light .brand-sub { color: var(--text-light-muted); }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 11px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 7px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px 24px;
  z-index: 99;
}

.mobile-drawer.open { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  padding: 11px 12px;
  color: var(--text-main);
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav-link:hover { background: var(--bg-light); color: var(--primary); }

.mobile-drawer-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(22, 119, 255, 0.24), transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.18), transparent 42%),
              linear-gradient(135deg, #061022 0%, #0B1B38 55%, #0F254A 100%);
  color: var(--text-light);
  padding: 76px 0 84px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: rgba(22, 119, 255, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #BAE6FD;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 10px #22D3EE;
}

.hero-title {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(90deg, #38BDF8 0%, #60A5FA 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: #CBD5E1;
  line-height: 1.78;
  margin-bottom: 28px;
}

.hero-desc strong { color: #fff; font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.metric-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.metric-item span {
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.metric-divider {
  width: 1px;
  height: 30px;
  background: rgba(148, 163, 184, 0.22);
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.24), rgba(22, 119, 255, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.55);
}

.hero-media-frame img {
  border-radius: 15px;
  width: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(11, 27, 56, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
  color: #fff;
}

.hero-floating-card strong { display: block; font-size: 13px; line-height: 1.25; }
.hero-floating-card small { display: block; font-size: 11.5px; color: #94A3B8; }

.hero-card-top { top: -16px; right: 20px; }
.hero-card-bottom { bottom: -16px; left: 20px; }

.status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   Inner Page Hero
   ========================================================================== */
.page-hero {
  background-color: #0B1B38;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 82% 20%, rgba(22, 119, 255, 0.28), transparent 48%),
    radial-gradient(circle at 14% 85%, rgba(6, 182, 212, 0.2), transparent 44%),
    linear-gradient(135deg, #0A1833 0%, #0E244A 55%, #122E5C 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: #fff;
  padding: 54px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero-compact {
  padding: 40px 0 44px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 12px;
}

.page-hero-desc {
  color: #CBD5E1;
  font-size: 16px;
  max-width: 760px;
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #94A3B8;
  margin-bottom: 14px;
}

.breadcrumb a { color: #93C5FD; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section { padding: 78px 0; }
.section-light { background: var(--bg-light); }
.section-dark {
  background: linear-gradient(135deg, #071226 0%, #0D1F3F 100%);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-header-light .section-title { color: #fff; }
.section-header-light .section-subtitle { color: #CBD5E1; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.eyebrow-cyan {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.35);
}

.feature-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-card-head .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card-head h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-blue { background: rgba(22, 119, 255, 0.1); color: #1677FF; }
.icon-cyan { background: rgba(6, 182, 212, 0.12); color: #0891B2; }
.icon-indigo { background: rgba(99, 102, 241, 0.12); color: #4F46E5; }
.icon-teal { background: rgba(20, 184, 166, 0.12); color: #0D9488; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.icon-violet { background: rgba(139, 92, 246, 0.12); color: #7C3AED; }

.dark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.dark-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.42);
  transform: translateY(-3px);
}

.dark-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.dark-card-num {
  font-size: 22px;
  font-weight: 800;
  color: #38BDF8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.92;
}

.dark-card h3 {
  color: #fff;
  font-size: 17.5px;
  margin: 0;
  white-space: nowrap;
}
.dark-card p { color: #CBD5E1; font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Interactive Feature Tabs
   ========================================================================== */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.tab-btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.28s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 12px;
}

.tab-text h3 { font-size: 24px; margin-bottom: 14px; }
.tab-text p { color: var(--text-body); font-size: 15px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-body);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-media {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tab-media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* ==========================================================================
   Gallery & Screenshots
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.35);
}

.gallery-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top left;
  cursor: zoom-in;
  border-bottom: 1px solid var(--border);
}

.gallery-card figcaption {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.lightbox-trigger { cursor: zoom-in; }

/* ==========================================================================
   Cases & Client Wall
   ========================================================================== */
.case-spotlight {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.case-spotlight-media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.case-spotlight-body h3 { font-size: 24px; margin-bottom: 14px; }

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.case-tags span {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-body);
}

.client-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.client-chip {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.client-chip:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Blog Cards & Blog Page
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.32);
}

.post-card-thumb {
  position: relative;
  display: block;
  height: 188px;
  overflow: hidden;
  background: #0F172A;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(7, 18, 38, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
}

.post-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 17px;
  line-height: 1.42;
  margin-bottom: 10px;
}

.post-card-title a { color: var(--text-main); }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

.post-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-body);
  border: 1px solid var(--border);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pagination .page-number,
.pagination .extend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
}

.pagination .page-number.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Post Detail Page & Prose
   ========================================================================== */
.post-detail-title {
  font-size: clamp(24px, 3.2vw, 36px);
  max-width: 920px;
}

.post-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #CBD5E1;
}

.meta-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: #BAE6FD;
  font-weight: 600;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 40px;
  align-items: start;
}

.post-cover-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-cover-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.prose {
  font-size: 16px;
  line-height: 1.85;
  color: #1E293B;
}

.prose h2 {
  font-size: 23px;
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 18.5px;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.prose li { margin-bottom: 0.45em; }

.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-body);
}

.prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 20px auto;
  cursor: zoom-in;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
}

.prose th {
  background: var(--bg-light);
  color: var(--text-main);
  font-weight: 700;
}

.post-tags-bar {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tags-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.tag-link {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 13px;
}

.tag-link:hover { border-color: var(--primary); color: var(--primary); }

.article-cta-card {
  margin-top: 34px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.article-cta-card h3 { font-size: 18px; margin-bottom: 6px; }
.article-cta-card p { font-size: 14px; margin: 0; color: var(--text-body); }
.article-cta-btns { display: flex; gap: 10px; flex-shrink: 0; }

.post-nav {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-nav-card {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-nav-card:hover { border-color: var(--primary); background: var(--bg-light); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: 12.5px; color: var(--text-muted); }
.post-nav-card strong { font-size: 14.5px; color: var(--text-main); }

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.toc-content ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-content ol ol { padding-left: 14px; margin-top: 4px; }
.toc-content li { margin-bottom: 6px; font-size: 13.5px; line-height: 1.5; }
.toc-content a { color: var(--text-body); display: block; padding: 2px 0; }
.toc-content a:hover { color: var(--primary); }

.sidebar-promo {
  background: linear-gradient(160deg, #071226 0%, #102A54 100%);
  color: #fff;
  border-color: transparent;
}
.sidebar-promo h3 { color: #fff; font-size: 18px; }
.sidebar-promo p { color: #CBD5E1; font-size: 13.5px; margin-bottom: 16px; }
.sidebar-phone { margin-top: 12px; font-size: 13px; color: #93C5FD; text-align: center; }

.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  color: var(--text-body);
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.sidebar-cat-list li:last-child a { border-bottom: none; }
.sidebar-cat-list li a:hover { color: var(--primary); }
.count-badge {
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* ==========================================================================
   Enterprise Inner Pages (Pricing, Download, FAQ, Solutions, Cases, Contact)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 16px 38px rgba(22, 119, 255, 0.14);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-tier { font-size: 19px; font-weight: 700; color: var(--text-main); }
.price-scope { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }

.price-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.price-amount small { font-size: 15px; font-weight: 600; color: var(--text-muted); }

.price-unit { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.price-features {
  list-style: none;
  padding: 18px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  font-size: 14px;
}

.price-features li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 800;
}

.info-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.payment-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.payment-card h3 { font-size: 18px; margin-bottom: 12px; }
.payment-qr { width: 150px; border-radius: 10px; border: 1px solid var(--border); margin-top: 12px; }

.download-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 26px;
}

.spec-item {
  background: var(--bg-light);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
}
.spec-item strong { display: block; color: var(--text-main); font-size: 14px; }

.data-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.data-table th, .data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14.5px;
}

.data-table th {
  background: #0B1B38;
  color: #fff;
  font-weight: 600;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #FAFBFD; }

/* FAQ Accordion */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.faq-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.faq-filter-btn.active, .faq-filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open { border-color: var(--primary); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-answer { display: block; }

/* Certs Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cert-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: zoom-in;
}

.cert-card figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* Archive List */
.archive-year {
  font-size: 22px;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}

.archive-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.archive-row:hover { background: var(--bg-light); color: var(--primary); }
.archive-row time { font-size: 13.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.archive-title { flex: 1; font-weight: 600; }
.archive-cat { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-section {
  padding: 36px 0 78px;
}

.cta-box {
  background: linear-gradient(135deg, #1677FF 0%, #0EA5E9 100%);
  border-radius: var(--radius-xl);
  padding: 46px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 48px rgba(22, 119, 255, 0.28);
}

.cta-text h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 10px; }
.cta-text p { color: rgba(255, 255, 255, 0.9); margin: 0; font-size: 15.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

.site-footer {
  background: #060F20;
  color: var(--text-light-muted);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.25fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-desc {
  margin: 16px 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #94A3B8;
}

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.trust-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #BAE6FD;
  font-size: 12px;
  font-weight: 600;
}

.footer-heading {
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 16px;
}

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a, .footer-contact a { color: #94A3B8; }
.footer-links a:hover, .footer-contact a:hover { color: #38BDF8; }
.footer-contact strong { color: #CBD5E1; font-weight: 600; }

.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
}
.footer-friend-links a { color: #94A3B8; }
.footer-friend-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
.icp-info { display: flex; align-items: center; gap: 10px; }
.icp-info a { color: #94A3B8; }
.icp-info a:hover { color: #fff; }

/* ==========================================================================
   Floating Consultation Dock
   ========================================================================== */
.floating-dock {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-item {
  position: relative;
  width: 52px;
  height: 54px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.dock-item-accent {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.dock-item-accent:hover { background: var(--primary-hover); color: #fff; }

.dock-label { font-size: 11px; font-weight: 600; line-height: 1; }

.dock-popover {
  display: none;
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  width: 228px;
  padding: 16px;
  background: #fff;
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.dock-popover-qr { width: 184px; text-align: center; }
.dock-popover-qr img { margin: 8px auto; border-radius: 8px; }

.dock-popover-trigger:hover .dock-popover,
.dock-popover-trigger:focus-within .dock-popover {
  display: block;
}

.popover-title { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.popover-phone { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.popover-sub, .popover-note { font-size: 12px; color: var(--text-muted); }
.popover-row { font-size: 13px; margin-bottom: 4px; }

.dock-top-btn { opacity: 0; pointer-events: none; }
.dock-top-btn.visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Modals (Search & Lightbox)
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 18, 38, 0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.search-modal-panel {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-main);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px 20px;
}

.search-empty-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 26px 12px;
  font-size: 14px;
}

.search-result-item {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

.search-result-item:hover { background: var(--bg-light); }
.search-result-item strong { display: block; color: var(--text-main); font-size: 15.5px; margin-bottom: 4px; }
.search-result-item p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.search-result-item mark { background: #FEF08A; color: #0F172A; padding: 0 2px; border-radius: 3px; }

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: #E2E8F0;
  font-size: 14.5px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav, .header-contact-btn { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-grid, .tab-grid, .case-spotlight, .download-hero-card, .post-layout {
    grid-template-columns: 1fr;
  }
  .cols-4, .client-wall, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-3, .posts-grid, .gallery-grid, .pricing-grid, .payment-grid, .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box { flex-direction: column; text-align: center; padding: 36px 28px; }
  .post-sidebar { position: static; }
}

@media (max-width: 680px) {
  .section { padding: 54px 0; }
  .hero-section { padding: 48px 0 56px; }
  .hero-card-top, .hero-card-bottom { display: none; }
  .cols-2, .cols-3, .cols-4, .posts-grid, .gallery-grid, .pricing-grid, .payment-grid, .client-wall, .footer-grid, .certs-grid, .spec-grid, .post-nav {
    grid-template-columns: 1fr;
  }
  .tab-grid { padding: 24px; }
  .article-cta-card { flex-direction: column; align-items: flex-start; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .floating-dock { right: 10px; bottom: 20px; }
}
