:root {
  --primary: #5b5bd6;
  --primary-dark: #4848b8;
  --accent: #5b5bd6;
  --accent-2: #8b8be0;
  --text: #0a2540;
  --text-light: #6b7280;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.2);
  --card-bg: #ffffff;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --bg: #fafbfc;
  --clip-sm: none;
  --clip-md: none;
  --clip-lg: none;
  /* tag colors */
  --tag-model: #3b82f6;
  --tag-feature: #10b981;
  --tag-tool: #f59e0b;
  --tag-tip: #06b6d4;
  --tag-industry: #6b7280;
  --tag-legal: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  position: relative
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(77, 159, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(77, 159, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0
}

body>* {
  position: relative;
  z-index: 1
}

a {
  color: var(--primary);
  text-decoration: none
}

/* Top Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04)
}

.topnav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.tvbs-logo {
  height: 36px;
  width: auto;
  max-width: 90px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(20%) sepia(91%) saturate(2375%) hue-rotate(213deg) brightness(91%) contrast(99%);
  object-fit: contain;
  object-position: left center;
  margin-right: -6px
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, transparent, var(--border), transparent)
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 2px 0
}

.brand-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 1px
}

.logo {
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.3;
  padding-bottom: 2px
}

.searchbar {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
  position: relative
}

.searchbar input {
  width: 100%;
  padding: 10px 18px 10px 44px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--text)
}

.searchbar input::placeholder {
  color: var(--text-light)
}

.searchbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.15)
}

.searchbar::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23425466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 110;
  display: none;
  padding: 8px
}

.search-results.open {
  display: block
}

.search-result-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none
}

.search-result-item:hover {
  background: rgba(91, 91, 214, 0.06)
}

.search-result-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text)
}

.search-result-snippet {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.search-result-meta {
  font-size: 10px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-result-source {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border: 1px solid rgba(91, 91, 214, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.search-result-date {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.search-no-result {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 13px
}

/* Tabs */
.tabs-wrap {
  position: sticky;
  top: 70px;
  z-index: 90;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border)
}

.tabs {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-wrap: wrap
}

.tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.5px
}

.tab:hover {
  color: var(--text)
}

.tab.active {
  color: var(--text);
  font-weight: 700
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0
}

.tab-sep {
  color: var(--border);
  font-size: 14px;
  user-select: none;
  pointer-events: none;
  font-weight: 300
}

.nav-dropdown {
  position: relative;
  display: inline-block
}

.nav-dropdown:hover .dropdown-content {
  display: flex
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 150px;
  z-index: 100;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.dropdown-item {
  padding: 10px 16px;
  width: 100%;
  text-align: center;
  border-radius: 0
}

.dropdown-item:hover {
  background: #f5f6f8
}

.dropdown-item.active {
  background: rgba(91, 91, 214, 0.08)
}

.dropdown-item.active::after {
  display: none !important
}

.dropdown-toggle {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: default;
  position: relative;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.5px;
  display: inline-block
}

.nav-dropdown:hover .dropdown-toggle {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(94, 245, 255, 0.4)
}

/* Layout */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 32px 24px;
  width: 100%
}

.page {
  display: none;
  animation: fadeIn .4s ease
}

.page.active {
  display: block
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.layout-3col {
  display: grid;
  grid-template-columns: 280px 950px 280px;
  gap: 24px;
  align-items: start;
  min-height: 100vh;
  max-width: 1558px;
  margin: 0 auto
}

@media(max-width:1100px) {
  .layout-3col {
    grid-template-columns: 1fr
  }
}

aside.side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 140px;
  align-self: start
}

@media(max-width:1100px) {
  aside.side {
    position: static
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px
}

/* Panels */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 245, 255, 0.5), transparent)
}

.panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text)
}

.panel h3 .dot {
  display: none
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border)
}

.page-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-light);
  font-size: 14px
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text)
}

.section-title .emoji {
  font-size: 22px
}

/* Internal tools */
.internal-tool {
  display: block;
  padding: 10px 14px;
  background: #f5f6f8;
  color: var(--text) !important;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.internal-tool:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(91, 91, 214, 0.06);
  color: var(--primary) !important
}

.internal-tool.variant-2 {
  background: rgba(91, 91, 214, 0.04);
  border-color: rgba(91, 91, 214, 0.25);
}

.internal-tool.variant-2:hover {
  border-color: var(--primary);
  background: rgba(91, 91, 214, 0.08)
}

.internal-tool .tool-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--primary);
  letter-spacing: 0.5px
}

.internal-tool .tool-desc {
  font-size: 13px;
  color: var(--text-light)
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text)
}

.tool-link:hover {
  background: rgba(91, 91, 214, 0.06);
  color: var(--primary)
}

/* Buttons */
.btn {
  padding: 8px 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s
}

