/* 大制造 AI 应用展厅 —— 官网 Web 版（移植自 Mac 应用，改为文档流 + 响应式） */
:root {
  color-scheme: light;
  --ink: #151517;
  --muted: #6f727b;
  --quiet: #9a9da6;
  --line: rgba(25, 25, 30, 0.09);
  --panel: rgba(255, 255, 255, 0.72);
  --blue: #0071e3;
  --cyan: #22c8d8;
  --green: #16a17d;
  --shadow: 0 28px 90px rgba(32, 36, 46, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(247, 249, 253, 0.98), rgba(236, 241, 248, 0.88)),
    #f5f5f7;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.shell {
  position: relative;
  min-height: 100vh;
  padding: 20px 28px 64px;
  overflow: hidden;
}

/* 背景氛围层 */
.ambientStage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 18%, rgba(34, 200, 216, 0.12), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(0, 113, 227, 0.1), transparent 28%),
    linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(136, 185, 255, 0.12) 52%, rgba(96, 225, 197, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16));
}
.signalGrid {
  position: absolute;
  inset: -10%;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(28, 31, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 31, 38, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, black 18%, black 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, black 18%, black 72%, transparent);
  transform: perspective(900px) rotateX(58deg) translateY(120px);
  transform-origin: center bottom;
}
.signalConstellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
.signalConstellation path {
  fill: none;
  stroke: rgba(37, 43, 52, 0.14);
  stroke-width: 1.15;
  stroke-dasharray: 8 16;
}
.signalConstellation circle {
  fill: rgba(0, 113, 227, 0.28);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 2;
}

.content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* 顶部返回官网条 */
.siteBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 20px;
}
.siteBar .home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #4b4d55;
  font-size: 13px;
  font-weight: 700;
}
.siteBar .home:hover { color: var(--ink); }
.siteBar .home svg { opacity: .7; }
.siteBar .homeMark {
  height: 20px;
  width: 20px;
  display: block;
}
.siteBar .adminLink {
  color: #8a8d96;
  font-size: 12px;
  font-weight: 640;
}
.siteBar .adminLink:hover { color: var(--blue); }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding: 0 4px 18px 2px;
  user-select: none;
}
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #777a83;
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(40px, 4.55vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  white-space: nowrap;
}
.topbar h1 span {
  display: inline;
  margin-left: 0.16em;
  color: transparent;
  background: linear-gradient(90deg, #17181c 0%, #6e717a 42%, #13bfa5 72%, #0071e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.topActions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}
.searchBox {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  width: min(340px, 46vw);
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: #737580;
  box-shadow: 0 10px 30px rgba(30, 32, 40, 0.06);
  backdrop-filter: blur(22px);
}
.searchBox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.searchBox input::placeholder { color: #8e9098; }

.topUpload, .primaryAction, .secondaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.topUpload {
  height: 46px;
  padding: 0 17px;
  border-radius: 16px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 16px 32px rgba(29, 29, 31, 0.17);
}

.marketTabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow: auto;
  padding: 2px 4px 24px 2px;
  scrollbar-width: none;
}
.marketTabs::-webkit-scrollbar { display: none; }
.marketTabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: #4b4d55;
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
  backdrop-filter: blur(18px);
}
.marketTabs span { color: #9a9da6; font-size: 12px; }
.marketTabs .activeMarketTab {
  background: rgba(29, 29, 31, 0.92);
  border-color: rgba(29, 29, 31, 0.2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.14);
}
.marketTabs .activeMarketTab span { color: rgba(255, 255, 255, 0.62); }

.heroGrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 18px;
  margin-bottom: 24px;
}
.appGrid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.appCard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 386px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  background: var(--panel);
  box-shadow: 0 20px 54px rgba(35, 37, 46, 0.09);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(26px) saturate(150%);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.appCard::before {
  position: absolute;
  inset: -1px;
  z-index: 2;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.72) 42%, rgba(34, 200, 216, 0.22) 52%, transparent 70%);
  opacity: 0;
  transform: translateX(-42%) skewX(-14deg);
  transition: opacity 260ms ease, transform 780ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.appCard::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
  background: radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.52), transparent 30%), radial-gradient(circle at 84% 16%, rgba(34, 200, 216, 0.16), transparent 35%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.appCard:hover {
  transform: translateY(-5px) scale(1.004);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 72px rgba(26, 28, 38, 0.14);
}
.appCard:hover::before { opacity: 1; transform: translateX(58%) skewX(-14deg); }
.appCard:hover::after { opacity: 1; }

.featuredCard {
  min-height: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
}

.cover {
  position: relative;
  z-index: 0;
  min-height: 224px;
  overflow: hidden;
  background: #17191f;
}
.featuredCard .cover { aspect-ratio: 16 / 9; min-height: 0; }
.cover img, .cover video {
  width: 100%;
  height: 100%;
  min-height: 224px;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition: transform 560ms ease, filter 560ms ease;
}
.featuredCard .cover img, .featuredCard .cover video {
  min-height: 0;
  object-fit: cover;
  background: #111318;
}
.appCard:hover .cover img, .appCard:hover .cover video {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}
.coverSheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, transparent 25%, transparent 100%);
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 360ms ease, transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}
.appCard:hover .coverSheen { opacity: 1; transform: scale(1.04); }
.coverMeta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.coverMeta span {
  display: inline-grid;
  min-height: 29px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.cardBody {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  transition: transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}
.appCard:hover .cardBody { transform: translateY(-3px); }
.featuredCard .cardBody { padding: 22px 28px 26px; }
.cardTitleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cardBody h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 760;
}
.featuredCard h3 { max-width: 370px; font-size: 30px; line-height: 1.08; }
.status {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 6px 9px 0;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.06);
  color: #656771;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.statusLive { background: rgba(0, 159, 128, 0.11); color: #007a64; }
