:root {
      --bg: #09090b;
      --panel: #141418;
      --line: rgba(255, 255, 255, 0.08);
      --text: #f4f4f5;
      --muted: #a1a1aa;
      --accent: #f0529b;
      --accent2: #8b5cf6;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; height: 100%; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
      background: var(--bg);
      color: var(--text);
      padding: 22px 20px 24px;
    }
    .wrap {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: linear-gradient(165deg, #101014, #0b0b0e);
      padding: 16px;
      max-width: 1200px;
      margin: 0 auto;
    }
    .title {
      margin: 0 0 12px;
      font-size: 42px;
      letter-spacing: -0.03em;
      font-weight: 800;
    }
    .tabs { display: flex; gap: 10px; margin-bottom: 14px; }
    .tab {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 14px;
      background: #1a1a21;
      color: #fff;
      font: inherit;
      cursor: pointer;
    }
    .tab.active {
      background: linear-gradient(135deg, rgba(240, 82, 155, 0.3), rgba(139, 92, 246, 0.25));
      border-color: rgba(240, 82, 155, 0.55);
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 14px;
    }
    .new-card, .card {
      border-radius: 14px;
      min-height: 370px;
      overflow: hidden;
      position: relative;
      border: 1px solid var(--line);
      background: #17171d;
    }
    .new-card {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-decoration: none;
      color: #fff;
      background: linear-gradient(155deg, #f06292, #f472b6);
    }
    .new-plus {
      width: 62px;
      height: 62px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 40px;
      font-weight: 700;
      margin-bottom: 12px;
      background: rgba(255, 255, 255, 0.17);
      border: 1px solid rgba(255, 255, 255, 0.35);
    }
    .new-text { font-size: 36px; font-weight: 700; line-height: 1.2; text-align: center; padding: 0 16px; }
    .cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.1) 52%);
    }
    .card-meta {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 12px;
      z-index: 2;
    }
    .name { margin: 0; font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
    .age { margin-top: 3px; color: #e5e7eb; font-weight: 600; font-size: 18px; }
    .desc { margin-top: 8px; color: #d4d4d8; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .card-tools {
      position: absolute;
      top: 10px;
      left: 10px;
      right: 10px;
      z-index: 3;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      pointer-events: none;
    }
    .tool-left, .tool-right { pointer-events: auto; display: flex; gap: 8px; align-items: center; }
    .btn-dot, .badge-v2, .btn-heart {
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(15, 15, 20, 0.7);
      color: #fff;
      font: inherit;
    }
    .btn-dot, .btn-heart {
      width: 34px;
      height: 34px;
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
      font-size: 16px;
    }
    .badge-v2 {
      padding: 4px 10px;
      font-weight: 700;
      background: linear-gradient(135deg, #8b5cf6, #f0529b);
      border: none;
      font-size: 22px;
      letter-spacing: -0.01em;
    }
    .menu {
      position: absolute;
      top: 48px;
      left: 10px;
      min-width: 128px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #191923;
      z-index: 6;
      overflow: hidden;
      display: none;
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    }
    .menu.open { display: block; }
    .menu button {
      width: 100%;
      border: none;
      background: transparent;
      color: #fff;
      text-align: left;
      padding: 10px 12px;
      cursor: pointer;
      font: inherit;
    }
    .menu button:hover { background: rgba(255, 255, 255, 0.08); }
    .menu .danger { color: #fda4af; }
    .bottom {
      margin-top: 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
    .btn {
      border: 1px solid var(--line);
      background: #1a1a21;
      color: #fff;
      border-radius: 10px;
      padding: 10px 14px;
      cursor: pointer;
      font: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .btn:hover { background: #262630; }
    .hint { color: var(--muted); font-size: 13px; }
    .modal-mask {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.56);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 40;
      padding: 18px;
    }
    .modal-mask.open { display: flex; }
    .modal {
      width: min(460px, 96vw);
      border-radius: 14px;
      border: 1px solid var(--line);
      background: linear-gradient(165deg, #16161d, #121218);
      box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55);
      overflow: hidden;
    }
    .modal-head {
      padding: 14px 16px 8px;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    .modal-body {
      padding: 0 16px 14px;
      color: #d4d4d8;
      line-height: 1.5;
      font-size: 14px;
    }
    .modal-foot {
      border-top: 1px solid var(--line);
      padding: 12px 14px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      background: rgba(255, 255, 255, 0.02);
    }
    .btn-danger {
      border: none;
      background: linear-gradient(135deg, #ef4444, #f43f5e);
      color: #fff;
    }
    .btn-danger:hover { filter: brightness(1.06); }

    .my-ai-list-empty-card {
      background: #18181f;
      color: #d4d4d8;
      cursor: default;
    }
    .my-ai-list-empty-card-inner {
      padding: 22px;
      text-align: center;
      line-height: 1.5;
    }