.btn-primary {
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.15), rgba(94, 245, 255, 0.08));
  color: var(--accent);
  border: 1.5px solid rgba(94, 245, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(94, 245, 255, 0.15) inset, 0 0 18px rgba(77, 159, 255, 0.25), 0 4px 12px rgba(0, 20, 60, 0.3);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.3)
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.25), rgba(94, 245, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(94, 245, 255, 0.4) inset, 0 0 28px rgba(94, 245, 255, 0.5), 0 6px 20px rgba(77, 159, 255, 0.4)
}

/* Chips */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-light);
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}

/* Hero Slider */
.hero-grid {
  display: grid;
  grid-template-columns: 68fr 32fr;
  gap: 16px;
  min-height: 500px;
}

.hero-main {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.2s;
}

.hero-main:hover {
  transform: translateY(-2px);
}

.hero-main-content {
  padding: 28px 32px;
  width: 100%;
}

.hero-main-title {
  color: white;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  margin: 12px 0 0 0;
  max-width: 95%;
}

.hero-side {
  display: grid;
  grid-template-rows: 1.3fr 1fr 1fr;
  gap: 16px;
  min-height: 500px;
}

.hero-small {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.2s;
}

.hero-small:hover {
  transform: translateY(-2px);
}

.hero-small-content {
  padding: 12px 14px;
  width: 100%;
  line-height: 1;
}

.hero-small-title {
  color: white;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  margin: 6px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side > .hero-small:first-child .hero-small-title {
  font-size: 17px;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.hero-small .slide-tag {
  font-size: 11px;
  padding: 7px 14px;
  margin-bottom: 0;
}

.hero-small .slide-tag--tool {}

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

  .hero-side {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 140px;
  }
}

.hero-slider {
  position: relative;
  aspect-ratio: 16/8;
  min-height: 380px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 20, 60, 0.4);
  background: #0a1228;
  overflow: hidden;
  clip-path: var(--clip-lg)
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1)
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 10, 26, 0.95), rgba(5, 10, 26, 0.3) 60%, transparent)
}

.slide-content {
  position: relative;
  padding: 32px 40px;
  width: 100%
}

.slide-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ffffff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-tag--tool {
  background: #f3e8ff;
  color: #7c3aed;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45)
}

.slide-title {
  color: white;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  max-width: 95%
}

@media(max-width:700px) {
  .slide-title {
    font-size: 20px;
    max-width: 100%
  }

  .slide-content {
    padding: 20px 24px
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 18, 40, 0.7);
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(8px)
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(94, 245, 255, 0.5)
}

.slider-arrow.prev {
  left: 16px
}

.slider-arrow.next {
  right: 16px
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all .3s
}

.slider-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(94, 245, 255, 0.6)
}

/* Articles */
.articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

@media(max-width:700px) {
  .articles {
    grid-template-columns: 1fr
  }
}

.articles.three-col {
  grid-template-columns: repeat(3, 1fr)
}

@media(max-width:1000px) {
  .articles.three-col {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  .articles.three-col {
    grid-template-columns: 1fr
  }
}

.article-card {
  background: var(--card-bg);
  padding: 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.article-cover {
  width: calc(100% + 36px);
  aspect-ratio: 16/9;
  margin: -18px -18px 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: #f3f4f6;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.article-card .tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid rgba(91, 91, 214, 0.2);
  align-self: flex-start;
  width: auto
}

.article-card h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px
}

.article-card .summary {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .summary-tags-row {
  margin-top: 2px;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light)
}

#toolIntroContainer .article-meta span:last-child {
  color: var(--accent);
  font-weight: 400;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent))
}

.timeline-item {
  position: relative;
  padding-bottom: 18px
}

.timeline-item:last-child {
  padding-bottom: 0
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(77, 159, 255, 0.2), 0 0 12px rgba(77, 159, 255, 0.6)
}

.timeline-item.hot::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 245, 255, 0.2), 0 0 16px rgba(94, 245, 255, 0.7)
}

.timeline-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 4px
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px
}

/* 模型類別切換 */
.model-type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.model-type-tab {
  padding: 10px 20px;
  background: rgba(20, 35, 75, 0.4);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: all .2s
}

.model-type-tab:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.model-type-tab.active {
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.2), rgba(94, 245, 255, 0.1));
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(94, 245, 255, 0.3) inset, 0 0 16px rgba(94, 245, 255, 0.3);
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.4)
}

.model-type-pane {
  display: none;
  animation: fadeIn .4s ease
}

.model-type-pane.active {
  display: block
}

/* 雜誌封面式 Hero */
.issue-hero {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 340px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 20, 60, 0.4), 0 0 0 1px rgba(94, 245, 255, 0.1);
  background: #0a1228;
  overflow: hidden;
  clip-path: var(--clip-lg);
  cursor: pointer;
  transition: all .3s
}

.issue-hero:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 20, 60, 0.5), 0 0 30px rgba(94, 245, 255, 0.25)
}

.issue-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s
}

.issue-hero:hover .issue-hero-img {
  transform: scale(1.04)
}

.issue-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 10, 26, 0.95) 0%, rgba(5, 10, 26, 0.55) 45%, rgba(5, 10, 26, 0.15) 100%)
}

.issue-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  z-index: 2
}

.issue-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap
}

