.decode-header {
    color: white;
    position: relative;
    background: linear-gradient(135deg, rgb(26, 28, 30) 0%, rgb(42, 44, 46) 100%);
    border-top: 4px solid rgb(0, 188, 212);
    overflow: hidden;
}
/* ===== 系統網絡圖樣式 ===== */
.decode-network-section {
  background: white;
  border-radius: 16px;
  border: 2px solid #e0f7fa;
  padding: 2rem;
  margin-bottom: 2rem;
}

.system-network {
  position: relative;
  min-height: 400px;
}

.network-container {
  position: relative;
  width: 100%;
  height: 350px;
  margin: 2rem 0;
}

.network-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #00bcd4, #26c6da);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
  animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3); }
  50% { box-shadow: 0 15px 40px rgba(0, 188, 212, 0.5); }
}

.center-label {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.center-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

.network-node {
  position: absolute;
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: 2px solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.network-node:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 節點位置 */
.social-system {
  top: 20%;
  left: 20%;
  border-color: #4db6ac;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}

.economic-system {
  top: 20%;
  right: 20%;
  border-color: #ffb74d;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.organizational-system {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  border-color: #7986cb;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.technical-system {
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  border-color: #ba68c8;
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.psychological-system {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  border-color: #81c784;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.node-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.node-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.node-count {
  font-size: 0.8rem;
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

/* 連接線 */
.network-connections {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.connection {
  position: absolute;
  background: #e0f7fa;
  height: 2px;
  transform-origin: 0 0;
  animation: connectionFlow 3s linear infinite;
  opacity: 0.6;
}

@keyframes connectionFlow {
  0% { background: linear-gradient(90deg, #e0f7fa, #00bcd4, #e0f7fa); }
  100% { background: linear-gradient(90deg, #e0f7fa, #00bcd4, #e0f7fa); background-position: 200px 0; }
}

.connection-1 { top: 30%; left: 30%; width: 100px; transform: rotate(45deg); }
.connection-2 { top: 30%; right: 30%; width: 100px; transform: rotate(-45deg); }
.connection-3 { top: 50%; left: 20%; width: 80px; transform: rotate(0deg); }
.connection-4 { top: 50%; right: 20%; width: 80px; transform: rotate(0deg); }
.connection-5 { bottom: 30%; left: 30%; width: 100px; transform: rotate(-45deg); }
.connection-6 { bottom: 30%; right: 30%; width: 100px; transform: rotate(45deg); }
.connection-7 { bottom: 30%; left: 50%; width: 60px; transform: rotate(90deg); }

.network-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0f7fa;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #546e7a;
}

.legend-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}

.legend-node.social { border-color: #4db6ac; background: #e0f2f1; }
.legend-node.economic { border-color: #ffb74d; background: #fff3e0; }
.legend-node.organizational { border-color: #7986cb; background: #e8eaf6; }
.legend-node.technical { border-color: #ba68c8; background: #f3e5f5; }
.legend-node.psychological { border-color: #81c784; background: #e8f5e9; }

.network-insight {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e0f7fa;
  font-size: 0.95rem;
  color: #546e7a;
}

/* ===== 系統聚焦矩陣 ===== */
.system-focus-matrix {
    background: white;
    border-radius: 16px;
    border: 2px solid #e0f7fa;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    max-width: 1200px; /* 限制最大寬度 */
    position: relative;
    overflow: hidden;
}

.system-focus-matrix::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #26c6da, #4dd0e1);
}

.matrix-header {
    display: grid;
    grid-template-columns: 160px repeat(4, minmax(0, 1fr)); /* 減少首列寬度 */
    background: #f8fafc;
    border-bottom: 2px solid #e0f7fa;
}

.matrix-corner {
    padding: 1.2rem;
    font-weight: 600;
    color: #37474f;
    border-right: 2px solid #e0f7fa;
    display: flex;
    align-items: center;
}

.matrix-domain-header {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #00838f;
    border-right: 1px solid #e0f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.3;
}

.matrix-domain-header:last-child {
    border-right: none;
}

.domain-icon {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.matrix-row {
    display: grid;
    grid-template-columns: 160px repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #f0f7fa;
    transition: background 0.3s ease;
    align-items: center;
    min-height: 70px; /* 稍微降低高度 */
}

.matrix-row:hover {
    background: #f8fafc;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-system-header {
    padding: 1rem 0.5rem;
    font-weight: 600;
    color: #37474f;
    border-right: 2px solid #e0f7fa;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    justify-content: flex-start;
    padding-left: 1rem;
}

.matrix-system-header:hover {
    background: #e0f7fa;
}

.system-icon-small {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.matrix-cell {
    padding: 0.5rem;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-right: 1px solid #f0f7fa;
    position: relative;
    min-height: 70px;
}

.matrix-cell:last-child {
    border-right: none;
}

.heat-bar {
    width: 70%; /* 稍微加寬視覺條 */
    background: linear-gradient(to top, #00bcd4, #26c6da);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 10px;
}

.heat-bar.empty {
    background: #f5f5f5;
    min-height: 10px;
}

.heat-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.1);
}

.heat-count {
    position: absolute;
    bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.matrix-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e0f7fa;
    flex-direction: column;
    gap: 1rem;
}

.intensity-scale {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.scale-label {
    font-weight: 600;
    color: #37474f;
    font-size: 0.9rem;
}

.scale-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.scale-bar {
    width: 12px;
    background: linear-gradient(to top, #e0f7fa, #00bcd4);
    border-radius: 2px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    width: 40px;
    font-size: 0.8rem;
    color: #666;
}

.matrix-note {
    font-size: 0.9rem;
    color: #666;
}

/* ===== 快速統計 ===== */
.quick-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00bcd4;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}
/* ===== 系統導航篩選器優化版 ===== */
.system-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
    border-radius: 16px;
    border: 2px solid #e0f7fa;
    position: relative;
    overflow: hidden;
}

.system-navigation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #26c6da, #4dd0e1);
}

.system-nav-btn {
    position: relative;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e0f7fa;
    border-radius: 12px;
    color: #37474f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

/* 按鈕底層效果 */
.system-nav-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 188, 212, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: -1;
}

.system-nav-btn:hover::before {
    left: 100%;
}

/* 按鈕懸停效果 */
.system-nav-btn:hover {
    background: white;
    border-color: #00bcd4;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.2);
    color: #00838f;
}

/* 按鈕圖標動畫 */
.system-nav-btn:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 激活狀態 */
.system-nav-btn.active {
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
    color: white;
    border-color: #00bcd4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
    position: relative;
}

/* 激活狀態的發光效果 */
.system-nav-btn.active::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00bcd4, #26c6da, #4dd0e1);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 系統專屬顏色效果 */
.system-nav-btn[data-system="社會系統"]:hover,
.system-nav-btn[data-system="社會系統"].active {
    border-color: #4db6ac;
    color: #00796b;
}

.system-nav-btn[data-system="經濟系統"]:hover,
.system-nav-btn[data-system="經濟系統"].active {
    border-color: #ffb74d;
    color: #f57c00;
}

.system-nav-btn[data-system="組織系統"]:hover,
.system-nav-btn[data-system="組織系統"].active {
    border-color: #7986cb;
    color: #3949ab;
}

.system-nav-btn[data-system="技術系統"]:hover,
.system-nav-btn[data-system="技術系統"].active {
    border-color: #ba68c8;
    color: #8e24aa;
}

.system-nav-btn[data-system="心理系統"]:hover,
.system-nav-btn[data-system="心理系統"].active {
    border-color: #81c784;
    color: #388e3c;
}

/* 圖標樣式 */
.nav-icon {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    padding: 0.4rem;
}

.system-nav-btn.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 全部系統按鈕特殊樣式 */
.system-nav-btn[data-system="all"] .nav-icon {
    background: rgba(0, 188, 212, 0.15);
}

.system-nav-btn[data-system="all"].active .nav-icon {
    background: rgba(255, 255, 255, 0.25);
}

/* 按鈕文字 */
.system-nav-btn span {
    transition: all 0.3s ease;
}

.system-nav-btn:hover span {
    transform: translateX(2px);
}

/* 篩選器統計標示 */
.system-nav-btn::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4081;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.system-nav-btn.active::after {
    opacity: 1;
    transform: scale(1);
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 篩選器標題區 */
.decode-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0f7fa;
}

.section-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 排序選擇器 */
.sort-select {
    padding: 0.8rem 1.2rem;
    background: white;
    border: 2px solid #e0f7fa;
    border-radius: 8px;
    color: #37474f;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sort-select:hover {
    border-color: #00bcd4;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.sort-select:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* 視圖切換按鈕 */
.view-toggle {
    display: flex;
    gap: 0.3rem;
    background: white;
    border: 2px solid #e0f7fa;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    padding: 0.8rem;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    background: #f8fafc;
    color: #37474f;
}

.view-toggle-btn.active {
    background: #00bcd4;
    color: white;
}

/* 篩選器動態提示 */
.filter-hint {
    position: absolute;
    bottom: 0.8rem;
    right: 1.8rem;
    font-size: 0.8rem;
    color: #666;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.system-navigation:hover .filter-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 系統指示器 ===== */
.system-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8fafc, #e0f7fa);
  border-radius: 20px;
  border: 1px solid #e0f7fa;
}
/* ===== list：文章卡片網格（你原本 CSS 裡沒有這段） ===== */
.articles-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
  width: 30rem;
  margin-bottom: 0.9rem;
  margin-top: 0.9rem;
  margin-left: 0.9rem;
}

.decode-article-card {
  background: white;
  border-radius: 16px;
  border: 2px solid #e0f7fa;
  overflow: hidden;
  transition: all 0.25s ease;
  opacity: 1;
}

.decode-article-card:hover {
  transform: translateY(-4px);
  border-color: #00bcd4;
  box-shadow: 0 15px 35px rgba(0, 188, 212, 0.14);
}

.article-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1.25rem;
  position: relative;
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.article-date {
  font-size: 0.85rem;
  color: #78909c;
  white-space: nowrap;
}

.article-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #1a1c1e;
}

.article-description {
  margin: 0;
  color: #546e7a;
  line-height: 1.6;
}

.article-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.article-cta {
  color: #00838f;
  font-weight: 700;
  white-space: nowrap;
}

/* list：空狀態 */
.empty-state {
  background: white;
  border-radius: 16px;
  border: 2px dashed #e0f7fa;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.article-tags {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  align-items: center;
}

.domain-tag {
  padding: 0.3rem 0.8rem;
  background: white;
  border: 1px solid #e0f7fa;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #00838f;
  font-weight: 500;
}

.reading-time {
  font-size: 0.85rem;
  color: #888;
}

.current-position {
  display: flex;
  flex-direction: column;
}

.position-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.2rem;
}

.position-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00838f;
}

.current-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 188, 212, 0.1) 31%, transparent 32%);
  opacity: 0;
  animation: cardPulse 4s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ===== 單頁：文章定位圖 ===== */
.article-position-map {
  background: white;
  border-radius: 16px;
  border: 2px solid #e0f7fa;
  padding: 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.article-position-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00bcd4, #26c6da, #4dd0e1);
}

.position-header {
  text-align: center;
  margin-bottom: 2rem;
}

.position-header h3 {
  margin: 0 0 0.5rem 0;
  color: #1a1c1e;
  font-size: 1.5rem;
}

.position-header p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.position-matrix {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: 150px 1fr;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
}

.matrix-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e0f7fa;
}

.system-axis {
  grid-column: 1;
  grid-row: 2;
}

.domain-axis {
  grid-column: 2;
  grid-row: 1;
}

.axis-label {
  font-weight: 600;
  color: #00838f;
  font-size: 1.1rem;
  text-align: center;
}

.axis-values {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-top: 1rem;
}

.axis-value {
  padding: 0.5rem 0.8rem;
  background: white;
  border: 1px solid #e0f7fa;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}

.axis-value.active {
  background: #00bcd4;
  color: white;
  border-color: #00bcd4;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.position-point {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point-pulse {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.point-center {
  width: 40px;
  height: 40px;
  background: #00bcd4;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.point-label {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  background: white;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 2px solid #00bcd4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.point-label strong {
  display: block;
  color: #1a1c1e;
  margin-bottom: 0.3rem;
}

.point-coords {
  font-size: 0.9rem;
  color: #00838f;
  font-weight: 500;
}

.position-insight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0f7fa;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e0f7fa;
}

.insight-icon {
  font-size: 1.5rem;
}

.insight-content {
  flex: 1;
  font-size: 0.95rem;
  color: #37474f;
}

.insight-content strong {
  color: #00838f;
  margin-right: 0.5rem;
}

/* ===== 系統框架框 ===== */
.system-framework-box {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
  border-radius: 12px;
  border: 2px solid #00bcd4;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.system-framework-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00bcd4, #26c6da);
}

.framework-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.framework-icon {
  font-size: 2rem;
}

.framework-header h3 {
  margin: 0;
  color: #1a1c1e;
  font-size: 1.3rem;
}

.framework-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.framework-item {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0f7fa;
}

.item-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.item-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00838f;
}

/* ===== 系統關聯延伸 ===== */
.system-connections {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  border: 2px solid #e0f7fa;
}

.system-connections h3 {
  margin: 0 0 2rem 0;
  color: #1a1c1e;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));  /* 改小 minmax 的值 */
  gap: 15rem;
  max-width: 1000px;  /* 限制最大寬度 */
  margin: 0 auto;    /* 居中 */
}

.connection-item {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e0f7fa;
  transition: all 0.3s ease;
}

.connection-item:hover {
  background: white;
  border-color: #00bcd4;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.15);
}

.connection-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.connection-item h4 {
  margin: 0 0 0.8rem 0;
  color: #1a1c1e;
  font-size: 1.2rem;
}

.connection-item p {
  margin: 0 0 1rem 0;
  color: #546e7a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.connection-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #00bcd4;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.connection-link:hover {
  background: #00838f;
  transform: translateX(5px);
}
/* ===== 單頁：文章定位圖（改為 5 系統 × 4 領域矩陣） ===== */

.modern-decode-back-nav {
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
  margin-left: 1.25rem;
}

.modern-decode-back-btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e0f7fa;
  background: white;
  text-decoration: none;
  color: #00838f;
  font-weight: 700;
}

.modern-decode-back-btn:hover {
  border-color: #00bcd4;
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.15);
}


/* 1 corner + 4 domains columns; 1 corner + 5 systems rows */
.position-matrix {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
  grid-template-rows: 60px repeat(5, 70px);
  gap: 1px;
  background: #e0f7fa;
  border: 1px solid #e0f7fa;
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1000px;
}

/* 左上角空白 */
.matrix-corner-block {
  grid-column: 1;
  grid-row: 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #37474f;
  padding: 0.5rem;
  text-align: center;
  line-height: 1.2;
}

/* 上方：領域列（4 格） */
.domain-axis-grid {
  grid-column: 2 / span 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

/* 左側：系統列（5 格） */
.system-axis-grid {
  grid-column: 1;
  grid-row: 2 / span 5;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 1px;
}

/* 軸內的單行文字格子 */
.domain-axis-grid .axis-value,
.system-axis-grid .axis-value {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 0.5rem 0.3rem;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.2;
  min-height: 0;
}

/* 領域標題樣式 */
.domain-axis-grid .axis-value {
  font-weight: 600;
  color: #00838f;
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* 系統標題樣式 */
.system-axis-grid .axis-value {
  font-weight: 600;
  color: #37474f;
  font-size: 0.9rem;
  padding: 0.5rem;
}

/* 活動狀態 */
.domain-axis-grid .axis-value.active,
.system-axis-grid .axis-value.active {
  background: #00bcd4;
  color: white;
  font-weight: 700;
}

/* 交叉內容區域（5x4網格） */
.position-matrix::after {
  content: "";
  grid-column: 2 / span 4;
  grid-row: 2 / span 5;
  background: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1px;
}

/* 定位點視覺 */
.point-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(0, 212, 109, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pointPulse 2s ease-out infinite;
}

.point-center {
  width: 16px;
  height: 16px;
  background: #00bcd4;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
  position: relative;
  z-index: 2;
}

@keyframes pointPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===== 文章內容容器樣式 ===== */
.article-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0f7fa;
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.08);
    position: relative;
}

.article-content-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bcd4, #26c6da, #4dd0e1);
    border-radius: 12px 12px 0 0;
}

/* 文章內容在容器內的樣式 */
.article-content {
    line-height: 1.8;
    color: #37474f;
    font-size: 1.05rem;
}

/* 內容元素在容器內的佈局 */
.article-content > * {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.article-content h2 {
    color: #1a1c1e;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0f7fa;
    font-size: 1.6rem;
    position: relative;
}

.article-content h2::before {
    content: "#";
    position: absolute;
    left: -1.5rem;
    color: #00bcd4;
    font-family: monospace;
    font-size: 1rem;
    opacity: 0.7;
}

.article-content h3 {
    color: #263238;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    padding-left: 1rem;
}

.article-content h3::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00bcd4;
}

.article-content p {
    margin: 1.2rem 0;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
    border-left: 3px solid #00bcd4;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #546e7a;
    position: relative;
}

.article-content blockquote::before {
    content: "「";
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: #00bcd4;
    font-size: 1.5rem;
    font-family: serif;
    opacity: 0.3;
}

.article-content blockquote::after {
    content: "」";
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    color: #00bcd4;
    font-size: 1.5rem;
    font-family: serif;
    opacity: 0.3;
}

.article-content ul,
.article-content ol {
    margin: 1.2rem 0;
    padding-left: 1.8rem;
}

.article-content li {
    margin: 0.5rem 0;
    position: relative;
}

.article-content ul li::before {
    content: "▪";
    color: #00bcd4;
    position: absolute;
    left: -1.2rem;
}

.article-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.article-content pre {
    background: #1a1c1e;
    color: #e0f7fa;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #2a2c2e;
    position: relative;
}

.article-content pre::before {
    content: "code";
    position: absolute;
    top: 0;
    right: 0;
    background: #00bcd4;
    color: white;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0 6px 0 6px;
    font-family: monospace;
}

/* 圖片在文章容器內的自適應 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    border: 1px solid #e0f7fa;
}

/* 表格樣式 */
.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border: 1px solid #e0f7fa;
}

.article-content th,
.article-content td {
    padding: 0.8rem;
    border: 1px solid #e0f7fa;
    text-align: left;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #37474f;
}

.article-content tr:nth-child(even) {
    background: #f8fafc;
}

/* 分割線 */
.article-content hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00bcd4, transparent);
}

