/* ===== 画布与底座 ===== */
#app, #scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene canvas { display: block; }

/* 顶部品牌条 */
.topbar {
  position: fixed;
  z-index: 26;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.72), rgba(6, 12, 24, 0));
}
.brand { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; min-width: 0; pointer-events: auto; }
/* 品牌文字绝不逐字换行：小屏先省略副标题，再省略主标题 */
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
/* 3D 立体 logo 标牌：正反面 + 四个侧面组成实体，点击从左往右转一圈 */
.logo-3d {
  width: 168px;
  height: 46px;
  perspective: 800px;
  cursor: pointer;
  flex: none;
}
.logo-3d-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-12deg);
  transition: transform 0.25s ease-out;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.logo-3d:hover .logo-3d-inner { transform: rotateY(-18deg) rotateX(4deg); }
.logo-3d-inner.spinning {
  animation: logoSpin 1.2s cubic-bezier(0.25, 0.8, 0.35, 1);
}
@keyframes logoSpin {
  from { transform: rotateY(-12deg); }
  to   { transform: rotateY(348deg); }
}
/* 正面 / 背面：logo 贴在带厚度的亚克力面板上 */
.logo-plate-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 8px;
  background: linear-gradient(155deg, #ffffff 0%, #eef3f7 55%, #d9e3ec 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(20, 40, 60, 0.18);
}
.logo-plate-front { transform: translateZ(5px); }
.logo-plate-back  { transform: rotateY(180deg) translateZ(5px); }
/* 四个侧面：形成看得见的厚度（总厚 10px） */
.logo-plate-edge {
  position: absolute;
  background: linear-gradient(180deg, #9fb2c2 0%, #6f8496 50%, #4e6274 100%);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.35);
}
.logo-edge-top {
  left: 8px; right: 8px; top: 0; height: 10px;
  transform: rotateX(90deg);
  transform-origin: top center;
  background: linear-gradient(90deg, #cdd9e3, #ffffff 50%, #cdd9e3);
}
.logo-edge-bottom {
  left: 8px; right: 8px; bottom: 0; height: 10px;
  transform: rotateX(-90deg);
  transform-origin: bottom center;
}
.logo-edge-left {
  left: 0; top: 8px; bottom: 8px; width: 10px;
  transform: rotateY(90deg);
  transform-origin: left center;
}
.logo-edge-right {
  right: 0; top: 8px; bottom: 8px; width: 10px;
  transform: rotateY(-90deg);
  transform-origin: right center;
  background: linear-gradient(180deg, #8699aa, #52687a);
}
/* 斜向高光扫过面板，增强立体质感 */
.logo-plate-front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.brand-divider {
  width: 1px; height: 30px;
  background: var(--line-strong);
}
.loader-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.4));
}
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 12px; color: var(--text-dim); margin-top: 3px; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.top-actions {
  display: flex; gap: 10px; pointer-events: auto; align-items: center;
  flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px;
}
.weather-widget {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 22, 40, 0.72);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.weather-icon { font-size: 17px; }
.weather-temp { font-size: 15px; font-weight: 800; color: var(--gold-soft); }
.weather-text { color: var(--text-dim); }
.weather-city { color: var(--text-mute); font-size: 11px; }
.clock-sep { width: 1px; height: 13px; background: var(--line-strong); margin: 0 2px; }
.clock-time { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.5px; }
.clock-date { color: var(--text-mute); font-size: 11px; }
.chip {
  border: 1px solid var(--line-strong);
  background: rgba(12, 22, 40, 0.7);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  backdrop-filter: blur(8px);
  transition: 0.2s;
}
.chip:hover { color: #fff; border-color: var(--brand); }
.chip.active { color: #fff; background: rgba(59, 130, 246, 0.25); border-color: var(--brand); }

/* 中央引导标题 */
.hero {
  position: fixed;
  z-index: 15;
  left: 26px;
  bottom: 84px;
  text-align: left;
  pointer-events: none;
  box-sizing: border-box;
  width: min(92vw, 520px);
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(12, 20, 36, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transition: opacity 0.4s, transform 0.4s;
}
.hero.hidden { opacity: 0; transform: translateY(20px); }
/* hero 收起按钮（避免遮挡电话：固定在卡片右上，独立于联系人行） */
.hero-collapse {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 44px; height: 44px; min-width: 44px;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1; color: #f0c674;
  background: rgba(20, 30, 50, 0.85);
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 10px; cursor: pointer;
  pointer-events: auto;
  transition: background .2s, transform .2s, border-color .2s;
}
.hero-collapse:hover { background: rgba(217, 164, 65, 0.22); border-color: #f0c674; transform: scale(1.06); }
.hero-collapse:active { transform: scale(.96); }
/* 收起后的左侧窄标签 */
.hero-rail {
  position: fixed; z-index: 16;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 46px; min-height: 168px;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 0;
  color: #f0c674; cursor: pointer;
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-left: none;
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 24px rgba(0,0,0,.4);
  backdrop-filter: blur(10px);
  transition: width .25s, background .2s;
}
.hero-rail.show { display: flex; }
.hero-rail:hover { background: rgba(30, 42, 66, 0.96); width: 52px; }
.hero-rail .hr-logo { font-size: 20px; }
.hero-rail .hr-text {
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: 2px;
  white-space: nowrap;
}
.hero-rail .hr-arrow { font-size: 14px; opacity: .7; }
[dir="rtl"] .hero-collapse { right: auto; left: 12px; }
[dir="rtl"] .hero-rail {
  left: auto; right: 0; border-left: 1px solid rgba(217,164,65,.45); border-right: none;
  border-radius: 12px 0 0 12px; box-shadow: -4px 0 24px rgba(0,0,0,.4);
}
[dir="rtl"] .hero-rail:hover { width: 52px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  color: #ffd98a;
  border: 1px solid rgba(217, 164, 65, 0.6);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 18px;
  background: rgba(20, 28, 40, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 6px 24px rgba(0, 0, 0, 0.85);
}
.hero h1 em {
  font-style: normal;
  color: #ffd98a;
  -webkit-text-fill-color: #ffd98a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 6px 20px rgba(0, 0, 0, 0.8);
}
.hero p {
  display: block;
  margin: 12px 0 0;
  color: #dce8f5;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* 一键拨号联系人：hero 整体 pointer-events:none，这里单独开启点击 */
.hero-contacts {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  pointer-events: auto;
}
.hero-contact {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name call"
    "icon phone phone";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  background: linear-gradient(180deg, rgba(255, 217, 138, 0.14), rgba(20, 28, 40, 0.75));
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hero-contact:hover, .hero-contact:focus-visible {
  background: linear-gradient(180deg, rgba(255, 217, 138, 0.28), rgba(20, 28, 40, 0.85));
  border-color: #ffd98a;
  transform: translateY(-2px);
  outline: none;
}
.hero-contact:active { transform: translateY(0); }
.hc-icon { grid-area: icon; font-size: 17px; line-height: 1; align-self: center; }
.hc-name {
  grid-area: name;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.hc-phone {
  grid-area: phone;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 800;
  color: #ffd98a;
  letter-spacing: 0.6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: left;
}
.hc-call {
  grid-area: call;
  justify-self: end;
  font-size: 10px;
  font-weight: 700;
  color: #101820;
  background: #ffd98a;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .hero-contacts { flex-direction: column; }
  .hero-contact { width: 100%; }
}
[dir="rtl"] .hc-phone { text-align: right; }
[dir="rtl"] .hc-call { justify-self: start; }

/* 建筑标签（3D 投影定位） */
.labels { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
.bldg-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.25s;
  user-select: none;
}
.bldg-label .pill {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(10, 20, 38, 0.86);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}
.bldg-label .pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.bldg-label .pill .sub { font-weight: 400; color: var(--text-dim); font-size: 11px; }
.bldg-label:hover .pill, .bldg-label.hot .pill {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.16);
  transform: translateY(-2px);
}
.bldg-label .stem {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--stem-h, 22px);
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--line-strong), transparent);
  transition: height 0.15s ease-out;
}

/* 厂区标签：比背景城区地标更醒目，访客第一眼先看到我们自己的厂房 */
.bldg-label.factory-tag .pill {
  background: rgba(12, 24, 44, 0.95);
  border: 1px solid rgba(217, 164, 65, 0.8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(217, 164, 65, 0.18);
  font-size: 13px;
  padding: 7px 13px;
}
.bldg-label.factory-tag .pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex: none;
}

/* 底部提示 */
.hint {
  position: fixed;
  z-index: 18;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(10, 20, 38, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  color: var(--text-dim);
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.3s;
}
.hint.hidden { opacity: 0; }
.hint b { color: var(--gold-soft); font-weight: 600; }
.hint .sep { width: 1px; height: 12px; background: var(--line-strong); }

/* ===== 内容面板 ===== */
.panel {
  position: fixed;
  z-index: 30;
  top: 0; right: 0; bottom: 0;
  width: min(94vw, 520px);
  background: var(--panel);
  backdrop-filter: blur(22px);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.panel.open { transform: translateX(0); }

.panel-head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex: 0 0 auto;
}
.panel-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  transition: 0.2s;
}
.panel-close:hover { background: rgba(255, 255, 255, 0.12); }
.panel-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 2px; color: var(--gold-soft);
  margin-bottom: 12px;
}
.panel-title { margin: 0; font-size: 27px; font-weight: 800; }
.panel-desc { margin: 12px 0 0; color: var(--text-dim); font-size: 14px; line-height: 1.7; }

.panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 28px 40px;
}

.article-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  color: var(--text);
  transition: 0.2s;
}
.article-card:hover {
  border-color: var(--brand);
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}
.article-card .row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.article-card .tag {
  font-size: 11px; color: var(--gold-soft);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 6px; padding: 2px 8px;
}
.article-card .no { margin-left: auto; font-size: 11px; color: var(--text-mute); }
.article-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.article-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-dim); }

