:root {
      --ink: #24334a;
      --muted: #66758c;
      --line: #cbdceb;
      --paper: #edf7fd;
      --card: #ffffff;
      --green: #2785ba;
      --green-soft: #e5f4fc;
      --orange: #ad641d;
      --orange-soft: #fff2df;
      --blue: #3768a4;
      --blue-soft: #edf4ff;
      --purple: #74569c;
      --purple-soft: #f4effb;
      --gray-soft: #eef1ef;
      --shadow: 6px 6px 0 rgba(70, 132, 171, .11);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background-color: var(--paper);
      background-image:
        linear-gradient(rgba(104, 172, 211, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 172, 211, .09) 1px, transparent 1px);
      background-size: 16px 16px;
      font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    }

    button, input { font: inherit; }
    button { cursor: pointer; }

    .shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }

    header { padding: 52px 0 28px; }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--green);
      font-weight: 800;
      font-size: 13px;
      letter-spacing: .14em;
    }
    .eyebrow::before {
      content: "";
      width: 8px; height: 8px;
      border-radius: 1px;
      background: #e85d5d;
      box-shadow: 0 0 0 4px #fff;
    }
    h1 {
      max-width: 850px;
      margin: 19px 0 12px;
      font-size: clamp(38px, 6vw, 70px);
      line-height: 1.03;
      letter-spacing: -.04em;
      text-shadow: 3px 3px 0 rgba(72, 150, 194, .13);
    }
    .intro {
      max-width: 720px;
      margin: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.8;
    }

    .search-wrap {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px;
      margin-top: 32px;
      padding: 8px;
      max-width: 840px;
      background: rgba(255,255,255,.82);
      border: 1px solid rgba(255,255,255,.9);
      border: 2px solid #bcd7e8;
      border-radius: 4px;
      box-shadow: var(--shadow);
    }
    .search {
      width: 100%;
      padding: 15px 18px;
      border: 0;
      outline: none;
      background: transparent;
      color: var(--ink);
      font-size: 16px;
    }
    .search-button {
      border: 0;
      border-radius: 3px;
      padding: 0 22px;
      color: white;
      background: #388fc2;
      font-weight: 750;
    }

    .workflow {
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 15px 0;
      background: rgba(237,247,253,.94);
      border-bottom: 2px solid #c6ddeb;
    }
    .workflow-inner {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .workflow-inner::-webkit-scrollbar { display: none; }
    .stage {
      flex: 0 0 auto;
      padding: 11px 15px;
      border: 2px solid #c3dbea;
      border-radius: 4px;
      color: #4f5b55;
      background: rgba(255,255,255,.88);
      box-shadow: 3px 3px 0 rgba(77, 143, 181, .1);
      transition: .2s ease;
    }
    .stage:hover, .stage.active {
      border-color: #247ead;
      color: white;
      background: #3d9acb;
    }
    .stage-count {
      display: inline-grid;
      place-items: center;
      min-width: 21px;
      height: 21px;
      margin-left: 6px;
      padding: 0 5px;
      border-radius: 2px;
      background: rgba(255,255,255,.22);
      font-size: 11px;
    }

    main { padding: 34px 0 80px; }
    .toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 22px;
    }
    .section-title { margin: 0; font-size: 24px; letter-spacing: -.03em; }
    .section-note { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
    .filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
    .filter {
      padding: 8px 12px;
      border: 1px solid var(--line);
      border: 2px solid var(--line);
      border-radius: 3px;
      background: white;
      color: #536059;
      font-size: 13px;
    }
    .filter.active { border-color: #67a9cc; color: #247ead; background: #e1f3fc; }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    .card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 290px;
      padding: 22px;
      overflow: hidden;
      border: 2px solid var(--line);
      border-radius: 5px;
      background: rgba(255,255,255,.9);
      box-shadow: 5px 5px 0 rgba(68, 136, 175, .1);
      transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }
    .card::after {
      content: "";
      position: absolute;
      top: -38px; right: -38px;
      width: 96px; height: 96px;
      border-radius: 4px;
      background: var(--accent-soft);
    }
    .card:hover { transform: translate(-2px, -2px); border-color: #79afd0; box-shadow: 8px 8px 0 rgba(68, 136, 175, .13); }
    .card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
    .category {
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .035em;
    }
    .tool-name { margin: 18px 0 7px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
    .scene { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
    .description { margin: 0; color: #3f4a44; font-size: 14px; line-height: 1.75; }
    .meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: auto;
      padding-top: 19px;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      border-radius: 2px;
      color: #56625c;
      background: var(--gray-soft);
      font-size: 11px;
      font-weight: 700;
    }
    .badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
    .badge.available { color: var(--green); background: var(--green-soft); }
    .badge.testing { color: var(--blue); background: var(--blue-soft); }
    .badge.building { color: var(--orange); background: var(--orange-soft); }
    .badge.upgrading { color: var(--purple); background: var(--purple-soft); }
    .owner { padding: 5px 8px; color: #68736d; font-size: 11px; font-weight: 700; }
    .actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
    .action {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 42px;
      padding: 10px 13px;
      border: 2px solid var(--line);
      border-radius: 3px;
      color: #59645e;
      background: white;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
    }
    .action.primary { border-color: #267eac; color: white; background: #3996c8; box-shadow: 3px 3px 0 #c9dfeb; }
    .action.disabled { cursor: default; color: #9aa39e; background: #f4f6f4; }
    .action:not(.disabled):hover { filter: brightness(.96); }
    .empty {
      display: none;
      padding: 64px 24px;
      text-align: center;
      border: 2px dashed #a7cde2;
      border-radius: 5px;
      color: var(--muted);
      background: rgba(255,255,255,.7);
    }

    footer {
      padding: 24px 0 50px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 12px;
      line-height: 1.8;
    }

    @media (max-width: 1050px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 700px) {
      .shell { width: min(100% - 24px, 1440px); }
      header { padding-top: 36px; }
      .search-wrap { grid-template-columns: 1fr; }
      .search-button { min-height: 44px; }
      .toolbar { align-items: flex-start; flex-direction: column; }
      .filters { justify-content: flex-start; }
      .grid { grid-template-columns: 1fr; }
      .card { min-height: 270px; }
    }

    /* Pixel Doraemon theme */
    body {
      color: #172231;
      background:
        radial-gradient(circle at 20% 5%, rgba(180,224,246,.8), transparent 27rem),
        radial-gradient(circle at 92% 35%, rgba(201,234,249,.85), transparent 24rem),
        #f4fbff;
    }
    header {
      position: relative;
      min-height: 600px;
      padding: 46px 0 42px;
      overflow: hidden;
      border-bottom: 5px solid #172231;
      background:
        radial-gradient(circle at 48% 38%, rgba(156,210,238,.72), transparent 21rem),
        radial-gradient(circle at 18% 72%, rgba(200,233,248,.75), transparent 18rem),
        linear-gradient(135deg, #fbfdff 0%, #dff2fb 52%, #fafdff 100%);
    }
    header::before, header::after {
      content: "✦";
      position: absolute;
      color: #43a2d2;
      font-size: 54px;
      text-shadow: 4px 4px 0 white;
      animation: twinkle 2.8s steps(2) infinite;
    }
    header::before { left: 4%; top: 12%; }
    header::after { right: 5%; bottom: 10%; animation-delay: .8s; }
    @keyframes twinkle { 50% { opacity: .3; transform: scale(.8); } }
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 370px;
      align-items: center;
      gap: 48px;
      min-height: 500px;
    }
    .hero-copy {
      position: relative;
      z-index: 2;
      max-width: 790px;
      padding: 34px;
      border: 5px solid #172231;
      background: rgba(255,255,255,.91);
      box-shadow: 10px 10px 0 #46a1d0;
    }
        .hero-art {
      position: relative;
      z-index: 2;
      align-self: stretch;
      max-width: 370px;
      width: 100%;
      height: auto;
      border: 5px solid #172231;
      box-shadow: 10px 10px 0 #46a1d0;
      object-fit: contain;
    }
    .hero-art::after {
      content: "AI POCKET →";
      position: absolute;
      right: -5px;
      bottom: -5px;
      padding: 9px 12px;
      border: 4px solid #172231;
      color: white;
      background: #ef696d;
      font: 800 11px/1 monospace;
      letter-spacing: .08em;
    }
    .eyebrow { color: #2485b7; }
    .eyebrow::before { background: #e9575d; box-shadow: 0 0 0 3px #172231; }
    h1 {
      max-width: 750px;
      font-size: clamp(44px, 6vw, 78px);
      line-height: 1.08;
      text-shadow: 4px 4px 0 #b9e1f4;
    }
    .search-wrap { max-width: none; border: 4px solid #172231; border-radius: 0; box-shadow: 6px 6px 0 #46a1d0; }
    .search-button { border-left: 4px solid #172231; border-radius: 0; background: #37a0d5; }
    .workflow { background: rgba(244,251,255,.96); border-bottom: 4px solid #172231; }
    .stage { border: 3px solid #172231; border-radius: 0; color: #172231; background: white; box-shadow: 4px 4px 0 #a8d8ee; }
    .stage:hover, .stage.active { border-color: #172231; background: #3d9acb; box-shadow: 4px 4px 0 #ef6c70; }
    .stage-count, .filter, .card, .badge, .action, .empty { border-radius: 0; }
    main { padding-top: 42px; }
    .section-title { font-size: 28px; text-shadow: 2px 2px 0 #c4e6f5; }
    .filter { border: 3px solid #172231; }
    .filter.active { border-color: #172231; color: white; background: #3d9acb; box-shadow: 3px 3px 0 #ef6c70; }
    .card { border: 4px solid #172231; background: rgba(255,255,255,.96); box-shadow: 7px 7px 0 #acdced; }
    .card:hover { transform: translate(-3px, -3px); border-color: #172231; box-shadow: 10px 10px 0 #ef777a; }
    .action { border: 3px solid #172231; }
    .action.primary { border-color: #172231; background: #3996c8; box-shadow: 4px 4px 0 #ef6c70; }
    footer { border-top: 4px solid #172231; }
    @media (max-width: 900px) {
      .hero { grid-template-columns: 1fr; gap: 22px; }
      .hero-art { max-width: 100%; }
    }
    @media (max-width: 700px) {
      header { min-height: auto; }
      .hero-copy { padding: 22px; }
      .hero-art { max-width: 100%; }
      .search-button { border-left: 0; border-top: 4px solid #172231; }
    }