/* ===== 更新原有的文章標頭位置 ===== */
.modern-decode-article-header {
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border-bottom: 1px solid #e0f7fa;
  position: relative;
}

.modern-decode-article-title {
  color: #1a1c1e;
  margin: 0 0 1.2rem 0;
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.modern-decode-article-detail {
  background: white;
  border-radius: 16px;
  border: 2px solid #e0f7fa;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}
.modern-decode-article-description {
  color: #546e7a;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #00bcd4;
}
.modern-decode-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f7fa;
}
.modern-decode-article-date {
  color: #888;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-decode-article-date::before {
  content: "📅";
}

.modern-decode-article-domain,
.modern-decode-article-system {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.modern-decode-article-domain {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.modern-decode-article-system {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border: 1px solid #90caf9;
}

.modern-decode-article-domain:hover,
.modern-decode-article-system:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-decode-reading-time {
  color: #666;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e0f7fa;
}


.modern-decode-article-detail::before {
    display: none;
}
/* ===== 相關文章 ===== */
.modern-decode-related-articles {
    background: white;
    border-radius: 16px;
    border: 2px solid #e0f7fa;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.modern-decode-related-articles::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4dd0e1, #26c6da, #00bcd4);
}

.modern-decode-related-articles h3 {
    color: #1a1c1e;
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modern-decode-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.modern-decode-related-card {
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e0f7fa;
    border-radius: 12px;
    text-decoration: none;
    color: #37474f;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-decode-related-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

.modern-decode-related-card:hover::before {
    left: 100%;
}

.modern-decode-related-card:hover {
    background: white;
    border-color: #00bcd4;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.15);
}

.related-system {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.modern-decode-related-card h4 {
    margin: 0 0 0.8rem 0;
    color: #1a1c1e;
    font-size: 1.2rem;
    line-height: 1.4;
}

.modern-decode-related-card p {
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.modern-decode-related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.related-domain {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modern-decode-no-related {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #e0f7fa;
    grid-column: 1 / -1;
}

