/* ===== 作战地图设计系统 ===== */
:root {
  --paper: #ffffff;
  --paper-dark: #f6f8fb;
  --ink: #0f172a;
  --ink-light: #4b5563;
  --alert: #b88a2b;
  --alert-light: #d8b25c;
  --grid: #e6ebf2;
  --border: #d6dde8;
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Noto Serif SC', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 网格纸背景 */
.grid-paper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.15;
}

/* 报纸纹理 */
.newsprint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.01;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== 报头导航 ===== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  border-bottom: 1px solid var(--grid);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}

.masthead-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #111827, var(--alert));
  color: white;
  display: grid;
  place-items: center;
  font-size: 1rem;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.logo-text {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  border-color: var(--border);
  background: var(--paper-dark);
}

.menu-btn {
  display: none;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu.open {
  display: grid;
  gap: 0.5rem;
}

.mobile-menu a {
  font-family: var(--serif);
  color: var(--ink);
  text-decoration: none;
  padding: 0.8rem;
  border: 1px solid var(--grid);
  background: white;
}

/* ===== 头版 Hero ===== */
.frontpage {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.frontpage-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.headline-block {
  position: relative;
}

.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--alert);
  color: var(--alert);
  transform: rotate(-3deg);
  margin-bottom: 1rem;
}

.main-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.red-line {
  position: relative;
  display: inline-block;
}

.red-line::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.2em;
  background: var(--alert);
  opacity: 0.3;
}

.subhead {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.headline-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.divider {
  color: var(--grid);
}

.hero-visual {
  position: relative;
}

.map-frame {
  position: relative;
  border: 1px solid var(--border);
  background: white;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.map-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.route-path {
  position: absolute;
  bottom: -30px;
  left: -20px;
  right: -20px;
  height: 60px;
  opacity: 0.6;
}

/* ===== 章节标题 ===== */
.section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header.slanted {
  background: linear-gradient(135deg, var(--paper-dark) 0%, transparent 60%);
  border-left: 2px solid var(--alert);
}

.section-header.slanted-reverse {
  background: linear-gradient(-135deg, var(--paper-dark) 0%, transparent 60%);
  border-right: 2px solid var(--alert);
  justify-content: flex-end;
  text-align: right;
}

.section-header.dark {
  background: var(--paper-dark);
  color: var(--ink);
  border-left: 2px solid var(--alert);
}

.section-num {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--alert);
  opacity: 0.45;
  line-height: 1;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.section-header p {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  width: 100%;
  margin-left: 4.5rem;
}

.operations .section-header,
.intelligence .section-header,
.enlistment .section-header,
.comm-station .section-header {
  margin-bottom: 1.4rem;
}

/* ===== 三阶段路线 ===== */
.operations {
  padding: 2rem 0 4rem;
}

.route-map {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.phase-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  background: white;
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.phase-marker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  justify-content: center;
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  background: var(--paper-dark);
  color: var(--ink);
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.phase-marker.highlight {
  background: rgba(184, 138, 43, 0.14);
  color: #5c3f0d;
}

.phase-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.phase-img {
  border: 1px solid var(--grid);
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
  padding: 0.45rem;
}

.phase-img img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter 0.3s;
}

.phase-card:hover .phase-img img {
  filter: none;
}

.phase-content ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.phase-content li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.phase-content li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--alert);
  font-weight: 700;
}

.checkpoint {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  background: white;
}

.checkpoint.final {
  background: var(--paper-dark);
  color: #5c3f0d;
  border-color: #d7be84;
}

.phase-connector {
  display: none;
}

.phase-connector svg {
  display: none;
}

/* 滚动动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 四大危机 ===== */
.intelligence {
  background: white;
  padding-bottom: 4rem;
}

.intel-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.intel-card {
  background: white;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.intel-card:hover {
  transform: translateY(-5px);
}

.intel-card.wide {
  grid-column: 1 / -1;
}

.intel-header {
  background: #111827;
  color: white;
  padding: 1rem;
}

.alert-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--alert-light);
  display: block;
  margin-bottom: 0.3rem;
}

.intel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.intel-body {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--ink-light);
}

.severity-bar {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}

.severity-bar span {
  flex: 1;
  height: 6px;
  background: var(--grid);
}

.severity-bar span.filled {
  background: var(--alert);
}

.solution {
  background: white;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--alert);
}

.solution-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--alert);
  margin-bottom: 0.5rem;
}

.solution h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.solution-img {
  border: 1px solid var(--grid);
  margin-bottom: 1rem;
  background: #fff;
  padding: 0.55rem;
}

.solution-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.solution p {
  color: var(--ink-light);
  font-size: 0.9rem;
}

/* ===== 三端作战面板 ===== */
.command-center {
  padding: 2rem 0 4rem;
}

