/* 行动 GPS 全站跳转条 */
.opc-gps-strip {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(10, 14, 26, 0.94);
  border-bottom: 1px solid rgba(0, 255, 208, 0.18);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
}
.alliance-body .opc-gps-strip { top: 0; }
.opc-gps-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.opc-gps-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  flex: 1 1 220px;
}
.opc-gps-phase {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00ffd0;
  letter-spacing: 0.04em;
}
.opc-gps-task {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.opc-gps-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 2 1 320px;
  justify-content: flex-end;
}
.opc-gps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opc-gps-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
}
.opc-gps-chip:hover { border-color: #38bdf8; color: #e2e8f0; }
.opc-gps-chip--active {
  border-color: rgba(0, 255, 208, 0.55);
  background: rgba(0, 255, 208, 0.12);
  color: #00ffd0;
  font-weight: 600;
}
.opc-gps-primary {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 208, 0.45);
  background: rgba(0, 255, 208, 0.15);
  color: #00ffd0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.opc-gps-primary:hover { background: rgba(0, 255, 208, 0.25); }
.opc-gps-link {
  font-size: 0.78rem;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.opc-gps-link:hover { color: #94a3b8; }
.opc-gps-link--eval { color: #a78bfa; }
.opc-gps-strip--home {
  top: 0;
  position: relative;
  z-index: 5;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

/* 首页 GPS：左区撑满 · 右区固定操作 */
.home-header .opc-gps-strip-inner--home-compact {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.home-header .opc-gps-home-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.home-header .opc-gps-home-ops {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.home-header .opc-gps-guest-note {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #fbbf24;
  white-space: nowrap;
}

.home-header .opc-gps-link--guest-reg {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.home-header .opc-gps-link--guest-reg:hover {
  color: #bae6fd;
}

.home-header .opc-gps-home-profile {
  flex-shrink: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.home-header .opc-gps-home-profile strong {
  color: #e2e8f0;
  font-weight: 600;
}

.home-header .opc-gps-home-gate {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.06);
}

.home-header .opc-gps-home-gate-stat {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}

.home-header .opc-gps-home-gate-bar {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.home-header .opc-gps-home-gate-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-phase {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(148, 163, 184, 0.1);
  white-space: nowrap;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-task {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-header .opc-gps-chips--home {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 0 0 auto;
}

.home-header .opc-gps-chips--home .opc-gps-chip {
  font-size: 0.8rem;
  padding: 4px 10px;
  white-space: nowrap;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(30, 34, 48, 0.35);
  color: #94a3b8;
}

.home-header .opc-gps-chips--home .opc-gps-chip--active {
  border-color: rgba(148, 163, 184, 0.42);
  color: #e2e8f0;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-dontknow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.95rem;
  line-height: 30px;
  text-align: center;
  border-radius: 7px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-primary,
.home-header .opc-gps-strip-inner--home-compact .opc-gps-primary--link {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  text-decoration: none;
  cursor: pointer;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-primary:hover,
.home-header .opc-gps-strip-inner--home-compact .opc-gps-primary--link:hover {
  background: rgba(148, 163, 184, 0.22);
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-link--eval {
  color: #a78bfa;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-link--retest {
  color: #7dd3fc;
}

.home-header .opc-gps-strip-inner--home-compact .opc-gps-link:hover {
  color: #e2e8f0;
}

.opc-gps-strip--guest .opc-gps-strip-actions {
  justify-content: flex-start;
}

.opc-gps-strip--guest .opc-gps-primary--link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 208, 0.45);
  background: rgba(0, 255, 208, 0.15);
  color: #00ffd0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.aw-welcome-banner.opc-gps-pulse {
  box-shadow: 0 0 0 2px rgba(0, 255, 208, 0.55), 0 0 24px rgba(0, 255, 208, 0.2);
  transition: box-shadow 0.3s ease;
}

/* 智造工坊 · 模块定位说明（业余智造 / 凡人智商 / 民间智汇统一排版） */
.module-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(20, 24, 38, 0.65);
}

.module-intro__icon {
  flex-shrink: 0;
  width: 2.25rem;
  font-size: 1.65rem;
  line-height: 1;
  text-align: center;
  padding-top: 2px;
}

.module-intro__body {
  min-width: 0;
  flex: 1;
}

.module-intro__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.module-intro__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #9ca3af;
  word-break: break-word;
}

.module-intro__desc strong {
  font-weight: 600;
  color: #e8e4ef;
}

.module-intro__desc a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.module-intro--zhizao {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(167, 139, 250, 0.05));
  border-color: rgba(56, 189, 248, 0.22);
}

.module-intro--zhizao .module-intro__title { color: #38bdf8; }
.module-intro--zhizao .module-intro__desc strong { color: #7dd3fc; }

.module-intro--fanren {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(167, 139, 250, 0.05));
  border-color: rgba(74, 222, 128, 0.22);
}

.module-intro--fanren .module-intro__title { color: #4ade80; }
.module-intro--fanren .module-intro__desc strong { color: #86efac; }

.module-intro--sub {
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(167, 139, 250, 0.06));
  border-color: rgba(167, 139, 250, 0.28);
}

.module-intro--sub .module-intro__title { color: #c4b5fd; }

/* 智造工坊子页顶栏：两行布局，语言切换不再挤乱模块 Tab */
.workshop-nav {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 0;
}

.workshop-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 52px;
  padding: 10px 24px;
}

.workshop-nav__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.workshop-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.workshop-nav .lang-switcher {
  margin-right: 0;
}

/* 灵感库/玩法示范说明条（民间智汇·业余智造·凡人智商通用） */
.inspiration-note {
  margin: 6px 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.1);
  border-left: 3px solid rgba(167, 139, 250, 0.5);
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}
.inspiration-note strong { color: #c4b5fd; }

/* 「🤔我该干嘛？」按钮：温和、显眼、给迷茫者的救命入口 */
.opc-gps-dontknow {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.opc-gps-dontknow:hover { background: rgba(251, 191, 36, 0.22); }

/* 「我该干嘛」救命浮层 */
.opc-dontknow-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.opc-dontknow-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  padding: 26px 22px 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.98));
  border: 1px solid rgba(0, 255, 208, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.opc-dontknow-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.opc-dontknow-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00ffd0;
  margin-bottom: 14px;
}
.opc-dontknow-task {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f5f9;
  margin: 0 0 18px;
}
.opc-dontknow-go {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: #00ffd0;
  color: #06241f;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.opc-dontknow-go:hover { box-shadow: 0 6px 18px rgba(0, 255, 208, 0.3); }

/* 模块首次进入：一句话气泡 */
.opc-module-intro {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 1500;
  max-width: min(560px, 92vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.97));
  border: 1px solid rgba(0, 255, 208, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.opc-module-intro--show { transform: translate(-50%, 0); opacity: 1; }
.opc-module-intro-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #f1f5f9;
  flex: 1;
}
.opc-module-intro-close {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 9px;
  background: rgba(0, 255, 208, 0.18);
  border: 1px solid rgba(0, 255, 208, 0.45);
  color: #00ffd0;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.opc-module-intro-close:hover { background: rgba(0, 255, 208, 0.28); }

@media (max-width: 900px) {
  .workshop-nav__tabs {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .opc-gps-strip { top: 52px; padding: 8px 12px; }
  .opc-gps-strip-actions { justify-content: flex-start; }
  .home-header .opc-gps-strip--home { padding: 0; }
  .home-header .opc-gps-strip-actions { width: auto; justify-content: flex-end; }
  .home-header .opc-gps-chips { display: none; }
  .opc-module-intro { bottom: 14px; flex-direction: column; align-items: stretch; text-align: center; }
  .module-intro { padding: 14px 16px; gap: 12px; }
  .module-intro__title { font-size: 0.9rem; }
  .module-intro__desc { font-size: 0.84rem; line-height: 1.7; }
  .workshop-nav__row { padding: 10px 16px; flex-wrap: wrap; }
  .workshop-nav__tabs { padding: 0 16px 10px; }
}