.article-detail h2 { font-size: 22px; margin: 0 0 14px; line-height: 1.4; }
.article-detail .tag { display: inline-block; font-size: 11px; color: var(--gold-soft);
  border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 6px; padding: 3px 9px; margin-bottom: 18px; }
.article-detail p { font-size: 15px; line-height: 1.9; color: var(--text-dim); margin: 0 0 14px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--brand-2);
  font-size: 13px; padding: 0 0 18px;
}
.back-link:hover { color: #fff; }

.panel-foot {
  flex: 0 0 auto;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-mute);
  display: flex; justify-content: space-between;
}
.panel-foot b { color: var(--text-dim); }

/* 加载态（与 index.html 内联关键 CSS 保持一致） */
#loading {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 35%, #15243c, #0b1220 70%);
  transition: opacity 0.6s;
}
#loading.done { opacity: 0; pointer-events: none; }
.loader-inner { max-width: 760px; text-align: center; }
.loader-ring {
  width: 54px; height: 54px; margin: 0 auto 18px;
  border: 3px solid rgba(120, 170, 230, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-title {
  font-size: clamp(20px, 3.2vw, 32px); font-weight: 800;
  letter-spacing: 1px; color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.loader-sub {
  margin-top: 12px; font-size: clamp(12px, 1.5vw, 15px);
  color: var(--gold-soft); letter-spacing: 0.5px; line-height: 1.7;
}
.loader-progress {
  margin-top: 14px; font-size: 12px;
  color: var(--text-dim); letter-spacing: 1px;
}
.loader-progress[hidden] { display: none; }
.loader-text { font-size: 13px; letter-spacing: 3px; color: var(--text-dim); }

/* 2D 回退视图 */
#fallback {
  position: fixed; inset: 0; z-index: 25;
  display: none;
  padding: 110px 24px 40px;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, #15233c, #0b1220 70%);
}
#fallback.show { display: block; }
.fb-title { text-align: center; margin-bottom: 28px; }
.fb-title h2 { font-size: 24px; margin: 0 0 8px; }
.fb-title p { color: var(--text-dim); font-size: 13px; }
.fb-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: 1000px; margin: 0 auto;
}
.fb-card {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  border-radius: 14px; padding: 20px;
  color: var(--text); text-align: left;
  transition: 0.2s;
}
.fb-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.fb-card .ico { font-size: 30px; }
.fb-card h3 { margin: 12px 0 6px; font-size: 17px; }
.fb-card p { margin: 0; font-size: 12px; color: var(--text-dim); line-height: 1.6; }
/* 全站导航分区标题 */
.fb-section-title {
  grid-column: 1 / -1;
  margin: 26px 0 2px;
  padding: 0 0 10px;
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
  color: var(--gold, #d9a441);
  border-bottom: 1px solid var(--line-strong, rgba(120,170,230,.45));
}
.fb-section-title:first-child { margin-top: 4px; }
/* 分类/单页卡片更紧凑 */
.fb-card-sm { padding: 13px 16px; }
.fb-card-sm .ico { font-size: 20px; }
.fb-card-sm h3 { margin: 6px 0 0; font-size: 14px; }
.fb-card-sm p { font-size: 11px; margin-top: 3px; }
/* 简版导航：返回园区按钮已有；提示语居中 */
#fallback .fb-title p { max-width: 520px; margin: 0 auto; }

/* 移动端 */
@media (max-width: 720px) {
  .topbar { padding: 10px 12px; align-items: flex-start; gap: 8px; }
  .logo-3d { width: 136px; height: 38px; }
  .brand-logo { height: 32px; }
  .brand-divider, .brand-sub { display: none; }
  .brand-text { max-width: 96px; }
  .brand-name { font-size: 13px; }
  .top-actions { gap: 6px; max-width: calc(100vw - 160px); }
  .weather-widget { padding: 6px 9px; gap: 5px; font-size: 10px; }
  .weather-city, .clock-date, .clock-sep, .weather-text { display: none; }
  .weather-temp { font-size: 12px; }
  .clock-time { font-size: 11px; }
  .lang-select { max-width: 92px; font-size: 11px; padding: 6px 8px; }
  .chip { padding: 6px 10px; font-size: 11px; }
  #btnReset { display: none; }
  .hero { left: 12px; bottom: 70px; padding: 14px 16px; }
  .hero h1 { font-size: 22px; }
  .panel { width: 100vw; border-left: none; }
  .panel-head { padding: 22px 20px 18px; }
  .panel-body { padding: 18px 20px 34px; }
  .panel-foot { padding: 12px 20px; }
  .hint { gap: 10px; padding: 8px 14px; font-size: 10px; bottom: 14px; }
  .bldg-label .pill { font-size: 11px; padding: 5px 9px; }
  .bldg-label .pill .sub { display: none; }
}

/* ===== 语言选择器 ===== */
.lang-select {
  border: 1px solid var(--line-strong);
  background: rgba(12, 22, 40, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  max-width: 140px;
}
.lang-select:hover { border-color: var(--brand); }
.lang-select option { background: #101a2c; color: #fff; }

/* ===== 适配：大屏桌面 ===== */
@media (min-width: 1600px) {
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 14px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }
  .weather-widget { font-size: 13px; padding: 9px 18px; }
  .lang-select { font-size: 13px; }
  .panel { width: 560px; }
}

/* ===== 适配：平板（721-1024px） ===== */
@media (min-width: 721px) and (max-width: 1024px) {
  .topbar { padding: 14px 18px; }
  .brand-logo { height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 11px; }
  .weather-city, .clock-date { display: none; }
  .lang-select { max-width: 110px; font-size: 11px; }
  .hero { left: 18px; bottom: 74px; }
  .hero h1 { font-size: 30px; }
  .panel { width: min(90vw, 480px); }
}

/* ===== 适配：手机横屏 ===== */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .topbar { padding: 8px 14px; }
  .brand-logo { height: 28px; }
  .hero { display: none; }
  .hint { bottom: 8px; }
  .panel-head { padding: 12px 18px 10px; }
  .panel-title { font-size: 20px; }
  .panel-body { padding: 12px 18px 20px; }
}

/* ===== 适配：小屏手机（≤400px） ===== */
@media (max-width: 400px) {
  .logo-3d { width: 112px; height: 30px; }
  .brand-logo { height: 26px; }
  .brand-text { display: none; }
  .top-actions { max-width: calc(100vw - 124px); }
  .lang-select { max-width: 76px; font-size: 10px; padding: 5px 6px; }
  .chip { padding: 5px 8px; font-size: 10px; }
  #btnSeason { display: none; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 11px; padding: 6px 12px; }
  .panel-head { padding: 18px 16px 14px; }
  .panel-title { font-size: 22px; }
  .panel-body { padding: 14px 16px 28px; }
  .article-card { padding: 12px 14px; }
  .article-card h3 { font-size: 14px; }
  .hint { display: none; }
}

/* ===== RTL（阿拉伯语）适配 ===== */
[dir="rtl"] .topbar { flex-direction: row-reverse; }
[dir="rtl"] .panel { right: auto; left: 0; border-left: none; border-right: 1px solid var(--line-strong); transform: translateX(-105%); }
[dir="rtl"] .panel.open { transform: translateX(0); }
[dir="rtl"] .article-card:hover { transform: translateX(-4px); }
[dir="rtl"] .hero { text-align: right; }
[dir="rtl"] .fb-card { text-align: right; }
[dir="rtl"] .brand-text { align-items: flex-end; }

/* ===== 一键拨号确认框 ===== */
.call-modal {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.call-modal[hidden] { display: none; }
.call-modal-mask {
  position: absolute; inset: 0;
  background: rgba(4, 9, 18, 0.68);
  backdrop-filter: blur(4px);
}
.call-modal-box {
  position: relative;
  width: min(92vw, 340px);
  padding: 24px 22px 20px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(160deg, rgba(20,32,52,0.98), rgba(10,17,30,0.98));
  border: 1px solid rgba(255, 217, 138, 0.5);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  animation: callPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes callPop {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
.call-modal-icon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.call-modal-title {
  font-size: 20px; font-weight: 900; color: #ffd98a; letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.call-modal-who { margin-top: 12px; font-size: 16px; font-weight: 700; color: #fff; }
.call-modal-phone {
  margin-top: 6px; font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.call-modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.call-btn {
  flex: 1; padding: 11px 0; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.call-btn:active { transform: scale(0.97); }
.call-btn.no { background: rgba(255,255,255,0.12); color: #dce8f5; border-color: rgba(255,255,255,0.25); }
.call-btn.no:hover { background: rgba(255,255,255,0.2); }
.call-btn.yes { background: #ffd98a; color: #101820; }
.call-btn.yes:hover { filter: brightness(1.08); }

/* ===== 无刷新阅读视图（客户轨道） ===== */
.back-link {
  display: inline-block; margin-bottom: 18px; padding: 8px 14px;
  background: rgba(217,164,65,.10); border: 1px solid rgba(217,164,65,.4);
  border-radius: 8px; color: #f0c674; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.back-link:hover { background: rgba(217,164,65,.2); }
.reader-content, .reader-list { color: var(--text); }
.reader-content h1, .reader-content h2, .reader-content h3 { color: var(--gold-soft); }
.reader-content p { line-height: 1.85; margin: 0 0 14px; }
.reader-content img { max-width: 100%; height: auto; border-radius: 8px; }
.reader-content a { color: #7dd3fc; }
.reader-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.reader-content th, .reader-content td { border: 1px solid var(--line); padding: 8px 10px; }
.reader-card {
  display: block; text-decoration: none; color: inherit; margin-bottom: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(22,34,56,.7); transition: border-color .2s, background .2s;
}
.reader-card:hover { border-color: var(--gold); background: rgba(30,45,72,.9); }
.reader-card h3 { font-size: 15px; margin: 0 0 6px; color: #fff; }
.reader-card p { font-size: 12px; color: var(--text-mute); margin: 0; line-height: 1.65; }
.reader-note {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-mute);
}
.reader-note a { color: var(--gold-soft); text-decoration: none; }
[dir="rtl"] .back-link { margin-left: auto; }

/* ===== 线上资料区（厂房面板底部） ===== */
.section-links {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sl-head {
  font-size: 13px; color: var(--gold-soft); font-weight: 700;
  letter-spacing: .5px; margin-bottom: 12px;
}
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sl-item {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 11px 12px; text-align: left;
  background: rgba(22,34,56,.7); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-family: inherit;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.sl-item:hover { border-color: var(--gold); background: rgba(30,45,72,.9); }
.sl-title { font-size: 13px; font-weight: 600; }
.sl-type { font-size: 11px; color: var(--text-mute); }
[dir="rtl"] .sl-item { text-align: right; align-items: flex-end; }
@media (max-width: 400px) { .sl-grid { grid-template-columns: 1fr 1fr; } }

/* ===== 面板阅读区浅色化（v1.21，与服务端文章页一致）=====
   文章正文自带内联深色字，深色面板上对比度不足；铺浅色纸，深色字自然清晰。 */
.reader-view .reader-content {
  background: #fff;
  color: #243447;
  border-radius: 12px;
  padding: 22px 20px 26px;
  margin-top: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.reader-view .reader-content p { color: #243447; }
.reader-view .reader-content h1,
.reader-view .reader-content h2,
.reader-view .reader-content h3 { color: #1a3a6b; }
.reader-view .reader-content a { color: #2563eb; }
.reader-view .reader-content table th,
.reader-view .reader-content table td { border-color: #dbe3ef; color: #243447; }
.reader-view .reader-content table th { background: #f0f4fa; }
.reader-view .reader-content .edrt-lead { background: #fff8e8; color: #3b4760; border-left-color: #d9a441; }
.reader-note { color: #9fb2cc; }
@media (max-width: 720px) {
  .reader-view .reader-content { padding: 16px 14px 22px; }
}
