/* ============================================================
   ACSS@TECH 全站共享样式:壳层(导航/走马灯/页脚)+ 通用组件
   页面私有样式放各自的 page css(如 home.css)
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.en { font-family: 'Arial Narrow', Arial, sans-serif; letter-spacing: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- 背景:光晕色块(高斯模糊,无边界)+ 噪点抖动层 ---- */
.glowOrb {
  position: fixed; left: 50%; top: 52%;
  width: 46vw; height: 40vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orb);
  filter: blur(110px);
  pointer-events: none; z-index: -1;
  transition: background 0.4s ease;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  opacity: 0.012;
}
html.dark body::after { opacity: 0.024; }

/* ---- 顶部走马灯:常驻资讯皮肤(默认)/ 紧急警戒皮肤(.emergency) ---- */
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker {
  flex: none; /* body 是弹性列:禁止被压缩(overflow:hidden 的元素没有最小高度保护) */
  overflow: hidden; cursor: pointer; display: block; text-decoration: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}
.bnrTrack { display: flex; align-items: center; width: max-content; white-space: nowrap; animation: marqueeScroll 55s linear infinite; }
.ticker:hover .bnrTrack { animation-play-state: paused; }
.ticker .txt { color: var(--dim); font-weight: 600; font-size: clamp(10.5px, 1.3vw, 12px); letter-spacing: 1.5px; padding: 8px 0; }
.ticker .txt b { color: var(--maroonHi); font-weight: 800; }
.ticker .dot { color: var(--calm); margin: 0 16px; font-size: 8px; flex: none; }

/* 紧急模式:黄黑警戒皮肤(后台开关切换,给 .ticker 加 .emergency) */
.ticker.emergency { background: #141210; border-color: rgba(245, 197, 24, 0.3); }
.ticker.emergency .bnrTrack { animation-duration: 27s; }
.ticker.emergency .txt { color: var(--hz); font-weight: 900; font-size: clamp(11px, 1.4vw, 13px); letter-spacing: 2px; padding: 7px 0; }
.ticker.emergency .txt b { color: var(--hz); }
.stripeEdge { height: 7px; background: repeating-linear-gradient(-45deg, var(--hz) 0 14px, #141210 14px 28px); display: none; }
.emergencyOn .stripeEdge { display: block; }
.tri { width: 0; height: 0; margin: 0 14px; flex: none; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--hz); position: relative; }
.tri::after { content: '!'; position: absolute; left: -2.5px; top: 2.5px; font-size: 10.5px; font-weight: 900; color: #141210; }

/* ---- 导航 ---- */
.nav { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 44px) 14px; position: relative; }
.logoMini { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.logoMini .ring {
  width: 34px; height: 34px; border: 1.6px dashed var(--maroonHi); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: bold; flex: none;
  transition: transform 0.25s ease;
}
.logoMini:hover .ring { transform: rotate(-8deg); }
.logoTitle { font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.logoSub { font-size: 8px; letter-spacing: 2px; color: var(--dim); }
.navItems { display: flex; gap: clamp(16px, 2.6vw, 32px); align-items: center; }
.ni { cursor: pointer; text-decoration: none; color: inherit; }
.ni b { display: block; font-size: 13px; letter-spacing: 1.5px; font-weight: 800; transition: color 0.2s ease; }
.ni span { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.ni:hover b { color: var(--orange); }
.ni.on b { color: var(--maroonHi); }
.ni.cta b { color: var(--maroonHi); }
.ni.cta:hover b { color: var(--orange); }

.themeBtn, .menuBtn {
  border: 1px solid var(--line); background: none; color: var(--ink);
  border-radius: 999px; padding: 6px 15px; font-size: 12px; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.themeBtn:hover { border-color: var(--orange); color: var(--orange); }
.menuBtn { display: none; font-size: 16px; padding: 4px 12px; }
.mobileMenu { display: none; }

/* ---- 内容页通用 ---- */
.page { flex: 1; padding: 3vh clamp(16px, 5vw, 60px) 40px; max-width: 1080px; width: 100%; margin: 0 auto; }
.pageHead { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.pageHead h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: 3px; }
.pageHead .sub { font-size: 11px; color: var(--dim); letter-spacing: 3px; font-weight: bold; }
.pageHead .no { margin-left: auto; text-align: right; }
.pageHead .no .big { font-size: 34px; font-weight: 900; color: var(--maroonHi); line-height: 1; font-family: Georgia, serif; }
.pageHead .no .small { font-size: 9px; color: var(--dim); letter-spacing: 2px; }
.pageIntro { font-size: 12.5px; color: var(--dim); line-height: 1.9; margin: 14px 0 4px; max-width: 560px; }

.secLabel { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; }
.secLabel i { font-style: normal; font-family: Georgia, serif; font-size: 15px; color: var(--maroonHi); opacity: 0.9; }
.secLabel b { font-size: 15px; font-weight: 900; letter-spacing: 2px; }
.secLabel span { font-size: 9px; color: var(--dim); letter-spacing: 3px; font-weight: bold; }
.secLabel .line { flex: 1; height: 1px; background: var(--line); }

.tag { border: 1px solid var(--line); background: none; color: var(--dim); padding: 6px 16px; border-radius: 999px; font-size: 11.5px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.tag:hover { border-color: var(--maroonHi); color: var(--maroonHi); }
.tag.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.btnSolid {
  background: var(--maroon); color: var(--btnText); border: none;
  padding: 12px 30px; font-size: 13px; font-weight: 700; letter-spacing: 2px; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btnSolid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(140, 67, 86, 0.35); }
.btnGhost {
  border: 1px solid var(--maroonHi); background: none; color: var(--maroonHi);
  padding: 8px 18px; font-size: 11.5px; font-weight: 700; cursor: pointer; border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btnGhost:hover { background: var(--maroon); color: #fff; }

/* 滚动浮现(内容页区块进入视野时淡入上滑,由 site.js 驱动) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ---- 页脚 ---- */
.bottomBar {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 44px) 18px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--dim); letter-spacing: 1px;
  gap: 10px; flex-wrap: wrap;
}
.bottomBar .mail { color: var(--maroonHi); font-weight: 600; }
.bottomBar a { color: inherit; text-decoration: none; }
.bottomBar a:hover { color: var(--maroonHi); }

/* ---- 窄屏 ≤960px:汉堡菜单 + 堆叠 ---- */
@media (max-width: 960px) {
  .navItems { display: none; }
  .menuBtn { display: block; }
  .mobileMenu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); z-index: 40;
    padding: 6px 20px 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  }
  .mobileMenu.open { display: block; }
  .mobileMenu a {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 13px 2px; border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: 1px;
  }
  .mobileMenu a small { color: var(--dim); font-size: 9px; letter-spacing: 2px; }
  .mobileMenu a:last-child { border-bottom: none; }
  .mobileMenu a:active { background: var(--hoverBg); }
  .bottomBar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