.issue-vol {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #0a1228;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 0 14px rgba(94, 245, 255, 0.4);
  font-family: 'SF Mono', Menlo, Consolas, monospace
}

.issue-date {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 1px
}

.issue-label {
  font-size: 11px;
  color: var(--text-light);
  padding: 3px 10px;
  border: 1px solid rgba(94, 245, 255, 0.3);
  border-radius: 4px;
  letter-spacing: 1.5px;
  font-weight: 700
}

.issue-hero h2 {
  color: white;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
  margin-bottom: 6px
}

.issue-hero .sub-title {
  color: var(--accent-2);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8)
}

.issue-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.2s;
  transition: all .2s
}

.issue-hero-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 91, 214, 0.25)
}

@media(max-width:700px) {
  .issue-hero h2 {
    font-size: 22px
  }

  .issue-hero .sub-title {
    font-size: 14px
  }

  .issue-hero-body {
    padding: 20px 24px
  }
}

/* 本期章節（新聞＋工具＋Prompt 混合） */
.issue-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
  white-space: nowrap;
  width: 100%
}

.issue-section-title .count {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 10px;
  display: none
}

.issue-section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
  min-width: 20px
}

#thisIssueNewsWrap {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  transition: min-height 0.3s;
}

.issue-section-more {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: transparent;
  color: var(--text-light);
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.5px;
  box-shadow: none;
  text-shadow: none
}

.issue-section-more .chevron {
  font-weight: 700;
  letter-spacing: -2px;
  margin-right: 6px;
  font-size: 22px;
  transition: all .2s;
  display: inline-block;
  vertical-align: middle
}

.issue-section-more:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  transform: translateX(2px)
}

.issue-section-more:hover .chevron {
  filter: brightness(1.3)
}

.issue-block {
  background: rgba(20, 35, 75, 0.4);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-strong);
  padding: 20px 25px;
  clip-path: var(--clip-md);
  transition: all .2s;
  cursor: pointer
}

.issue-block:hover {
  background: rgba(25, 45, 85, 0.85);
  border-color: rgba(94, 245, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px)
}

.issue-block.tool {}

.issue-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap
}

.issue-block-tag {
  padding: 3px 10px;
  background: rgba(77, 159, 255, 0.15);
  color: #a5c8ff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px
}

.issue-block h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin: 0
}

.issue-block .snippet {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 6px
}

/* 本期目錄 TOC */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  background: transparent
}

.toc-item:hover {
  background: rgba(91, 91, 214, 0.06);
  transform: translateY(-1px)
}

.toc-item:hover .toc-title {
  color: var(--primary)
}

.toc-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 20px;
  letter-spacing: -0.5px
}

.toc-icon {
  font-size: 14px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center
}

.toc-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.7;
  transition: all .2s
}

.toc-item:hover .toc-dot {
  opacity: 1;
  box-shadow: 0 0 12px rgba(94, 245, 255, 0.9)
}

.toc-prefix-tool {
  display: inline-block;
  color: #c084fc;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  margin-right: 2px;
}

.toc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 10px 4px;
}

.toc-title {
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  transition: all .15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.toc-divider {
  height: 1px;
  background: rgba(77, 159, 255, 0.15);
  margin: 6px 0
}

.toc-item.toc-special:hover {
  background: rgba(94, 245, 255, 0.12)
}

/* 事件 ticker 列表 */
.ticker-list {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(77, 159, 255, 0.12);
  cursor: pointer;
  transition: all .15s
}

.ticker-item:last-child {
  border-bottom: none
}

.ticker-item:hover {
  background: rgba(77, 159, 255, 0.06);
  padding-left: 8px
}

.ticker-item:hover .ticker-title {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.25)
}

.ticker-bullet {
  color: var(--primary);
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0.7;
  transform: translateY(-1px)
}

.ticker-item.hot .ticker-bullet {
  color: var(--accent);
  opacity: 1;
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.5);
  animation: tickerPulse 1.8s ease-in-out infinite
}

@keyframes tickerPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

.ticker-date {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(94, 245, 255, 0.25);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  flex-shrink: 0;
  white-space: nowrap
}

.ticker-item.hot .ticker-date {
  background: rgba(94, 245, 255, 0.2);
  border-color: rgba(94, 245, 255, 0.5);
  box-shadow: 0 0 8px rgba(94, 245, 255, 0.3)
}

.ticker-title {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  transition: all .15s
}

/* Poll */

/* 黑客松卡片 */
.hackathon-card-link {
  display: block;
  text-decoration: none;
  color: inherit
}

.hackathon-card-link:hover {}

.hackathon-card-link:hover .hackathon-card {}

.hackathon-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hackathon-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(91, 91, 214, 0.08), transparent 70%);
  pointer-events: none
}

.hack-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px
}

.hack-tag {
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase
}

.hack-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  position: relative
}

.hack-timeline {
  position: relative;
  padding-left: 24px
}

.hack-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-2))
}

.hack-step {
  position: relative;
  padding-bottom: 14px
}

.hack-step:last-child {
  padding-bottom: 0
}

