/* =========
   基础设置
   ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: #0f172a;
  background-color: #f9fafb;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========
   主题变量
   ========= */
:root {
  --ns-primary: #2563eb;
  --ns-primary-soft: #eff6ff;
  --ns-primary-deep: #1d4ed8;
  --ns-bg: #f9fafb;
  --ns-surface: #ffffff;
  --ns-border: #e5e7eb;
  --ns-text-muted: #6b7280;
  --ns-radius-lg: 1rem;
  --ns-radius-md: 0.75rem;
  --ns-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ns-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========
   顶部导航
   ========= */
.ns-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background-color: rgba(249, 250, 251, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.ns-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ns-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ns-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #bfdbfe, #2563eb);
  color: #ffffff;
  font-size: 0.9rem;
}

.ns-logo-text-main {
  font-size: 0.98rem;
}

.ns-logo-text-sub {
  font-size: 0.8rem;
  color: var(--ns-text-muted);
}

.ns-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.ns-nav-link {
  position: relative;
  color: #4b5563;
  padding: 0.25rem 0;
}

.ns-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: width 0.18s ease-out;
}

.ns-nav-link:hover::after {
  width: 100%;
}

.ns-nav-link.is-active {
  color: #111827;
  font-weight: 500;
}

.ns-nav-link.is-active::after {
  width: 100%;
}

.ns-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ns-link-ghost {
  font-size: 0.95rem;
  color: #4b5563;
}

.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--ns-primary);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out;
}

.ns-btn:hover {
  transform: translateY(-1px);
  background-color: var(--ns-primary-deep);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32);
}

.ns-btn-outline {
  background-color: transparent;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.ns-btn-outline:hover {
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.3);
}

/* =========
   顶部导航 - 移动端
   ========= */
.ns-nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.25rem;
}

.ns-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  position: relative;
}

.ns-nav-toggle-bar::before,
.ns-nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
}

.ns-nav-toggle-bar::before {
  top: -6px;
}

.ns-nav-toggle-bar::after {
  top: 6px;
}

.ns-header-row-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* =========
   首页 Hero
   ========= */
.ns-hero {
  padding: 4.5rem 0 3.5rem;
}

.ns-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.ns-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 500;
}

.ns-hero-title {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: 0.02em;
}

.ns-hero-subtitle {
  margin: 0 0 1.2rem;
  color: var(--ns-text-muted);
  font-size: 0.98rem;
}

.ns-hero-subtitle-main {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.ns-hero-tagline {
  font-size: 0.9rem;
  color: var(--ns-text-muted);
  margin: 0 0 1.2rem;
}

.ns-hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.ns-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.ns-hero-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ns-text-muted);
}

.ns-hero-visual {
  position: relative;
}

.ns-hero-card {
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
  border-radius: 1.4rem;
  padding: 1.75rem;
  box-shadow: var(--ns-shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ns-hero-card-title {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.ns-hero-card-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.ns-hero-card-main {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.ns-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ns-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.ns-hero-badge {
  position: absolute;
  right: -0.2rem;
  bottom: -0.7rem;
  background-color: #0f172a;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.5);
}

.ns-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #22c55e;
}

/* =========
   公共区块
   ========= */
.ns-section {
  padding: 3.5rem 0 3.5rem;
}

.ns-section-header {
  margin-bottom: 1.8rem;
}

.ns-section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ns-text-muted);
  margin-bottom: 0.6rem;
}

.ns-section-title {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.ns-section-desc {
  margin: 0;
  color: var(--ns-text-muted);
  font-size: 0.95rem;
}

.ns-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ns-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ns-card {
  background-color: var(--ns-surface);
  border-radius: var(--ns-radius-md);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.08);
}

.ns-card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ns-card-text {
  font-size: 0.92rem;
  color: var(--ns-text-muted);
}

.ns-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.ns-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #4b5563;
}

/* =========
   Nexus 生态 / 工具卡片
   ========= */
.ns-tools-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ns-filter-pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  cursor: pointer;
  background-color: #ffffff;
}

