:root {
  color-scheme: light;
  --blue: #2f6df6;
  --blue-deep: #1f58d4;
  --blue-soft: #eaf2ff;
  --ink: #17202a;
  --muted: #657482;
  --line: rgba(29, 42, 57, 0.08);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-soft: rgba(255, 255, 255, 0.52);
  --shadow: 0 22px 60px rgba(46, 67, 88, 0.14);
  --mint: #2f7af7;
  --sky: #4f9cff;
  --coral: #3b82f6;
  --amber: #5b8cff;
  --graphite: #4b6fbb;
  --violet: #6e8cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: #f3f6f8 url("assets/glass-background.png") center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(245, 249, 255, 0.92)),
    linear-gradient(112deg, rgba(47, 109, 246, 0.18), transparent 42%),
    linear-gradient(260deg, rgba(79, 156, 255, 0.14), transparent 36%);
}

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

button,
input {
  font: inherit;
}

.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 242, 255, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 60px rgba(39, 91, 190, 0.13);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.app {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 72px 1fr;
  width: 64px;
  height: 100vh;
  padding: 12px 8px;
  background: linear-gradient(180deg, #4078ff 0%, var(--blue) 48%, var(--blue-deep) 100%);
  box-shadow: 14px 0 30px rgba(28, 82, 190, 0.18);
}

.rail-logo {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  place-items: center;
  color: var(--blue-deep);
  font-size: 20px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(13, 42, 110, 0.2);
}

.rail-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 8px;
}

.nav-btn {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 64px;
  padding: 7px 4px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.nav-btn svg {
  width: 19px;
  height: 19px;
}

.nav-btn span {
  max-width: 52px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn:focus-visible,
.nav-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.nav-btn.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(9, 48, 130, 0.18);
}

.workspace {
  min-width: 0;
  padding: 0 18px 36px;
}

.workspace-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 16px;
  align-items: center;
  height: 56px;
  margin: 0 -18px;
  padding: 0 18px;
  background: rgba(247, 250, 255, 0.76);
  border-bottom: 1px solid rgba(47, 109, 246, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bar-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #7a8794;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(29, 42, 57, 0.08);
  border-radius: 8px;
}

.bar-icon svg {
  width: 16px;
  height: 16px;
}

.workspace-title {
  display: grid;
  min-width: 0;
}

.workspace-title strong {
  font-size: 15px;
}

.workspace-title span {
  color: var(--muted);
  font-size: 11px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 28px;
  align-items: end;
  min-height: 210px;
  margin: 22px auto 18px;
  padding: 34px 44px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #426ba8;
  font-size: 13px;
  font-weight: 720;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
}

.hero h1::before {
  color: var(--blue);
  content: "一站式";
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: #435b72;
  font-size: 15px;
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(38, 88, 185, 0.1);
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: #617383;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.content-shell {
  min-height: 420px;
  padding: 26px 28px 30px;
  border-radius: 8px;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.section-title-row h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 760;
}

.section-icon,
.item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  border-radius: 12px;
}

.section-icon svg,
.item-icon svg {
  width: 21px;
  height: 21px;
}

.section-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #315b9c;
  font-size: 13px;
  font-weight: 720;
  background: rgba(239, 246, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
}

.panel-content {
  display: grid;
  gap: 14px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(39, 91, 190, 0.08);
}

.link-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.link-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.open-link,
.copy-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: #24549e;
  font-size: 13px;
  font-weight: 720;
  background: rgba(246, 250, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  cursor: pointer;
}

.open-link svg,
.copy-btn svg {
  width: 15px;
  height: 15px;
}

.open-link:hover,
.copy-btn:hover,
.open-link:focus-visible,
.copy-btn:focus-visible {
  color: var(--blue-deep);
  background: #fff;
  outline: none;
}

.ai-layout {
  display: grid;
  gap: 14px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.process-line div,
.prompt-card {
  padding: 15px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.process-line span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  background: #314654;
  border-radius: 999px;
}

.process-line strong,
.prompt-card h3 {
  display: block;
  margin: 0;
  font-size: 15px;
}

.process-line p,
.prompt-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prompt-box {
  margin-top: 12px;
  padding: 12px;
  color: #293d49;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
}

.mint {
  background: var(--mint);
}

.sky {
  background: var(--sky);
}

.coral {
  background: var(--coral);
}

.amber {
  background: var(--amber);
}

.graphite {
  background: var(--graphite);
}

.violet {
  background: var(--violet);
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  min-width: 118px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  text-align: center;
  pointer-events: none;
  background: rgba(23, 32, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  opacity: 0;
  box-shadow: 0 18px 40px rgba(23, 32, 42, 0.22);
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .link-grid,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
  }

  .rail {
    position: sticky;
    top: 0;
    grid-template-columns: 52px 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 64px;
    padding: 8px 10px;
  }

  .rail-logo {
    width: 44px;
    height: 44px;
  }

  .rail-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex: 0 0 58px;
    min-height: 48px;
    padding: 5px 4px;
  }

  .workspace {
    padding: 0 10px 28px;
  }

  .workspace-bar {
    display: none;
  }

  .hero {
    margin-top: 12px;
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .content-shell {
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .item-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .process-line {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    font-size: 14px;
  }

  .section-title-row h2 {
    font-size: 23px;
  }

  .open-link,
  .copy-btn {
    flex: 1 1 0;
  }
}