.hack-step::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.15)
}

.hack-step.current::before {
  background: var(--primary);
  width: 14px;
  height: 14px;
  left: -21px;
  top: 3px;
  animation: hackPulse 1.8s ease-in-out infinite
}

@keyframes hackPulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.25), 0 0 12px rgba(91, 91, 214, 0.4)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(91, 91, 214, 0.15), 0 0 20px rgba(91, 91, 214, 0.55)
  }
}

.hack-step.past::before {
  background: #9ca3af;
  box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.18);
  opacity: 0.6
}

.hack-step-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 0.5px
}

.hack-step-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5
}

.hack-step.current .hack-step-date {
  color: var(--primary)
}

.hack-step.current .hack-step-desc {
  font-weight: 700;
  color: var(--text);
  line-height: 1.5
}

.hack-step.past .hack-step-date {
  color: #9ca3af
}

.hack-step.past .hack-step-desc {
  color: #9ca3af;
  text-decoration: line-through;
  opacity: 0.7
}

.hack-prize {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(94, 245, 255, 0.08);
  border: 1px solid rgba(94, 245, 255, 0.2);
  clip-path: var(--clip-sm);
  font-size: 12px;
  line-height: 1.6
}

.hack-prize-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 1px;
  font-size: 14px
}

.hack-prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text)
}

.hack-prize-row span:last-child {
  font-weight: 700;
  color: var(--accent)
}

.hack-prize-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text);
  font-weight: 400
}

.hack-prize-grid .sep {
  color: var(--accent);
  opacity: 0.6
}

.hack-footer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center
}

/* Archive */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px
}

.archive-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.archive-card .cover {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
  position: relative;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.archive-card .cover-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(91, 91, 214, 0.35);
  z-index: 1;
}

.archive-card .body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.archive-card .issue-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px
}

.archive-card h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px
}

.archive-card .desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1
}

.archive-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border)
}

.archive-card .views {
  color: var(--accent);
  font-weight: 600
}

/* Term cards */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px
}

.term-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px))
}

.term-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent)
}

.term-card .term-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  text-shadow: 0 0 12px rgba(148, 187, 255, 0.25);
  line-height: 1.3
}

.term-card .term-en {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4
}

.term-card .term-def {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text)
}

.term-category {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  border: 1px solid rgba(91, 91, 214, 0.25)
}

/* Prompt compact cards */
.prompt-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media(max-width:1200px) {
  .prompt-list-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {
  .prompt-list-grid {
    grid-template-columns: 1fr
  }
}

.prompt-compact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  transition: all .2s;
  text-decoration: none;
  clip-path: var(--clip-md)
}

.prompt-compact-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08)
}

.pc-cover {
  width: calc(100% + 28px);
  aspect-ratio: 16/9;
  margin: -14px -14px 10px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.prompt-compact-card .pc-cat {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(91, 91, 214, 0.2);
  align-self: flex-start
}

.prompt-compact-card .pc-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text)
}

.prompt-compact-card .pc-sub {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-compact-card .pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 400;
  gap: 8px
}

.prompt-compact-card .pc-issue {
  color: var(--text-light);
  font-weight: 500;
  font-size: 11px
}

/* Prompt modal */
.prompt-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.prompt-modal-mask.open {
  opacity: 1;
  pointer-events: auto
}

.prompt-modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  transform: scale(0.92) translateY(20px);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.prompt-modal-mask.open .prompt-modal {
  transform: scale(1) translateY(0)
}

.prompt-modal-head {
  padding: 22px 26px 16px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px
}

.prompt-modal-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.3
}

.prompt-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.prompt-modal-close:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(90deg)
}

.prompt-modal-body {
  padding: 20px 26px 26px
}

.prompt-modal-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px
}

.prompt-modal-content {
  background: #f8fafc;
  color: var(--text);
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.8;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
}

.prompt-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.prompt-mini-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit
}

.prompt-modal::-webkit-scrollbar {
  width: 6px
}

.prompt-modal::-webkit-scrollbar-track {
  background: transparent
}

.prompt-modal::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 10px
}

.prompt-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.32)
}

.prompt-mini-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.prompt-mini-btn.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(91, 91, 214, 0.25);
  transform: translateY(-1px);
}

.prompt-mini-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text)
}

/* Article Modal */
.article-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s
}

.article-modal-mask.active {
  display: flex;
  opacity: 1
}

.article-modal {
  background: #ffffff;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  position: relative;
  animation: modalIn .4s cubic-bezier(0.16, 1, 0.3, 1)
}

@keyframes modalIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1
  }
}

.am-header {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start
}

.am-title-wrap {
  flex: 1;
  padding-right: 40px
}

.am-breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.am-breadcrumb .crumb-sep {
  margin: 0 4px;
  color: rgba(15, 23, 42, 0.35);
  font-size: 16px;
  font-weight: 300;
  vertical-align: middle;
}

.am-breadcrumb .crumb-link {
  color: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.am-breadcrumb .crumb-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.am-tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(91, 91, 214, 0.25);
  letter-spacing: 0.5px
}