.cardBody p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}
.featuredCard .cardBody p { max-width: 760px; font-size: 15px; line-height: 1.62; }
.tagRow { display: flex; flex-wrap: wrap; gap: 8px; }
.tagRow span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(18, 18, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #555862;
  font-size: 12px;
  font-weight: 660;
}

.cardActions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 7px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.appCard:hover .cardActions, .appCard:focus-within .cardActions { opacity: 1; transform: translateY(0); }
.cardActions button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: #1d1d1f;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(24, 28, 36, 0.12);
  backdrop-filter: blur(18px);
}
.cardActions .activeCardAction { background: rgba(29, 29, 31, 0.92); color: #fff; }

.insightPanel {
  min-height: 452px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32)),
    linear-gradient(315deg, rgba(34, 200, 216, 0.22), rgba(0, 113, 227, 0.1) 48%, rgba(255, 255, 255, 0));
  color: #1d1d1f;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(170%);
}
.neuralCore {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 28%, rgba(34, 200, 216, 0.16) 29% 47%, rgba(255, 255, 255, 0.5) 48% 100%);
  box-shadow: inset 0 1px 0 #fff, 0 22px 48px rgba(0, 113, 227, 0.16);
}
.neuralCore span { position: relative; z-index: 2; font-size: 54px; font-weight: 790; line-height: 1; }
.neuralCore i, .neuralCore b {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 7px solid rgba(29, 29, 31, 0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--green);
}
.neuralCore b {
  inset: -12px;
  border-width: 1px;
  border-color: rgba(0, 113, 227, 0.18);
  border-left-color: rgba(22, 161, 125, 0.62);
}
.insightPanel strong { display: block; font-size: 25px; }
.insightPanel p { margin: 13px 0 28px; color: #686b74; font-size: 14px; line-height: 1.64; }
.signalBadge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #363941;
  font-size: 12px;
  font-weight: 760;
}
.signalBadge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18c79f;
  box-shadow: 0 0 0 6px rgba(24, 199, 159, 0.14), 0 0 20px rgba(24, 199, 159, 0.5);
}

.emptyState {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  padding: 44px 28px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.36)),
    linear-gradient(315deg, rgba(34, 200, 216, 0.2), rgba(0, 113, 227, 0.08) 48%, rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(28px) saturate(170%);
}
.emptyState .neuralCore { margin-bottom: 22px; }
.emptyState strong { display: block; font-size: 30px; }
.emptyState p { max-width: 420px; margin: 12px 0 24px; color: #686b74; font-size: 15px; line-height: 1.66; }

.sectionHead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 4px 14px 2px;
}
.sectionHead h2 { margin: 0; font-size: 26px; line-height: 1; }
.sectionHead > span { color: var(--quiet); font-size: 13px; font-weight: 680; }

/* 弹窗表单（上传/编辑） */
.modalLayer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(246, 247, 249, 0.54);
  backdrop-filter: blur(30px);
  z-index: 20;
}
.uploadModal {
  width: min(760px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 38px 110px rgba(28, 30, 38, 0.21);
}
.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.modalHead h2 { margin: 0; font-size: 30px; line-height: 1; }
.closeButton {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.06);
  cursor: pointer;
}
.coverDrop {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin-bottom: 8px;
  border: 1px dashed rgba(29, 29, 31, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(130deg, rgba(245, 247, 251, 0.9), rgba(255, 255, 255, 0.62)),
    linear-gradient(310deg, rgba(204, 232, 224, 0.42), rgba(255, 255, 255, 0));
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.coverDrop input { display: none; }
.coverDrop .coverPreview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coverDropIcon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 15px;
  background: rgba(29, 29, 31, 0.08);
}
.coverDrop strong, .coverDrop em { display: block; position: relative; z-index: 1; }
.coverDrop strong { font-size: 16px; }
.coverDrop em { margin-top: 6px; color: var(--muted); font-size: 12px; font-style: normal; }
.coverHint { margin: 0 0 18px; color: var(--quiet); font-size: 12px; text-align: center; }
.formGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.formGrid label, .wideField { display: grid; gap: 7px; }
.formGrid span, .wideField span { color: #5f6068; font-size: 12px; font-weight: 700; }
.formGrid input, .formGrid select, .wideField input, .wideField textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  background: rgba(247, 247, 249, 0.78);
  color: var(--ink);
}
.wideField { margin-top: 12px; }
.wideField textarea { min-height: 82px; padding: 11px 12px; resize: vertical; }
.modalActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secondaryAction, .primaryAction {
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 730;
}
.secondaryAction { background: rgba(29, 29, 31, 0.07); }
.primaryAction { background: var(--blue); color: #fff; }
.primaryAction:disabled { opacity: .55; cursor: default; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 40;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(20, 22, 28, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #c9382c; }

.loadingWrap {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--quiet);
  font-size: 14px;
}

@media (max-width: 1240px) {
  .topbar h1 { font-size: 42px; white-space: normal; }
  .appGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroGrid { grid-template-columns: 1fr; }
  .insightPanel { display: none; }
}

@media (max-width: 720px) {
  .shell { padding: 16px 16px 48px; }
  .topbar { flex-direction: column; gap: 16px; }
  .topActions { padding-top: 0; width: 100%; }
  .searchBox { width: 100%; }
  .appGrid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 38px; }
  .formGrid { grid-template-columns: 1fr; }
}
