*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #14181d;
  background:
    radial-gradient(circle at top left, rgba(242, 162, 77, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(74, 93, 176, 0.14), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f3f6fb 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

body.notworking-page {
  --ink: #14181d;
  --panel: #fff;
  --line: #e5e1d7;
  --orange: #f2a24d;
  --blue: #4b5db0;
  --shadow: 0 18px 40px rgba(20, 24, 29, 0.12);
}

.notworking-header,
.notworking-hero,
.notworking-section,
.notworking-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.notworking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.82));
  backdrop-filter: blur(10px);
}

.notworking-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notworking-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14181d, #f2a24d);
  color: #fff;
  font-weight: 700;
}

.notworking-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notworking-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.notworking-cta {
  background: linear-gradient(135deg, var(--orange), #14181d) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.notworking-hero {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 24px;
  align-items: stretch;
  padding: 22px 0 10px;
}

.notworking-tree,
.notworking-copy,
.notworking-grid article,
.notworking-box,
.notworking-faq,
.notworking-final,
.notworking-footer {
  box-shadow: var(--shadow);
}

.notworking-tree,
.notworking-copy,
.notworking-grid article,
.notworking-box,
.notworking-faq,
.notworking-final {
  background: var(--panel);
  border: 1px solid rgba(20, 24, 29, 0.08);
  border-radius: 30px;
}

.notworking-tree {
  display: grid;
  gap: 14px;
  padding: 24px;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(242, 162, 77, 0.12), rgba(75, 93, 176, 0.08)),
    #fff;
}

.notworking-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f7f9ff;
  font-weight: 800;
}

.notworking-node.is-current {
  background: linear-gradient(135deg, var(--orange), #14181d);
  color: #fff;
}

.notworking-branch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.notworking-branch span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff7ea;
  border: 1px solid var(--line);
  font-weight: 700;
}

.notworking-copy {
  padding: 28px;
}

.notworking-kicker,
.notworking-tag {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: #f08c27;
  font-weight: 700;
}

.notworking-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.notworking-lead {
  margin: 16px 0 20px;
  color: #3f454c;
  line-height: 1.85;
  font-size: 18px;
}

.notworking-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notworking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notworking-btn:hover {
  transform: translateY(-1px);
}

.notworking-btn:active {
  transform: translateY(1px);
}

.notworking-btn:focus-visible,
.notworking-nav a:focus-visible,
.notworking-faq summary:focus-visible {
  outline: 3px solid rgba(242, 162, 77, 0.34);
  outline-offset: 2px;
}

.notworking-btn.primary {
  background: linear-gradient(135deg, var(--orange), #14181d);
  color: #fff;
}

.notworking-btn.ghost {
  background: #f7f9ff;
  color: var(--ink);
  border-color: var(--line);
}

.notworking-btn.large {
  min-height: 52px;
  padding-inline: 22px;
}

.notworking-hint {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notworking-hint span {
  font-size: 13px;
  color: #60656d;
}

.notworking-hint strong {
  display: block;
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9ff;
  border: 1px solid var(--line);
}

.notworking-section {
  padding: 18px 0;
}

.notworking-head {
  margin-bottom: 14px;
}

.notworking-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.14;
}

.notworking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.notworking-grid article,
.notworking-box,
.notworking-final {
  padding: 22px;
}

.notworking-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.notworking-grid p,
.notworking-box p,
.notworking-final p,
.notworking-faq p,
.notworking-footer p {
  margin: 0;
  color: #3f454c;
  line-height: 1.84;
}

.notworking-box {
  display: grid;
  gap: 14px;
}

.notworking-faq {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.notworking-faq details {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 14px 16px;
}

.notworking-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.notworking-final {
  display: grid;
  gap: 18px;
}

.notworking-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  margin: 22px auto 104px;
  border-radius: 28px;
  background: linear-gradient(135deg, #14181d, #f2a24d);
  color: #fff;
}

.notworking-footer p {
  color: #fff5e8;
}

.notworking-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #4b5db0;
  color: #fff;
  font-weight: 800;
}

.notworking-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 24, 29, 0.92);
  backdrop-filter: blur(12px);
}

.notworking-mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fffdf7;
  color: #14181d;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .notworking-hero,
  .notworking-grid,
  .notworking-footer {
    grid-template-columns: 1fr;
  }

  .notworking-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .notworking-header,
  .notworking-hero,
  .notworking-section,
  .notworking-footer {
    width: min(100% - 20px, 1200px);
  }

  .notworking-tree,
  .notworking-copy,
  .notworking-grid article,
  .notworking-box,
  .notworking-faq,
  .notworking-final,
  .notworking-footer {
    border-radius: 22px;
  }

  .notworking-branch {
    grid-template-columns: 1fr;
  }

  .notworking-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notworking-hint {
    grid-template-columns: 1fr;
  }

  .notworking-mobile-bar {
    grid-template-columns: 1fr;
  }

  .notworking-btn,
  .notworking-mobile-bar a {
    width: 100%;
  }

  .notworking-footer {
    margin-bottom: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .notworking-btn {
    transition: none;
  }
}