.am-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.am-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .2s;
  position: sticky;
  top: 16px;
  margin: 16px 16px -52px auto;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.am-close:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: rotate(90deg)
}

.am-body {
  padding: 40px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8
}

.am-cover {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border)
}

.am-content h4 {
  color: var(--text) !important;
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 800;
  line-height: 1.3;
}

.am-content h5 {
  color: var(--primary) !important;
  font-size: 18px;
  margin: 24px 0 12px;
  font-weight: 700
}

.am-content p {
  margin-bottom: 20px;
  color: var(--text)
}

.am-content ul,
.am-content ol {
  padding-left: 1.6em;
  margin: 12px 0 20px;
  list-style-position: outside;
}

.am-content ul { list-style-type: disc; }
.am-content ol { list-style-type: decimal; }

.am-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--text);
  padding-left: 4px;
}

.am-content li::marker {
  color: var(--text-light);
}

.am-content li > ul,
.am-content li > ol {
  margin: 8px 0;
}

.am-content .news-columns {
  display: block;
  margin: 24px 0
}

.am-content .column {
  margin-bottom: 16px
}

.am-content strong {
  color: var(--text);
  font-weight: 700
}

.am-content .link-group {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px
}

.am-content .link-group.link-group-bottom {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.am-content .news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.am-content .news-link:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(91, 91, 214, 0.25);
  transform: translateY(-1px)
}

.am-content .link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px
}

.am-footer {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.am-meta {
  font-size: 13px;
  color: var(--text-light)
}

@media(max-width:700px) {
  .am-title {
    font-size: 20px
  }

  .am-header,
  .am-body {
    padding: 24px
  }

  .am-cover {
    height: 220px
  }
}

.article-modal::-webkit-scrollbar {
  width: 6px
}

.article-modal::-webkit-scrollbar-track {
  background: transparent
}

.article-modal::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 10px
}

.article-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.32)
}

/* Prompt resource sites */
.prompt-sites-heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.prompt-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px
}

.prompt-site-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text) !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.prompt-site-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 91, 214, 0.12);
}

.site-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0
}

.site-info {
  flex: 1;
  min-width: 0
}

.site-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text)
}

.site-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5
}

.tool-section-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  line-height: 1.2
}

/* Model cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 32px
}

.model-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 24px;
  border: 1.5px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  clip-path: var(--clip-md)
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent)
}

.model-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px
}

.model-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  overflow: hidden
}

.model-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.model-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 3px;
  color: var(--text)
}

.model-maker {
  font-size: 13px;
  color: var(--text-light)
}

.model-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px
}

.model-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.08), rgba(94, 245, 255, 0.04));
  border: 1px solid rgba(94, 245, 255, 0.15);
  clip-path: var(--clip-sm)
}

.spec-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px
}

.spec-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent)
}

.strength-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px
}

.strength-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px
}

.strength-tag {
  padding: 3px 10px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(94, 245, 255, 0.2)
}

.model-best {
  background: linear-gradient(135deg, rgba(94, 245, 255, 0.08), rgba(77, 159, 255, 0.06));
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  margin-top: auto;
  color: var(--text);
  clip-path: var(--clip-sm)
}

.model-best strong {
  color: var(--accent)
}

/* Compare table */
.compare-table-wrap {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 8px;
  border: 1.5px solid var(--border-strong);
  overflow-x: auto;
  clip-path: var(--clip-md)
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px
}

.compare-table th {
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.12), rgba(94, 245, 255, 0.08));
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong)
}

.compare-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text)
}

.compare-table tr:last-child td {
  border-bottom: none
}

.compare-table tr:hover td {
  background: rgba(77, 159, 255, 0.08)
}

.compare-table .model-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700
}

.compare-table .model-cell-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0
}

.compare-table .model-cell-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.rating {
  display: inline-flex;
  gap: 1px;
  font-size: 11px
}

.star {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.4)
}

.star.dim {
  color: rgba(77, 159, 255, 0.2);
  text-shadow: none
}

/* Scenario compact grid（怎麼選？）*/
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px
}

.scenario-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-strong);
  padding: 14px 16px;
  clip-path: var(--clip-sm)
}

.scenario-card:hover {
  border-color: var(--accent)
}

.scenario-card .tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  border: 1px solid rgba(94, 245, 255, 0.2)
}

.scenario-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4
}

.scenario-card .summary {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5
}

.scenario-card .summary strong {
  color: var(--accent)
}

/* 學習資源 */
.learn-section {
  margin-bottom: 32px
}

.learn-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text)
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px
}

.learn-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(20, 35, 75, 0.4);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  color: var(--text) !important;
  clip-path: var(--clip-sm);
  transition: all .2s
}

.learn-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: rgba(77, 159, 255, 0.1);
  box-shadow: 0 0 16px rgba(94, 245, 255, 0.2)
}

.learn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: white
}

.learn-info {
  flex: 1;
  min-width: 0
}

.learn-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.learn-badge {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(94, 245, 255, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(94, 245, 255, 0.25);
  letter-spacing: 0.5px
}

.learn-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55
}