.ns-filter-pill.is-active {
  background-color: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.ns-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.ns-tool-card {
  background-color: #ffffff;
  border-radius: var(--ns-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    border-color 0.12s ease-out;
}

.ns-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.9);
}

.ns-tool-name {
  font-size: 0.98rem;
  font-weight: 500;
}

.ns-tool-desc {
  font-size: 0.88rem;
  color: var(--ns-text-muted);
}

.ns-tool-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========
   套餐价格页
   ========= */
.ns-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.ns-pricing-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 16px 42px rgba(148, 163, 184, 0.2);
}

.ns-pricing-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ns-text-muted);
  margin-bottom: 0.6rem;
}

.ns-pricing-name {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.ns-pricing-brief {
  font-size: 0.9rem;
  color: var(--ns-text-muted);
  margin-bottom: 0.5rem;
}

.ns-pricing-suit {
  font-size: 0.85rem;
  color: var(--ns-text-muted);
  margin-bottom: 1rem;
}

.ns-pricing-note {
  font-size: 0.8rem;
  color: var(--ns-text-muted);
  margin-top: 0.7rem;
}

.ns-feature-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.ns-feature-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ns-feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  margin-top: 0.45rem;
  background-color: #4b5563;
}

/* =========
   核心记忆介绍页
   ========= */
.ns-columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.ns-list-disc {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: #4b5563;
}

.ns-list-disc li {
  margin-bottom: 0.35rem;
}

/* =========
   账户中心布局
   ========= */
.ns-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ns-shell-main {
  flex: 1;
  padding: 2rem 0 2.5rem;
}

.ns-account-layout {
  display: flex;
  gap: 1.75rem;
}

.ns-account-sidebar {
  width: 230px;
  flex-shrink: 0;
}

.ns-account-panel {
  flex: 1;
  min-width: 0;
}

.ns-side-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.1rem 1.1rem 1rem;
}

.ns-side-title {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.ns-side-main {
  font-size: 0.98rem;
  font-weight: 500;
}

.ns-account-menu {
  margin-top: 0.9rem;
}

.ns-account-tab {
  width: 100%;
  border: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  text-align: left;
  background-color: transparent;
  color: #4b5563;
  cursor: pointer;
}

.ns-account-tab + .ns-account-tab {
  margin-top: 0.15rem;
}

.ns-account-tab.is-active {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.ns-account-content-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: 0 14px 40px rgba(148, 163, 184, 0.2);
}

.ns-account-content-title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.ns-muted {
  font-size: 0.9rem;
  color: var(--ns-text-muted);
}

.ns-kv-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  row-gap: 0.45rem;
  column-gap: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.ns-kv-key {
  color: var(--ns-text-muted);
}

.ns-kv-value {
  color: #111827;
}

.ns-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
}

.ns-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.ns-table th,
.ns-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.ns-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.ns-badge-currency {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: #4b5563;
}

.ns-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.ns-input,
.ns-select {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.ns-input {
  min-width: 130px;
}

.ns-select {
  min-width: 140px;
}

.ns-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--ns-text-muted);
}

.ns-account-section {
  display: none;
}

.ns-account-section.is-active {
  display: block;
}

/* =========
   页脚
   ========= */
.ns-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.4rem 0 1.6rem;
  background-color: #ffffff;
  font-size: 0.82rem;
  color: #6b7280;
}

.ns-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ns-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ns-footer-links a {
  color: #4b5563;
}

/* =========
   响应式
   ========= */
@media (max-width: 960px) {
  .ns-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-hero-visual {
    order: -1;
  }

  .ns-grid-2,
  .ns-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ns-account-layout {
    flex-direction: column;
  }

  .ns-account-sidebar {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .ns-header-inner {
    height: 60px;
  }

  .ns-nav {
    position: absolute;
    inset: 60px 0 auto;
    padding: 0.75rem 1.25rem 0.9rem;
    background-color: rgba(249, 250, 251, 0.97);
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  }

  .ns-nav[data-open="true"] {
    display: flex;
  }

  .ns-nav-cta {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .ns-nav-toggle {
    display: inline-flex;
  }

  .ns-hero {
    padding-top: 3.3rem;
  }

  .ns-grid-2,
  .ns-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ns-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