.triad-display {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.terminal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.terminal-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--paper-dark);
  border: 1px solid var(--border);
  border-bottom: none;
  margin-right: -1px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.terminal-tab.active {
  background: white;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
  z-index: 2;
}

.tab-icon {
  font-size: 0.8rem;
  color: var(--alert);
}

.tab-status {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  background: var(--grid);
  color: var(--ink-light);
}

.terminal-tab.active .tab-status {
  background: rgba(184, 138, 43, 0.14);
  color: #5c3f0d;
}

.terminal-screen {
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  padding: 1.5rem;
  min-height: 500px;
}

.terminal-panel {
  display: none;
}

.terminal-panel.active {
  display: block;
  animation: fadeIn 0.4s;
}

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

.panel-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grid);
}

.panel-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(184, 138, 43, 0.14);
  color: #5c3f0d;
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.panel-visual {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.monitor-grid img,
.phone-array img,
.single-display img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--grid);
  display: block;
}

.phone-array {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.phone-array img {
  height: 320px;
}

.single-display img {
  height: 360px;
  object-position: top;
}

.panel-specs {
  background: var(--paper);
  border: 1px solid var(--grid);
  padding: 1rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--grid);
  font-size: 0.85rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-key {
  color: var(--ink-light);
}

.spec-val {
  font-weight: 700;
  color: var(--ink);
}

/* ===== 部署中心 ===== */
.deployment {
  background: white;
  padding-bottom: 4rem;
}

.deploy-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.deploy-unit {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.deploy-unit:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.unit-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.unit-code {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(184, 138, 43, 0.14);
  color: #5c3f0d;
}

.unit-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.unit-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grid);
}

.deploy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deploy-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.deploy-btn.ios {
  background: #111827;
  color: white;
}

.deploy-btn.android {
  background: white;
  color: var(--ink);
}

.deploy-btn:hover {
  transform: translateX(5px);
}

.btn-icon {
  font-size: 1rem;
}

/* ===== 申请入驻 ===== */
.enlistment {
  background: white;
  padding-bottom: 4rem;
}

.enlist-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.brief-box {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.brief-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.brief-box p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.brief-list {
  list-style: none;
}

.brief-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grid);
  font-size: 0.9rem;
  color: var(--ink);
}

.form-frame {
  background: white;
  border: 1px solid var(--border);
}

.form-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--paper-dark);
  border-bottom: 1px solid var(--border);
}

.form-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(184, 138, 43, 0.14);
  color: #5c3f0d;
}

.form-title {
  font-weight: 700;
}

.form-frame iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
}

/* ===== 通讯站 ===== */
.comm-station {
  background: var(--paper-dark);
  padding-bottom: 4rem;
}

.comm-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comm-form-box {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.comm-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--alert);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grid);
}

.comm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comm-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.comm-form label span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-light);
}

.comm-form input,
.comm-form textarea {
  padding: 0.7rem;
  border: 1px solid var(--grid);
  font-family: var(--serif);
  font-size: 0.95rem;
  background: var(--paper);
}

.comm-form input:focus,
.comm-form textarea:focus {
  outline: none;
  border-color: var(--alert);
}

.transmit-btn {
  padding: 1rem;
  background: #111827;
  color: white;
  border: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

.transmit-btn:hover {
  background: #1f2937;
}

.form-status {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

.comm-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.freq-card {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.freq-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--alert-light);
  margin-bottom: 0.5rem;
}

.freq-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border: 1px solid var(--grid);
  transition: background 0.2s;
}

.freq-value:hover {
  background: var(--paper-dark);
}

.qr-station {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.qr-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--ink-light);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.qr-grid figure {
  text-align: center;
}

.qr-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--grid);
}