/* Tools grid */
.tool-section {
  margin-bottom: 28px
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px
}

.tool-card-big {
  background: #ffffff;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text) !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tool-card-big:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(91, 91, 214, 0.12);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0
}

.tool-icon.logo-icon {
  padding: 8px;
  overflow: hidden
}

.tool-icon.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.tool-info {
  flex: 1;
  min-width: 0
}

.tool-info .tool-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px
}

.tool-sub {
  font-size: 12px;
  color: var(--text-light)
}

.internal-highlight {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid rgba(91, 91, 214, 0.35) !important;
  box-shadow: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.internal-highlight:hover {
  transform: translateY(-2px);
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(91, 91, 214, 0.15) !important;
  color: var(--text) !important;
}

.internal-highlight .tool-name {
  color: var(--primary);
  font-weight: 700;
}

.internal-highlight .tool-sub {
  color: var(--text-light) !important;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px
}

@media(max-width:1200px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:800px) {
  .case-grid {
    grid-template-columns: 1fr
  }
}

.case-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 22px;
  border: 1.5px solid var(--border-strong);
  clip-path: var(--clip-md);
  display: flex;
  flex-direction: column;
  height: 100%
}

.case-card:hover {
  transform: translateY(-2px)
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.case-author {
  display: flex;
  align-items: center;
  gap: 10px
}

.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px
}

.case-name {
  font-weight: 700;
  font-size: 15px
}

.case-dept {
  font-size: 13px;
  color: var(--text-light)
}

.case-badge {
  padding: 4px 12px;
  background: rgba(77, 159, 255, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(94, 245, 255, 0.2)
}

.case-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5
}

.case-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 10px
}

.case-result {
  background: linear-gradient(135deg, rgba(94, 245, 255, 0.08), rgba(77, 159, 255, 0.08));
  padding: 12px 14px;
  font-size: 14px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  clip-path: var(--clip-sm)
}

.case-result strong {
  color: var(--accent)
}

/* Feedback form */
.feedback-form {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  padding: 28px;
  border: 1.5px solid var(--border-strong);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  clip-path: var(--clip-md)
}

.form-group {
  margin-bottom: 18px
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text)
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: rgba(10, 18, 40, 0.6);
  color: var(--text);
  clip-path: var(--clip-sm)
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(94, 245, 255, 0.2)
}

.rating-group,
.checkbox-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.rating-opt,
.checkbox-opt {
  padding: 10px 16px;
  background: rgba(10, 18, 40, 0.6);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  clip-path: var(--clip-sm)
}

.rating-opt:hover,
.checkbox-opt:hover {
  border-color: var(--accent)
}

.rating-opt.selected {
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.2), rgba(94, 245, 255, 0.1));
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(94, 245, 255, 0.3) inset, 0 0 16px rgba(94, 245, 255, 0.3);
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.4)
}

.checkbox-opt.checked {
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.2), rgba(94, 245, 255, 0.1));
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(94, 245, 255, 0.3) inset, 0 0 14px rgba(94, 245, 255, 0.25);
  text-shadow: 0 0 8px rgba(94, 245, 255, 0.4)
}

/* Chat FAB */
footer {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  border-top: 1px solid var(--border);
  position: relative
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent)
}

/* === Hero slider track + news feed timeline === */
.slides-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform
}

.slide {
  cursor: pointer
}

.slide-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  max-width: 78%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

@media(max-width:700px) {
  .slide-desc {
    display: none
  }
}

.feed-tag {
  flex-shrink: 0;
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(91, 91, 214, 0.08);
  color: var(--primary);
  border: 1px solid rgba(91, 91, 214, 0.2);
  border-radius: 999px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: .5px;
  white-space: nowrap
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto 12px
}

.footer-address {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: .3px
}

.footer-team {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px
}

footer {
  padding: 32px 24px 40px;
  text-align: center
}

.summaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.legacy-source-link {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.2s;
}

.legacy-source-link:hover {
  color: var(--accent);
}

/* Related articles in article modal */
.related-articles {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-heading {
  font-size: 15px;
  color: var(--text) !important;
  margin: 0 0 16px 0 !important;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.related-card {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(91, 91, 214, 0.12);
}

.related-cover {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
}

.related-info {
  padding: 14px 12px 12px;
  line-height: 1;
}

.related-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(91, 91, 214, 0.08);
  padding: 5px 10px;
  border: 1px solid rgba(91, 91, 214, 0.25);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0;
}

.related-title,
.am-content .related-title {
  font-size: 14px;
  color: var(--text) !important;
  margin: 10px 0 8px 0 !important;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.related-date {
  font-size: 11px;
  color: var(--text-light);
}

/* Robot icon animations: float + blink + antenna wiggle + glow pulse */
.robot-icon {
  animation: robotFloat 2.8s ease-in-out infinite;
}

.robot-icon svg {
  animation: robotGlow 2.4s ease-in-out infinite;
}

@keyframes robotGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(94, 245, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 12px rgba(94, 245, 255, 0.85)); }
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.robot-icon svg circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: robotBlink 3s infinite;
}

