/* 主页导航 / 句式点选 / 项目库 — 不覆盖 workshop.css 的星空、紫光、能力卡 */

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px;
  height: 72px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0));
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 22px rgba(200, 255, 74, 0.4));
}

.footer-logo {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.home-brand {
  font-size: 20px;
}

.home-nav-links,
.home-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.home-nav-links a:hover {
  color: #fff;
}

.home-nav-links .btn-signup {
  color: var(--flux-green);
}

.home-drawer {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 110;
  min-width: 200px;
  padding: 12px;
  background: #141416;
  border: 1px solid var(--flux-border-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-drawer[hidden] {
  display: none;
}

.home-drawer a {
  color: #e4e4e7;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.home-drawer a:hover {
  background: rgba(124, 58, 237, 0.22);
}

.sentence-box .lead {
  color: var(--text-secondary);
}

.chip-select {
  display: inline-flex;
  position: relative;
  margin: 0 4px;
  vertical-align: baseline;
}

.chip-select > button {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.chip-select[data-tone="green"] > button {
  color: #6ee7b7;
  text-decoration-color: #34d399;
}

.chip-select[data-tone="purple"] > button {
  color: #c4b5fd;
  text-decoration-color: #a78bfa;
}

.chip-select[data-tone="amber"] > button {
  color: #fcd34d;
  text-decoration-color: #fbbf24;
}

.chip-select[data-tone="cyan"] > button {
  color: #67e8f9;
  text-decoration-color: #22d3ee;
}

.chip-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: #141416;
  border: 1px solid var(--flux-border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.chip-select.open .chip-menu {
  display: block;
}

.chip-menu button {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e4e4e7;
  border: none;
  background: transparent;
  cursor: pointer;
}

.chip-menu button:hover,
.chip-menu button.is-on {
  background: rgba(124, 58, 237, 0.28);
}

.hero-secondary {
  display: inline-block;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.hero-secondary:hover {
  color: #fff;
}

.domain-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.domain-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--flux-card);
  border: 1px solid var(--flux-border);
  min-height: 128px;
}

.domain-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.domain-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.vision-section,
.faq-section {
  padding: 80px 40px;
  border-top: 1px solid var(--flux-border);
}

.vision-section .inner,
.faq-section .inner {
  max-width: 820px;
  margin: 0 auto;
}

.vision-section h2,
.faq-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.vision-section p {
  color: var(--text-secondary);
  font-size: 16px;
}

.faq-section details {
  border-top: 1px solid var(--flux-border);
  padding: 16px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
}

.faq-section details p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hub-page {
  min-height: 100vh;
  padding: 96px 32px 64px;
}

.hub-head {
  max-width: 1100px;
  margin: 0 auto 28px;
}

.hub-head h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hub-head p {
  color: var(--text-secondary);
  margin-top: 6px;
}

.hub-templates {
  max-width: 1100px;
  margin: 0 auto 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tpl-chip {
  border: 1px solid var(--flux-border);
  background: var(--flux-card);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.tpl-chip:hover,
.tpl-chip.is-on {
  border-color: var(--flux-purple-bright);
  background: rgba(124, 58, 237, 0.2);
}

.hub-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card,
.project-new {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 20px;
  border-radius: 16px;
  background: var(--flux-card);
  border: 1px solid var(--flux-border);
  color: inherit;
}

.project-card:hover,
.project-new:hover {
  border-color: var(--flux-purple-bright);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25);
}

.project-card .tag {
  font-size: 11px;
  color: var(--flux-green);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.project-card .brief {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.project-card .card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.project-card .card-actions button {
  border: 1px solid var(--flux-border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.project-card .card-actions button.danger:hover {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.4);
}

.project-new {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  cursor: pointer;
  color: var(--text-secondary);
}

.project-new strong {
  display: block;
  font-size: 28px;
  color: #fff;
  margin-bottom: 6px;
}

.hub-empty {
  max-width: 1100px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-muted);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask[hidden] {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  background: #141416;
  border: 1px solid var(--flux-border-strong);
  border-radius: 16px;
  padding: 24px;
}

.modal-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.modal-card label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--flux-border);
  background: #0c0c0e;
  color: #fff;
  font: inherit;
}

.modal-card textarea {
  min-height: 96px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--flux-border);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.modal-actions .primary {
  background: var(--flux-purple-bright);
  border-color: transparent;
  font-weight: 700;
}

@media (max-width: 720px) {
  .home-nav-links .hide-sm {
    display: none;
  }
  .home-nav {
    padding: 0 16px;
  }
  .hub-page {
    padding: 88px 16px 48px;
  }
}