.qr-grid figcaption {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

.comm-banner {
  border: 1px solid var(--border);
  overflow: hidden;
}

.comm-banner img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* ===== 页脚 ===== */
.operation-footer {
  background: white;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-loc {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-light);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .masthead-inner {
    padding: 0.45rem 1rem;
  }

  .frontpage-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .hero-visual {
    order: -1;
  }

  .route-path {
    display: none;
  }

  .section-header {
    padding: 1.6rem 1rem;
    align-items: flex-start;
  }

  .section-header p {
    margin-left: 0;
    letter-spacing: 0.12em;
  }
  
  .route-map {
    grid-template-columns: 1fr;
  }

  .intel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .intel-card.wide {
    grid-column: 1 / -1;
  }
  
  .panel-visual {
    grid-template-columns: 1fr;
  }
  
  .enlist-grid {
    grid-template-columns: 1fr;
  }
  
  .brief-box {
    position: static;
  }
  
  .comm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .masthead-top {
    display: none;
  }

  .masthead-inner {
    padding: 0.6rem 0.85rem;
  }

  .masthead-main {
    gap: 0.6rem;
  }

  .logo-icon {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.88rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .mobile-menu {
    padding: 0.75rem 0.8rem;
  }

  .mobile-menu a {
    padding: 0.72rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .frontpage {
    padding: 1.35rem 0.85rem 1.8rem;
  }

  .stamp {
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    padding: 0.24rem 0.56rem;
    margin-bottom: 0.72rem;
  }

  .nav-links {
    display: none;
  }
  
  .main-headline {
    font-size: clamp(1.7rem, 8.2vw, 2.1rem);
    line-height: 1.18;
    margin-bottom: 0.7rem;
  }

  .subhead {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 0.9rem;
  }

  .headline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .map-frame {
    padding: 0.3rem;
  }

  .map-frame img {
    height: 230px;
  }

  .section-header {
    padding: 1.2rem 0.85rem;
    gap: 0.6rem;
  }

  .section-num {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .section-header p {
    margin-left: 0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
    opacity: 0.9;
  }

  .operations .section-header,
  .intelligence .section-header,
  .enlistment .section-header,
  .comm-station .section-header {
    margin-bottom: 1rem;
  }

  .operations,
  .intelligence,
  .command-center,
  .deployment,
  .enlistment,
  .comm-station {
    padding-bottom: 2.2rem;
  }

  .route-map,
  .intel-grid,
  .triad-display,
  .deploy-grid,
  .enlist-grid,
  .comm-grid {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .route-map,
  .intel-grid,
  .deploy-grid {
    gap: 0.75rem;
  }

  .phase-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .phase-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
  }

  .phase-img {
    padding: 0.35rem;
    margin-bottom: 0.7rem;
  }

  .phase-img img {
    max-height: 240px;
  }

  .phase-content ul {
    font-size: 0.86rem;
  }

  .checkpoint {
    margin-top: 0.3rem;
  }

  .intel-header,
  .intel-body {
    padding: 0.85rem;
  }

  .solution h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
  }

  .solution-img {
    padding: 0.35rem;
    margin-bottom: 0.72rem;
  }

  .solution-img img {
    max-height: 380px;
  }

  .terminal-tabs {
    flex-direction: column;
    gap: 0.35rem;
    border-bottom: none;
    margin-bottom: 0.7rem;
  }
  
  .phase-card {
    grid-template-columns: 1fr;
  }
  
  .phase-marker {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    justify-content: center;
  }
  
  .phase-connector {
    display: none;
  }
  
  .intel-grid {
    grid-template-columns: 1fr;
  }
  
  .intel-card.wide {
    grid-column: 1 / -1;
  }
  
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-tab {
    border: 1px solid var(--border);
    margin-right: 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    padding: 0.72rem 0.86rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  
  .terminal-tab.active {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .terminal-screen {
    padding: 0.92rem;
    min-height: 0;
    border-top: 1px solid var(--border);
    border-radius: 12px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
  }

  .panel-title {
    font-size: 1.06rem;
    line-height: 1.35;
  }

  .panel-visual {
    gap: 0.85rem;
  }
  
  .monitor-grid,
  .phone-array {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .monitor-grid img,
  .phone-array img,
  .single-display img {
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background: #fff;
    padding: 0.28rem;
  }

  .panel-specs {
    padding: 0.8rem;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.62rem 0;
    font-size: 0.82rem;
  }

  .spec-val {
    font-weight: 600;
    line-height: 1.45;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

  .deploy-unit {
    padding: 1rem;
    border-radius: 12px;
  }

  .unit-header h3 {
    font-size: 1.1rem;
  }

  .unit-desc {
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
  }

  .deploy-btn {
    font-size: 0.77rem;
    letter-spacing: 0.02em;
    padding: 0.72rem 0.85rem;
  }

  .enlist-grid,
  .comm-grid {
    gap: 0.85rem;
  }

  .brief-box,
  .comm-form-box,
  .freq-card,
  .qr-station {
    padding: 1rem;
    border-radius: 12px;
  }

  .form-header {
    padding: 0.8rem 0.95rem;
  }

  .form-frame iframe {
    height: 620px;
  }

  .comm-form input,
  .comm-form textarea {
    font-size: 16px;
  }
  
  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .comm-banner img {
    height: 100px;
  }

  .operation-footer {
    padding: 1.2rem 0.85rem;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }

  .footer-right {
    gap: 0.7rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .main-headline {
    font-size: 1.55rem;
  }

  .section-header h2 {
    font-size: 1.38rem;
  }

  .section-header p {
    font-size: 0.63rem;
  }

  .phase-content h3,
  .panel-title {
    font-size: 1rem;
  }

  .map-frame img {
    height: 205px;
  }

  .deploy-btn {
    font-size: 0.72rem;
  }
}