@keyframes robotBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96% { transform: scaleY(0.15); }
}

.robot-icon svg path:nth-child(1) {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: robotAntennaL 1.8s ease-in-out infinite;
}

.robot-icon svg path:nth-child(2) {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: robotAntennaR 1.8s ease-in-out infinite;
}

@keyframes robotAntennaL {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-12deg); }
}

@keyframes robotAntennaR {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

.trend-summary {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  padding: 20px 0 20px 22px;
  cursor: pointer;
  transition: background 0.15s;
}

.sli-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sli-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 2px;
}

.sli-date {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0;
}

.sli-meta-sep {
  color: rgba(15, 23, 42, 0.25);
  font-weight: 300;
}

.sli-meta .feed-tag {
  margin: 0;
}

.sli-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}

.sli-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 緊湊版：橫向 list（30秒看趨勢 dedicated page）*/
.summary-list-item--compact {
  grid-template-columns: auto 68px 1fr auto;
  column-gap: 14px;
  padding: 14px 12px 14px 22px;
}

.summary-list-item--compact .feed-tag {
  justify-self: start;
}

.summary-list-item--compact .sli-date {
  white-space: nowrap;
}

.summary-list-item--compact .sli-compact-body {
  min-width: 0;
}

.summary-list-item--compact .sli-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.summary-list-item--compact .summary-tags-row {
  margin-top: 6px;
}

.summary-list-item[data-content-tag="模型發布"] { --tag-color: var(--tag-model) }
.summary-list-item[data-content-tag="新功能"] { --tag-color: var(--tag-feature) }
.summary-list-item[data-content-tag="新工具"] { --tag-color: var(--tag-tool) }
.summary-list-item[data-content-tag="應用技巧"] { --tag-color: var(--tag-tip) }
.summary-list-item[data-content-tag="產業動態"] { --tag-color: var(--tag-industry) }
.summary-list-item[data-content-tag="法律規範"] { --tag-color: var(--tag-legal) }

/* tag pill 跟左側色條同色（淡底 + 同色文字 + 同色邊框） */
.summary-list-item .feed-tag {
  background: color-mix(in srgb, var(--tag-color, var(--primary)) 10%, transparent);
  border-color: color-mix(in srgb, var(--tag-color, var(--primary)) 32%, transparent);
  color: var(--tag-color, var(--primary));
}

.summary-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--tag-color, var(--border));
  border-radius: 2px;
}

.summary-list-item:hover {
  background: rgba(15, 23, 42, 0.025);
}

.summary-list-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 20px;
  width: fit-content;
  max-width: 100%;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 8px;
  flex-shrink: 0;
}

.filter-row .chips {
  margin: 0;
  flex-wrap: nowrap;
}

.summary-list-item .feed-tag {
  box-sizing: border-box;
}

.summary-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.summary-tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-right: 6px;
}

.summary-tags-row .usecase-tag {
  color: var(--primary);
  font-size: 12px;
}

.summary-tags-row .usecase-tag:not(:last-child)::after {
  content: '|';
  color: rgba(15, 23, 42, 0.18);
  margin: 0 8px;
  font-weight: 300;
}

.summary-list-item .chevron-icon {
  font-size: 26px;
  color: rgba(15, 23, 42, 0.25);
  padding: 0 32px 0 4px;
  align-self: center;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.summary-list-item:hover .chevron-icon {
  color: var(--primary);
  transform: translateX(4px);
}

/* =========================================================
   Document Reader Mode (Homepage)
   Substack / Medium / Notion 風單欄置中閱讀版型
   ========================================================= */

.reader-flow {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

@media (max-width: 820px) {
  .reader-flow {
    padding: 20px 20px 40px;
    gap: 44px;
  }
}

.reader-flow .reader-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Masthead 跟 Overview 視覺上是同一個導讀群組 — 拉近距離 */
.reader-header + .reader-overview {
  margin-top: -28px;
}

/* overview 自帶邊框 — 緊接的 divider 隱藏避免重線 */
.reader-overview + .reader-divider {
  display: none;
}

/* --- Masthead --- */
.reader-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
  text-align: left;
}

.reader-issue-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.reader-issue-meta::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.reader-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

.reader-deck {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 640px;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 820px) {
  .reader-title { font-size: 34px; }
  .reader-deck { font-size: 16px; }
}

/* --- Section Heading --- */
.reader-h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.reader-lead {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin: -8px 0 4px 0;
}

.reader-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  width: 80px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.7;
}

.reader-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* --- Overview: 趨勢數字 + 關鍵字 chips（左右並排） --- */
.reader-overview {
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px !important;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reader-trend-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.reader-count-num {
  font-size: 64px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-align: right;
  min-width: 2ch;
}

.reader-count-unit {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.reader-keywords {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

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

.reader-kw-axis {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  flex-shrink: 0;
  width: 76px;
  text-align: left;
  white-space: nowrap;
  position: relative;
  padding-left: 12px;
}

.reader-kw-axis::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 13px;
  background: var(--primary);
  border-radius: 2px;
}

/* 情境列：用淡紫色條區分 */
.reader-kw-row--usecase .reader-kw-axis::before {
  background: var(--accent-2);
}

.reader-kw-chips {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
  flex: 1;
  min-width: 0;
}

/* 情境列：inline 文字（無分隔符，靠 gap 分組） */
.reader-kw-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 6px;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.reader-kw-link {
  display: inline-block;
  padding: 2px 0;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.5;
}

/* 類型列：tag 名加大加粗深色（主資訊） */
.reader-kw-row:not(.reader-kw-row--usecase) .reader-kw-link {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.reader-kw-row:not(.reader-kw-row--usecase) .reader-kw-inline {
  column-gap: 22px;
}

.reader-kw-link .kw-name {
  letter-spacing: -0.005em;
}

.reader-kw-link .kw-num {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 6px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.reader-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.reader-kw-chip .kw-name {
  letter-spacing: -0.005em;
}

.reader-kw-chip .kw-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  background: rgba(15, 23, 42, 0.05);
  padding: 1px 8px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .reader-trend-count {
    padding-right: 0;
    border-right: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .reader-count-num { font-size: 36px; }
  .reader-kw-axis {
    width: auto;
  }
}

.reader-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.reader-link-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* --- Hero (override .hero-grid inside reader-flow) --- */
.reader-flow .hero-grid {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 14px;
}

.reader-flow .hero-main {
  min-height: 380px;
  border-radius: 12px;
}

.reader-flow .hero-main-content {
  padding: 24px 28px;
}

.reader-flow .hero-main-title {
  font-size: 28px;
  line-height: 1.25;
}

.reader-flow .hero-side {
  grid-template-rows: none;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 0;
  gap: 12px;
}

.reader-flow .hero-side .hero-small {
  min-height: 130px;
  border-radius: 10px;
}

.reader-flow .hero-side > .hero-small:first-child .hero-small-title {
  font-size: 14px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.reader-flow .hero-small-title {
  font-size: 13px;
}

@media (max-width: 600px) {
  .reader-flow .hero-side {
    grid-template-columns: 1fr;
  }
}

/* --- TOC (本期重點) override --- */
.reader-flow .reader-toc {
  border-top: 1px solid var(--border);
}

.reader-flow .reader-toc .toc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s ease, background 0.2s ease;
  position: relative;
}

.reader-flow .reader-toc .toc-item:hover {
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(91,91,214,0.04), transparent 70%);
}

.reader-flow .reader-toc .toc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.reader-flow .reader-toc .toc-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}

.reader-flow .reader-toc .toc-item::after {
  content: '→';
  color: var(--text-light);
  opacity: 0;
  font-size: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reader-flow .reader-toc .toc-item:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.reader-flow .reader-toc .toc-prefix-tool {
  font-size: 11px;
  font-weight: 700;
  color: var(--tag-tool);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Hide the bottom "看更多" link injected by JS (we use reader-link-btn instead) */
.reader-flow .reader-toc > div:last-child[style*="flex-end"] {
  border-bottom: none;
  padding-top: 12px;
}

/* --- 30秒看趨勢 list inside reader --- */
.reader-flow #weeklySummariesWrap {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.reader-flow .summary-list-item {
  border-bottom: 1px solid var(--border);
}

.reader-flow .summary-list-item:last-child {
  border-bottom: none;
}

.reader-flow .summary-list-item .chevron-icon {
  padding-right: 20px !important;
}

/* --- 內部 AI 工具 (2-col card grid) --- */
.reader-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .reader-tools {
    grid-template-columns: 1fr;
  }
}

.reader-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.reader-tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 91, 214, 0.12);
}

.reader-tool-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.reader-tool-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.reader-tool-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.reader-tool-arrow {
  font-size: 20px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.reader-tool-card:hover .reader-tool-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* --- 黑客松水平時間軸 --- */
.reader-hack-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 12px;
  position: relative;
  padding: 24px 0 8px;
}

.reader-hack-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.reader-hack-timeline .hack-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 24px;
  z-index: 1;
}

.reader-hack-timeline .hack-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-strong);
  box-sizing: border-box;
}

.reader-hack-timeline .hack-step.past::before {
  background: var(--primary);
  border-color: var(--primary);
}

.reader-hack-timeline .hack-step.current::before {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.18);
  width: 16px;
  height: 16px;
}

.reader-hack-timeline .hack-step-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.reader-hack-timeline .hack-step-desc {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.45;
  max-width: 100px;
}

.reader-hack-timeline .hack-step.current .hack-step-date,
.reader-hack-timeline .hack-step.current .hack-step-desc {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 600px) {
  .reader-hack-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0;
  }
  .reader-hack-timeline::before {
    display: none;
  }
  .reader-hack-timeline .hack-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    padding-left: 28px;
    gap: 12px;
  }
  .reader-hack-timeline .hack-step::before {
    left: 0;
    top: 6px;
    transform: none;
  }
  .reader-hack-timeline .hack-step-desc {
    max-width: none;
  }
}